[driverloader] Driverloader on embedded linux (prism2_hostapd:
unknown cmd=14)
Mattias Seeman
mattias.seeman at rotundus.se
Fri Feb 11 16:35:22 EST 2005
Hello!
A little background: I'm working on a robot project and need to get
wireless networking on an embedded linux system. This "embedded linux
distribution" (built with HLinux by www.hectronic.se) is based on a
Debian "host system". Driverloader is installed on the host system and
works perfectly (TYVM :-) with a Belkin F5D7050 (USB 2.0 Adaptor 802.11g
54Mbps). WPA with wpa_supplicant is also used without problems.
So I'm trying to migrate the driverloader to the embedded system. I've
built a custom kernel (2.4.26) and compiled driverloader.o with this
kernel-source.
<important>
What I'm looking for is really a way to configure driverloader without
the need for perl interpreter or web browser (i.e. w/o running
dldrconfig??).
</important>
modules.dep is not preserved in the migration but I can "insmod
/lib/modules/2.4.26-xxx/extra/driverloader.o" just as well as on the
host system. <hack>I've manually edited /etc/driverloader/config/* files
to reflect the embedded system (and placed them on a read/write fs).</hack>
As you can see from output below wpa_supplicant finds the AP but fails
to complete key negotiation. Problems seem to arise at the call
"ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported" (i.e
"prism2_hostapd: unknown cmd=14").
Do any other special files be on a read/write fs (since the root fs is
read-only)?
<dmesg output>
hub.c: new USB device 00:13.0-2, assigned address 4
driverloader: prismaxp.sys: 0xc4a59000..0xc4aab3a0 entry = c4a7511f
(pbase = 0x10000)
eth1: New link status: Disconnected (0002)
eth1: WPA, AES, TKIP, WEP128, WEP64 supported
eth1: GlobespanVirata, Inc. at 00:13.02 (MAC address 00:30:BD:AF:AE:BE)
ready
prism2_hostapd: unknown cmd=14
prism2_hostapd: unknown cmd=14
prism2_hostapd: unknown cmd=14
</dmesg output>
<ifconfig output>
$ ifconfig eth1
eth1 Link encap:Ethernet HWaddr 00:30:BD:AF:AE:BE
UP 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:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
</ifconfig output>
<wpa_supplicant output>
$ wpa_supplicant -ieth1 -d -c/etc/wpa_supplicant.conf
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
wpa_driver_hostap_set_wpa: enabled=1
wpa_driver_hostap_set_key: alg=none key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_key: alg=none key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_key: alg=none key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_key: alg=none key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_countermeasures: enabled=0
wpa_driver_hostap_set_drop_unencrypted: enabled=1
Setting scan request: 0 sec 100000 usec
Starting AP scan (specific SSID)
Scan SSID - hexdump_ascii(len=7):
72 61 74 66 61 63 65 ratface
ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported
Failed to initiate AP scan.
Scan timeout - try to get results
Received 269 bytes of scan results (1 BSSes)
Scan results: 1
0: 00:11:95:01:5d:52 ssid='ratface' wpa_ie_len=24 rsn_ie_len=0
Trying to associate with 00:11:95:01:5d:52 (SSID='ratface' freq=2437 MHz)
Cancelling scan request
WPA: using IEEE 802.11i/D3.0
</wpa_supplicant output>
ANY help much appreciated..., thanks in advance!
\Mattias Seeman
More information about the driverloader
mailing list