Hey, Linux-SWAT.
First of all, Happy New Year! Thanks for SL4P, I installed a couple of days ago and it's been a blast.
Anyway, I've been messing around with it and was wondering if I could ask your kind help with an issue I'm having.
The wifi only toggles on once. By that I mean that if I turn the WiFi on it works fine. If I turn it off, it turns off fine. But if I go to turn it on for a second time, then it never actually turns on. The little 'wifi is being enabled' notification starts up, and the wifi LED turns on, but NetworkManager certainly can't see any wireless card and so it can't connect to anything. If I reboot the Pandora, then I can once again turn wifi on.
Full disclaimer: I've messed around with this a lot and it's probably something I've done. I got confused with how sudo worked differently to how I'm used to (as you've mentioned in this thread), and I also had a permissions issue with my second SD card. Basically it means that I've messed around with the /etc/sudoers file, the /etc/group file and the /etc/fstab file. I found that any changes to the sudoers or group file broke the whole PND system (none of the PNDs would show up in the menu, and the PND that controls the wireless would fail with an error about the union filesystem not being mounted). Anyway, I reverted all the changes I made (I think), and I solved the permissions thing with fstab. It was after all this that I noticed the wireless issue.
I've got a bunch of dmesgs, pndrun logs and lsmods to share.
From when I first turn on the pandora, turn on the wifi, and everything works great:
dmesg:
[ 668.665771] aufs test_add:261:mount[2346]: uid/gid/perm /mnt/pnd/op_wifi 1000/1000/0755, 0/0/0777
[ 670.549804] wl1251: using dedicated interrupt line
[ 670.642059] ieee80211 phy0: Selected rate control algorithm 'pid'
[ 670.649932] wl1251: loaded
[ 670.650543] wl1251: initialized
[ 671.852600] wl1251: 154 tx blocks at 0x3b788, 35 rx blocks at 0x3a780
[ 671.852844] wl1251: firmware booted (Rev 6.0.4.235)
[ 671.979187] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 675.446685] wlan0: authenticate with xx:xx:xx:xx:xx:xx (try 1)
[ 675.449859] wlan0: authenticated
[ 675.451385] wlan0: associate with xx:xx:xx:xx:xx:xx (try 1)
[ 675.455535] wlan0: RX AssocResp from xx:xx:xx:xx:xx:xx (capab=0x411 status=0 aid=4)
[ 675.455566] wlan0: associated
[ 675.548339] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 686.579071] wlan0: no IPv6 routers present
lsmod:
Module Size Used by
aes_generic 31484 1
wl1251_sdio 3507 0
wl1251 69816 1 wl1251_sdio
aufs 147053 0
squashfs 21588 0
rfcomm 29987 4
ipv6 225065 12
omaplfb 6739 0
pvrsrvkm 140050 1 omaplfb
zram 9177 1
g_cdc 31285 0
uinput 6273 0
snd_seq_oss 25217 0
snd_seq_midi_event 4662 1 snd_seq_oss
snd_seq 42877 4 snd_seq_midi_event,snd_seq_oss
snd_seq_device 4695 2 snd_seq,snd_seq_oss
snd_pcm_oss 34139 0
snd_mixer_oss 12884 1 snd_pcm_oss
bnep 10296 2
bluetooth 136791 10 bnep,rfcomm
fuse 58870 3
mac80211 210484 2 wl1251,wl1251_sdio
cfg80211 150959 2 mac80211,wl1251
ads7846 8852 0
hwmon 1003 1 ads7846
and pndrun_op_wifi.out:
=======================================================================================
PND : /usr/pandora/apps/op_wifi.pnd
PND_FSTYPE : Squashfs
APPDATADIR : //pandora/appdata/op_wifi
APPDD_FSTYPE : auto
PND_CPUSPEED : <unset>
EXENAME : op_wifi.sh
ARGUMENTS : <unset>
=======================================================================================
[ START ]--- Mount the PND ----------
Mounting : mount -t squashfs -o ro "/dev/loop0" "/mnt/utmp/op_wifi"
Mounting the Union FS : mount -t aufs -o exec,dirs="//pandora/appdata/op_wifi=rw+nolwh":"/mnt/pnd/op_wifi=rr" none "/mnt/utmp/op_wifi"
[SUCCESS]--- Mount the PND ----------
[ START ]--- Starting the application (op_wifi.sh ) ----------
Starting WL1251 MAC80211 Wireless LAN driver: wl1251.
Error for wireless request "Set Power Management" (8B2C) :
SET failed on device wlan0 ; No such device.
[ FAILED]--- Starting the application (op_wifi.sh ) ----------
[ START ]--- Restoring the frame buffer status ----------
[SUCCESS]--- Restoring the frame buffer status ----------
[ START ]--- uMount the PND ----------
[ START ]--- Waiting the Union to be available ----------
[SUCCESS]--- Waiting the Union to be available ----------
rmdir: failed to remove ‘/mnt/utmp/op_wifi’: Device or resource busy
[ START ]--- Waiting the PND mount dir to be free ----------
[SUCCESS]--- Waiting the PND mount dir to be free ----------
cleanup done
[SUCCESS]--- uMount the PND ----------
=======================================================================================
Return code is : 4
Here's the logs for when I turn on the wifi the second time around and nothing works:
dmesg (also includes me turning off the wifi):
[92881.210662] aufs test_add:261:mount[2568]: uid/gid/perm /mnt/pnd/op_wifi 1000/1000/0755, 0/0/0777
[92882.747985] wlan0: deauthenticating from xx:xx:xx:xx:xx:xx by local choice (reason=3)
[92882.763549] cfg80211: Calling CRDA to update world regulatory domain
[92882.771453] wl1251: down
[92882.863189] cfg80211: World regulatory domain updated:
[92882.863220] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[92882.863250] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[92882.863281] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[92882.863311] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[92882.863311] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[92882.863342] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[92883.023529] wl1251: unloaded
[92942.942718] aufs test_add:261:mount[2834]: uid/gid/perm /mnt/pnd/op_wifi 1000/1000/0755, 0/0/0777
[92945.988800] wl1251: Unknown symbol ieee80211_free_hw (err 0)
[92945.988830] wl1251: Unknown symbol ieee80211_probereq_get (err 0)
[92945.988891] wl1251: Unknown symbol ieee80211_alloc_hw (err 0)
[92945.988922] wl1251: Unknown symbol ieee80211_beacon_loss (err 0)
[92945.988983] wl1251: Unknown symbol ieee80211_nullfunc_get (err 0)
[92945.999603] wl1251: Unknown symbol ieee80211_pspoll_get (err 0)
[92945.999664] wl1251: Unknown symbol ieee80211_register_hw (err 0)
[92945.999694] wl1251: Unknown symbol ieee80211_get_hdrlen_from_skb (err 0)
[92945.999816] wl1251: Unknown symbol ieee80211_queue_delayed_work (err 0)
[92945.999847] wl1251: Unknown symbol ieee80211_rx (err 0)
[92945.999908] wl1251: Unknown symbol ieee80211_wake_queues (err 0)
[92945.999969] wl1251: Unknown symbol ieee80211_tx_status (err 0)
[92946.000030] wl1251: Unknown symbol ieee80211_stop_queues (err 0)
[92946.000061] wl1251: Unknown symbol ieee80211_scan_completed (err 0)
[92946.000122] wl1251: Unknown symbol ieee80211_channel_to_frequency (err 0)
[92946.000152] wl1251: Unknown symbol ieee80211_unregister_hw (err 0)
[92946.000213] wl1251: Unknown symbol ieee80211_beacon_get_tim (err 0)
[92946.000244] wl1251: Unknown symbol ieee80211_hdrlen (err 0)
[92946.000274] wl1251: Unknown symbol ieee80211_cqm_rssi_notify (err 0)
[92946.000335] wl1251: Unknown symbol ieee80211_frequency_to_channel (err 0)
[92946.000366] wl1251: Unknown symbol ieee80211_queue_work (err 0)
[92946.089599] wl1251_sdio: Unknown symbol wl1251_alloc_hw (err 0)
[92946.089691] wl1251_sdio: Unknown symbol wl1251_init_ieee80211 (err 0)
[92946.089782] wl1251_sdio: Unknown symbol wl1251_free_hw (err 0)
[92946.089843] wl1251_sdio: Unknown symbol ieee80211_queue_work (err 0)
lsmod:
Module Size Used by
ecb 1759 0
aes_generic 31484 0
aufs 147053 0
squashfs 21588 0
g_cdc 31285 0
rfcomm 29987 4
ipv6 225065 10
omaplfb 6739 0
pvrsrvkm 140050 1 omaplfb
zram 9177 1
uinput 6273 0
snd_seq_oss 25217 0
snd_seq_midi_event 4662 1 snd_seq_oss
snd_seq 42877 4 snd_seq_midi_event,snd_seq_oss
snd_seq_device 4695 2 snd_seq,snd_seq_oss
snd_pcm_oss 34139 0
snd_mixer_oss 12884 1 snd_pcm_oss
bnep 10296 2
bluetooth 136791 10 bnep,rfcomm
fuse 58870 3
ads7846 8852 0
hwmon 1003 1 ads7846
and pndrun_op_wifi.out:
=======================================================================================
PND : /usr/pandora/apps/op_wifi.pnd
PND_FSTYPE : Squashfs
APPDATADIR : //pandora/appdata/op_wifi
APPDD_FSTYPE : auto
PND_CPUSPEED : <unset>
EXENAME : op_wifi.sh
ARGUMENTS : <unset>
=======================================================================================
[ START ]--- Mount the PND ----------
Mounting : mount -t squashfs -o ro "/dev/loop0" "/mnt/utmp/op_wifi"
Mounting the Union FS : mount -t aufs -o exec,dirs="//pandora/appdata/op_wifi=rw+nolwh":"/mnt/pnd/op_wifi=rr" none "/mnt/utmp/op_wifi"
[SUCCESS]--- Mount the PND ----------
[ START ]--- Starting the application (op_wifi.sh ) ----------
Starting WL1251 MAC80211 Wireless LAN driver: wl1251.
Error for wireless request "Set Power Management" (8B2C) :
SET failed on device wlan0 ; No such device.
[ FAILED]--- Starting the application (op_wifi.sh ) ----------
find: `/lib/modules/3.2.30/updates': No such file or directory
Error: missing filename.
find: `/lib/modules/3.2.30/updates': No such file or directory
Error: missing filename.
find: `/lib/modules/3.2.30/updates': No such file or directory
Error: missing filename.
find: `/lib/modules/3.2.30/updates': No such file or directory
Error: missing filename.
find: `/lib/modules/3.2.30/updates': No such file or directory
Error: missing filename.
[ START ]--- Restoring the frame buffer status ----------
[SUCCESS]--- Restoring the frame buffer status ----------
[ START ]--- uMount the PND ----------
Error: missing filename.
Error: missing filename.
find: `/lib/modules/3.2.30/updates': No such file or directory
Error: missing filename.
find: `/lib/modules/3.2.30/updates': No such file or directory
Error: missing filename.
find: `/lib/modules/3.2.30/updates': No such file or directory
Error: missing filename.
find: `/lib/modules/3.2.30/updates': No such file or directory
Error: missing filename.
Error: could not insert module /lib/modules/3.2.30/kernel/drivers/net/wireless/wl1251/wl1251.ko: Unknown symbol in module
Error: could not insert module /lib/modules/3.2.30/kernel/drivers/net/wireless/wl1251/wl1251_sdio.ko: Unknown symbol in module
[ START ]--- Waiting the Union to be available ----------
[SUCCESS]--- Waiting the Union to be available ----------
rmdir: failed to remove ‘/mnt/utmp/op_wifi’: Device or resource busy
[ START ]--- Waiting the PND mount dir to be free ----------
[SUCCESS]--- Waiting the PND mount dir to be free ----------
cleanup done
[SUCCESS]--- uMount the PND ----------
=======================================================================================
Return code is : 26
/etc/init.d/wl1251-init: line 52: echo: write error: Invalid argument
The missing filename parts in that last pndrun log seem to be the main points of interest, but I don't really know what to do with them :s
Thanks for any help you can give