This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]