howto id modem in udev lfs livecd 2.6.12-5 kernel
Howard
hlenderk at bcpl.net
Fri Apr 7 17:32:14 EDT 2006
Hello, I am only a year in linux and coming from RedHat9 to the 2.6.12-5
kernel and all it's nuances. I am trying a kernelbuild using the lfs
livecd which, of course, means I will be working in the ramfs and would
like to use my modem while over there. In that boot they have
pcmcia_core built in and loaded but that's it. I don't think it would
be practicle to try to install pcmciautils in any way.
My modem is an old generic pcmcia which id's fine on '98, RH9 and
DSL. I am not finding much to go on and have been trying to get
familiar with udev and try to figure it out where it is , but after
burning up this week, I must ask. sorry , I have failed....
I'm having trouble trying to understand the new udev setup.
I must ask for help, or at least direction please. Thanks, Howard
The card has always been on ttyS1 should that be the same?
I have-
rw-rw---- 1 root dialout 4, 64 2006-04-07 11:00 ttyS0
crw-rw---- 1 root dialout 4, 65 2006-04-07 11:00 ttyS1
but-
I detect no change in ANY /dev/ when I plug and unplug card while my
usb flash drive hotplugs fine and I can see a change.
Here are some other specifics, but what would you like to see?
-----------
in RH9 I can get this on the modem-
/sbin/cardctl ident
Socket 0:
no product info available
Socket 1:
product info: "PCMCIA 56K bps X2 FAX MODEM CARD", "FM56KC-KF", "5.41"
manfid: 0x014e, 0x0088
function: 2 (serial)
-------------
can that info be applied to udev setup?
also-
-------------
# 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
yenta_socket 20360 1
rsrc_nonstatic 11648 1 yenta_socket
pcmcia_core 43908 2 yenta_socket,rsrc_nonstatic
-------------
lspci
00:00.0 Host bridge: Intel Corporation 430TX - 82439TX MTXC (rev 01)
00:01.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 01)
00:01.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
00:01.2 USB Controller: Intel Corporation 82371AB/EB/MB PIIX4 USB (rev 01)
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 01)
00:02.0 VGA compatible controller: S3 Inc. ViRGE/MX+MV (rev 03)
00:03.0 CardBus bridge: Texas Instruments PCI1250 (rev 02)
00:03.1 CardBus bridge: Texas Instruments PCI1250 (rev 02)
-------------
udevinfo -a -p /sys/class/pcmcia_socket/pcmcia_socket1
looking at class device '/sys/class/pcmcia_socket/pcmcia_socket1':
KERNEL=="pcmcia_socket1"
SUBSYSTEM=="pcmcia_socket"
SYSFS{available_resources_io}==""
SYSFS{available_resources_mem}==""
SYSFS{available_resources_setup_done}=="no"
SYSFS{card_irq_mask}=="0x06b8"
(the next 4 lines disappear when card removed, all else stays same)
SYSFS{card_type}=="16-bit"
SYSFS{card_vcc}=="5.0V"
SYSFS{card_voltage}=="5.0V"
SYSFS{card_vpp}=="5.0V"
follow the "device"-link to the physical device:
looking at the device chain at '/sys/devices/pci0000:00/0000:00:03.1':
BUS=="pci"
ID=="0000:00:03.1"
DRIVER=="yenta_cardbus"
SYSFS{class}=="0x060700"
SYSFS{device}=="0xac16"
SYSFS{irq}=="11"
SYSFS{local_cpus}=="01"
SYSFS{modalias}=="pci:v0000104Cd0000AC16sv00000000sd00000000bc06sc07i00"
SYSFS{subsystem_device}=="0x0000"
SYSFS{subsystem_vendor}=="0x0000"
SYSFS{vendor}=="0x104c"
looking at the device chain at '/sys/devices/pci0000:00':
BUS==""
ID=="pci0000:00"
DRIVER=="unknown"
(END)
-----------------
More information about the linux-pcmcia
mailing list