[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-arm-kernel
Subject: Re: q:cf/pcmcia
From: Yann Desplanches <yann.desplanches () cdf ! in2p3 ! fr>
Date: 2004-07-15 13:03:15
Message-ID: cd5vaj$sjk$3 () sea ! gmane ! org
[Download RAW message or body]
Hi!
(sorry for my poor english...)
Be carefull, you have a mix between cardmgr output (and "his" kernel
output) and mount output...
Perhaps my experience with compactflash on a at91rm9200dk can help you.
Without adjusting timeout (to be more fast in "polling mode"), I have :
[root@cdfpap4 /]$cardmgr -v
at91_pcmcia_configure_socket(): config socket 0 vcc 33 vpp 33
at91_pcmcia_configure_socket(): conf->reset=0
at91_pcmcia_configure_socket(): config socket 0 vcc 33 vpp 33
at91_pcmcia_configure_socket(): conf->reset=1
at91_pcmcia_configure_socket(): config socket 0 vcc 33 vpp 33
at91_pcmcia_configure_socket(): conf->reset=0
[root@cdfpap4 /]$at91_pcmcia_configure_socket(): config socket 0 vcc
33 vpp 0
at91_pcmcia_configure_socket(): conf->reset=0
at91_pcmcia_configure_socket(): config socket 0 vcc 33 vpp 0
at91_pcmcia_configure_socket(): conf->reset=0
hda: SunDisk SDCFB-64, CFA DISK drive
ide0 at 0xc2a80000-0xc2a80007,0xc2a8000e on irq 3
And _after_ 30 seconds :
hda: lost interrupt
hda: lost interrupt
hda: task_no_data_intr: status=0x51 { DriveReady SeekComplete Error
}
hda: task_no_data_intr: error=0x04 { DriveStatusError }
hda: 125440 sectors (64 MB) w/1KiB Cache, CHS=490/8/32
/dev/ide/host0/bus0/target0/lun0:<3>hda: lost interrupt
hda: lost interrupt
hda: lost interrupt
hda: lost interrupt
hda: lost interrupt
hda: lost interrupt
hda: lost interrupt
hda: lost interrupt
ide_cs: hda: Vcc = 3.3, Vpp = 0.0
hda: lost interrupt
hda: lost interrupt
Here i can mount (mount -t vfat /dev/ide/host0/bus0/target0/lun0/part1
/mnt/cf/ ). It's ok.
But if i mount during the 30s beetween the 2 outputs, i have the same
mount error of you :
...
hda : bad access: block=0, count=1
end_request: I/O error, dev 03:00 (hda), sector 0
FAT: unable to read boot sector
...
Yann.
zxk a └crit :
> Hi,Ian Campbell
> Thanks for your help.
> My CF card have a single partition with FAT filesystem.
> but when I mount this device,some errors as following:
> [root@AT91RM9200DK /proc]$mount -t vfat /dev/hda /mnt/cf
> hda: lost interrupt
> hda: lost interrupt
> hda: lost interrupt
> hda: task_no_data_intr: status=0x51 { DriveReady SeekComplete Error }
> hda: task_no_data_intr: error=0x04 { DriveStatusError }
> hda : bad access: block=0, count=1
> end_request: I/O error, dev 03:00 (hda), sector 0
> FAT: unable to read boot sector
> mount: Mounting /devhda: 15680 sectors/ (8 MB)h w/1KiB Cached, CHS=245/2/32a
> Partition check:
> o nhda: /mnt/cf failed: Invalid argument
>
> I can't mount /dev/hda1 so I use /dev/hda.
>
> some infomations after run command cardmgr as following:
> [root@AT91RM9200DK /proc]$cardmgr
> at91_pcmcia_configure_socket(): config socket 0 vcc 33 vpp 0
> at91_pcmcia_configure_socket(): config socket 0 vcc 33 vpp 0
> Trying to free nonexistent resource <c2a0c000-c2a0c00f>
> hda: SanDisk SDCFB-8, CFA DISK drive
> ide0 at 0xc2a0c000-0xc2a0c007,0xc2a0c00e on irq 3
> hda: attached ide-disk driver.
>
> Ian Campbell wrote:
>
>
>>Please stick to the mailing lists instead of private mail unless
>>otherwise indicated.
>>
>>Ian.
>>
>>On Thu, 2004-06-24 at 07:34, zxk wrote:
>>
>>>Hi,Ian Campbell
>>> I compiled IDE + IDE CS support into my kernel.
>>>and I create /dev/hda by command mknod .
>>>but I can't mount /dev/hda successful. how to make cf card work normal.
>>>Can you tell me in detail about it.
>>
>>Well -- you don't give many details of what you tried or what the
>>error/problem is, in the future please try to do so or I won't be able
>>to help out.
>>
>>To answer your query -- you would make it work in the same way as you
>>would a regular hard disk on your workstation.
>>
>>First you may need to partition it using fdisk. CF cards often seem to
>>have a single large partition on them, in which case you need to be
>>mounting /dev/hda1 rather than just /dev/hda.
>>
>>You may also need to make a filesystem on it, I think CF cards often
>>ship with a FAT filesystem of some sort, so that may be sufficient and
>>you can just mount with fs type vfat. Otherwise you need to use
>>mkfs.ext2 to make an ext2 filesystem on the device (depending on your
>>partitioning structure that's hda or hda1).
>>
>>Ian.
>>--
>>Ian Campbell, Senior Design Engineer
>> Web: http://www.arcom.com
>>Arcom, Clifton Road, Direct: +44 (0)1223 403 465
>>Cambridge CB1 7EA, United Kingdom Phone: +44 (0)1223 411 200
>
>
>
>
> zxk
> zhangxinkai@sia.cn
> 2004-07-01
>
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------
> Subscription options: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel
> FAQ: http://www.arm.linux.org.uk/armlinux/mlfaq.php
> Etiquette: http://www.arm.linux.org.uk/armlinux/mletiquette.php
--
Desplanches Yann
yann.desplanches@cdf.in2p3.fr
tel: (+33) 01.44.27.14.64
fax: (+33) 01.43.54.69.89
Laboratoire de Physique Corpusculaire et Cosmologie
College de France
11 pl. Marcelin Berthelot
F-75231 Paris Cedex 5
http://cdfinfo.in2p3.fr/
-------------------------------------------------------------------
Subscription options: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel
FAQ: http://www.arm.linux.org.uk/armlinux/mlfaq.php
Etiquette: http://www.arm.linux.org.uk/armlinux/mletiquette.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic