WiFi Not Working on Udoo Quad

This forum is for supported devices using an ARMv7 Freescale SoC.

WiFi Not Working on Udoo Quad

Postby LDighera » Wed Jan 29, 2014 9:48 pm

Hello,

After installing Arch Linux ARM on my new Udoo Quad computer, I find that WiFi is not operable. Below is the Linux release information:
$this->bbcode_second_pass_quote('', '/')root (mxc1) # uname -a
Linux Udoo 3.0.35-8-ARCH #1 SMP PREEMPT Tue Jan 21 17:32:55 MST 2014 armv7l GNU/Linux


1. I don't find /dev/wlan*.

Here is the output from iwconfig wlan0:
$this->bbcode_second_pass_quote('', ' ') wlan0 IEEE 802.11bgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=0 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on


And here is the output from ifconfig wlan0:
$this->bbcode_second_pass_quote('', '
') wlan0: flags=4098<BROADCAST,MULTICAST> mtu 1500
ether 7c:dd:90:3a:47:21 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

So, obviously wlan0 exists.

2. Udoo documentation fails to mention what wireless hardware is on the Udoo board, but here's a clue as to what driver might be required.

Here is what lsusb shows:
$this->bbcode_second_pass_quote('', '/')root (mxc1) # lsusb
Bus 002 Device 004: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter

/root (mxc1) # lsusb -s 002:004
Bus 002 Device 004: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter
/root (mxc1) # lsusb -vs 002:004

Bus 002 Device 004: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x148f Ralink Technology, Corp.
idProduct 0x5370 RT5370 Wireless Adapter
bcdDevice 1.01
iManufacturer 1 Ralink
iProduct 2 802.11 n WLAN
iSerial 3 1.0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 67
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 450mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 7
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 5 1.0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x04 EP 4 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x05 EP 5 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x06 EP 6 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0000
(Bus Powered)


Here is the output from lsmod:
$this->bbcode_second_pass_quote('', '/')root (mxc1) # lsmod
Module Size Used by
uas 6678 0
ov5640_camera_mipi 19606 0
camera_sensor_clock 702 1 ov5640_camera_mipi
ipv6 280104 16
autofs4 20118 2


I have located what I believe to be the correct wireless driver source:
$this->bbcode_second_pass_quote('', '/')RalinkTechRT5370DriverSource_DPO_RT5572_LinuxSTA_2.6.1.3_20121022.tar.bz2


That archive contains:
$this->bbcode_second_pass_quote('', '/')root/admin/wireless (mxc1) # tar tvf Ral*|less
drwxr-xr-x airbird/airbird 0 2012-10-21 20:52 DPO_RT5572_LinuxSTA_2.6.1.3_20121022/
-rw-r--r-- airbird/airbird 1221 2012-10-21 20:52 DPO_RT5572_LinuxSTA_2.6.1.3_20121022/RT2870STA.dat
drwxr-xr-x airbird/airbird 0 2012-10-21 23:24 DPO_RT5572_LinuxSTA_2.6.1.3_20121022/chips/
-rw-r--r-- airbird/airbird 4430 2012-10-21 20:52 DPO_RT5572_LinuxSTA_2.6.1.3_20121022/chips/rt3370.c
-rw-r--r-- airbird/airbird 30087 2012-10-21 20:52 DPO_RT5572_LinuxSTA_2.6.1.3_20121022/chips/rt30xx.c
-rw-r--r-- airbird/airbird 79283 2012-10-21 20:52 DPO_RT5572_LinuxSTA_2.6.1.3_20121022/chips/rtmp_chip.c
-rw-r--r-- airbird/airbird 6993 2012-10-21 20:52 DPO_RT5572_LinuxSTA_2.6.1.3_20121022/chips/rt3070.c
-rw-r--r-- airbird/airbird 36480 2012-10-21 20:52 DPO_RT5572_LinuxSTA_2.6.1.3_20121022/chips/rt33xx.c
-rw-r--r-- airbird/airbird 73596 2012-10-21 20:52 DPO_RT5572_LinuxSTA_2.6.1.3_20121022/chips/rt5592.c
-rw-r--r-- airbird/airbird 87932 2012-10-21 20:52 DPO_RT5572_LinuxSTA_2.6.1.3_20121022/chips/rt3593.c
-rw-r--r-- airbird/airbird 68461 2012-10-21 20:52 DPO_RT5572_LinuxSTA_2.6.1.3_20121022/chips/rt3290.c
-rw-r--r-- airbird/airbird 111462 2012-10-21 20:52 DPO_RT5572_LinuxSTA_2.6.1.3_2 lines 1-10121022/chips/rt5390.c
-rw-r--r-- airbird/airbird 9181 2012-10-21 20:52 DPO_RT5572_LinuxSTA_2.6.1.3_20121022/chips/rt28xx.c
-rw-r--r-- airbird/airbird 34298 2012-10-21 20:52 DPO_RT5572_LinuxSTA_2.6.1.3_20121022/chips/rt35xx.c
drwxr-xr-x airbird/airbird 0 2012-10-21 23:23 DPO_RT5572_LinuxSTA_2.6.1.3_20121022/tools/
-rw-r--r-- airbird/airbird 5139 2012-10-21 20:52 DPO_RT5572_LinuxSTA_2.6.1.3_20121022/tools/bin2h.c
-rwxr-xr-x root/root 15155 2012-10-21 23:23 DPO_RT5572_LinuxSTA_2.6.1.3_20121022/tools/bin2h
-rw-r--r-- airbird/airbird 57 2012-10-21 20:52 DPO_RT5572_LinuxSTA_2.6.1.3_20121022/tools/Makefile
-rw-r--r-- airbird/airbird 13527 2012-10-21 20:52 DPO_RT5572_LinuxSTA_2.6.1.3_20121022/README_STA_usb
-rw-r--r-- airbird/airbird 613 2012-10-21 20:52 DPO_RT5572_LinuxSTA_2.6.1.3_20121022/RT2870STACard.dat
drwxr-xr-x airbird/airbird 0 2012-10-21 23:24 DPO_RT5572_LinuxSTA_2.6.1.3_20121022/sta/
-rw-r--r-- airbird/airbird 80332 2012-10-21 20:52 DPO_RT5572_LinuxSTA_2.6.1.3_20121022/sta/dls.c
-rw-r--r-- airbird/airbird 95892 2012-10-21 20:52 DPO_RT5572_LinuxSTA_2.6.1.3_20121022/sta/rtmp_data.c
... (and much more, of course)
I do find:
$this->bbcode_second_pass_quote('', '
')/usr/lib/firmware/rt3070.bin
/usr/lib/firmware/rt3290.bin

But I'm not knowledgeable enough to know how to test either of those firmware packages/drivers to see if they might enable wireless support, and presumably the appropriate one would be configured in the Arch Linux ARM distribution.

Systemctl -a shows this:
$this->bbcode_second_pass_quote('', 's')ys-devi...et-wlan0.device loaded active plugged RT5370 Wireless Adapter
sys-subs...es-wlan0.device loaded active plugged RT5370 Wireless Adapter
auditd.service not-found inactive dead auditd.service
display-manager.service not-found inactive dead display-manager.service
plymouth-quit-wait.service not-found inactive dead plymouth-quit-wait.servi
plymouth-start.service not-found inactive dead plymouth-start.service
syslog.service not-found inactive dead syslog.service
(edited for brevity)

Here's some of what I found with: journalctl -b:
$this->bbcode_second_pass_quote('', '
')...
Dec 31 16:00:42 Udoo login[173]: ROOT LOGIN ON tty1
Dec 31 16:00:42 Udoo systemd[175]: Failed to make us a subreaper: Invalid argume
Dec 31 16:00:42 Udoo systemd[175]: Perhaps the kernel version is too old (< 3.4?
Dec 31 16:00:42 Udoo systemd[1]: Started Session c1 of user root.
Dec 31 16:00:42 Udoo systemd[175]: Failed to open private bus connection: Failed
Dec 31 16:00:42 Udoo systemd[175]: Stopped target Sound Card.
...
Jan 29 12:19:19 Udoo login[174]: ROOT LOGIN ON ttymxc1
Jan 29 12:27:49 Udoo systemd[1]: Starting system-netctl\x2dauto.slice.
Jan 29 12:27:49 Udoo systemd[1]: Created slice system-netctl\x2dauto.slice.
Jan 29 12:27:49 Udoo systemd[1]: Starting Automatic wireless network connection
Jan 29 12:27:50 Udoo netctl-auto[479]: Included profile 'Dighera_static'
Jan 29 12:27:50 Udoo netctl-auto[479]: Included profile 'Dighera_wpa'
Jan 29 12:27:50 Udoo netctl-auto[479]: Included profile 'wlan0_wpa'
Jan 29 12:27:51 Udoo systemd[1]: Started Automatic wireless network connection u
Jan 29 12:27:51 Udoo systemd[1]: Starting Network.
Jan 29 12:27:51 Udoo systemd[1]: Reached target Network.
Jan 29 12:27:51 Udoo wpa_actiond[505]: Starting wpa_actiond session for interfac
Jan 29 12:28:07 Udoo dhcpcd[652]: dhcpcd not running
Jan 29 12:33:03 Udoo systemd[1]: Starting Cleanup of Temporary Directories...


Systemctl shows:
$this->bbcode_second_pass_quote('', 'n')etctl-auto@wlan0.service loaded active running Automatic wireless network c


dmesg -L auto -T shows many lines like this:
$this->bbcode_second_pass_quote('', '[')Wed Jan 29 13:28:04 2014] wlan0: 00:18:4d:02:1e:be denied authentication (status 1)

All else, including Ethernet connection, appears to work as expected. Wireless works as expected under Ubuntu, so the hardware appears to be functional.

I find Arch Linux runs circles around Ubuntu with Xfce4 installed. In all, Arch a dream to use on the Udoo board.

Any clues as to how to enable WiFi functionality very much appreciated.

Best regards,
Larry
LDighera@att.net
LDighera
 
Posts: 13
Joined: Sat Feb 09, 2013 9:35 pm
Location: California, USA
Top

Re: WiFi Not Working on Udoo Quad

Postby kmihelich » Wed Jan 29, 2014 10:45 pm

Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: WiFi Not Working on Udoo Quad

Postby LDighera » Thu Jan 30, 2014 3:25 am

$this->bbcode_second_pass_quote('', '
')Re: WiFi Not Working on Udoo Quad

Unread postby kmihelich » Wed Jan 29, 2014 2:45 pm
https://wiki.archlinux.org/index.php/Wireless


Thank you very much for the prompt and informative reply. Although I thought I had read that page long ago, it appears to have been significantly updated, and will keep me busy for some time.

However, I was expecting Arch Linux ARM wireless networking to be functional by default in the distribution, as it is in the Ubuntu distro.

I've attempted: 'modprobe rt2500usb' with the result:
$this->bbcode_second_pass_quote('', 'm')odprobe: ERROR: missing parameters. See -h.

This error message implies that a '-h' option will shed some light on the cause of the error, however 'modprobe -h' yields instead: $this->bbcode_second_pass_quote('', 'm')odprobe: ERROR: missing parameters. See -h.

And 'man modprobe' fails to contain a '-h' option, so I've been using '-v', which suppresses the error messages, but fails to load the rt2500usb module as verified with lsmod.

At least I'm learning a lot about the system mechanics.

Many thanks for the help.

Best regards,
Larry
UNIX is simple. It just takes a genius to understand its simplicity. --Dennis Ritchie
LDighera
 
Posts: 13
Joined: Sat Feb 09, 2013 9:35 pm
Location: California, USA
Top

Re: WiFi Not Working on Udoo Quad

Postby pepedog » Thu Jan 30, 2014 9:12 am

Just assume module is builtin to kernel and doesn't show in lsmod, and try wifi-menu
https://wiki.archlinux.org/index.php/Ne ... figuration
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: WiFi Not Working on Udoo Quad

Postby LDighera » Mon Feb 10, 2014 10:59 pm

Many thanks for your assistance.

I've done a lot of testing and reading on the link your provided and the links in the pages. I've found that invoking wpa_supplicant with the '-d' debug option to be very informative.

Here's a copy of my wpa_supplicant .conf file with obfuscated ASCII text 'secret_pass_key' and wpa_passphrase generated 'hex_pass_key':

$this->bbcode_second_pass_code('', '/root (mxc1) # cat /etc/wpa_supplicant/wpa_*conf
##### wpa_supplicant configuration file: LGD Mon Feb 10 13:18:19 PST 2014
ctrl_interface=DIR=/run/wpa_supplicant GROUP=wheel
dot11RSNAConfigSATimeout=60
#eapol_version=1
#ap_scan=1
#fast_reauth=1
#country=US

# Only WPA-PSK is used. Any valid cipher combination is accepted.
network={
ssid="Dighera"
# scan_ssid=1
proto=WPA WPA2
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk="secret_pass_key"
# psk=hex_pass_key
priority=2
}


network={
ssid="NETGEAR32"
proto=WPA WPA2
key_mgmt=WPA-PSK
pairwise=CCMP
group=CCMP
#psk="secret_pass_key"
psk=hex_pass_key
priority=4
}

# Catch all example that allows more or less all configuration modes
network={
ssid="Dighera"
scan_ssid=1
key_mgmt=WPA-EAP WPA-PSK IEEE8021X NONE
pairwise=CCMP TKIP
group=CCMP TKIP WEP104 WEP40
#psk="secret_pass_key"
psk=hex_pass_key
eap=TTLS PEAP TLS
}
')
This wpa_supplicant.conf file works on the Raspberry Pi. My wireless routers do not broadcast SSID.

Here is the state of wlan0 before invoking wpa_supplicant:
$this->bbcode_second_pass_code('', '/root (mxc1) # ip link show wlan0
3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DORMANT group default qlen 1000
link/ether 7c:dd:90:3a:47:21 brd ff:ff:ff:ff:ff:ff
')

And here is the output from wpa_supplicant with the -d option:
$this->bbcode_second_pass_code('', '/root (5) # wpa_supplicant -B -c/etc/wpa_supplicant/wpa_supplicant.conf -iwlan0 -d
wpa_supplicant v2.0
Successfully initialized wpa_supplicant
Initializing interface 'wlan0' conf '/etc/wpa_supplicant/wpa_supplicant.conf' driver 'default' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant/wpa_supplicant.conf' -> '/etc/wpa_supplicant/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant/wpa_supplicant.conf'
ctrl_interface='DIR=/run/wpa_supplicant GROUP=wheel'
dot11RSNAConfigSATimeout=60
Priority group 4
id=1 ssid='NETGEAR32'
Priority group 2
id=0 ssid='Dighera'
Priority group 0
id=2 ssid='Dighera'
WEXT: cfg80211-based driver detected
wext: interface wlan0 phy: phy0
rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf
capabilities: key_mgmt 0xf enc 0x1f flags 0x0
netlink: Operstate: linkmode=1, operstate=5
wlan0: Own MAC address: 7c:dd:90:3a:47:21
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 sec 100000 usec
WPS: Set UUID for interface wlan0
WPS: UUID based on MAC address - hexdump(len=16): 38 58 74 a7 3a b9 53 27 b8 e1 a2 f1 e0 82 19 99
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
EAPOL: Supplicant port status: Unauthorized
EAPOL: Supplicant port status: Unauthorized
ctrl_interface_group=10 (from group name 'wheel')
wlan0: Added interface wlan0
wlan0: State: DISCONNECTED -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
netlink: Operstate: linkmode=-1, operstate=5
Daemonize..
')
This appears to suggest that wpa_supplicant isn't using the passkey in its .conf file for some reason.

Once wpa_supplicant is running in daemon mode, invoking dhcpcd results in:
$this->bbcode_second_pass_code('', '/root (mxc1) # dhcpcd -d -A wlan0
dhcpcd[3645]: version 6.2.1 starting
dhcpcd[3645]: wlan0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks' PREINIT
dhcpcd[3645]: wlan0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks' NOCARRIER
dhcpcd[3645]: wlan0: waiting for carrier
dhcpcd[3645]: timed out
dhcpcd[3645]: exited
')

Any clues appreciated.

Best regards,
Larry
LDighera
 
Posts: 13
Joined: Sat Feb 09, 2013 9:35 pm
Location: California, USA

Re: WiFi Not Working on Udoo Quad

Postby QueNenni » Tue Feb 11, 2014 12:50 pm

Hi,

I have installed Archlinux on my Udoo Quad last week and the wifi is working without having to install any additional driver.

My router is using WPA2, I used the "spa_passphrase" command to generate the spa-supplicant conf file as described here: https://wiki.archlinux.org/index.php/WPA_Supplicant

This is what my spa-supplicant conf file looks like:
$this->bbcode_second_pass_code('', 'network={
ssid="myssid"
#psk="passkey"
psk=hexpasskey
}')

My Linux knowledge is very limited so let me know what commands I can run to help you.
QueNenni
 
Posts: 1
Joined: Thu Feb 06, 2014 5:55 pm


Return to Freescale

Who is online

Users browsing this forum: No registered users and 11 guests