Sierra Wireless CIS [Was: Re: Epia MII 10000, 2.6.13-mm2, cs: pcmcia_socket0: unable to apply power]

Dominik Brodowski linux at dominikbrodowski.net
Thu Sep 15 16:20:11 EDT 2005


On Wed, Sep 14, 2005 at 01:21:46PM +0200, Sander wrote:
> Dominik Brodowski wrote (ao):
> > On Tue, Sep 13, 2005 at 11:20:41AM +0200, Sander wrote:
> > > I've installed pcmciautils-008
> 
> > > I believe there is no such thing as 'cardmgr' in pcmciautils, correct?
> > 
> > Yes. However, I thought you were upgrading from an earlier kernel, and
> > as pcmciautils is really new, I thought you might still have a
> > pcmcia-cs based setup...
> 
> Unfortunately not, as this was the first kernel I compiled with PCMCIA
> support for this server.
> 
> If it helps I can install pcmcia-cs, but on the other hand this might be
> a good opportunity to let me help with getting pcmciautils up to speed.

Excellent, yes.

> What is the status of pcmciautils anyway? The number suggest alpha.

It is indeed quite new; however there aren't that many bugreports
(fortunately) even though it already is part of some distributions.

> > Actually, it should be called by the hotplug system automagically upon
> > modprobe yenta_socket, with the socket number as argument.
> 
> Aha, ic. The thing is though that this is a basic fileserver. I would
> love not to have to use hotplug. Is that doable? I think it should be,
> but correct me if I'm wrong.
> There is not going to be any plugging of the card anyway.

Yes, it's possible. One option is using udev -- Fedora/Redhat already does
that, I hope to be able to fully integrate this into the next pcmciautils
release. Another option is to use a custom script; for more information see
below.

> > > Have to go now, but will test if the card works later today. It
> > > needs CIS so that might be another obstacle.
> > 
> > You need to get the CIS file from pcmcia-cs it's in etc/cis/, named ".dat",
> > and needs to be re-named to ".cis" and put into /lib/firmware, IIRC.
> 
> You are correct (of course). That I all had set up according to the
> howto before the "unable to apply power" struck.
> 
> But how do I know it uses the CIS file? I have:
> 
> /lib/firmware/SW_7xx_SER.cis
> 
> and:
> 
> # config.opts
> card "Sierra Wireless AC710/AC750 GPRS Network Adapter R1"
> manfid 0x0192, 0x0710
> cis "/lib/firmware/SW_7xx_SER.cis"
> bind "serial_cs"
> 
> and I get garbage when I cat /sys/class/pcmcia_socket/pcmcia_socket0/cis
> 
> So I assume it does load the CIS file.

Can you check the result of
diff /sys/class/pcmcia_socket/pcmcia_socket0/cis /lib/firmware/SW_7xx_SER.cis

Most probably it is different -- which means that the firmware didn't get
loaded. This part of /etc/pcmcia/config.opts isn't read by pcmciautils --
matching of devices and drivers as well as determing which CIS override is
needed is decided by the kernel.

> But no extra serial port shows up (in dmesg), which should IIRC.
> (I used the card long time ago on my (dead) vaio notebook). It was easy
> to set up back then with this manual (sorry for the lengthy url):
>
> With minicom I can't talk to ttyS{0-4}, so it seems not to be available.

That's because the kernel lacks knowledge of the device. Can you apply the
patch below to your kernel tree and recompile?

> Btw, I bought a Conceptronic PCMCIA to PCI card. Would it be useful to
> try instead of the onboard PCMCIA slot? If it would, I'd still like to
> get the onboard one working, as these Epia boards are quite populair
> among Linux users.

This won't make a difference.

Now, about the script (if the firmware still differs even with this new
kernel):

<snip>
#!/bin/sh

/sbin/pcmcia-socket-startup
cat /lib/firmware/SW_7xx_SER.cis > /sys/class/pcmcia_socket/pcmcia_socket0/cis

<snip>

Greetings,
	Dominik


Add new ID to serial_cs.c; the CIS fimware override is available by the
manufactor at http://www.sierrawireless.com . Remember to name the CIS
binary SW_7xx_SER.cis and to put it into /lib/firmware/

Signed-off-by: Dominik Brodowski <linux at dominikbrodowski.net>

Index: 2.6.14-rc1-git1/drivers/serial/serial_cs.c
===================================================================
--- 2.6.14-rc1-git1.orig/drivers/serial/serial_cs.c
+++ 2.6.14-rc1-git1/drivers/serial/serial_cs.c
@@ -784,6 +784,7 @@ static struct pcmcia_device_id serial_id
 	PCMCIA_MFC_DEVICE_CIS_MANF_CARD(1, 0x0175, 0x0000, "DP83903.cis"),
 	PCMCIA_MFC_DEVICE_CIS_MANF_CARD(1, 0x0101, 0x0035, "3CXEM556.cis"),
 	PCMCIA_MFC_DEVICE_CIS_MANF_CARD(1, 0x0101, 0x003d, "3CXEM556.cis"),
+	PCMCIA_DEVICE_CIS_MANF_CARD(0x0192, 0x0710, "SW_7xx_SER.cis"),	/* Sierra Wireless AC710/AC750 GPRS Network Adapter R1 */
 	PCMCIA_DEVICE_CIS_PROD_ID12("MultiTech", "PCMCIA 56K DataFax", 0x842047ee, 0xc2efcf03, "MT5634ZLX.cis"),
 	PCMCIA_DEVICE_CIS_PROD_ID12("ADVANTECH", "COMpad-32/85B-4", 0x96913a85, 0xcec8f102, "COMpad4.cis"),
 	PCMCIA_DEVICE_CIS_PROD_ID123("ADVANTECH", "COMpad-32/85", "1.0", 0x96913a85, 0x8fbe92ae, 0x0877b627, "COMpad2.cis"),



More information about the linux-pcmcia mailing list