Enabling PCMCIA serial ports without pcmciautils/pcmcia_cs in 2.6?
I am building a small root fs for an embedded target. (Soekris 4521, which is an SC520 + yenta-compatible cardbus bridge)
Basing my system on kernel, uclibc and busybox, I can build a very lean, clean and compact root fs with a minimum of effort. (gentoo-embedded rocks!)
But getting my 4port serial pcmcia card enabled appears to require various stuff to be installed, just to get the card initialised: pcmcia_cs (or alternatively pcmciautils for 2.6.13), hotplug, pciutils, usbutils, libusb, sysfsutils(?).
Is this really necessary? I'd guess that serial cards are some of the simpler pcmcia targets to enable? (I could be very wrong..) Anyone got an idea about alternative solutions, or can state the minimum binaries/files I need to enable this card? (Advantech COMpad-32/85B-4)
----
Dag B
Quoted 4 lines · Dag Bakke
Is this really necessary? I'd guess that serial cards are some of the simpler pcmcia targets to enable? (I could be very wrong..) Anyone got an idea about alternative solutions, or can state the minimum binaries/files I need to enable this card? (Advantech COMpad-32/85B-4)
Have you tried just running up a really recent kernel (eg, 2.6.13-rc6) with PCMCIA and serial (including PCMCIA serial support) built in, plugging the card in, and seeing what happens?
Signature · 3 lines
Russell King Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: 2.6 Serial core
Quoted 14 lines · Russell King
Quoted 4 lines · Dag Bakke
Is this really necessary? I'd guess that serial cards are some of the simpler pcmcia targets to enable? (I could be very wrong..) Anyone got an idea about alternative solutions, or can state the minimum binaries/files I need to enable this card? (Advantech COMpad-32/85B-4)
Have you tried just running up a really recent kernel (eg, 2.6.13-rc6) with PCMCIA and serial (including PCMCIA serial support) built in, plugging the card in, and seeing what happens?
Yes. I get no message in dmesg indicating that the ports are detected. Testing on a laptop (not the actual target):
toolbox-2 ~ # uname -a
Linux toolbox-2 2.6.13-rc6 #2 Mon Aug 8 16:05:25 CEST 2005 i686 Pentium III (Coppermine) GenuineIntel GNU/Linux
toolbox-2 ~ # zcat /proc/config.gz | egrep -i 'serial|pcmcia|yenta' | grep -v ^# CONFIG_PCMCIA=yCONFIG_PCMCIA_LOAD_CIS=yCONFIG_PCMCIA_IOCTL=yCONFIG_YENTA=yCONFIG_PCMCIA_PROBE=yCONFIG_NET_PCMCIA=yCONFIG_PCMCIA_3C589=mCONFIG_PCMCIA_3C574=mCONFIG_SERIAL_8250=yCONFIG_SERIAL_8250_CONSOLE=yCONFIG_SERIAL_8250_CS=yCONFIG_SERIAL_8250_NR_UARTS=8CONFIG_SERIAL_8250_EXTENDED=yCONFIG_SERIAL_8250_MANY_PORTS=yCONFIG_SERIAL_8250_SHARE_IRQ=yCONFIG_SERIAL_8250_FOURPORT=yCONFIG_SERIAL_CORE=yCONFIG_SERIAL_CORE_CONSOLE=y
toolbox-2 ~ # /etc/init.d/pcmcia start
* PCMCIA support detected.
* Starting pcmcia ...
cardmgr[7718]: watching 2 sockets [ ok ]
toolbox-2 ~ # dmesg | tail
[ 6992.630199] cs: IO port probe 0x800-0x8ff: clean. [ 6992.630671] cs: IO port probe 0x100-0x4ff: excluding 0x4d0-0x4d7 [ 6992.631927] cs: IO port probe 0x100-0x4ff: excluding 0x4d0-0x4d7 [ 6992.633248] cs: IO port probe 0xa00-0xaff: clean. [ 6992.633656] cs: IO port probe 0xa00-0xaff: clean. [ 6992.638071] cs: memory probe 0xa0000000-0xa0ffffff: clean. [ 6992.692737] ttyS1 at I/O 0x240 (irq = 5) is a 16550A [ 6992.695578] ttyS2 at I/O 0x248 (irq = 5) is a 16550A [ 6992.698237] ttyS3 at I/O 0x250 (irq = 5) is a 16550A [ 6992.700924] ttyS4 at I/O 0x258 (irq = 5) is a 16550A
Quoted 10 lines · Dag Bakke
Quoted 8 lines · Russell King
Quoted 3 lines · Dag Bakke
Is this really necessary? I'd guess that serial cards are some of the simpler pcmcia targets to enable? (I could be very wrong..) Anyone got an idea about alternative solutions, or can state the minimum binaries/files I need to enable this card? (Advantech COMpad-32/85B-4)
Quoted 7 lines
Quoted 6 lines
Have you tried just running up a really recent kernel (eg, 2.6.13-rc6) with PCMCIA and serial (including PCMCIA serial support) built in, plugging the card in, and seeing what happens?
Yes. I get no message in dmesg indicating that the ports are detected.
Unless I fire up cardmgr, that is.
Quoted 43 lines
Testing on a laptop (not the actual target):
toolbox-2 ~ # uname -a
Linux toolbox-2 2.6.13-rc6 #2 Mon Aug 8 16:05:25 CEST 2005 i686 Pentium III (Coppermine) GenuineIntel GNU/Linuxtoolbox-2 ~ # zcat
/proc/config.gz| egrep -i 'serial|pcmcia|yenta' | grep -v ^#CONFIG_PCMCIA=yCONFIG_PCMCIA_LOAD_CIS=yCONFIG_PCMCIA_IOCTL=yCONFIG_YENTA=yCONFIG_PCMCIA_PROBE=yCONFIG_NET_PCMCIA=yCONFIG_PCMCIA_3C589=mCONFIG_PCMCIA_3C574=mCONFIG_SERIAL_8250=yCONFIG_SERIAL_8250_CONSOLE=yCONFIG_SERIAL_8250_CS=yCONFIG_SERIAL_8250_NR_UARTS=8CONFIG_SERIAL_8250_EXTENDED=yCONFIG_SERIAL_8250_MANY_PORTS=yCONFIG_SERIAL_8250_SHARE_IRQ=yCONFIG_SERIAL_8250_FOURPORT=yCONFIG_SERIAL_CORE=yCONFIG_SERIAL_CORE_CONSOLE=ytoolbox-2 ~ #
/etc/init.d/pcmciastart
* PCMCIA support detected.
* Starting pcmcia ...
cardmgr[7718]: watching 2 sockets [ ok ]
toolbox-2 ~ # dmesg | tail[ 6992.630199] cs: IO port probe 0x800-0x8ff: clean. [ 6992.630671] cs: IO port probe 0x100-0x4ff: excluding 0x4d0-0x4d7 [ 6992.631927] cs: IO port probe 0x100-0x4ff: excluding 0x4d0-0x4d7 [ 6992.633248] cs: IO port probe 0xa00-0xaff: clean. [ 6992.633656] cs: IO port probe 0xa00-0xaff: clean. [ 6992.638071] cs: memory probe 0xa0000000-0xa0ffffff: clean. [ 6992.692737] ttyS1 at I/O 0x240 (irq = 5) is a 16550A [ 6992.695578] ttyS2 at I/O 0x248 (irq = 5) is a 16550A [ 6992.698237] ttyS3 at I/O 0x250 (irq = 5) is a 16550A [ 6992.700924] ttyS4 at I/O 0x258 (irq = 5) is a 16550A