Tiny Core Base > piCore Test Releases

piCore-5.2.1rc2

<< < (2/6) > >>

sbp:

Output from lsmod in the new 5.2.1rc2 for the realtek adaptor (which can't connect):

--- Code: ---tc@box:~$ lsmod
Module                  Size  Used by    Tainted: G
8192cu                551259  0
tc@box:~$

--- End code ---

Output from lsmod in the old 5.2 for the realtek adaptor (which can connect):

--- Code: ---tc@piCorePlayer:~$ lsmod
Module                  Size  Used by    Tainted: G
snd_usb_audio         117257  0
snd_usbmidi_lib        18974  1 snd_usb_audio
snd_rawmidi            20464  1 snd_usbmidi_lib
snd_seq_device          6014  1 snd_rawmidi
snd_hwdep               5771  1 snd_usb_audio
bcm2708_dmaengine       5184  0
virt_dma                2037  1 bcm2708_dmaengine
snd_bcm2835            16279  0
8192cu                551259  0
snd_soc_wm8804          7755  0
snd_soc_bcm2708_i2s     5645  0
snd_soc_core          114787  2 snd_soc_wm8804,snd_soc_bcm2708_i2s
snd_pcm_dmaengine       4422  1 snd_soc_core
snd_pcm                76395  4 snd_usb_audio,snd_bcm2835,snd_soc_core,snd_pcm_d                                                          maengine
snd_page_alloc          4652  1 snd_pcm
snd_timer              19723  1 snd_pcm
snd_compress            7871  1 snd_soc_core
snd                    56666 10 snd_usb_audio,snd_usbmidi_lib,snd_rawmidi,snd_se                                                          q_device,snd_hwdep,snd_bcm2835,snd_soc_core,snd_pcm,snd_timer,snd_compress
regmap_i2c              1534  2 snd_soc_wm8804,snd_soc_core
regmap_spi              1790  2 snd_soc_wm8804,snd_soc_core
regmap_mmio             2669  1 snd_soc_bcm2708_i2s
tc@piCorePlayer:~$

--- End code ---

And the dmesg for the working 5.2 version

--- Code: ---[    4.935594] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
[    5.037741] usb 1-1.2: New USB device found, idVendor=7392, idProduct=7811
[    5.037774] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    5.037789] usb 1-1.2: Product: 802.11n WLAN Adapter
[    5.037803] usb 1-1.2: Manufacturer: Realtek
[    5.037818] usb 1-1.2: SerialNumber: 00e04c000001

--- End code ---

Steen

Gerrelt:
I made some progress. It has something to do with the driver that is used by wpa_supplicant.

When executing the wpa_supplicant command without specifying a driver (like wifi.sh from wifi.tcz does), it will use "nl80211". And that fails:

--- Code: ---tc@box:~$ sudo wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf -d
wpa_supplicant v2.1
random: Trying to read entropy from /dev/random
Successfully initialized wpa_supplicant
Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'default' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
Priority group 0
   id=0 ssid='PolitieBureauHelmerhoek'
nl80211: Could not add multicast membership for vendor events: -2 (No such file or directory)
nl80211: Driver does not support authentication/association or connect commands
nl80211: Remove monitor interface: refcount=0
netlink: Operstate: ifindex=5 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)
nl80211: Set mode ifindex 5 iftype 2 (STATION)
nl80211: Failed to set interface 5 to mode 2: -19 (No such device)
wlan0: Failed to initialize driver interface
Failed to add interface wlan0
wlan0: Cancelling scan request
wlan0: Cancelling authentication timeout
--- End code ---

When I tell wpa_supplicant to use the generic driver "wext" it does not fail:


--- Code: ---tc@box:~$ sudo wpa_supplicant -B -Dwext -i wlan0 -c /etc/wpa_supplicant.conf -d
wpa_supplicant v2.1
random: Trying to read entropy from /dev/random
Successfully initialized wpa_supplicant
Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
Priority group 0
   id=0 ssid='PolitieBureauHelmerhoek'
SIOCGIWRANGE: WE(compiled)=22 WE(source)=16 enc_capa=0xf
  capabilities: key_mgmt 0xf enc 0x1f flags 0x0
ioctl[SIOCSIWAP]: Operation not permitted
WEXT: Failed to clear BSSID selection on disconnect
netlink: Operstate: ifindex=5 linkmode=1 (userspace-control), operstate=5 (IF_OPER_DORMANT)
Add interface wlan0 to a new radio N/A
wlan0: Own MAC address: 44:33:4c:72:95:ce
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_countermeasures
wlan0: RSN: flushing PMKID list in the driver
wlan0: Setting scan request: 0.100000 sec
wlan0: WPS: UUID based on MAC address: 2c86ade1-78cd-5fec-9d24-a80e0d3daf4f
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
wlan0: Added interface wlan0
wlan0: State: DISCONNECTED -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=5 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
Daemonize..
--- End code ---


When I execute the udhcpc command after this, it connects to wifi without a problem:


--- Code: ---tc@box:~$ sudo /sbin/udhcpc -i wlan0 -x hostname:box
udhcpc (v1.22.1) started
Sending discover...
Sending discover...
Sending select for 192.168.0.108...
Lease of 192.168.0.108 obtained, lease time 268435455
deleting routers
route: SIOCDELRT: No such process
adding dns 192.168.0.1
tc@box:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr B8:27:EB:2C:4B:CB
          inet addr:192.168.0.118  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:179 errors:0 dropped:0 overruns:0 frame:0
          TX packets:183 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:15605 (15.2 KiB)  TX bytes:27691 (27.0 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  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:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr 44:33:4C:72:95:CE
          inet addr:192.168.0.108  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:22 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:6353 (6.2 KiB)  TX bytes:1398 (1.3 KiB)
--- End code ---

So there must be something wrong with the nl80211 driver?

bmarkus:
Thanks for testing guys. Few days ago wpa_supplicat was updated. It works here fine, did not see any change. Will look around.

bmarkus:
It looks like driver do not suports the nl80211 interface, only the older wext. What we can do is to make driver configurable in wifi.sh default to wext.

Gerrelt:
Yeah, sounds like a good idea. Shall I develop/test/propose the change?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version