Sierra Wireless CIS [Was: Re: Epia MII 10000, 2.6.13-mm2,
cs: pcmcia_socket0: unable to apply power]
Sander
sander at humilis.net
Fri Sep 16 01:00:47 EDT 2005
Dominik Brodowski wrote (ao):
> On Wed, Sep 14, 2005 at 01:21:46PM +0200, Sander wrote:
> > 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.
And there I thought Debian Unstable was quick to adapt ;-)
> > 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.
I'd rather not use udev too. Populated /dev just seems much more robust
to me, which is of course good for servers.
> 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 --
It is different indeed:
Binary files /sys/class/pcmcia_socket/pcmcia_socket0/cis and /lib/firmware/SW_7xx_SER.cis differ
> matching of devices and drivers as well as determing which CIS override is
> needed is decided by the kernel.
> > 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?
> 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
It seems to have done something. I patched the kernel:
$ grep -r "Sierra Wireless" *
drivers/serial/serial_cs.c: PCMCIA_DEVICE_CIS_MANF_CARD(0x0192, 0x0710, "SW_7xx_SER.cis"), /* Sierra Wireless AC710/AC750 GPRS Network Adapter R1 */
And did boot the new kernel:
# uname -a
Linux silo1 2.6.13-mm3 #1 Fri Sep 16 06:28:31 CEST 2005 i686 GNU/Linux
After modprobe and /sbin/pcmcia-socket-startup diff reports
that the files are different.
/sbin/pcmcia-socket-startup took a few seconds btw.
And cat:
# cat /lib/firmware/SW_7xx_SER.cis > /sys/class/pcmcia_socket/pcmcia_socket0/cis
# diff /sys/class/pcmcia_socket/pcmcia_socket0/cis /lib/firmware/SW_7xx_SER.cis
Binary files /sys/class/pcmcia_socket/pcmcia_socket0/cis and /lib/firmware/SW_7xx_SER.cis differ
But there is something there:
# cat /sys/class/pcmcia_socket/pcmcia_socket0/cis > /tmp/cis
# file /lib/firmware/SW_7xx_SER.cis /tmp/cis
/lib/firmware/SW_7xx_SER.cis: PDP-11 UNIX/RT ldp
/tmp/cis: PDP-11 UNIX/RT ldp
# ls -l /lib/firmware/SW_7xx_SER.cis /tmp/cis
-rw-r--r-- 1 root root 140 Sep 9 15:07 /lib/firmware/SW_7xx_SER.cis
-rw-r--r-- 1 root root 138 Sep 16 06:49 /tmp/cis
A 2 byte difference. Does that help?
I'll install the Conceptronic PCMCIA to PCI card in a different
system and set up old-style pcmcia just for kicks. Let me know
if I can pull useful information out of that setup.
Thanks!
Sander
--
Humilis IT Services and Solutions
http://www.humilis.net
More information about the linux-pcmcia
mailing list