Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
2 PCMCIA Sockets together for Wireless Cards
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
spikey.genoo
n00b
n00b


Joined: 30 Apr 2003
Posts: 1

PostPosted: Wed Apr 30, 2003 5:23 pm    Post subject: 2 PCMCIA Sockets together for Wireless Cards Reply with quote

Hi, I'd like to configure two wireless cards in two different PCMCIA-PCI-Sockets for my PC (Fujitsu SIEMENS Tower). I have them up and running but one of the cards does act real strange. I'm compleetle running out of ideas. :-( I would be very happy if somebody of you could help me with a hint.
I'm using the following hardware:
DWL-650 in a Ricoh RL5C475, slot 2
A Compaq WL100 in a TI 1410, slot 7

BIOS Settings for PCI:
every slot on Auto, slot 2 set to IRQ7, slot 7 set to IRQ11
sound, serial, usb disabled for freeing up some IRQs
no PNP OS options.

kernel:
Quote:

pinfsdw15 root # uname -a
Linux pinfsdw15 2.4.20-gentoo-r3 #4 Tue Apr 29 04:43:27 CEST 2003 i686 Intel(R) Pentium(R) 4 CPU 2.26GHz GenuineIntel GNU/Linux



Both cards work properly if I insert them into the TI 1410 Socket. (That means they get an IP from my Accesspoint)

This is the WL100 in the non working socket (socket 0=Ricoh RL5C475):
Quote:

pinfsdw15 root # ifconfig eth1
eth1 Link encap:Ethernet HWaddr 00:02:A5:2E:DE:D4
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:9 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:3 Base address:0x100

Symptoms:
#dhcpd eth1 does nothing and I have to stop it by Ctr-c
the interface gets the correct AP-MAC but does not send or recieve any other things, it say's it has a few errorrs(9 in my quote)


Quote:

pinfsdw15 root # iwconfig
eth1 IEEE 802.11-DS ESSID:"dwhp"
Mode:Managed Frequency:2.417GHz Access Point: 00:40:05:D0:4B:52
Bit Rate:11Mb/s Tx-Power=15 dBm Sensitivity:1/3
Retry limit:4 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality:60/92 Signal level:-28 dBm Noise level:-88 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

wlan0 IEEE 802.11-b ESSID:"dwhp"
Mode:Managed Frequency:2.417GHz Access Point: 00:40:05:D0:4B:52
Bit Rate:11Mb/s Tx-Power:-2 dBm Sensitivity=1/3
Retry min limit:8 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality:92/92 Signal level:-40 dBm Noise level:-100 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:10 Invalid misc:3477 Missed beacon:0

wlan0ap IEEE 802.11-b ESSID:"dwhp"
Mode:Managed Frequency:2.417GHz Access Point: 00:40:05:D0:4B:52
Bit Rate:11Mb/s Tx-Power:-2 dBm Sensitivity=1/3
Retry min limit:8 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off

pinfsdw15 root #

The Card in the Socket 1 works fine with the dhcpd command and gets his IP.

This is the Socketloading part from the dmesg:
Quote:
PCI: Enabling device 02:05.0 (0104 -> 0106)
Ricoh RL5C475 rev 80 PCI-to-CardBus at slot 02:05, mem 0xd0500000
host opts [0]: [isa irq] [io 3/6/1] [mem 3/6/1] [pci irq 7] [lat 64/176] [bus 3/3]
ISA irqs (default) = 3,4,5,10 PCI status changes
PCI: Enabling device 02:0f.0 (0104 -> 0106)
TI 1410 rev 01 PCI-to-CardBus at slot 02:0f, mem 0xd0502000
host opts [0]: [isa irq] [pci irq 11] [lat 64/176] [bus 3/3]
ISA irqs (scanned) = none!<6> PCI card interrupts, PCI status changes
cs: memory probe 0xa0000000-0xa0ffffff: clean.
hermes.c: 4 Dec 2002 David Gibson <hermes@gibson.dropbear.id.au>
orinoco.c 0.13b (David Gibson <hermes@gibson.dropbear.id.au> and others)
orinoco_cs.c 0.13b (David Gibson <hermes@gibson.dropbear.id.au> and others)
cs: IO port probe 0x0100-0x04ff: clean.
cs: IO port probe 0x0800-0x08ff: excluding 0x830-0x87f
cs: IO port probe 0x0880-0x08ff: clean.
cs: IO port probe 0x0a00-0x0aff: clean.
cs: IO port probe 0x0c00-0x0cff: clean.
eth1: Station identity 001f:0001:0008:002a
eth1: Looks like a Lucent/Agere firmware version 8.42
eth1: Ad-hoc demo mode supported
eth1: IEEE standard IBSS ad-hoc mode supported
eth1: WEP supported, 104-bit key
eth1: MAC address 00:02:A5:2E:DE:D4
eth1: Station name "HERMES I"
eth1: readyhostap_crypt: registered algorithm 'NULL'
eth1: index 0x01: Vcc 5.0, irq 3, io 0x0100-0x013f
hostap_cs: hostap_cs.c 0.0.0 2002-10-12 (SSH Communications Security Corp, Jouni Malinen)
hostap_cs: (c) Jouni Malinen <jkmaline@cc.hut.fi>
hostap_cs: setting Vcc=33 (constant)
hostap_cs: CS_EVENT_CARD_INSERTION
prism2_config()
hostap_cs: setting Vcc=33 (from config)
Checking CFTABLE_ENTRY 0x01 (default 0x01)
IO window settings: cfg->io.nwin=1 dflt.io.nwin=1
io->flags = 0x0046, io.base=0x0000, len=64
hostap_cs: index 0x01: Vcc 3.3, irq 11, io 0x0180-0x01bf
hostap_cs: Registered netdevice wlan0
hostap_cs: Registered netdevice wlan0ap for AP management
prism2_hw_init()
prism2_hw_config: initialized in 17154 iterations
wlan0: NIC: id=0x800c v1.0.0
wlan0: PRI: id=0x15 v1.0.7
wlan0: STA: id=0x1f v1.3.5
wlan0: defaulting to host-based encryption as a workaround for firmware bug in Host AP mode WEP
wlan0: LinkStatus=2 (Disconnected)

Because of the following message i first thought that the socket TI-Socket would not be properly working:
Quote:

ISA irqs (scanned) = none!<6> PCI card interrupts, PCI status

But actually the card on IRQ 11 (Infos taken from the ifconfig output) works fine.


Because of
Quote:

Ricoh RL5C475 rev 80 PCI-to-CardBus at slot 02:05, mem 0xd0500000
host opts [0]: [isa irq] [io 3/6/1] [mem 3/6/1] [pci irq 7] [lat 64/176]

I tried to load the orinoco-module by modprobe orinoco_cs irq_list=7 directly to irq7 instead of irq3 that is shown in the ifconfig output. Because the TI 1410 works fine if the ifconfig output of the wlan0 interface has the same IRQ(11) like the one in the dmesg output:
Quote:

TI 1410 rev 01 PCI-to-CardBus at slot 02:0f, mem 0xd0502000
host opts [0]: [isa irq] [pci irq 11] [lat 64/176] [bus 3/3]


a few more infos:
i had the kernel loaded with and without the pci=biosirq mode.
in /etc/conf.d/pcmcia I have:
Quote:

# Put cardmgr options here
CARDMGR_OPTS="-f"
# To set the PCMCIA scheme at startup...
SCHEME="home"
# These are from the pcmcia-cs distribution, but aren't used yet
# Should be either i82365 or tcic
PCIC="i82365 tcic"
#PCIC="tcic"
# Put socket driver timing parameters here
# PCIC_OPTS="extra_sockets=1 irq_mode=1"
PCIC_OPTS="irq_mode=0"
# Put pcmcia_core options here
CORE_OPTS=""

I already tryed extra_sockets but it's more for ISA cards then PCI.

The command "lspci -vvv" showed me the irqs of the cards:
Quote:

(...)
02:05.0 CardBus bridge: Ricoh Co Ltd RL5c475 (rev 80)
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 64
Interrupt: pin A routed to IRQ 7
Region 0: Memory at d0500000 (32-bit, non-prefetchable) [size=4K]
Bus: primary=02, secondary=03, subordinate=03, sec-latency=176
Memory window 0: d0200000-d02ff000 (prefetchable)
Memory window 1: d0100000-d01ff000 (prefetchable)
I/O window 0: 00002400-000024ff
I/O window 1: 00002000-000020ff
BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset- 16bInt+ PostWrite+
16-bit legacy interface ports at 0001

02:08.0 Ethernet controller: Intel Corp. 82801BD PRO/100 VM (LOM) Ethernet Controller (rev 81)
Subsystem: Unknown device 1734:1002
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 66 (2000ns min, 14000ns max), cache line size 08
Interrupt: pin A routed to IRQ 11
Region 0: Memory at d0501000 (32-bit, non-prefetchable) [size=4K]
Region 1: I/O ports at 2800 [size=64]
Capabilities: [dc] Power Management version 2
Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
Status: D0 PME-Enable- DSel=0 DScale=2 PME-

02:0f.0 CardBus bridge: Texas Instruments PCI1410 PC card Cardbus Controller (rev 01)
Subsystem: SCM Microsystems: Unknown device 3000
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 64, cache line size 08
Interrupt: pin A routed to IRQ 11
Region 0: Memory at d0502000 (32-bit, non-prefetchable) [size=4K]
Bus: primary=02, secondary=03, subordinate=03, sec-latency=176
Memory window 0: d0400000-d04ff000 (prefetchable)
Memory window 1: d0300000-d03ff000 (prefetchable)
I/O window 0: 00003000-000030ff
I/O window 1: 00002c00-00002cff
BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset+ 16bInt- PostWrite+
16-bit legacy interface ports at 0001

so I tried to insert the orinoco_cs for the compaq card manually by
Quote:

pinfsdw15 root # modprobe orinoco_cs irq_list=7


...so the output of the ls_pci was much better:-/ :
Quote:

(...)
02:05.0 CardBus bridge: Ricoh Co Ltd RL5c475 (rev 80)
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 64
Interrupt: pin A routed to IRQ 7
Region 0: Memory at d0500000 (32-bit, non-prefetchable) [size=4K]
Bus: primary=02, secondary=03, subordinate=03, sec-latency=176
Memory window 0: d0200000-d02ff000 (prefetchable)
Memory window 1: d0100000-d01ff000 (prefetchable)
I/O window 0: 00002400-000024ff
I/O window 1: 00002000-000020ff
BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset- 16bInt+ PostWrite+
16-bit legacy interface ports at 0001
(...)

but ther was no interface eth1 anymore in the "ifconfig -a" output. But the module seemed to be loaded without problems:
Quote:

pinfsdw15 root # lsmod
Module Size Used by Not tainted
orinoco_cs 4916 0 (unused)
orinoco 40844 0 [orinoco_cs]
hermes 6468 0 [orinoco_cs orinoco]
hostap_cs 50444 0
hostap 47428 0 [hostap_cs]
hostap_crypt 1712 0 [hostap]
ds 7432 2 [orinoco_cs hostap_cs]
i82365 41632 2
pcmcia_core 50944 0 [orinoco_cs hostap_cs ds i82365]
rtc 7516 0 (autoclean)
pinfsdw15 root #


a reload of the pcmcia put it back to irq3: (i think because of reloading the modules without parameters, by the way where can i set the parameters for the loading of the modules?)
Quote:

pinfsdw15 root # /etc/init.d/pcmcia restart
* Stopping pcmcia... [ ok ]
* Starting pcmcia...
cardmgr[1507]: watching 2 sockets [ ok ]
pinfsdw15 root # ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:30:05:1C:BD:9F
inet addr:152.96.193.135 Bcast:152.96.195.255 Mask:255.255.252.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4110 errors:0 dropped:0 overruns:0 frame:0
TX packets:798 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1207628 (1.1 Mb) TX bytes:129191 (126.1 Kb)
Interrupt:11 Base address:0x5000

eth1 Link encap:Ethernet HWaddr 00:02:A5:2E:DE:D4
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:3 Base address:0x100

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:5 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:298 (298.0 b) TX bytes:298 (298.0 b)

wlan0 Link encap:Ethernet HWaddr 00:40:05:AE:DA:12
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:3 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:11 Base address:0x180

wlan0ap Link encap:UNSPEC HWaddr 00-40-05-AE-DA-12-80-01-00-00-00-00-00-00-00-00
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:77 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:4544 (4.4 Kb) TX bytes:0 (0.0 b)
Interrupt:11 Base address:0x180


For any hint or suggestion that would help I would be very happy :P and if I missed to give some essential information please ask and let me be your eyes. I'm quite new to gentoo but I try hard to get somewhere. Hope I did not break kind of "no post with more then 100 line" -rule, but I thought I should give you as much information I have.

Thank you, Spikey
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum