init partition table problem in fileio example
Yan Luo
yan_luo at uml.edu
Tue Mar 28 21:31:38 UTC 2006
Hello,
I still have problem initializing partition of /dev/hda using fileio
example. I got stuck when I chose to init partition table. I gave the
name of the device "/dev/hda", but the rtem_ide_part_table_initialize
() never returned. I tried with '/dev/ide', it returned 25.
I am using rtems-4.6.5, rtems-gcc 3.2.3, i386 target, bsp pc386. I
tried rtems-4.6.99, different bsp, a Pentium based laptop (Compaq
Armada 7730MT), a Pentium based desktop, Exact same thing happened.
I double checked fileio Makefile, which has Managers=all. The hard
disks are in primary master IDE.
After tracing the rtems source code, I found the partition table
initialization hangs at line 1231 of cpukit/libblock/src/bdbuf.c
_CORE_mutex_Seize(&bd_buf->transfer_sema, 0, TRUE,
WATCHDOG_NO_TIMEOUT, level);
Do it seems that my rtems mutex is not initialized properly? How can
I fix this problem? Or what other reason could cause this problem? I
run out of ideas.
I truly appreciate your kind help.
Thanks,
Yan
>
>
> On Mar 16, 2006, at 3:18 AM, Thomas Doerfler wrote:
>
>> Yan,
>>
>> agreed, you should have an IDE interface in such a machine. You
>> might verify it in your BIOS page. And I got no idea, what might
>> go wrong with your interface, sorry.
>> Yan Luo wrote:
>>>>
>>>> Hm, this sounds, as if reading of the partition table hangs.
>>>> What kind
>>>> of interface do you have to connect your harddisk? RTEMS
>>>> currently only
>>>> supports a standard IDE interface (no SCSI, no SATA...). And it
>>>> asumes,
>>>> that the harddisk is connected as Master to the primary IDE
>>>> interface. I
>>>> should have mentioned this before :-(
>>> I am using a pretty old laptop (Compaq, Pentium, no CDROM). I
>>> believe the hard drive is standard IDE based and on primary
>>> master because it is "hda" in Debian linux. It would have other
>>> device names if it were SCSI or other, right?
>>> I am wondering if "grub" (the boot loader) caused the problems.
>>> Both Matteo and I use grub. Will grub affect the partition table
>>> and mounting? Could you tell us the test environment that you
>>> run fileio on before, if you don't use grub or lilo?
>>> Thanks,
>>> Yan
>>
>>
>> --
>> --------------------------------------------
>> IMD Ingenieurbuero fuer Microcomputertechnik
>> Thomas Doerfler Herbststrasse 8
>> D-82178 Puchheim Germany
>> email: Thomas.Doerfler at imd-systems.de
>> PGP public key available at:
>> http://www.imd-systems.de/pgpkey_en.html
>
More information about the users
mailing list