seting up pcmcia gprs cart (yentasocket, 2.6.14-5)

Krzysztof Drewicz hunter at mimuw.edu.pl
Tue Jan 31 00:51:42 EST 2006


Hello there,
've got silly problem with new tools, i need to setup basic gprs/gsm 
module that comes as a GSM<>CompactFlash<>PCMCIA<>PCI :-D
It works as a /dev/ttyS? (and accepts AT* so it's perfect for small cost 
effective embended solutions if anyone asks).
What's the way to 'bound'  any  "Subdevice 0 (function 0)" to any given 
driver (here "serial_cs")

i use:
modprobe pcmcia yenta_socket serial_cs
and have in dmesg:
ACPI: PCI Interrupt 0000:00:0a.0[A] -> GSI 18 (level, low) -> IRQ 169
Yenta: CardBus bridge found at 0000:00:0a.0 [0000:0000]
Yenta: ISA IRQ mask 0x0000, PCI irq 169
Socket status: 30000810

now:
[root at asia] ./pccardctl info
PRODID_1="" PRODID_2=""  PRODID_3="" PRODID_4="" MANFID=0000,0000 
FUNCID=255
[root at asia] ./pccardctl status
Socket 0:
  3.3V 16-bit PC Card

So i issue a '/etc/rc.d/init.d/hotplug start'
and after:
[root at asia] ./pcmcia_socket.rc start
cs: IO port probe 0x100-0x3af: excluding 0x290-0x297 0x378-0x37f
cs: IO port probe 0x3e0-0x4ff: excluding 0x400-0x40f 0x4d0-0x4d7
cs: IO port probe 0x820-0x8ff: excluding 0x828-0x87f
cs: IO port probe 0xc00-0xcf7: clean.
cs: IO port probe 0xa00-0xaff: clean.
cs: memory probe 0xa0000000-0xa0ffffff: clean.

[root at asia] ./pccardctl status
Socket 0:
  3.3V 16-bit PC Card
  Subdevice 0 (function 0) [ _unbound_ ]

and now doing 'the old way':

[root at asia] /etc/rc.d/init.d/pcmcia restart
cardmgr service is not running.
Unloading PCMCIA modules...........................................[ DONE ]
Starting cardmgr service...........................................[ DONE ]
pcmcia: Detected deprecated PCMCIA ioctl usage.
pcmcia: This interface will soon be removed from the kernel; please 
expect breakage unless you upgrade to new tools.
pcmcia: see 
http://www.kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html for details.
ds: ds_open(socket 1)
ds: ds_open(socket 1)
ttyS1 at I/O 0x2f8 (irq = 169) is a 16550A

[root at asia] ./pccardctl status
Socket 0:
  3.3V 16-bit PC Card
  Subdevice 0 (function 0) bound to driver "serial_cs"


if it helps:
uname -a: Linux asia 2.6.14.6-5asia #8 Sun Jan 29 16:22:04 CET 2006 i686 
Intel(R)_Celeron(R)_CPU_2.13GHz unknown PLD Linux
[root at asia] rpm -q hotplug sysfsutils
hotplug-2004_09_23-4
sysfsutils-1.3.0-3
gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pld-linux/3.3.6/specs
Configured with: ../configure --prefix=/usr --libdir=/usr/lib 
--libexecdir=/usr/lib --infodir=/usr/share/info --mandir=/usr/share/man 
--enable-shared --enable-symvers=gnu --enable-threads=posix 
--enable-__cxa_atexit --enable-languages=c,c++,f77,objc,ada,java,ksi 
--enable-c99 --enable-long-long --disable-multilib --enable-nls 
--with-gnu-as --with-gnu-ld --with-system-zlib --with-slibdir=/lib 
--without-x i686-pld-linux
Thread model: posix
gcc version 3.3.6 (PLD Linux)

in Makefile:
UDEV = false
STARTUP = true
STATIC = true

Best regards and thanks for any hints on this,

-- 
Krzysztof Drewicz





More information about the linux-pcmcia mailing list