This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Mounting a FAT filesystem
- From: Eduardo Sabaj <esabaj at gmail dot com>
- To: ecos-discuss at ecos dot sourceware dot org, esabaj at hasar dot com
- Date: Fri, 3 Apr 2009 11:50:30 -0300
- Subject: [ECOS] Mounting a FAT filesystem
I enabled the debuggers in ide_disk.c. Now I see that the driver can
read the following information from the disk in function
ide_disk_init():
Firmware rev. : NDBA418J
Model : 128MB NANDrive
C/H/S : 977/8/32
Kind : 4
However, the following "if" condition is the one which is rejecting the disk.
ide_disk_init ()
{
....
....
if (((ide_idData->general_conf>>8)&0x1f)!=2) {
diag_printf("IDE device %d:%d is not a hard disk!\n",
info->port, info->chan);
return false;
}
}
The value of "ide_idData->general_conf>>8)&0x1f" is the same as Kind
(printed above), So it expects a value of 2 while the value that is
reading is 4. Could anyone tell me which is the incompatibility here?
Regards
Eduardo
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss