Problem with Advantech COMpad2 pcmcia card with pcmciautils

Ken Kawasaki ken_kawasaki at spring.nifty.jp
Wed May 6 07:55:44 EDT 2009


Hi,


>   product info: "ADVANTECH", "COMpad-32/85B-2", "", ""
>   function: 3 (parallel)

This card defines the function as 3.
But, it should be 2.

Please comment out the lines below at /etc/udev/60-pcmcia.rules 
(Add # mark)

# However, the "weak" matching by func_id is only allowed _after_ modprobe
# returns, so that "strong" matches have a higher priority.
#ACTION=="add", SUBSYSTEM=="pcmcia", ENV{MODALIAS}=="?*", \
#                RUN+="/bin/sh -c 'echo 1 > /sys/$devpath/allow_func_id_match'"

Then copy the COMpad2.dat file from /etc/pcmcia/cis directory
to /lib/firmware/COMpad2.cis

It is not necessary to make /etc/pcmcia/config file.
This file is ignored by pcmciautils.

Ken.



> Thanks.
> 
> Here's the output of ident: 
> 
> Socket 0:
>   no product info available
> Socket 1:
>   product info: "ADVANTECH", "COMpad-32/85B-2", "", ""
>   function: 3 (parallel)
> 
> 
> And, the ls with -vv
> 
> Socket 0 Bridge:   	[yenta_cardbus] 	(bus ID: 0000:02:00.0)
> 	Configuration:	state: on	ready: unknown
> --none--
> --none--
> Socket 1 Bridge:   	[yenta_cardbus] 	(bus ID: 0000:02:00.1)
> 	Configuration:	state: on	ready: unknown
> 			Voltage: 5.0V Vcc: 5.0V Vpp: 0.0V
> --none--
> --none--
> Socket 1 Device 0:	[parport_cs]		(bus ID: 1.0)
> 	Configuration:	state: on
> 	Product Name:   ADVANTECH COMpad-32/85B-2 
> 	Identification:	function: 3 (parallel)
> 			prod_id(1): "ADVANTECH" (0x96913a85)
> 			prod_id(2): "COMpad-32/85B-2" (0x27ab5437)
> 			prod_id(3): --- (---)
> 			prod_id(4): --- (---)
> 
> 
> -----Original Message-----
> From: Ken Kawasaki <ken_kawasaki at spring.nifty.jp>
> To: "Kenneth Moorman" <KMoorman at transy.edu>
> Date: Wed, 6 May 2009 19:23:41 +0900
> Subject: Re: Problem with Advantech COMpad2 pcmcia card with pcmciautils
> 
> Hi,
> 
> Could you post the output of "pccardctl ident" ?
> 
> 
> Ken.
> 
> > A while back, I was using an Ubuntu system with a 
> > 2.4 kernel.   I was able to get a dual serial 
> > port PCMCIA card from Advantech to work w/o 
> > too much problem using the old pcmcia-cs tools. 
> > 
> > The config file in /etc/pcmcia contained the following
> > entries: 
> > 
> > card "Advantech COMpad-32/85B-2"
> >   version "ADVANTECH", "COMpad-32/85B-2"
> >   cis "cis/COMpad2.dat"
> >   bind "serial_cs"
> > 
> > card "Advantech COMpad-32/85B-4"
> >   version "ADVANTECH", "COMpad-32/85B-4"
> >   cis "cis/COMpad4.dat"
> >   bind "serial_cs"
> > 
> > #card "Advantech COMpad-32/85"
> > #  version "ADV", "*", "TECH", "COMpad-32/85"
> > #  bind "serial_cs"
> > 
> > card "Advantech COMpad-32/85B-2"
> >   version "ADV", "*", "TECH", "COMpad-32/85B-2"
> >   bind "serial_cs"
> > 
> > 
> > When the card was inserted, it was correctly bound
> > to the serial_cs and two new ttyS's showed up 
> > that I could access. 
> > 
> > A student updated the system to XUbuntu 8.04
> > which is using a 2.6 kernel (2.6.24-24). 
> > With the new pcmciautils, I cannot get the 
> > card to work. 
> > 
> > Here's what I have tried.  I copied the
> > COMpad2.dat file from /etc/pcmcia/cis directory
> > (I had a backup) to /lib/firmware/COMpad2.cis
> > 
> > I added the above entries to the config.opts
> > file in /etc/pcmcia.   However, the card
> > shows up as being bound to parport_cs.
> > 
> > I manually loaded the serial_cs module.
> > Same result.   I tries changing the cis
> > line to cis "COMpad2.cis"
> > I tried several other variations, even
> > the absolute path name.
> > 
> > Any advice, stupid things I have overlooked, etc?
> > I tried removing the entries except for the
> > first one that refers to this specific card.
> > I tried various wildcards.
> > 
> > I have acquired a USB to serial adaptor and am
> > currently using it along with the one built-in
> > port.  But this is nagging me---it *should*
> > work, right?
> > 
> > thanks,
> > kenny
> > 
> > 
> > 
> > 
> > Successfully Scanned by the McAfee SIG 3200 Appliance.
> >
> > _______________________________________________
> > Linux PCMCIA reimplementation list
> > http://lists.infradead.org/mailman/listinfo/linux-pcmcia
> 
> 
> --
> Ken Kawasaki <ken_kawasaki at spring.nifty.jp>
> 
> 
> Successfully scanned by McAfee SIG 3200 Appliance.
> 
> 
> 
> 
> 
> Successfully Scanned by the McAfee SIG 3200 Appliance.


-- 
Ken Kawasaki <ken_kawasaki at spring.nifty.jp>



More information about the linux-pcmcia mailing list