Wifi RT5370 Debian 9.1

185 views
Skip to first unread message

Todd Woolums

unread,
Sep 14, 2017, 11:18:48 AM9/14/17
to BeagleBoard

I can't get wifi to work with a RT5370 adapter in the latest BBB image for Debian 9.1.  This adapter works in older versions so I'm unsure what else to look at.  Any pointers/help would be appreciated.


Thanks


debian@beaglebone:~$ connmanctl

Error getting VPN connections: The name net.connman.vpn was not provided by any connmanctl> enable wifi

Error wifi: Already enabled

connmanctl> scan wifi

Scan completed for wifi

connmanctl> services


connmanctl> 


debian@beaglebone:~$ uname -a

Linux beaglebone 4.9.45-ti-r57 #1 SMP PREEMPT Fri Aug 25 22:58:38 UTC 2017 armv7l GNU/Linux


debian@beaglebone:~$ lsusb

Bus 001 Device 002: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


debian@beaglebone:~$ lsusb -t

/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=musb-hdrc/1p, 480M

    |__ Port 1: Dev 2, If 0, Class=Vendor Specific Class, Driver=rt2800usb, 480M


debian@beaglebone:~$ lsmod

Module                  Size  Used by

snd_soc_simple_card     7959  0

snd_soc_simple_card_utils     6408  1 snd_soc_simple_card

omap_aes_driver        24392  0

omap_sham              27230  0

crypto_engine           7219  1 omap_aes_driver

pruss_soc_bus           4788  0

omap_rng                5864  0

rng_core                9161  1 omap_rng

c_can_platform          7825  0

c_can                  12883  1 c_can_platform

can_dev                14919  1 c_can

arc4                    2403  2

rt2800usb              19345  0

rt2800lib              84293  1 rt2800usb

rt2x00usb              13438  1 rt2800usb

rt2x00lib              50688  3 rt2800lib,rt2800usb,rt2x00usb

mac80211              690472  3 rt2800lib,rt2x00lib,rt2x00usb

cfg80211              589989  2 rt2x00lib,mac80211

rfkill                 21767  3 cfg80211

snd_soc_davinci_mcasp    21479  2

snd_soc_omap            4317  1 snd_soc_davinci_mcasp

snd_soc_edma            1546  1 snd_soc_davinci_mcasp

spi_omap2_mcspi        13352  0

snd_soc_hdmi_codec      7631  1

snd_soc_core          198579  6 snd_soc_davinci_mcasp,snd_soc_edma,snd_soc_hdmi_codec,snd_soc_simple_card_utils,snd_soc_omap,snd_soc_simple_card

snd_pcm_dmaengine       6214  2 snd_soc_omap,snd_soc_core

evdev                  13811  2

snd_pcm               105795  5 snd_soc_davinci_mcasp,snd_pcm_dmaengine,snd_soc_hdmi_codec,snd_soc_omap,snd_soc_core

tps65217_charger        5491  0

ti_am335x_adc           8160  0

snd_timer              24435  1 snd_pcm

kfifo_buf               4052  1 ti_am335x_adc

snd                    74026  3 snd_timer,snd_soc_core,snd_pcm

industrialio           65843  2 ti_am335x_adc,kfifo_buf

soundcore               8755  1 snd

uio_pdrv_genirq         4205  0

uio                    11036  1 uio_pdrv_genirq

usb_f_mass_storage     51414  2

usb_f_acm               8610  2

u_serial               13482  3 usb_f_acm

usb_f_ecm              11619  2

usb_f_rndis            26880  2

u_ether                13962  2 usb_f_ecm,usb_f_rndis

libcomposite           55392  16 usb_f_ecm,usb_f_acm,usb_f_mass_storage,usb_f_rndis

iptable_nat             2512  0

nf_conntrack_ipv4      12035  1

nf_defrag_ipv4          2016  1 nf_conntrack_ipv4

nf_nat_ipv4             6857  1 iptable_nat

nf_nat                 20785  1 nf_nat_ipv4

nf_conntrack          117614  3 nf_conntrack_ipv4,nf_nat_ipv4,nf_nat

iptable_mangle          2303  0

iptable_filter          2453  0

spidev                  9322  0

pru_rproc              14966  0

pruss_intc              9092  1 pru_rproc

pruss                  10889  1 pru_rproc

tieqep                  9111  0

ip_tables              14529  3 iptable_mangle,iptable_filter,iptable_nat

x_tables               22165  3 iptable_mangle,ip_tables,iptable_filter


debian@beaglebone:~$ iwconfig

eth0      no wireless extensions.


usb0      no wireless extensions.


usb1      no wireless extensions.


wlan0     IEEE 802.11  ESSID:off/any  

          Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm   

          Retry short limit:7   RTS thr:off   Fragment thr:off

          Power Management:off

          

lo        no wireless extensions.


can0      no wireless extensions.


can1      no wireless extensions.


debian@beaglebone:~$ ifconfig

eth0: flags=-28669<UP,BROADCAST,MULTICAST,DYNAMIC>  mtu 1500

        ether 54:4a:16:e7:11:ef  txqueuelen 1000  (Ethernet)

        RX packets 0  bytes 0 (0.0 B)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 0  bytes 0 (0.0 B)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

        device interrupt 189  


lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536

        inet 127.0.0.1  netmask 255.0.0.0

        inet6 ::1  prefixlen 128  scopeid 0x10<host>

        loop  txqueuelen 1  (Local Loopback)

        RX packets 1280  bytes 88000 (85.9 KiB)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 1280  bytes 88000 (85.9 KiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


usb0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

        inet 192.168.7.2  netmask 255.255.255.252  broadcast 192.168.7.3

        inet6 fe80::564a:16ff:fee7:11f1  prefixlen 64  scopeid 0x20<link>

        ether 54:4a:16:e7:11:f1  txqueuelen 1000  (Ethernet)

        RX packets 0  bytes 0 (0.0 B)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 0  bytes 0 (0.0 B)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


usb1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

        inet 192.168.6.2  netmask 255.255.255.252  broadcast 192.168.6.3

        inet6 fe80::564a:16ff:fee7:11f4  prefixlen 64  scopeid 0x20<link>

        ether 54:4a:16:e7:11:f4  txqueuelen 1000  (Ethernet)

        RX packets 199  bytes 27645 (26.9 KiB)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 135  bytes 20742 (20.2 KiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


wlan0: flags=-28669<UP,BROADCAST,MULTICAST,DYNAMIC>  mtu 1500

        ether c8:3a:35:b0:3c:42  txqueuelen 1000  (Ethernet)

        RX packets 0  bytes 0 (0.0 B)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 0  bytes 0 (0.0 B)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


Robert Nelson

unread,
Sep 14, 2017, 11:28:57 AM9/14/17
to Beagle Board, twoo...@toddwoolums.com
On Thu, Sep 14, 2017 at 10:18 AM, Todd Woolums <twoo...@toddwoolums.com> wrote:
> I can't get wifi to work with a RT5370 adapter in the latest BBB image for
> Debian 9.1. This adapter works in older versions so I'm unsure what else to
> look at. Any pointers/help would be appreciated.

What manufacture/model/revision? Do you have an amazon part link?

You can downgrade to v4.4.x-ti:

cd /opt/scripts/tools/

sudo ./update_kernel.sh --ti-channel --lts-4_4

Regards,

--
Robert Nelson
https://rcn-ee.com/

Todd Woolums

unread,
Sep 14, 2017, 11:33:32 AM9/14/17
to BeagleBoard

Robert Nelson

unread,
Sep 14, 2017, 12:02:17 PM9/14/17
to Beagle Board, twoo...@toddwoolums.com
On Thu, Sep 14, 2017 at 10:33 AM, Todd Woolums <twoo...@toddwoolums.com> wrote:
> This is the adapter
> https://www.amazon.com/gp/product/B00H95C0A2/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1

Yeah, i have that adapter here..

Definitely a regression in v4.9.x, use v4.4.x till we figure out what broke..

I just ran:

cd /opt/scripts/tools/
sudo ./update_kernel.sh --ti-channel --lts-4_4
sudo reboot

Scan completed for wifi
connmanctl> services
*AO Wired ethernet_985dad87dfb2_cable
BeagleBone-ABCDEF
wifi_00e180405864_426561676c65426f6e652d414243444546_managed_psk
DKE_Employee
wifi_00e180405864_444b455f456d706c6f796565_managed_ieee8021x
wifi_00e180405864_hidden_managed_psk
DKE_Guest wifi_00e180405864_444b455f4775657374_managed_psk
CloudGate-X13M
wifi_00e180405864_436c6f7564476174652d5831334d_managed_psk
connmanctl> quit

debian@beaglebone:~$ uname -r
4.4.87-ti-r121
debian@beaglebone:~$ lsusb
Bus 001 Device 002: ID 148f:5370 Ralink Technology, Corp. RT5370
Wireless Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Robert Nelson

unread,
Sep 14, 2017, 12:29:13 PM9/14/17
to Beagle Board, twoo...@toddwoolums.com
Okay got it, it's actually the same bug we saw in v4.4.x-ti:

hidden ssid breaks the wifi scan:

Just need to forward port this patch:

https://github.com/RobertCNelson/ti-linux-kernel-dev/blob/ti-linux-4.4.y/patches/drivers/wireless/0001-net-wireless-SanCloud-wifi-issue-when-associating-wi.patch

(Just tested it with v4.9.x-ti and wifi is working)

(and i need to rename it this time so don't drop it)

Robert Nelson

unread,
Sep 14, 2017, 12:33:09 PM9/14/17
to Beagle Board, twoo...@toddwoolums.com

Todd Woolums

unread,
Sep 14, 2017, 12:45:05 PM9/14/17
to BeagleBoard
Awesome, I assume at some point I can do a git pull at some time?  Sorry I dont know how the changes make their way into the mix.

--Todd

Robert Nelson

unread,
Sep 14, 2017, 1:06:26 PM9/14/17
to Beagle Board
On Thu, Sep 14, 2017 at 11:45 AM, Todd Woolums <twoo...@toddwoolums.com> wrote:
> Awesome, I assume at some point I can do a git pull at some time? Sorry I
> dont know how the changes make their way into the mix.

Yeah, sadly, i tagged and pushed out 4.9.50-ti-r59 earlier this
morning, so you'll have to use the repo here:

https://github.com/RobertCNelson/ti-linux-kernel-dev

once all the builds get built and pushed out (another day or so) i can
tag and push a new build with that change..

Todd Woolums

unread,
Sep 14, 2017, 2:26:37 PM9/14/17
to BeagleBoard
No worries at all considering how fast you looked and saw the problem :)

Sorry I'm a newbie when it comes to this after builds are done how can I pull that down on a fresh load of the BBB 9.1 image?

Robert Nelson

unread,
Sep 14, 2017, 3:15:41 PM9/14/17
to Beagle Board
On Thu, Sep 14, 2017 at 1:26 PM, Todd Woolums <twoo...@toddwoolums.com> wrote:
> No worries at all considering how fast you looked and saw the problem :)
>
> Sorry I'm a newbie when it comes to this after builds are done how can I
> pull that down on a fresh load of the BBB 9.1 image?

Well till the builds finish:

wget http://rcn-ee.online/builds/linux-image-4.9.50-ti-r59.1_1cross_armhf.deb
sudo dpkg -i linux-image-4.9.50-ti-r59.1_1cross_armhf.deb
sudo reboot

redhead...@gmail.com

unread,
Jun 16, 2018, 3:51:42 PM6/16/18
to BeagleBoard
I am a Beagle Newbie and having same issue as listed in this thread with the latest image available.


bone-debian-9.3-lxqt-armhf-2018-01-28-4gb.img.xz

I don't have access to the internet with this Beagle until I get the WiFi working.

I am using a Beagle Bone Black Rev C with latest image flashed to eMMC.


Reply all
Reply to author
Forward
0 new messages