PCMCIA IDE failed on PXA270 board

Ray Zhao ray.zhao.inhand at gmail.com
Thu Aug 4 10:55:57 EDT 2005


HI, there
I met a problem with my pxa270 based board. I am using linux2.6.12.3.
I modified the pcmcia driver i82365 to support my intel spd6722. I
posted this in the ARM Kernel list and got some help from there, but I
did not solve the problem yet. The problem MAY be the interrupt. I
port the driver from 2.4 kernel. There are, of cause, changed on data
structures. I find the fields which 2.4 drivers filled, but I did not
actually filled all new Fields introduced from 2.6 kernel. Is there
some new fields I MUST fill?
I tracked the code, in the cs.c. There is a function named
pcmcia_request_irq() which is called from ide-cs.c. In this function,
I notice I did not use config_pcmcia_probe, and in the
req->attributes, I do not have IRQ_HANDLER_PRESENT. So I did not call
request_irq() at all. Is this the reason I always get a message tells
me "lost a interrupt"?
I used same file system which works with 2.4. Do I need a NEW file
system to make this work?

here is what I got frm console:
hda: SanDisk SDCFB-64, CFA DISK drive
ide0 at 0xc8858000-0xc8858007,0xc885800e on irq 122
hda: max request size: 128KiB
hda: 125440 sectors (64 MB) w/1KiB Cache, CHS=490/8/32
hda: cache flushes not supported
 hda:<4>hda: lost interrupt
hda: lost interrupt
hda: lost interrupt
hda: lost interrupt
hda: lost interrupt
hda: lost interrupt
hda: lost interrupt
hda: lost interrupt
hda: lost interrupt
hda: lost interrupt
 hda1
ide-cs: hda: Vcc = 5.0, Vpp = 0.0
hda: lost interrupt
hda: lost interrupt
hda: lost interrupt
cardmgr[697]: executing: './ide start hda 2>&1'
cardmgr[697]: + /sbin/fsck -Ta /dev/hda1
cardmgr[697]: + eval: /sbin/fsck: No such file or directory
 hda:<4>hda: lost interrupt
hda: lost interrupt
hda: lost interrupt
hda: lost interrupt
hda: lost interrupt
hda: lost interrupt
hda: lost interrupt
hda: lost interrupt
 hda1
hda: lost interrupt
FAT: codepage cp437 not found
cardmgr[697]: + mount -v -t msdos /dev/hda1 /mnt/hda
cardmgr[697]: + mount: Mounting /dev/hda1 on /mnt/hda failed: Invalid argument


Ray
-- 
---------------------------------------------------------------
Everything that has a beginning has an end.



More information about the linux-pcmcia mailing list