pcmcia modem support in livecd-x86-6.2-pre3

Howard hlenderk at bcpl.net
Mon Apr 10 21:41:44 PDT 2006

I would like to be able to dial out while booted to the 
livecd-x86-6.2-pre3  but my pcmcia modem card does not properly detect. 
 I have been searching for a week now to try to nail down what needs to 
be done to get the card id'd and connected to a serial port but am still 
having trouble figuring out what to do.  I think I'm just missing the 
serial driver.  I have been using this generic line for testing and so 
far I've just been able to get this:

/usr/sbin/pppd /dev/ttyS1 57600 debug user hlenderk connect 
"/usr/sbin/chat -v   ''   'AT&F0'   OK   ATD4102965500   CONNECT   '\d\c' "

Apr  8 21:05:39 lfslivecd pppd[3173]: pppd 2.4.3 started by root, uid 0
Apr  8 21:05:41 lfslivecd chat[3174]: Can't get terminal parameters: 
Input/output error
Apr  8 21:05:41 lfslivecd pppd[3173]: Connect script failed
Apr  8 21:05:41 lfslivecd pppd[3173]: Exit.
- and trying ttyS0   (just times out)
Apr  8 21:06:15 lfslivecd pppd[3177]: pppd 2.4.3 started by root, uid 0
Apr  8 21:06:16 lfslivecd chat[3178]: send (AT&F0^M)
Apr  8 21:06:16 lfslivecd chat[3178]: expect (OK)
Apr  8 21:07:01 lfslivecd chat[3178]: alarm
Apr  8 21:07:01 lfslivecd chat[3178]: Failed
Apr  8 21:07:01 lfslivecd pppd[3177]: Connect script failed
Apr  8 21:07:01 lfslivecd pppd[3177]: Exit.

In RedHat 9 it has been working fine on ttyS1 with the standard 
pcmcia_cs setup.

I see that  kernel 2.6.12-5  is right at the final transition from the 
devfs to udev and, in pcmcia support packages, from pcmcia_cs to 
pcmciautils.   (use pcmcisutils for 2.6.13 and newer).  As a learning 
excercise, I have been trying to figure out what to do with what the 
livecd puts in place without having to install either pcmcia utility 

On the livecd, it looks to me like-
- the udev system is being used exclusively
- pcmcia_core, rsrc_nonstatic, and yenta_socket are loaded at boot ... but
- neither pcmcia utility package is available for use to connect to 
serial port
- other kernel modules are available to use  (but which?)

I boot with the line "linux pci=usepirqmask" as per earlier dmesg fail 
lines request.
On boot, after mounting hda and  `modprobe generic_ppp`, I have:
# lsmod
Module                  Size  Used by
ppp_generic            22036  0
slhc                    7296  1 ppp_generic
ext3                   98180  1
jbd                    55576  1 ext3
nls_iso8859_1           4864  1
nls_cp437               6528  1
vfat                   11520  1
fat                    46876  1 vfat
usb_storage            30980  0
yenta_socket           20360  1
rsrc_nonstatic         11648  1 yenta_socket
pcmcia_core            43908  2 yenta_socket,rsrc_nonstatic
For comparison, in RedHat I get these pcmcia lines.
serial_cs               5776   0 (unused)
ds                      8136   2 [serial_cs]
yenta_socket           12864   2
pcmcia_core            53152   0 [serial_cs ds yenta_socket]
# /mnt/f/bin/setserial /dev/ttyS0
/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4
/dev/ttyS1, UART: unknown, Port: 0x02f8, IRQ: 3
/dev/ttyS2, UART: unknown, Port: 0x03e8, IRQ: 4
/dev/ttyS3, UART: unknown, Port: 0x02e8, IRQ: 3
dmesg  (beginning ommitted, boot with pcmcia modem in, usb flashdrive 
in, then hda5 & 7 mounted ppp_generic not loaded in this one)
isapnp: Scanning for PnP cards...
isapnp: Card 'OPL3-SA3 Sound'
isapnp: 1 Plug & Play card detected total
Real Time Clock Driver v1.12
PNP: No PS/2 controller found. Probing ports directly.
serio: i8042 AUX port at 0x60,0x64 irq 12
serio: i8042 KBD port at 0x60,0x64 irq 1
Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing disabled
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 8207
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PIIX4: IDE controller at PCI slot 0000:00:01.1
PIIX4: chipset revision 1
PIIX4: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0xfcf0-0xfcf7, BIOS settings: hda:DMA, hdb:pio
    ide1: BM-DMA at 0xfcf8-0xfcff, BIOS settings: hdc:DMA, hdd:pio
Probing IDE interface ide0...
hda: FUJITSU MHC2040AT, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Probing IDE interface ide1...
ide1 at 0x170-0x177,0x376 on irq 15
Probing IDE interface ide2...
Probing IDE interface ide3...
Probing IDE interface ide4...
Probing IDE interface ide5...
hda: max request size: 128KiB
hda: 8007552 sectors (4099 MB), CHS=7944/16/63, UDMA(33)
hda: cache flushes not supported
 hda: hda1 hda2 < hda5 hda6 hda7 hda8 >
hdc: ATAPI 24X CD-ROM drive, 128kB Cache, DMA
Uniform CD-ROM driver Revision: 3.20
Loading Adaptec I2O RAID: Version 2.4 Build 5go
Detecting Adaptec I2O RAID controllers...
Red Hat/Adaptec aacraid driver (1.1.2-lk2 Feb  5 2006)
scsi: <fdomain> Detection failed (no card)
NCR53c406a: no available ports found
sym53c416.c: Version 1.0.0-ac
qlogicfas: no cards were found, please specify I/O address and IRQ using 
iobase= and irq= options<6>QLogic Fibre Channel HBA Driver
seagate: ST0x/TMC-8xx not detected.
Failed initialization of WD-7000 SCSI card!
megaraid cmm: (Release Date: Fri Jan 21 00:01:03 EST 2005)
megaraid: (Release Date: Thu Feb 03 12:27:22 EST 2005)
GDT-HA: Storage RAID Controller Driver. Version: 3.04
GDT-HA: Found 0 PCI Storage RAID Controllers
3ware Storage Controller device driver for Linux v1.26.02.001.
3ware 9000 Storage Controller device driver for Linux v2.26.02.002.
nsp32: loading...
ipr: IBM Power RAID SCSI Device Driver version: 2.0.13 (February 21, 2005)
libata version 1.11 loaded.
usbmon: debugs is not available
ohci_hcd: 2004 Nov 08 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
USB Universal Host Controller Interface driver v2.2
PCI: Enabling device 0000:00:01.2 (0000 -> 0001)
PCI: setting IRQ 11 as level-triggered
PCI: Assigned IRQ 11 for device 0000:00:01.2
uhci_hcd 0000:00:01.2: Intel Corporation 82371AB/EB/MB PIIX4 USB
uhci_hcd 0000:00:01.2: new USB bus registered, assigned bus number 1
uhci_hcd 0000:00:01.2: irq 11, io base 0x0000fcc0
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
usb 1-1: new full speed USB device using uhci_hcd and address 2
usbcore: registered new driver hiddev
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.01:USB HID core driver
mice: PS/2 mouse device common for all mice
padlock: VIA PadLock not detected.
oprofile: using timer interrupt.
NET: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 8Kbytes
TCP established hash table entries: 8192 (order: 5, 131072 bytes)
TCP bind hash table entries: 8192 (order: 4, 98304 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
ip_conntrack version 2.1 (1024 buckets, 8192 max) - 220 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
input: AT Translated Set 2 keyboard on isa0060/serio0
ipt_recent v0.3.1: Stephen Frost <sfrost at snowman.net>.  
arp_tables: (C) 2002 David S. Miller
NET: Registered protocol family 1
NET: Registered protocol family 17
Freeing unused kernel memory: 348k freed
ISO 9660 Extensions: RRIP_1991A
input: PS2++ Logitech TouchPad 3 on isa0060/serio1
Linux Kernel Card Services
  options:  [pci] [cardbus] [pm]
PCI: Assigned IRQ 11 for device 0000:00:03.0
Yenta: CardBus bridge found at 0000:00:03.0 [0000:0000]
Yenta: Enabling burst memory read transactions
Yenta: Using CSCINT to route CSC interrupts to PCI
Yenta: Routing CardBus interrupts to PCI
Yenta TI: socket 0000:00:03.0, mfunc 0xcba92754, devctl 0x66
Yenta: ISA IRQ mask 0x06b8, PCI irq 11
Socket status: 30000006
PCI: Assigned IRQ 11 for device 0000:00:03.1
Yenta: CardBus bridge found at 0000:00:03.1 [0000:0000]
Yenta: Using CSCINT to route CSC interrupts to PCI
Yenta: Routing CardBus interrupts to PCI
Yenta TI: socket 0000:00:03.1, mfunc 0xcba92754, devctl 0x66
Yenta: ISA IRQ mask 0x06b8, PCI irq 11
Socket status: 30000010
Initializing USB Mass Storage driver...
scsi2 : SCSI emulation for USB Mass Storage devices
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
  Vendor: SanDisk   Model: Cruzer Micro      Rev: 0.2
  Type:   Direct-Access                      ANSI SCSI revision: 02
SCSI device sda: 501759 512-byte hdwr sectors (257 MB)
sda: Write Protect is off
sda: Mode Sense: 03 00 00 00
sda: assuming drive cache: write through
SCSI device sda: 501759 512-byte hdwr sectors (257 MB)
sda: Write Protect is off
sda: Mode Sense: 03 00 00 00
sda: assuming drive cache: write through
 sda: sda1
Attached scsi removable disk sda at scsi2, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi2, channel 0, id 0, lun 0,  type 0
usb-storage: device scan complete
kjournald starting.  Commit interval 5 seconds
EXT3 FS on hda7, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
Of the pcmcia slots  0000:00:03.0  and  0000:00:03.1 (above),  the 
latter is where the modem card is.  When looking for udev clues, I found 
that little changes on card insertion or withdrawal on slot  
0000:00:03.1  as I indicate below  using this udevinfo command:

udevinfo -a -p /sys/class/pcmcia_socket/pcmcia_socket1 | less
udevinfo starts with the device the node belongs to and then walks up the
device chain, to print for every device found, all possibly useful 
in the udev key format.
Only attributes within one device section may be used together in one rule,
to match the device for which the node will be created.

 looking at class device '/sys/class/pcmcia_socket/pcmcia_socket1':
##These next 4 lines are not present when card is removed, everything 
else remains the same##
  .... snip ...
I have these additional modules available on the boot filesystem :
modprobe -l | grep pcmcia

Anyhow, I am finding precious little definitive info on how pcmcia 
kernel modules can be used.  Everything talks about the cardservice 
utilities and even that isn't that much.  pcmcia howto is 2003, serial 
howto is 2006 but if you have a pcmcia modem it refers you to pcmcia 
howto,....... and around we go.  Sorry about the extremely long message! 
 but what else can I say.
Thanks, Howard

More information about the livecd mailing list