Wifi problems

I’ve tried a number of debian images from 7.11 to 8.7, and I keep having a lot of problems with connmanctl not connecting, or the connection dropping. This isn’t the case with all versions. Version 8.2 (and I think 8.6) seem to work ok. However I can’t get the Adafruit BBIO libraries to install correctly. I know that’s a python problem, but still I need an installation that does both.

So I just tried debian 8.7, which had the most spectacular failure:

root@beaglebone:~# connmanctl
Error getting VPN connections: The name net.connman.vpn was not provided by any .service filesconnma

enable wifi
Error wifi: Already enabled
agent on
Agent registered
scan wifi
Scan completed for wifi
[ OK ] Started OpenBSD Secure Shell server.
ser Stopping LSB: Start busybox udhcpd at boot time…
[ OK ] Stopped LSB: Start busybox udhcpd at boot time.
Starting LSB: Start busybox udhcpd at boot time…
[ OK ] Started LSB: Start busybox udhcpd at boot time.
[ OK ] Started Serial Getty on ttyGS0.
[ 61.975689] bone_capemgr bone_capemgr: slot #4: override
[ 61.981207] bone_capemgr bone_capemgr: slot #4: ‘Override Board Name,00A0,Override Manuf,cape-uni
versaln’
[ OK ] Started Generic Board Startup.
Starting BB WL18xx Bluetooth Service…
[ OK ] Started BB WL18xx Bluetooth Service.
[ OK ] Reached target Multi-User System.
[ OK ] Reached target Graphical Interface.
Starting Update UTMP about System Runlevel Changes…
[ OK ] Started Update UTMP about System Runlevel Changes.

Error ‘ser’: Unknown command

services
goobernet wifi_74da384197c9_676f6f6265726e6574_managed_psk
edimaxEXT.setup 57 wifi_74da384197c9_6564696d61784558542e7365747570203537_managed_none
AMUNDSON 2.4G wifi_74da384197c9_414d554e44534f4e20322e3447_managed_psk
ATT2q2edP7 wifi_74da384197c9_41545432713265645037_managed_psk
2WIRE156 wifi_74da384197c9_3257495245313536_managed_psk
ATT9BBs8g9 wifi_74da384197c9_41545439424273386739_managed_psk
ATTPtUGqa2 wifi_74da384197c9_41545450745547716132_managed_psk
ATTaHqD93A wifi_74da384197c9_41545461487144393341_managed_psk
FX2EZ0 wifi_74da384197c9_465832455a30_managed_psk
319443N10644F wifi_74da384197c9_3331393434334e313036343446_managed_psk
ATT9S7e7K4 wifi_74da384197c9_41545439533765374b34_managed_psk
connect wifi_74da384197c9_676f6f6265726e6574_managed_psk
Agent RequestInput wifi_74da384197c9_676f6f6265726e6574_managed_psk
Passphrase = [ Type=psk, Requirement=mandatory, Alternates=[ WPS ] ]
WPS = [ Type=wpspin, Requirement=alternate ]
Passphrase? [deleted]
[ 95.586047] Unable to handle kernel NULL pointer dereference at virtual address 00000
034
[ 95.594294] pgd = dc634000
[ 95.597020] [00000034] *pgd=00000000
[ 95.600687] Internal error: Oops: 5 [#1] SMP ARM
[ 95.605329] Modules linked in: ccm c_can_platform c_can can_dev spi_omap2_mcspi pwm_tiecap usb_f_
mass_storage usb_f_acm u_serial usb_f_rndis u_ether libcomposite snd_soc_hdmi_codec arc4 snd_soc_sim
ple_card rtl8192cu rtl_usb rtl8192c_common omap_aes_driver omap_sham rtlwifi mac80211 cfg80211 rfkil
l omap_rng rng_core tilcdc snd_soc_davinci_mcasp snd_soc_edma snd_soc_omap snd_soc_core snd_pcm_dmae
ngine snd_pcm snd_timer snd soundcore evdev tda998x uio_pdrv_genirq uio spidev pru_rproc pruss pruss
_intc tieqep pwm_tiehrpwm
[ 95.651717] CPU: 0 PID: 789 Comm: connmand Not tainted 4.4.48-ti-r88 #1
[ 95.658361] Hardware name: Generic AM33XX (Flattened Device Tree)
[ 95.664483] task: dc64ba80 ti: dc3ac000 task.ti: dc3ac000
[ 95.670013] PC is at rtl_lps_leave+0x28/0x6c [rtlwifi]
[ 95.675207] LR is at setup_arp_tx+0x64/0x78 [rtlwifi]
[ 95.680283] pc : [] lr : [] psr: 60010013
[ 95.680283] sp : dc3ada00 ip : dc3ada10 fp : dc3ada0c
[ 95.691813] r10: 00000010 r9 : dc560420 r8 : 00000000
[ 95.697061] r7 : 00000000 r6 : dc56a748 r5 : 00000001 r4 : dc560de0
[ 95.703616] r3 : 001fff00 r2 : bf2fc664 r1 : dc3ac000 r0 : 00000000
[ 95.710176] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none
[ 95.717344] Control: 10c5387d Table: 9c634019 DAC: 00000051
[ 95.723116] Process connmand (pid: 789, stack limit = 0xdc3ac218)
[ 95.729237] Stack: (0xdc3ada00 to 0xdc3ae000)
[ 95.733622] da00: dc3ada2c dc3ada10 bf2aaae8 bf2b27b8 dc560de0 00000008 dc44f900 00000001
[ 95.741843] da20: dc3ada54 dc3ada30 bf2aac60 bf2aaa90 dc44f900 00000000 dc3adae8 dc7805cc
[ 95.750064] da40: dc560de0 dc3adae8 dc3ada94 dc3ada58 bf2b31a0 bf2aab08 c0f98d64 c007ecac
[ 95.758284] da60: dc3adafc dc3ada70 c007dc3c dc780060 dc44f90c dc7805cc dc44f900 daaec500
[ 95.766505] da80: dc3adae8 db76a480 dc3adad4 dc3ada98 bf1fd4e8 bf2b3130 dc3adadc dc3adaa8
[ 95.774725] daa0: c007ed1c db090bc0 80010193 dc3adbb4 dc44f900 c0f97a88 dc561138 00000fff
[ 95.782946] dac0: ffffffff ffffffff dc3adb3c dc3adad8 bf20d328 bf1fd428 c0070af8 c007eba8
[ 95.791167] dae0: 00000000 dc72703e dc560420 dc561138 daaeccf8 dc44f900 000000ff 0000ff01
[ 95.799387] db00: 00000fff 00000000 00000000 dc8ba630 dc3adb94 dc3adbb4 dc44f900 dc44f900
[ 95.807608] db20: dc780000 dc560420 dc560420 00000000 dc3adba4 dc3adb40 bf20db80 bf20d140
[ 95.815829] db40: 00000001 00000000 00001000 00000000 00000000 00000000 415a2a84 00000016
[ 95.824049] db60: ffffffff ffffffff dc3adb84 bf210830 df925380 00000005 dc0dabac c0f97a88
[ 95.832270] db80: dc44f900 00000000 daaec502 00000262 dc560420 00000000 dc3adc14 dc3adba8
[ 95.840491] dba0: bf210df4 bf20d780 dc3adbe4 dc3adbb8 c00ce790 dc44f900 dc3adbb8 dc3adbb8
[ 95.848712] dbc0: 00000000 00000000 00000000 dc560420 daaec500 dc780000 db251600 00000000
[ 95.856933] dbe0: 00000002 dc8ba630 ed140000 dc44f900 daaec500 dc780000 dc560420 00000003
[ 95.865153] dc00: 00000000 c0f97a88 dc3adc34 dc3adc18 bf210f10 bf210d74 00000000 daaec500
[ 95.873373] dc20: 00000000 daaec000 dc3adcd4 dc3adc38 bf211a80 bf210e84 dc3adc5c dc3adc48
[ 95.881593] dc40: c0070c8c c0070b0c dc0da700 c0071ae0 80080008 dc3adc60 dc3adc38 00000000
[ 95.889813] dc60: dc780000 1e993000 c0f92380 c0f97a88 dc3adca4 c01b19a4 00001d2b c0f97a88
[ 95.898034] dc80: dc3adca4 dc727000 dc3adccc c0913374 00000000 dc44f900 c0f97a88 00006000
[ 95.906254] dca0: 00000000 dc8ba630 dc3adcf4 c0f97a88 db3ad280 0000024e dc44f900 daaec000
[ 95.914475] dcc0: daaec000 c0f99b18 dc3adce4 dc3adcd8 bf211c68 bf2114ec dc3add44 dc3adce8
[ 95.922695] dce0: c0913c3c bf211c58 dc3add24 dc3adcf8 dc3add48 c1068c84 c1068c98 db3ad280
[ 95.930916] dd00: 00000000 00000000 c0f99b10 00000000 daaec000 dc44f900 dc3add44 c0f97a88
[ 95.939138] dd20: db3ad280 dc3cf000 dc3cf068 daaec000 dc44f900 00000000 dc3add7c dc3add48
[ 95.947357] dd40: c093b04c c09139c8 00000010 dc8ba630 dc3add7c dc44f900 daaec000 c0f97a88
[ 95.955577] dd60: 00000000 db3ad280 dc3cf000 00000000 dc3addc4 dc3add80 c0914178 c093af48
[ 95.963797] dd80: dc3cf068 00000001 c0a0dbc0 dc3cf068 fffffff4 dc8ba630 dc3addb4 dc727340
[ 95.972017] dda0: dc3aded8 daaec000 00000240 dc44f900 00000000 daa65c00 dc3addd4 dc3addc8
[ 95.980238] ddc0: c091456c c0913f34 dc3adea4 dc3addd8 c0a13004 c091455c 00000000 00000000
[ 95.988459] dde0: 0000024e 00000000 c00846e4 c00801bc c0f97a88 dc3ade00 c0f97a88 df9253c0
[ 95.996679] de00: c0f92380 c0065fbc dc15801c 00000060 00000000 00000000 00000000 dc3adf10
[ 96.004899] de20: 00000008 00000000 00000000 00000000 00000000 00000000 dc640000 00020022
[ 96.013119] de40: 00000000 00110008 00000000 00000000 43004400 00000000 ffffffff 00000000
[ 96.021338] de60: 00000000 00000000 00000000 00000000 00000000 dc8ba630 dc3adeb4 dc3aded8
[ 96.029559] de80: dbf5f8c0 00000000 dbf5f8c0 c0011024 dc3ac000 00000000 dc3adebc dc3adea8
[ 96.037780] dea0: c08f39b0 c0a121c0 00000000 c0f97a88 dc3adfa4 dc3adec0 c08f511c c08f3978
[ 96.046000] dec0: dc3adee0 00000014 00000000 00000000 bef253bc 00000240 dc3adf04 00000014
[ 96.054220] dee0: 00000001 00000000 00000000 dc3aded8 00000000 00000000 00000000 00000000
[ 96.062441] df00: 00000000 00080011 00000003 06000000 ffffffff 0000ffff 00080000 c0f97a88
[ 96.070661] df20: dc3adf6c dc3adf30 c08f250c dc8ba630 dc09c6d0 00000000 00000013 c0f97a88
[ 96.078882] df40: 00080000 dbf5f8c0 dc3ac000 00000000 dc3adf6c dc3adf60 c01e2d00 c01e2be4
[ 96.087102] df60: dc3adfa4 dc3adf70 c08f472c c01e2cd8 00000000 c00b8560 dbf5f8c0 dc8ba630
[ 96.095323] df80: 00015f20 dc8ba630 bef253a8 00000014 00000013 00000122 00000000 dc3adfa8
[ 96.103543] dfa0: c0010e60 c08f5050 bef253a8 00000014 00000013 bef253bc 00000240 00000000
[ 96.111764] dfc0: bef253a8 00000014 00000013 00000122 00000011 00004400 bef253a8 00000000
[ 96.119984] dfe0: bef25398 bef2538c 7f5e5601 b6d3bf9c 60010030 00000013 00000000 00000000
[ 96.128307] [] (rtl_lps_leave [rtlwifi]) from [] (setup_arp_tx+0x64/0x78 [rtl
wifi])
[ 96.137811] [] (setup_arp_tx [rtlwifi]) from [] (rtl_is_special_data+0x164/0x
17c [rtlwifi])
[ 96.148011] [] (rtl_is_special_data [rtlwifi]) from [] (rtl_get_rate+0x7c/0x1
cc [rtlwifi])
[ 96.158715] [] (rtl_get_rate [rtlwifi]) from [] (rate_control_get_rate+0xcc/0
x14c [mac80211])
[ 96.169598] [] (rate_control_get_rate [mac80211]) from [] (ieee80211_tx_h_rat
e_ctrl+0x1f4/0x3f8 [mac80211])
[ 96.181542] [] (ieee80211_tx_h_rate_ctrl [mac80211]) from [] (invoke_tx_handl
ers+0x40c/0xe30 [mac80211])
[ 96.193208] [] (invoke_tx_handlers [mac80211]) from [] (ieee80211_tx+0x8c/0x1
10 [mac80211])
[ 96.203738] [] (ieee80211_tx [mac80211]) from [] (ieee80211_xmit+0x98/0xec [m
ac80211])
[ 96.213832] [] (ieee80211_xmit [mac80211]) from [] (__ieee80211_subif_start_x
mit+0x5a0/0x76c [mac80211])
[ 96.225496] [] (__ieee80211_subif_start_xmit [mac80211]) from [] (ieee80211_s
ubif_start_xmit+0x1c/0x24 [mac80211])
[ 96.237851] [] (ieee80211_subif_start_xmit [mac80211]) from [] (dev_hard_star
t_xmit+0x280/0x468)
[ 96.248444] [] (dev_hard_start_xmit) from [] (sch_direct_xmit+0x110/0x260)
[ 96.257103] [] (sch_direct_xmit) from [] (__dev_queue_xmit+0x250/0x628)
[ 96.265499] [] (__dev_queue_xmit) from [] (dev_queue_xmit+0x1c/0x20)
[ 96.273642] [] (dev_queue_xmit) from [] (packet_sendmsg+0xe50/0x1020)
[ 96.281869] [] (packet_sendmsg) from [] (sock_sendmsg+0x44/0x54)
[ 96.289657] [] (sock_sendmsg) from [] (SyS_sendto+0xd8/0x114)
[ 96.297190] [] (SyS_sendto) from [] (ret_fast_syscall+0x0/0x44)
[ 96.304892] Code: e3c31d7f e3a03cff e3c1103f e340301f (e5902034)
[ 96.311429] —[ end trace 7c313186bfe6fb77 ]—
[ 96.316281] Kernel panic - not syncing: Fatal exception in interrupt
[ 96.322679] —[ end Kernel panic - not syncing: Fatal exception in interrupt

Anyone have any ideas?

Thanks

Joe

which rtl wifi chipset? lsusb?

Regards,

Yeah, RTL8188CUS those are painful..

Couple options, do you have a usb extension cable?

Are you using hdmi? (we can disable that then you don't need the
extension cable)

also give the v4.9.x-ti branch a try..

cd /opt/scripts/tools/
git pull
sudo ./update_kernel.sh --ti-channel --lts-4_9

Regards,

I’m not usinig HDMI, it seems to be disabled by default. I updated the kernel, and it almost works now.

When I connected initially everything looked good. After a reboot though, the wifi adapter wouldn’t power on. If I extract and re-insert it into the USB slot, it powers up, but doesn’t get an address.

I found an old ASUS wifi adapter in a drawer and tried it (it’s an RTL8192CU device), but got the same results as above.

Thanks

Joe

root@beaglebone:~# cat /boot/uEnv.txt |grep -e Audio/Video -e -emmc-overlay

*##BeagleBone Black: HDMI (Audio/Video)
disabled:dtb=am335x-boneblack-emmc-overlay.dtb*
##BeagleBone Black: HDMI (Audio/Video)/eMMC disabled:

root@beaglebone:~# uname -a
Linux beaglebone 4.4.38-bone-rt-r14 #1 PREEMPT RT Mon Dec 12 10:10:25 UTC
2016 armv7l GNU/Linux

root@beaglebone:~# cat /etc/dogtag
BeagleBoard.org Debian Image 2016-06-19

Which I believe this is a Jessie 8.6 image, and I do believe I manually
enabled this board overlay, as I usually do first boot with a new image.
However, if *dtb=am335x-boneblack-emmc-overlay.dtb *is not commented out in
your uEnv.txt file. Then yes, HDMI audio,and video should both be disabled
on your system.

@Robert,

Which wireless chipsets are you recommending now days. As as USB<->WiFi dongles go ?

rtl_usb is buggy. The fact anything that depends on it works, e.g. rtl8192cu, is nothing more than a fluke. And there’s no point fixing it because it’s being replaced by rtl8xxxu.
You could try blacklisting rtl8192cu so rtl8xxxu is loaded. It was a very new driver back in kernel 4.4 but may work well enough although you may still
have problems with connection dropping out. There was a bug in rtl8xxxu that only affected certain chipsets that existed up till around December 2016
when I reported the cause to the maintainer.

For any realtek usb wifi dongles, if a person is up to the task, I recommend blacklisting the in-kernel drivers, compiling and using the original realtek supplied driver instead.

Even with rtl8xxxu, you won’t get as good as performance as the original realtek driver and without documentation for the chipsets I can’t see that
changing anytime soon.

Thanks for the info. I wound up resolving this by going back to 7.11, which is mostly working as I want (barring wifi dropping connection periodically).

Thanks

Joe