WLAN AWUSO36NEH with IMX7 doesnt work togehter

Hi there,
we try to bring the WLAN adapter AWUSO36NEH on the Colibri to run.
Should not this work with Plug’n’Play ?
Which package we have to install ?

root@colibri-imx7-emmc:~# lsusb
Bus 001 Device 004: ID 1fc9:2047 NXP Semiconductors 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 006: ID 148f:3070 Ralink Technology, Corp. RT2870/RT3070 Wireless Adapter
Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@colibri-imx7-emmc:~# iwconfig 
eth0      no wireless extensions.

lo        no wireless extensions.

can0      no wireless extensions.

root@colibri-imx7-emmc:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:14:2D:2F:10:08  
          inet addr:192.168.1.111  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::214:2dff:fe2f:1008%lo/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:30702 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11329 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:32446552 (30.9 MiB)  TX bytes:1738384 (1.6 MiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1%1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:658789 errors:0 dropped:0 overruns:0 frame:0
          TX packets:658789 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:6131861958 (5.7 GiB)  TX bytes:6131861958 (5.7 GiB)

root@colibri-imx7-emmc:~#

What exact hardware and software versions of things are you talking about?

root@colibri-imx7-emmc:~# cat /proc/modules 
bluetooth 330937 2 - Live 0x7f055000 (O)
compat 21161 1 bluetooth, Live 0x7f04a000 (O)
usb_f_rndis 15714 2 - Live 0x7f041000
u_ether 12516 1 usb_f_rndis, Live 0x7f039000
cdc_acm 17848 2 - Live 0x7f02f000
mcp251x 10221 0 - Live 0x7f028000
can_dev 12326 1 mcp251x, Live 0x7f020000
libcomposite 44125 10 usb_f_rndis, Live 0x7f00e000
configfs 30966 3 usb_f_rndis,libcomposite, Live 0x7f000000
root@colibri-imx7-emmc:~# cat /etc/*-release
VERSION_ID="v2017.12"
NAME="Angstrom"
ID="angstrom"
PRETTY_NAME="The Ångström Distribution v2017.12"
ANSI_COLOR="1;35"
HOME_URL="http://www.angstrom-distribution.org"
root@colibri-imx7-emmc:~# lsb_release -a
Distributor ID: Angstrom
Description:    Angstrom GNU/Linux v2017.12 (Core edition)
Release:        v2017.12
Codename:       Core edition
root@colibri-imx7-emmc:~# cat /proc/version
Linux version 4.9.84-2.8.2+gb2a7f2f (oe-user@oe-host) (gcc version 7.3.0 (GCC) ) #1 SMP Thu Apr 12 22:32:23 UTC 2018
root@colibri-imx7-emmc:~# cat /proc/cpuinfo 
processor	: 0
model name	: ARMv7 Processor rev 5 (v7l)
BogoMIPS	: 20.12
Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x0
CPU part	: 0xc07
CPU revision	: 5

processor	: 1
model name	: ARMv7 Processor rev 5 (v7l)
BogoMIPS	: 20.12
Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x0
CPU part	: 0xc07
CPU revision	: 5

Hardware	: Freescale i.MX7 Dual (Device Tree)
Revision	: 0000
Serial		: 03084296
root@colibri-imx7-emmc:~# 

The wireless adapter is from Alfa AWUS036NEH.

If you need more information, please let me know.

Please note that BSP 2.8b2 is no longer supported according to our support strategy. We since updated to Linux 4.18 based backports as may be seen here. Please update to our latest beta BSP 2.8b4 at your earliest convenience and try again.

Thank you for your answer. Alright, I updated to b4.
Now its seem, that the adapter is detected as a network device, but not for wireless.
Here are now software information:

root@colibri-imx7-emmc:~# cat /proc/modules 
rt2800usb 15546 0 - Live 0x7f1b2000 (O)
rt2x00usb 11743 1 rt2800usb, Live 0x7f1ab000 (O)
rt2800lib 98418 1 rt2800usb, Live 0x7f18c000 (O)
rt2x00lib 45228 3 rt2800usb,rt2x00usb,rt2800lib, Live 0x7f179000 (O)
mac80211 380625 3 rt2x00usb,rt2800lib,rt2x00lib, Live 0x7f105000 (O)
cfg80211 239957 2 rt2x00lib,mac80211, Live 0x7f0b9000 (O)
usb_f_rndis 15714 2 - Live 0x7f0b0000
u_ether 12516 1 usb_f_rndis, Live 0x7f0a8000
bluetooth 330937 2 - Live 0x7f044000 (O)
compat 21161 4 rt2800usb,mac80211,cfg80211,bluetooth, Live 0x7f039000 (O)
cdc_acm 17848 0 - Live 0x7f02f000
mcp251x 10221 0 - Live 0x7f028000
can_dev 12326 1 mcp251x, Live 0x7f020000
libcomposite 44125 10 usb_f_rndis, Live 0x7f00e000
configfs 30966 3 usb_f_rndis,libcomposite, Live 0x7f000000

root@colibri-imx7-emmc:~# cat /etc/*-release
VERSION_ID="v2017.12"
NAME="Angstrom"
ID="angstrom"
PRETTY_NAME="The Ångström Distribution v2017.12"
ANSI_COLOR="1;35"
HOME_URL="http://www.angstrom-distribution.org"
root@colibri-imx7-emmc:~# lsb_release -a
Distributor ID: Angstrom
Description:    Angstrom GNU/Linux v2017.12 (Core edition)
Release:        v2017.12

Codename:       Core edition

root@colibri-imx7-emmc:~# cat /proc/version
Linux version 4.9.87-2.8.4+g524143a (oe-user@oe-host) (gcc version 7.3.0 (GCC) ) #1 SMP Thu Jul 12 04:03:45 UTC 2018

root@colibri-imx7-emmc:~# lsusb
Bus 001 Device 004: ID 1fc9:2047 NXP Semiconductors 
Bus 001 Device 006: ID 148f:3070 Ralink Technology, Corp. RT2870/RT3070 Wireless Adapter
Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

root@colibri-imx7-emmc:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:14:2D:2F:7C:CD  
          inet addr:192.168.1.143  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::214:2dff:fe2f:7ccd%lo/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3563 errors:0 dropped:0 overruns:0 frame:0
          TX packets:742 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:427002 (416.9 KiB)  TX bytes:95652 (93.4 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1%1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:92 errors:0 dropped:0 overruns:0 frame:0
          TX packets:92 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:7570 (7.3 KiB)  TX bytes:7570 (7.3 KiB)

usb0      Link encap:Ethernet  HWaddr 00:14:2D:FF:FF:FF  
          inet addr:192.168.11.1  Bcast:192.168.11.255  Mask:255.255.255.0
          inet6 addr: fe80::214:2dff:feff:ffff%lo/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:93 errors:0 dropped:0 overruns:0 frame:0
          TX packets:43 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:11073 (10.8 KiB)  TX bytes:9946 (9.7 KiB)

root@colibri-imx7-emmc:~# iwconfig
usb0      no wireless extensions.

lo        no wireless extensions.

wlan0     no wireless extensions.

eth0      no wireless extensions.

can0      no wireless extensions.

root@colibri-imx7-emmc:~# ifconfig wlan0 up
root@colibri-imx7-emmc:~# iwconfig
usb0      no wireless extensions.

lo        no wireless extensions.

wlan0     no wireless extensions.

eth0      no wireless extensions.

can0      no wireless extensions.

root@colibri-imx7-emmc:~#

hi @david_korm

Thanks for this Information.

  • Could you provide the complete dmesg log in a file?
  • What is the output of lsmod?
  • Have you done any changes to the software?

Here are dmesg log:

[  167.408358] usb 1-1.1: new high-speed USB device number 4 using ci_hdrc
[  167.758370] usb 1-1.1: reset high-speed USB device number 4 using ci_hdrc
[  167.919200] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 3070, rev 0201 detected
[  167.960000] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 0005 detected
[  167.971757] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[  167.996751] usbcore: registered new interface driver rt2800usb
[  168.011144] ieee80211 phy0: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2870.bin'
[  168.042732] ieee80211 phy0: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.36
[  168.697497] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready

And here are lsmod:

Module                  Size  Used by
rt2800usb              15546  0
rt2x00usb              11743  1 rt2800usb
rt2800lib              98418  1 rt2800usb
rt2x00lib              45228  3 rt2800lib,rt2800usb,rt2x00usb
mac80211              380625  3 rt2800lib,rt2x00lib,rt2x00usb
cfg80211              239957  2 rt2x00lib,mac80211
bluetooth             330937  2
compat                 21161  4 bluetooth,rt2800usb,mac80211,cfg80211
usb_f_rndis            15714  2
u_ether                12516  1 usb_f_rndis
cdc_acm                17848  2
mcp251x                10221  0
can_dev                12326  1 mcp251x
libcomposite           44125  10 usb_f_rndis
configfs               30966  3 usb_f_rndis,libcomposite

We dont have done any changes to the software as we installed from Easy-Installer.

Share the complete dmesg log in a file ( dmesg > log.txt )! Thanks.

Here are the logfile. dmesg log

Thanks for the log. I don’t see any issues. Could you try this to bring wlan0 up?

Wow, now I wanted to return to this topic and surprisingly it works. All the time before I got a error message when I try

connmanctl scan wifi
connmanctl services

I can see the networks around. All what happens were some reboots while I’m working on other topics.
Thank you very much for your patience and help.
Now I’m on the half way. The next task is to configure the adapter as an access point. I can now see the access point from other device, but when I try to connect the device is waiting for an IP and thats all:

Nov 28 23:12:50 colibri-imx7-emmc hostapd[708]: Configuration file: /etc/hostapd.conf
Nov 28 23:12:52 colibri-imx7-emmc hostapd[708]: Using interface wlan0 with hwaddr 00:c0:ca:a5:59:74 and ssid "testdb2"
Nov 28 23:12:52 colibri-imx7-emmc hostapd[708]: wlan0: interface state UNINITIALIZED->ENABLED
Nov 28 23:12:52 colibri-imx7-emmc hostapd[708]: wlan0: AP-ENABLED
Nov 28 23:12:52 colibri-imx7-emmc systemd[1]: hostapd.service: PID file /run/hostapd.pid not readable (yet?) after start: No such file or directory
Nov 28 23:12:52 colibri-imx7-emmc systemd[1]: Started Hostapd IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator.
Nov 28 23:13:48 colibri-imx7-emmc hostapd[709]: wlan0: STA 7c:f9:0e:5b:ef:07 IEEE 802.11: authenticated
Nov 28 23:13:48 colibri-imx7-emmc hostapd[709]: wlan0: STA 7c:f9:0e:5b:ef:07 IEEE 802.11: associated (aid 1)
Nov 28 23:13:48 colibri-imx7-emmc hostapd[709]: wlan0: STA 7c:f9:0e:5b:ef:07 RADIUS: starting accounting session 4756B5E548DEE5E0
Nov 28 23:14:18 colibri-imx7-emmc hostapd[709]: wlan0: STA 7c:f9:0e:5b:ef:07 IEEE 802.11: disassociated
Nov 28 23:14:18 colibri-imx7-emmc hostapd[709]: wlan0: STA 7c:f9:0e:5b:ef:07 IEEE 802.11: disassociated
Nov 28 23:14:20 colibri-imx7-emmc hostapd[709]: wlan0: STA 7c:f9:0e:5b:ef:07 IEEE 802.11: authenticated
Nov 28 23:14:20 colibri-imx7-emmc hostapd[709]: wlan0: STA 7c:f9:0e:5b:ef:07 IEEE 802.11: associated (aid 1)
Nov 28 23:14:20 colibri-imx7-emmc hostapd[709]: wlan0: STA 7c:f9:0e:5b:ef:07 RADIUS: starting accounting session 77028F0FA6E66E00

But thats the topic for tomorrow. As I said thank you very much.

You are very welcome.

I assume you did it e.g. as follows:

https://www.toradex.com/community/questions/1696/how-to-set-up-a-soft-access-point-under-linux-usin.html

Thank you for your answer and happy new year. As all works fine since a month ago I try to finished some loose ends from the last year.
I attached the configfiles with which I got the access point running.
Main problem was to restart some services after the adapter was plug in on a running system or the module was start up after connecting the adapter. So I handle these problem in the configfile for the hostapd, systemd-networkd and systemd-rfkill services.

[Configfiles][1]
[1]: https://share.toradex.com/ymrvc46o3ub2aec?direct

Hi @david_korm
You are welcome and Happy New Year. Thanks very much for the Input.