HELP: Initializing Partition Table (?)
Thomas Doerfler
Thomas.Doerfler at imd-systems.de
Mon Jul 26 15:15:16 UTC 2004
Hello Joe,
it seems you do not have a IDE driver or it is not initialized.
I have also written a sample/test application called "fileio"
(in c/src/tests/samples/fileio). If you look at the "system.h"
file, you will see, that there is a special device driver table:
rtems_driver_address_table Device_drivers[] =
{
CONSOLE_DRIVER_TABLE_ENTRY
,CLOCK_DRIVER_TABLE_ENTRY
#ifdef RTEMS_BSP_HAS_IDE_DRIVER
,IDE_CONTROLLER_DRIVER_TABLE_ENTRY
/* important: ATA driver must be after ide drivers */
,ATA_DRIVER_TABLE_ENTRY
#endif
};
If the last two entries are missing, hard disk access is not
available.
wkr,
Thomas.
> Hi all,
>
> I am trying to access my hard disk and floppy using
> rtems. I am using the fsmount source code of
> Thomas.Doerfler at imd-systems.de.
>
> First thing I am trying is to initialize partition
> table.
> (should be partition table initialization executed
> after mount operation??? I am trying it before!)
>
> I am using rtems 4.6 in a linux mandrake box in a i386
> BSP686!
>
> The source code I have is the following:
>
> main(...)
> {
> rc = rtems_ide_part_table_initialize("/dev/hda");
> }
>
> I can see it failling in the for cicle of the
> rtems_ide_part_table_initialize() function in the
> ide_part_table.c file. It fails when it try to get the
> partition table! The source of the failure is in the
> stat() function which doesnt find the hda!
>
> If I list all existing directories in the /dev I see
> this hierarchie:
>
> /
> ---dev
> ------console
> ------ide
>
>
> Where is the hda???
> Should I try to initialize partition table for
> /dev/hda or should I initialize partition table for
> /dev/ide ?
> Why hda doesnt exists?
>
> If I try to initialize partition table for /dev/ide it
> works well but it raises an exception 13 at the end
> and freezes...
>
> What I am doing wrong?
> Any help?
>
> Is there any readme or tutorial or how-to explaining
> How to mount msdos file system in RTEMS?
>
> Many thanks,
>
> Joe
> (rtems beginner)
>
>
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> New and Improved Yahoo! Mail - 100MB free storage!
> http://promotions.yahoo.com/new_mail
--------------------------------------------
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/pgp_keys.htm
More information about the users
mailing list