PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : acx100 + hotplug bei slackware 10.1



phpmasta
24.03.05, 00:05
ich habe eine billige planet wlan karte mit dem acx100 chip von texas instruments.
diese habe ich bei meinem system (slackware10.1 mit selber komplilierten 2.4.29er kernel) zum laufen gebracht.
die karte braucht ein startscript und ein stopscript, welche ich bereits habe.

mein problem ist: wenn ich die karte in den pcmcia-slot stecke, soll das startscript aufgerufen werden und beim rausnehmen das stop script

ich habe bereits gesucht und nur für gentoo was gefunden. aber die dortigen verzeichnisse habe ich net oO


thx 4 help

ml
24.03.05, 00:17
Hast du kein Verzeichnis /etc/hotplug/usb ??

phpmasta
24.03.05, 00:28
hab ich schon, aber was hat pcmcia mit usb zu tun?

ml
24.03.05, 00:49
Naja, meine pcmcia umts karte wird zumindest als usb-modem angesprochen.

Es muss doch möglich sein Gentoo-Anleitungen für dein Slackware anzupassen oder?

phpmasta
24.03.05, 00:51
es handelt sich um eine wlankarte.
das ist kein umts modem ...

lspci gibt folgendes aus:



00:00.0 Host bridge: Intel Corp. 82815 815 Chipset Host Bridge and Memory Controller Hub (rev 02)
00:01.0 PCI bridge: Intel Corp. 82815 815 Chipset AGP Bridge (rev 02)
00:1e.0 PCI bridge: Intel Corp. 82801BAM/CAM PCI Bridge (rev 02)
00:1f.0 ISA bridge: Intel Corp. 82801BAM ISA Bridge (LPC) (rev 02)
00:1f.1 IDE interface: Intel Corp. 82801BAM IDE U100 (rev 02)
00:1f.2 USB Controller: Intel Corp. 82801BA/BAM USB (Hub #1) (rev 02)
01:00.0 VGA compatible controller: nVidia Corporation NV11 [GeForce2 Go] (rev b2)
02:03.0 Multimedia audio controller: ESS Technology ES1983S Maestro-3i PCI Audio Accelerator (rev 10)
02:06.0 PCI bridge: Actiontec Electronics Inc: Unknown device 0100 (rev 11)
02:0f.0 CardBus bridge: Texas Instruments PCI4451 PC card Cardbus Controller
02:0f.1 CardBus bridge: Texas Instruments PCI4451 PC card Cardbus Controller
02:0f.2 FireWire (IEEE 1394): Texas Instruments PCI4451 IEEE-1394 Controller
08:04.0 Ethernet controller: Intel Corp. 82557/8/9 [Ethernet Pro 100] (rev 08)
08:08.0 Communication controller: Lucent Microelectronics WinModem 56k (rev 01)
0d:00.0 Network controller: Texas Instruments ACX 100 22Mbps Wireless Interface

ml
24.03.05, 01:23
ja weiß schon dass das keine umts karte ist.

Funktionieren tu sie also, es geht nur um das start-bzw.stop-script nicht?

Sonst mach einfach ein Script mit Endlosschleife das so alle 5 sec. aufgerufen dann prüft ob die karte eingesteckt ist (z.b. mit lspci) und dann je nach dem ob sie eingesteckt ist oder nicht das dementsprechende script aufruft!

z.b.:



while true
do
if [ "`lspci|grep "Texas Instruments ACX 100 22Mbps Wireless Interface"`" != "" ]
then
startscript
else
stopscipt
sleep 5
done

fertig

phpmasta
24.03.05, 01:57
das ist eine notlösung ;)
daran habe ich auch schon gedacht. aber der lappy hat nur 1ghz und da ist es schon wichtig, dass alles auf die schnellstmögliche weise gemacht wird.

der hotplugd wird sicher auch nicht viel was anderes tun, als ständig solche ausgaben zu analysieren. und doppelt bremst schon.

den hotplug service gibts doch sicher net umsonst, oder?


zu deinem script: das führt das startscript alle 5s aus, wenn die karte drin ist
das ist auch net gut ;)

ml
24.03.05, 10:19
Kannst du den Link zum Gentoo-Howto mal posten?

Da die Karte mit lspci angezeigt wird müsste es doch möglich sein in /etc/hotplug/pci die Scripte zu plazieren.

phpmasta
24.03.05, 15:05
http://www.linuxforen.de/forums/showthread.php?t=176846&highlight=wlan+hotplug+gentoo

aber das arbeitet mit nem anderen verzeichnislayout

ml
24.03.05, 16:56
Es musst doch möglich sein mit der Datei pci.usermap im Verzeichnis /etc/hotplug das zu bewerkstellen. Gibts diese Datei?

phpmasta
25.03.05, 01:47
es gibt nur pci/ , pci.rc und pci.agent

phpmasta
25.03.05, 01:57
ich habe gerade was gesehen:
wenn ich die karte reinstecke, passiert einiges schon von selber. firmware laden usw.
aber die zuteilung der ip und alles passiert da leider noch net


Plug PCI Controller Driver version: 0.4
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
i810_rng: RNG not detected
hw_random: RNG not detected
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
i810_rng: RNG not detected
hw_random: RNG not detected
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
Removing device wlan0!
removing /proc entry driver/acx_wlan0_phy
removing /proc entry driver/acx_wlan0_eeprom
removing /proc entry driver/acx_wlan0_diag
removing /proc entry driver/acx_wlan0
hw_unavailable++
cs: cb_free(bus 5)
cs: cb_alloc(bus 5): vendor 0x104c, device 0x8400
PCI: Enabling device 05:00.0 (0000 -> 0003)
PCI: Setting latency timer of device 05:00.0 to 64
Found ACX100-based wireless network card at 05:00.0, irq:10, phymem1:0x11000000, phymem2:0x11010000, mem1:0xd0a20000, mem1_size:4096, mem2:0xd0a4c000, mem2_size:65536
initial debug setting is 0x001b
acx_select_io_register_set: using ACX100 io resource addresses (size: 56)
hw_unavailable = 1
acx_probe_pci: TI acx_pci: Using IRQ 10
reset hw_unavailable++
acx_reset_mac: enable soft reset...
acx_reset_mac: disable soft reset and go to init mode...
Trying to load firmware: '/usr/share/acx/WLANGEN.BIN'
Allocated 40636 bytes for firmware module loading.
not using auto increment for firmware loading.
acx_write_fw: Firmware written.
acx_write_fw (firmware): 0, acx_validate_fw: 0
acx_reset_dev: boot up eCPU and wait for complete...
acx_reset_dev: Received signal that card is ready to be configured :) (the eCPU has woken up)
reset hw_unavailable--
acx100: allocated net device wlan0, driver compiled against wireless extensions v16 and Linux 2.4.29
******************************************
************* acx_init_mac_1 *************
******************************************
==> Get the mailbox pointers from the scratch pad registers
CmdMailboxOffset = fdc8
InfoMailboxOffset = ff4c
<== Get the mailbox pointers from the scratch pad registers
CommandParameters = [ 0xd0a5bdcc ]
InfoParameters = [ 0xd0a5bf50 ]
Allocated 964 bytes for firmware module loading.
not using auto increment for firmware loading.
acx_write_fw: Firmware written.
acx_write_fw (radio): 0, acx_validate_fw: 0
CodeEnd:A26C
acx_init_wep: writing WEP options.
get_mask 0x00004d82, set_mask 0x00000000
Got sensitivity value 187
Got antenna value 0x8F
Got Energy Detect (ED) threshold 112
Got Channel Clear Assessment (CCA) value 13
Got regulatory domain 0x30
get_mask 0x00000000, set_mask 0x00000000 - after update
new ratevector: 82 84 8b 96 2c
SSID = STA269CE2, len = 9
Beacon length:61
SSID = STA269CE2, len = 9
hw_unavailable--
acx100: form factor 0x00 (unspecified), radio type 0x11 (RFMD), EEPROM version 0x04. Uploaded firmware 'Rev 1.9.8.b' (0x01020505).
creating /proc entry driver/acx_wlan0
creating /proc entry driver/acx_wlan0_diag
creating /proc entry driver/acx_wlan0_eeprom
creating /proc entry driver/acx_wlan0_phy
acx_probe_pci: TI acx_pci.o: Ver 0.2.0pre8 Loaded Successfully
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
i810_rng: RNG not detected
hw_random: RNG not detected
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
Removing device wlan0!
removing /proc entry driver/acx_wlan0_phy
removing /proc entry driver/acx_wlan0_eeprom
removing /proc entry driver/acx_wlan0_diag
removing /proc entry driver/acx_wlan0
hw_unavailable++
cs: cb_free(bus 5)
cs: cb_alloc(bus 5): vendor 0x104c, device 0x8400
PCI: Enabling device 05:00.0 (0000 -> 0003)
PCI: Setting latency timer of device 05:00.0 to 64
Found ACX100-based wireless network card at 05:00.0, irq:10, phymem1:0x11000000, phymem2:0x11010000, mem1:0xd0a20000, mem1_size:4096, mem2:0xd0a4c000, mem2_size:65536
initial debug setting is 0x001b
acx_select_io_register_set: using ACX100 io resource addresses (size: 56)
hw_unavailable = 1
acx_probe_pci: TI acx_pci: Using IRQ 10
reset hw_unavailable++
acx_reset_mac: enable soft reset...
acx_reset_mac: disable soft reset and go to init mode...
Trying to load firmware: '/usr/share/acx/WLANGEN.BIN'
Allocated 40636 bytes for firmware module loading.
not using auto increment for firmware loading.
acx_write_fw: Firmware written.
acx_write_fw (firmware): 0, acx_validate_fw: 0
acx_reset_dev: boot up eCPU and wait for complete...
acx_reset_dev: Received signal that card is ready to be configured :) (the eCPU has woken up)
reset hw_unavailable--
acx100: allocated net device wlan0, driver compiled against wireless extensions v16 and Linux 2.4.29
******************************************
************* acx_init_mac_1 *************
******************************************
==> Get the mailbox pointers from the scratch pad registers
CmdMailboxOffset = fdc8
InfoMailboxOffset = ff4c
<== Get the mailbox pointers from the scratch pad registers
CommandParameters = [ 0xd0a5bdcc ]
InfoParameters = [ 0xd0a5bf50 ]
Allocated 964 bytes for firmware module loading.
not using auto increment for firmware loading.
acx_write_fw: Firmware written.
acx_write_fw (radio): 0, acx_validate_fw: 0
CodeEnd:A26C
acx_init_wep: writing WEP options.
get_mask 0x00004d82, set_mask 0x00000000
Got sensitivity value 187
Got antenna value 0x8F
Got Energy Detect (ED) threshold 112
Got Channel Clear Assessment (CCA) value 13
Got regulatory domain 0x30
get_mask 0x00000000, set_mask 0x00000000 - after update
new ratevector: 82 84 8b 96 2c
SSID = STA269CE2, len = 9
Beacon length:61
SSID = STA269CE2, len = 9
hw_unavailable--
acx100: form factor 0x00 (unspecified), radio type 0x11 (RFMD), EEPROM version 0x04. Uploaded firmware 'Rev 1.9.8.b' (0x01020505).
creating /proc entry driver/acx_wlan0
creating /proc entry driver/acx_wlan0_diag
creating /proc entry driver/acx_wlan0_eeprom
creating /proc entry driver/acx_wlan0_phy
acx_probe_pci: TI acx_pci.o: Ver 0.2.0pre8 Loaded Successfully
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
i810_rng: RNG not detected
hw_random: RNG not detected
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
switching off power LED to save power :-)
Removing device wlan0!
removing /proc entry driver/acx_wlan0_phy
removing /proc entry driver/acx_wlan0_eeprom
removing /proc entry driver/acx_wlan0_diag
removing /proc entry driver/acx_wlan0
hw_unavailable++
acx100: It looks like you've been coaxed into buying a wireless network card
acx100: that uses the mysterious ACX100/ACX111 chip from Texas Instruments.
acx100: You should better have bought e.g. a PRISM(R) chipset based card,
acx100: since that would mean REAL vendor Linux support.
acx100: Given this info, it's evident that this driver is still EXPERIMENTAL,
acx100: thus your mileage may vary. Reading README file and/or Craig's HOWTO is
recommended, visit http://acx100.sf.net in case of further questions/discussion.
acx100: Compiled to use 32bit I/O access (faster, however I/O timing issues might occur, such as firmware upload failure!) instead of 16bit access
acx_init_module: dev_info is: TI acx_pci
acx_init_module: TI acx_pci.o: Ver 0.2.0pre8 Driver initialized, waiting for cards to probe...
Found ACX100-based wireless network card at 05:00.0, irq:10, phymem1:0x11000000, phymem2:0x11010000, mem1:0xd0a4c000, mem1_size:4096, mem2:0xd1f82000, mem2_size:65536
initial debug setting is 0x001b
acx_select_io_register_set: using ACX100 io resource addresses (size: 56)
hw_unavailable = 1
acx_probe_pci: TI acx_pci: Using IRQ 10
reset hw_unavailable++
acx_reset_mac: enable soft reset...
acx_reset_mac: disable soft reset and go to init mode...
Trying to load firmware: '/usr/share/acx/WLANGEN.BIN'
Allocated 40636 bytes for firmware module loading.
not using auto increment for firmware loading.
acx_write_fw: Firmware written.
acx_write_fw (firmware): 0, acx_validate_fw: 0
acx_reset_dev: boot up eCPU and wait for complete...
acx_reset_dev: Received signal that card is ready to be configured :) (the eCPU has woken up)
reset hw_unavailable--
acx100: allocated net device wlan0, driver compiled against wireless extensions v16 and Linux 2.4.29
******************************************
************* acx_init_mac_1 *************
******************************************
==> Get the mailbox pointers from the scratch pad registers
CmdMailboxOffset = fdc8
InfoMailboxOffset = ff4c
<== Get the mailbox pointers from the scratch pad registers
CommandParameters = [ 0xd1f91dcc ]
InfoParameters = [ 0xd1f91f50 ]
Allocated 964 bytes for firmware module loading.
not using auto increment for firmware loading.
acx_write_fw: Firmware written.
acx_write_fw (radio): 0, acx_validate_fw: 0
CodeEnd:A26C
acx_init_wep: writing WEP options.
WARNING: using old PCI-specific DMA allocation, may fail with out-of-mem!! Upgrade kernel if it does...
get_mask 0x00004d82, set_mask 0x00000000
Got sensitivity value 187
Got antenna value 0x8F
Got Energy Detect (ED) threshold 112
Got Channel Clear Assessment (CCA) value 13
Got regulatory domain 0x30
get_mask 0x00000000, set_mask 0x00000000 - after update
new ratevector: 82 84 8b 96 2c
SSID = STA269CE2, len = 9
Beacon length:61
SSID = STA269CE2, len = 9
hw_unavailable--
acx100: form factor 0x00 (unspecified), radio type 0x11 (RFMD), EEPROM version 0x04. Uploaded firmware 'Rev 1.9.8.b' (0x01020505).
creating /proc entry driver/acx_wlan0
creating /proc entry driver/acx_wlan0_diag
creating /proc entry driver/acx_wlan0_eeprom
creating /proc entry driver/acx_wlan0_phy
acx_probe_pci: TI acx_pci.o: Ver 0.2.0pre8 Loaded Successfully
new ratevector: 82 84 8b 96 ac
module count ++
OPENING DEVICE
firmware version >= 1.9.3.e --> using S/W timer
initial settings update on iface activation.
get_mask 0x00000000, set_mask 0x0037eefc
important setting has been changed --> need to update packet templates, too
acx_set_status: Setting status = 0 (STARTED)
Updating Tx fallback to 0 retries
Updating WEP key settings
Setting WEP key 0 as default.
Updating transmit power: 18 dBm
changing radio power level to 18 dBm (41)
Updating antenna value: 0x8F
Updating Energy Detect (ED) threshold: 112
Updating Channel Clear Assessment (CCA) value: 0x0D
Updating: enable Tx
Updating: enable Rx on channel: 6
Updating short retry limit: 7, long retry limit: 4
Updating xmt MSDU lifetime: 4096
Updating regulatory domain: 0x30
setting RXconfig to 2010:0fdd
Starting radio scan
acx_set_status: Setting status = 1 (SCANNING)
<acx_set_timer> Elapse = 2500000
attempt to set the timer when the card interface is not up!
Updating channel: 6
get_mask 0x00000000, set_mask 0x00000000 - after update
FIXME: most likely needs refinement, first implementation version only...
FIXME: most likely needs refinement, first implementation version only...
get_mask 0x00000000, set_mask 0x00000040
setting RXconfig to 2050:0fdd
get_mask 0x00000000, set_mask 0x00000000 - after update
acx_process_probe_response: found and registered station 0: ESSID "Wireless" on channel 6, BSSID 00:30:4F:28:69:BD, Access Point/22Mbps, Caps 0x0041, SIR 61, SNR 45.
Got Info IRQ: status 0x0000, type 0x0001: scan complete
Radio scan found 1 stations in this area.
<Scan Table> 0: SSID="Wireless",CH=6,SIR=61,SNR=45
peer_cap 0x0041, needed_cap 0x0001
Found station with matching ESSID!! ("Wireless" station, "Wireless" config)
acx_complete_dot11_scan: matching station FOUND (idx 0), JOINING (00 30 4F 28 69 BD).
acx_join_bssid rates_basic 0x0127 --> 0x1f, rates_supported 0x0127 --> 0x1f
<acx_join_bssid> BSS_Type = 2
<acx_join_bssid> JoinBSSID MAC:00 30 4F 28 69 BD
Sending authentication1 request, awaiting response!
acx_set_status: Setting status = 2 (WAIT_AUTH)
<acx_set_timer> Elapse = 1500000
acx_timer: status = 2
resend authen1 request (attempt 2).
Sending authentication1 request, awaiting response!
<acx_set_timer> Elapse = 2500000
acx_process_authen: UNVERIFIED.
00:30:4F:26:9C:E2 <4>00:30:4F:26:9C:E2 <4>00:30:4F:28:69:BD <4>00:30:4F:28:69:BD <4>00:30:4F:28:69:BD
Algorithm is ok
Got current client for sta hash tab
Found acceptable client
<acx_sta_list_add> sta = 00:30:4F:28:69:BD
acx_process_authen auth seq step 2.
acx_set_status: Setting status = 3 (AUTHENTICATED)
<acx_set_timer> Elapse = 1500000
Sending association request, awaiting response! NOT ASSOCIATED YET.
association: requesting capabilities 0x0041
acx_set_status: Setting status = 4 (ASSOCIATED)
ASSOCIATED!
FIXME: most likely needs refinement, first implementation version only...
get_mask 0x00000000, set_mask 0x00000040
setting RXconfig to 2050:0fdd
get_mask 0x00000000, set_mask 0x00000000 - after update
FIXME: most likely needs refinement, first implementation version only...
get_mask 0x00000000, set_mask 0x00000040
setting RXconfig to 2050:0fdd
get_mask 0x00000000, set_mask 0x00000000 - after update
FIXME: most likely needs refinement, first implementation version only...
get_mask 0x00000000, set_mask 0x00000040
setting RXconfig to 2050:0fdd
get_mask 0x00000000, set_mask 0x00000000 - after update
acx_timer: status = 4

ml
25.03.05, 10:49
Schau dir folgende Seite mal an: http://linux-hotplug.sourceforge.net/?selected=pci

phpmasta
25.03.05, 17:33
irgendwie kann ich mit der seite nicht viel anfangen ...