Trying to run 2.6.0-test3
Additional defect:
Support for the 16-bit IDE card KME KXL-C005 was added to the external PCMCIA package a couple of years ago, and has finally been copied into the kernel for 2.6.0. But it doesn't work in 2.6.0-test3.
cardctl ident gets it right:
Socket 1:
product info: "KME", "KXLC005", "00"
manfid: 0x0032, 0x0704
function: 8 (SCSI)
Of course the card is lying, it's really IDE.
2.6.0-test3 gets it wrong:
Aug 17 16:39:01 diamondpana cardmgr[540]: socket 1: KME KXLC005 CD-ROM Aug 17 16:39:01 diamondpana cardmgr[540]: executing: 'modprobe -v ide_cs' Aug 17 16:39:02 diamondpana cardmgr[540]: + insmod /lib/modules/2.6.0-test3/kernel/drivers/ide/legacy/ide-cs.ko Aug 17 16:39:02 diamondpana cardmgr[540]: bind 'ide_cs' to socket 1 failed: Invalid argument
lsmod agrees that the module name is different from the filename:
Module Size Used by ide_cs 6400 0
So the problem indeed seems to be an invalid argument in binding.
Quoted 5 lines · Norman Diamond
2.6.0-test3 gets it wrong:
Aug 17 16:39:01 diamondpana cardmgr[540]: socket 1: KME KXLC005 CD-ROM Aug 17 16:39:01 diamondpana cardmgr[540]: executing: 'modprobe -v ide_cs' Aug 17 16:39:02 diamondpana cardmgr[540]: + insmod /lib/modules/2.6.0-test3/kernel/drivers/ide/legacy/ide-cs.ko Aug 17 16:39:02 diamondpana cardmgr[540]: bind 'ide_cs' to socket 1 failed: Invalid argument
Not quite. This is an old problem dating back several years to early 2.4 times. Back in the dark old days, ide-cs used to use the name "ide_cs" to bind the driver to the device. It now uses "ide-cs" for binding.
Make sure that "ide_cs" isn't mentioned in /etc/pcmcia/config - if it is, change it to "ide-cs".
Signature · 2 lines
Russell King ([email protected]) The developer of ARM Linux http://www.arm.linux.org.uk/personal/aboutme.html
"Russell King" <[email protected]> replied to me:
Quoted 9 lines
Quoted 5 lines
2.6.0-test3 gets it wrong:
Aug 17 16:39:01 diamondpana cardmgr[540]: socket 1: KME KXLC005 CD-ROM Aug 17 16:39:01 diamondpana cardmgr[540]: executing: 'modprobe -v ide_cs' Aug 17 16:39:02 diamondpana cardmgr[540]: + insmod /lib/modules/2.6.0-test3/kernel/drivers/ide/legacy/ide-cs.ko Aug 17 16:39:02 diamondpana cardmgr[540]: bind 'ide_cs' to socket 1 failed: Invalid argumentNot quite. This is an old problem dating back several years to early 2.4 times. Back in the dark old days, ide-cs used to use the name "
ide_cs" to bind the driver to the device. It now uses "ide-cs" for binding.
Yes the problem is reminiscent of early 2.4 days, but how is it that 2.4.19 doesn't have the problem and 2.6.0-test3 does have the problem on the same machine?
Quoted 2 lines
Make sure that "
ide_cs" isn't mentioned in/etc/pcmcia/config- if it is, change it to "ide-cs".
I will hope to have time to check this next weekend, but I'm sure the 2.4 name ide-cs is used. I was startled to see 2.6.0-test3 load a module named ide_cs instead of ide-cs, but there it was. It was listed that way by lsmod, but failing in the bind as shown above. Notice that modprobe used the same name as lsmod showed.
Quoted 8 lines · Norman Diamond
"Russell King" <[email protected]> replied to me:
Quoted 3 lines
Not quite. This is an old problem dating back several years to early 2.4 times. Back in the dark old days, ide-cs used to use the name "
ide_cs" to bind the driver to the device. It now uses "ide-cs" for binding.Yes the problem is reminiscent of early 2.4 days, but how is it that 2.4.19 doesn't have the problem and 2.6.0-test3 does have the problem on the same machine?
In 2.6.0-test3:
linux/drivers/ide/legacy/ide-cs.c:
static dev_info_t dev_info = "ide-cs";
In 2.4.21:
linux/drivers/ide/legacy/ide-cs.c
static dev_info_t dev_info = "ide-cs";
The pcmcia-cs package may have ide-cs called ide_cs though.
Quoted 8 lines
Quoted 2 lines
Make sure that "
ide_cs" isn't mentioned in/etc/pcmcia/config- if it is, change it to "ide-cs".I will hope to have time to check this next weekend, but I'm sure the 2.4 name ide-cs is used. I was startled to see 2.6.0-test3 load a module named
ide_csinstead of ide-cs, but there it was. It was listed that way by lsmod, but failing in the bind as shown above. Notice that modprobe used the same name as lsmod showed.
The output of lsmod can be confusing. '-' is replaced by '_' in the module name. This doesn't affect module binding, loading or unloading. You can still rmmod ide-cs even if it's called ide_cs.
In either case, this is what should be in /etc/pcmcia/config:
device "ide-cs"
class "ide" module "ide-cs"
pcmcia-cs 3.1.24 ships with:
device "ide_cs"
class "ide" module "ide_cs"
which is wrong for the kernels ide-cs implementation.
The first line contains the device name, and is also the name used to bind the driver to the device. (this is referenced by the "bind" statements in the "card" sections.) The second line contains the module name(s) to load.
Signature · 2 lines
Russell King ([email protected]) The developer of ARM Linux http://www.arm.linux.org.uk/personal/aboutme.html