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]

Re: Mounting a FAT filesystem


Eduardo Sabaj wrote:
> I've already enabled this debugger. I can see the following message..
> 
> "IDE device 0:0 is not a hard disk"

Start with this - the eCos IDE driver does not recognize your hardware.
Until you solve this, you cannot proceed.

How could this message be any clearer?

> My board has attached two ide disks: a disk on module (128 Mb) acting as
> a slave, and a NandDrive (also 128 Mb) configured as master..
> 
> By the way, which is the syntax to mount the disk attached as master ?
> (remember that there is only one partition which occupies the whole disk)...
> 
> mount ("/dev/hda/"....)
> mount ("/dev/hda0/0", ...)
> 
> Regards
> Eduardo
> 
> Gary Thomas escribió:
>> Eduardo Sabaj wrote:
>>   
>>> Gary, I didn't verify it... Is there any debugger that tells me this
>>> information?
>>>     
>>
>> Try enabling 'CYGDBG_IO_DISK_DEBUG'
>>
>>   
>>> Gary Thomas escribió:
>>>     
>>>> Andrew Lunn wrote:
>>>>   
>>>>       
>>>>> On Fri, Apr 03, 2009 at 09:04:42AM -0300, Eduardo Sabaj wrote:
>>>>>     
>>>>>         
>>>>>> I have an i386 platform with two IDE disks and until now I have had no
>>>>>> success in trying to mount a FAT filesystem in my development.. What I
>>>>>> have tried is the following:
>>>>>>
>>>>>> mount ("/dev/hda/" , "/", "fatfs:sync=write");
>>>>>>
>>>>>> In spite of the fact that on my project file (.ecc) the names of the
>>>>>> disk devices are /dev/hda, /dev/hdb, etc..., mount returns -1 and
>>>>>> errno 19 ("no such device").
>>>>>>
>>>>>> Moreover, if I try to lookup the driver by...
>>>>>>
>>>>>> cyg_io_lookup("/dev/hda/", &handle);
>>>>>>
>>>>>> it returns -22 ("invalid argument"). Could anyone tell me what I'm missing ??
>>>>>>       
>>>>>>           
>>>>> Arn't you forgetting about partitions? You want to mount the first
>>>>> partition on the disk, not the disk itself?
>>>>>     
>>>>>         
>>>> Also, have you verified that the IDE driver actually finds
>>>> any of these partitions?

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

-- 
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]