Makefile problem was Re: make fileio example???
Thomas Doerfler
Thomas.Doerfler at imd-systems.de
Tue Jun 17 13:17:53 UTC 2003
Hello David,
it seems that the devices "/dev/hda*" are not present. Did you
install your own device table, using something like:
#define CONFIGURE_HAS_OWN_DEVICE_DRIVER_TABLE
rtems_driver_address_table Device_drivers[] =
{
CONSOLE_DRIVER_TABLE_ENTRY
,CLOCK_DRIVER_TABLE_ENTRY
,IDE_CONTROLLER_DRIVER_TABLE_ENTRY
/* important: ATA driver must be after ide drivers */
,ATA_DRIVER_TABLE_ENTRY
};
Maybe you can inspect the table "Device_drivers" using gdb...
wkr,
Thomas.
> hi ,
> I use gdb stub to debug fileio.exe ,trace into stat.c
> function stat(), line 62 and find status == -1 .
> ...
> 62 status = rtems_filesystem_evaluate_path( path, 0,
> &loc, _STAT_FOLLOW_LINKS );
> 63 if ( status != 0 )
> ...
>
> watch path==/dev/hda
> modify path value to /dev/hda1 or /dev/hda2 ,status
> == -1 yet.
> and then i can see as below on pc screen
> ---unused dynamic memory:32157772 bytes ---
> hda result = 25
> hda1 result = 25
> hda2 result = 25
> ---unused dynamic memory:32157772 bytes ---
> my computer have only one 4.3G harddisk ,fdisk and
> formate/s by freedos command into only one fat16
> partition.
>
> thanks
>
> David
>
> --- Thomas Doerfler <Thomas.Doerfler at imd-systems.de>
> µÄÕýÎÄ£º> Hello David,
> >
> > currently I can only guess:
> >
> > I have grepped through the cpukit source tree for
> > "RTEMS_INTERNAL_ERROR":
> >
> > cd <path_to_your_rtems_source_tree>/cpukit
> > grep -r RTEMS_INTERNAL_ERROR *
> >
> > I found several references in "ide_part_table.c" and
> > "ata.c".
> > Maybe you can have a look at these sources to find
> > out
> > possible reasons for your error?
> >
> > Maybe the partition table is different to the way it
> > is
> > expected?
> >
> > Sorry, this is not much. Do you have a debugging
> > possibility
> > for the relevant code?
> >
> > wkr,
> > Thomas.
> >
> >
> > > Thanks to all,
> > > I have build fileio example,successfully.
> > > I am sure ,after i make install rtems-4.6.0pre3,
> > some
> > > .c and .h files have not been installed,
> > > just copy files to fileio example(ata.h ata.c
> > > ata_internal.h fsmount.c fsmount.h
> > > ide_controller.c),and modify some file, it looks
> > like
> > > ok,i can make out fileio.exe.
> > >
> > > Bit another problem got out,when i boot my
> > computer by
> > > grub and run fileio example, I can see FILE I/O
> > Test
> > > Menu.
> > > But when i select "P->part_table_initialize" ,i
> > got
> > > message as below:
> > >
> > > ---unused dynamic memory:32157772 bytes ---
> > > hda result = 25
> > > ---unused dynamic memory:32157772 bytes ---
> > >
> > > i know "result = 25" is mean
> > RTEMS_INTERNAL_ERROR
> > > ,but how to resolve this error???
> > >
> > > Thanks
> > > David wu
> > > BTW,i am sorry for my poor english.
> > >
> > >
> > > --------------------------------------------
> > 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
> >
>
> _________________________________________________________
> Do You Yahoo!?
> Á÷Á¬ÍøÂçÊÀ½çµÄ¡°Ä㡱ÊÇË£¿
> http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.surveys.yahoo.com/cn_user_profile_study_may2003
--------------------------------------------
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