problem with wlan0 on Jetson TX2

Hi
I’m new to the forum.
I’ve received my Jetson TX2 development Kit. I’ve run the brand new kit just out of the box without any problem, and connected it to my wifi network.
I decided to install the new JetPack 3.
The installation process was fine, but from that very moment the wireless wlan0 on the Jetson stopped working.
Can you help?
Thanks in advance
Regards
Pierluigi

I’m unable to debug WiFi issues, but you will want to show the output of “iwconfig”.

Thanks for your answer!

$ iwconfig
lo        no wireless extensions.
dummy0    no wireless extensions.
wlan0     no wireless extensions.
eth0      no wireless extensions.

Pierluigi,

Have you tried to use NetowrkManager to connect your wifi ap?
Do you see any error message when failed?

Hi Wayne
I can’t see any wlan in my network manager.

if I use the command ifconfig, only eth0 and lo are listed. when I run the command ifconfig -a , dummy0 and wlan0 appear.

I’m quite desperate.

Pierluigi,

Have you tried “sudo ifconfig wlan0 up” ?

sure… I’ve tried it
response is as follows. When I try

sudo ifconfig wlan0 up

it says:

sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set

when I run just

ifconfig wlan0 up

it says:

SIOCSIFFLAGS: Operation not permitted

This might explain a lot:

sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set

It sounds like permissions were not preserved when creating the rootfs image. This would be a big problem for several parts of the system. On the host used for flashing, is the rootfs subdirectory type ext4? If you cd to that “/where/ever/it/is/Linux_for_Tegra/rootfs/” and run “df -H -T .”, does it show ext4? If it is a non-Linux system, e.g., NTFS, then it is guaranteed to fail (the flash will work, but the file system flashed will be invalid…non-Linux file systems can’t preserve Linux permissions).

Pierluigi,

Please reinstall jetpack and try again.

I also have trouble in this problem.

nvidia@tegra-ubuntu:/var/run$ sudo wpa_supplicant -iwlan0 -Dwext -c/etc/wpa_supplicant.conf -dd -B
wpa_supplicant v2.4
random: Trying to read entropy from /dev/random
Successfully initialized wpa_supplicant
Initializing interface ‘wlan0’ conf ‘/etc/wpa_supplicant.conf’ driver ‘wext’ ctrl_interface ‘N/A’ bridge ‘N/A’
Configuration file ‘/etc/wpa_supplicant.conf’ → ‘/etc/wpa_supplicant.conf’
Reading configuration file ‘/etc/wpa_supplicant.conf’
ctrl_interface=‘/var/run/wpa_supplicant’
eapol_version=1
ap_scan=1
fast_reauth=1
Line: 680 - start of a new network block
ssid - hexdump_ascii(len=6):
73 69 6d 70 6c 65 simple
PSK (ASCII passphrase) - hexdump_ascii(len=22): [REMOVED]
priority=5 (0x5)
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Line: 688 - start of a new network block
ssid - hexdump_ascii(len=11):
73 65 63 6f 6e 64 20 73 73 69 64 second ssid
scan_ssid=1 (0x1)
PSK (ASCII passphrase) - hexdump_ascii(len=22): [REMOVED]
priority=2 (0x2)
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Line: 696 - start of a new network block
ssid - hexdump_ascii(len=7):
65 78 61 6d 70 6c 65 example
proto: 0x1
key_mgmt: 0x2
pairwise: 0x18
group: 0x1e
PSK - hexdump(len=32): [REMOVED]
priority=2 (0x2)
Line: 707 - start of a new network block
ssid - hexdump_ascii(len=7):
65 78 61 6d 70 6c 65 example
proto: 0x1
key_mgmt: 0x2
pairwise: 0x8
group: 0x8
PSK (ASCII passphrase) - hexdump_ascii(len=24): [REMOVED]
wpa_ptk_rekey=600 (0x258)
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Line: 719 - start of a new network block
ssid - hexdump_ascii(len=7):
65 78 61 6d 70 6c 65 example
proto: 0x2
key_mgmt: 0x1
pairwise: 0x18
group: 0x18
eap methods - hexdump(len=16): 00 00 00 00 0d 00 00 00 00 00 00 00 00 00 00 00
identity - hexdump_ascii(len=16):
75 73 65 72 40 65 78 61 6d 70 6c 65 2e 63 6f 6d user@example.com
ca_cert - hexdump_ascii(len=16):
2f 65 74 63 2f 63 65 72 74 2f 63 61 2e 70 65 6d /etc/cert/ca.pem
client_cert - hexdump_ascii(len=18):
2f 65 74 63 2f 63 65 72 74 2f 75 73 65 72 2e 70 /etc/cert/user.p
65 6d em
private_key - hexdump_ascii(len=18):
2f 65 74 63 2f 63 65 72 74 2f 75 73 65 72 2e 70 /etc/cert/user.p
72 76 rv
private_key_passwd - hexdump_ascii(len=8): [REMOVED]
priority=1 (0x1)
Line: 736 - start of a new network block
ssid - hexdump_ascii(len=7):
65 78 61 6d 70 6c 65 example
key_mgmt: 0x1
eap methods - hexdump(len=16): 00 00 00 00 19 00 00 00 00 00 00 00 00 00 00 00
identity - hexdump_ascii(len=16):
75 73 65 72 40 65 78 61 6d 70 6c 65 2e 63 6f 6d user@example.com
password - hexdump_ascii(len=6): [REMOVED]
ca_cert - hexdump_ascii(len=16):
2f 65 74 63 2f 63 65 72 74 2f 63 61 2e 70 65 6d /etc/cert/ca.pem
phase1 - hexdump_ascii(len=11):
70 65 61 70 6c 61 62 65 6c 3d 31 peaplabel=1
phase2 - hexdump_ascii(len=13):
61 75 74 68 3d 4d 53 43 48 41 50 56 32 auth=MSCHAPV2
priority=10 (0xa)
Line: 750 - start of a new network block
ssid - hexdump_ascii(len=7):
65 78 61 6d 70 6c 65 example
key_mgmt: 0x1
eap methods - hexdump(len=16): 00 00 00 00 15 00 00 00 00 00 00 00 00 00 00 00
identity - hexdump_ascii(len=16):
75 73 65 72 40 65 78 61 6d 70 6c 65 2e 63 6f 6d user@example.com
anonymous_identity - hexdump_ascii(len=21):
61 6e 6f 6e 79 6d 6f 75 73 40 65 78 61 6d 70 6c anonymous@exampl
65 2e 63 6f 6d e.com
password - hexdump_ascii(len=6): [REMOVED]
ca_cert - hexdump_ascii(len=16):
2f 65 74 63 2f 63 65 72 74 2f 63 61 2e 70 65 6d /etc/cert/ca.pem
priority=2 (0x2)
Line: 763 - start of a new network block
ssid - hexdump_ascii(len=7):
65 78 61 6d 70 6c 65 example
key_mgmt: 0x1
eap methods - hexdump(len=16): 00 00 00 00 15 00 00 00 00 00 00 00 00 00 00 00
identity - hexdump_ascii(len=16):
75 73 65 72 40 65 78 61 6d 70 6c 65 2e 63 6f 6d user@example.com
anonymous_identity - hexdump_ascii(len=21):
61 6e 6f 6e 79 6d 6f 75 73 40 65 78 61 6d 70 6c anonymous@exampl
65 2e 63 6f 6d e.com
password - hexdump_ascii(len=6): [REMOVED]
ca_cert - hexdump_ascii(len=16):
2f 65 74 63 2f 63 65 72 74 2f 63 61 2e 70 65 6d /etc/cert/ca.pem
phase2 - hexdump_ascii(len=13):
61 75 74 68 3d 4d 53 43 48 41 50 56 32 auth=MSCHAPV2
Line: 776 - start of a new network block
ssid - hexdump_ascii(len=7):
65 78 61 6d 70 6c 65 example
key_mgmt: 0x1
eap methods - hexdump(len=16): 00 00 00 00 15 00 00 00 00 00 00 00 00 00 00 00
anonymous_identity - hexdump_ascii(len=21):
61 6e 6f 6e 79 6d 6f 75 73 40 65 78 61 6d 70 6c anonymous@exampl
65 2e 63 6f 6d e.com
ca_cert - hexdump_ascii(len=16):
2f 65 74 63 2f 63 65 72 74 2f 63 61 2e 70 65 6d /etc/cert/ca.pem
phase2 - hexdump_ascii(len=11):
61 75 74 68 65 61 70 3d 54 4c 53 autheap=TLS
ca_cert2 - hexdump_ascii(len=17):
2f 65 74 63 2f 63 65 72 74 2f 63 61 32 2e 70 65 /etc/cert/ca2.pe
6d m
client_cert2 - hexdump_ascii(len=17):
2f 65 74 63 2f 63 65 72 2f 75 73 65 72 2e 70 65 /etc/cer/user.pe
6d m
private_key2 - hexdump_ascii(len=17):
2f 65 74 63 2f 63 65 72 2f 75 73 65 72 2e 70 72 /etc/cer/user.pr
76 v
private_key2_passwd - hexdump_ascii(len=8): [REMOVED]
priority=2 (0x2)
Line: 794 - start of a new network block
ssid - hexdump_ascii(len=7):
65 78 61 6d 70 6c 65 example
BSSID - hexdump(len=6): 00 11 22 33 44 55
proto: 0x3
key_mgmt: 0x3
pairwise: 0x10
group: 0x10
PSK - hexdump(len=32): [REMOVED]
Line: 806 - start of a new network block
ssid - hexdump_ascii(len=4):
00 01 02 03 ____
PSK - hexdump(len=32): [REMOVED]
Line: 813 - start of a new network block
ssid - hexdump_ascii(len=12):
65 61 70 2d 73 69 6d 2d 74 65 73 74 eap-sim-test
key_mgmt: 0x1
eap methods - hexdump(len=16): 00 00 00 00 12 00 00 00 00 00 00 00 00 00 00 00
pin - hexdump_ascii(len=4): [REMOVED]
pcsc - hexdump_ascii(len=0):
Line: 823 - start of a new network block
ssid - hexdump_ascii(len=12):
65 61 70 2d 70 73 6b 2d 74 65 73 74 eap-psk-test
key_mgmt: 0x1
eap methods - hexdump(len=16): 00 00 00 00 2f 00 00 00 00 00 00 00 00 00 00 00
anonymous_identity - hexdump_ascii(len=12):
65 61 70 5f 70 73 6b 5f 75 73 65 72 eap_psk_user
password - hexdump_ascii(len=16): [REMOVED]
identity - hexdump_ascii(len=24):
65 61 70 5f 70 73 6b 5f 75 73 65 72 40 65 78 61 eap_psk_user@exa
6d 70 6c 65 2e 63 6f 6d mple.com
Line: 836 - start of a new network block
ssid - hexdump_ascii(len=7):
31 78 2d 74 65 73 74 1x-test
key_mgmt: 0x8
eap methods - hexdump(len=16): 00 00 00 00 0d 00 00 00 00 00 00 00 00 00 00 00
identity - hexdump_ascii(len=16):
75 73 65 72 40 65 78 61 6d 70 6c 65 2e 63 6f 6d user@example.com
ca_cert - hexdump_ascii(len=16):
2f 65 74 63 2f 63 65 72 74 2f 63 61 2e 70 65 6d /etc/cert/ca.pem
client_cert - hexdump_ascii(len=18):
2f 65 74 63 2f 63 65 72 74 2f 75 73 65 72 2e 70 /etc/cert/user.p
65 6d em
private_key - hexdump_ascii(len=18):
2f 65 74 63 2f 63 65 72 74 2f 75 73 65 72 2e 70 /etc/cert/user.p
72 76 rv
private_key_passwd - hexdump_ascii(len=8): [REMOVED]
eapol_flags=3 (0x3)
Line: 850 - start of a new network block
ssid - hexdump_ascii(len=12):
6c 65 61 70 2d 65 78 61 6d 70 6c 65 leap-example
key_mgmt: 0x8
eap methods - hexdump(len=16): 00 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00
identity - hexdump_ascii(len=4):
75 73 65 72 user
password - hexdump_ascii(len=6): [REMOVED]
Line: 859 - start of a new network block
ssid - hexdump_ascii(len=13):
69 6b 65 76 32 2d 65 78 61 6d 70 6c 65 ikev2-example
key_mgmt: 0x1
eap methods - hexdump(len=16): 00 00 00 00 31 00 00 00 00 00 00 00 00 00 00 00
identity - hexdump_ascii(len=4):
75 73 65 72 user
password - hexdump_ascii(len=6): [REMOVED]
Line: 868 - start of a new network block
ssid - hexdump_ascii(len=13):
65 61 70 2d 66 61 73 74 2d 74 65 73 74 eap-fast-test
key_mgmt: 0x1
eap methods - hexdump(len=16): 00 00 00 00 2b 00 00 00 00 00 00 00 00 00 00 00
anonymous_identity - hexdump_ascii(len=17):
46 41 53 54 2d 30 30 30 31 30 32 30 33 30 34 30 FAST-00010203040
35 5
identity - hexdump_ascii(len=8):
75 73 65 72 6e 61 6d 65 username
password - hexdump_ascii(len=8): [REMOVED]
phase1 - hexdump_ascii(len=19):
66 61 73 74 5f 70 72 6f 76 69 73 69 6f 6e 69 6e fast_provisionin
67 3d 31 g=1
pac_file - hexdump_ascii(len=32):
2f 65 74 63 2f 77 70 61 5f 73 75 70 70 6c 69 63 /etc/wpa_supplic
61 6e 74 2e 65 61 70 2d 66 61 73 74 2d 70 61 63 ant.eap-fast-pac
Line: 879 - start of a new network block
ssid - hexdump_ascii(len=13):
65 61 70 2d 66 61 73 74 2d 74 65 73 74 eap-fast-test
key_mgmt: 0x1
eap methods - hexdump(len=16): 00 00 00 00 2b 00 00 00 00 00 00 00 00 00 00 00
anonymous_identity - hexdump_ascii(len=17):
46 41 53 54 2d 30 30 30 31 30 32 30 33 30 34 30 FAST-00010203040
35 5
identity - hexdump_ascii(len=8):
75 73 65 72 6e 61 6d 65 username
password - hexdump_ascii(len=8): [REMOVED]
phase1 - hexdump_ascii(len=19):
66 61 73 74 5f 70 72 6f 76 69 73 69 6f 6e 69 6e fast_provisionin
67 3d 31 g=1
pac_file - hexdump_ascii(len=19):
62 6c 6f 62 3a 2f 2f 65 61 70 2d 66 61 73 74 2d blob://eap-fast-
70 61 63 pac
Line: 891 - start of a new network block
ssid - hexdump_ascii(len=14):
70 6c 61 69 6e 74 65 78 74 2d 74 65 73 74 plaintext-test
key_mgmt: 0x4
Line: 898 - start of a new network block
ssid - hexdump_ascii(len=15):
73 74 61 74 69 63 2d 77 65 70 2d 74 65 73 74 static-wep-test
key_mgmt: 0x4
wep_key0 - hexdump(len=5): [REMOVED]
wep_key1 - hexdump(len=5): [REMOVED]
wep_key2 - hexdump(len=13): [REMOVED]
wep_tx_keyidx=0 (0x0)
priority=5 (0x5)
Line: 911 - start of a new network block
ssid - hexdump_ascii(len=16):
73 74 61 74 69 63 2d 77 65 70 2d 74 65 73 74 32 static-wep-test2
key_mgmt: 0x4
wep_key0 - hexdump(len=5): [REMOVED]
wep_key1 - hexdump(len=5): [REMOVED]
wep_key2 - hexdump(len=13): [REMOVED]
wep_tx_keyidx=0 (0x0)
priority=5 (0x5)
auth_alg: 0x2
Line: 924 - start of a new network block
ssid - hexdump_ascii(len=10):
74 65 73 74 20 61 64 68 6f 63 test adhoc
mode=1 (0x1)
frequency=2412 (0x96c)
proto: 0x1
key_mgmt: 0x10
pairwise: 0x1
group: 0x8
PSK (ASCII passphrase) - hexdump_ascii(len=17): [REMOVED]
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Line: 937 - start of a new network block
ssid - hexdump_ascii(len=7):
65 78 61 6d 70 6c 65 example
scan_ssid=1 (0x1)
key_mgmt: 0xf
pairwise: 0x18
group: 0x1e
PSK (ASCII passphrase) - hexdump_ascii(len=22): [REMOVED]
eap methods - hexdump(len=32): 00 00 00 00 15 00 00 00 00 00 00 00 19 00 00 00 00 00 00 00 0d 00 00 00 00 00 00 00 00 00 00 00
identity - hexdump_ascii(len=16):
75 73 65 72 40 65 78 61 6d 70 6c 65 2e 63 6f 6d user@example.com
password - hexdump_ascii(len=6): [REMOVED]
ca_cert - hexdump_ascii(len=16):
2f 65 74 63 2f 63 65 72 74 2f 63 61 2e 70 65 6d /etc/cert/ca.pem
client_cert - hexdump_ascii(len=18):
2f 65 74 63 2f 63 65 72 74 2f 75 73 65 72 2e 70 /etc/cert/user.p
65 6d em
private_key - hexdump_ascii(len=18):
2f 65 74 63 2f 63 65 72 74 2f 75 73 65 72 2e 70 /etc/cert/user.p
72 76 rv
private_key_passwd - hexdump_ascii(len=8): [REMOVED]
phase1 - hexdump_ascii(len=11):
70 65 61 70 6c 61 62 65 6c 3d 30 peaplabel=0
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Line: 955 - start of a new network block
ssid - hexdump_ascii(len=7):
65 78 61 6d 70 6c 65 example
key_mgmt: 0x1
eap methods - hexdump(len=16): 00 00 00 00 0d 00 00 00 00 00 00 00 00 00 00 00
proto: 0x2
pairwise: 0x18
group: 0x18
identity - hexdump_ascii(len=16):
75 73 65 72 40 65 78 61 6d 70 6c 65 2e 63 6f 6d user@example.com
ca_cert - hexdump_ascii(len=16):
2f 65 74 63 2f 63 65 72 74 2f 63 61 2e 70 65 6d /etc/cert/ca.pem
client_cert - hexdump_ascii(len=18):
2f 65 74 63 2f 63 65 72 74 2f 75 73 65 72 2e 70 /etc/cert/user.p
65 6d em
engine=1 (0x1)
engine_id - hexdump_ascii(len=6):
70 6b 63 73 31 31 pkcs11
key_id - hexdump_ascii(len=5):
69 64 5f 34 35 id_45
pin - hexdump_ascii(len=4): [REMOVED]
Line: 988 - start of a new network block
ssid - hexdump_ascii(len=7):
65 78 61 6d 70 6c 65 example
key_mgmt: 0x1
eap methods - hexdump(len=16): 00 00 00 00 15 00 00 00 00 00 00 00 00 00 00 00
identity - hexdump_ascii(len=16):
75 73 65 72 40 65 78 61 6d 70 6c 65 2e 63 6f 6d user@example.com
anonymous_identity - hexdump_ascii(len=21):
61 6e 6f 6e 79 6d 6f 75 73 40 65 78 61 6d 70 6c anonymous@exampl
65 2e 63 6f 6d e.com
password - hexdump_ascii(len=6): [REMOVED]
ca_cert - hexdump_ascii(len=18):
62 6c 6f 62 3a 2f 2f 65 78 61 6d 70 6c 65 62 6c blob://examplebl
6f 62 ob
priority=20 (0x14)
Line: 999 - start of a new named blob ‘exampleblob’
Line: 1006 - start of a new network block
key_mgmt: 0x4
Priority group 20
id=24 ssid=‘example’
Priority group 10
id=5 ssid=‘example’
Priority group 5
id=0 ssid=‘simple’
id=19 ssid=‘static-wep-test’
id=20 ssid=‘static-wep-test2’
Priority group 2
id=1 ssid=‘second ssid’
id=2 ssid=‘example’
id=6 ssid=‘example’
id=8 ssid=‘example’
Priority group 1
id=4 ssid=‘example’
Priority group 0
id=3 ssid=‘example’
id=7 ssid=‘example’
id=9 ssid=‘example’
id=10 ssid=‘\x00\x01\x02\x03’
id=11 ssid=‘eap-sim-test’
id=12 ssid=‘eap-psk-test’
id=13 ssid=‘1x-test’
id=14 ssid=‘leap-example’
id=15 ssid=‘ikev2-example’
id=16 ssid=‘eap-fast-test’
id=17 ssid=‘eap-fast-test’
id=18 ssid=‘plaintext-test’
id=21 ssid=‘test adhoc’
id=22 ssid=‘example’
id=23 ssid=‘example’
id=25 ssid=‘’
WEXT: cfg80211-based driver detected
wext: interface wlan0 phy: phy0
rfkill: initial event: idx=0 type=2 op=0 soft=1 hard=0
rfkill: initial event: idx=1 type=1 op=0 soft=0 hard=0
rfkill: initial event: idx=2 type=1 op=0 soft=0 hard=0
ioctl[SIOCSIWPMKSA]: Invalid argument
ioctl[SIOCSIWMODE]: Invalid argument
Could not configure driver to use managed mode
ioctl[SIOCGIWRANGE]: Invalid argument
ioctl[SIOCGIWMODE]: Invalid argument
ioctl[SIOCSIWAP]: Invalid argument
WEXT: Failed to clear BSSID selection on disconnect
ioctl[SIOCSIWESSID]: Invalid argument
WEXT: Failed to clear SSID on disconnect
netlink: Operstate: ifindex=4 linkmode=1 (userspace-control), operstate=5 (IF_OPER_DORMANT)
WEXT: SIOCSIWAUTH(param 7 value 0x1) failed: Invalid argument)
Add interface wlan0 to a new radio phy0
wlan0: Own MAC address: 00:04:4b:8c:52:43
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
ioctl[SIOCSIWENCODEEXT]: Invalid argument
Driver did not support SIOCSIWENCODEEXT
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
ioctl[SIOCSIWENCODEEXT]: Invalid argument
Driver did not support SIOCSIWENCODEEXT
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
ioctl[SIOCSIWENCODEEXT]: Invalid argument
Driver did not support SIOCSIWENCODEEXT
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
ioctl[SIOCSIWENCODEEXT]: Invalid argument
Driver did not support SIOCSIWENCODEEXT
wpa_driver_wext_set_key: alg=0 key_idx=4 set_tx=0 seq_len=0 key_len=0
ioctl[SIOCSIWENCODEEXT]: Invalid argument
Driver did not support SIOCSIWENCODEEXT
wpa_driver_wext_set_key: alg=0 key_idx=5 set_tx=0 seq_len=0 key_len=0
ioctl[SIOCSIWENCODEEXT]: Invalid argument
Driver did not support SIOCSIWENCODEEXT
wpa_driver_wext_set_countermeasures
WEXT: SIOCSIWAUTH(param 4 value 0x0) failed: Invalid argument)
wlan0: RSN: flushing PMKID list in the driver
ioctl[SIOCSIWPMKSA]: Invalid argument
wlan0: Setting scan request: 0.100000 sec
TDLS: TDLS operation supported by driver
TDLS: Driver uses internal link setup
TDLS: Driver does not support TDLS channel switching
wlan0: WPS: UUID based on MAC address: 63a19db4-beb4-5a91-becb-560351f9035b
ENGINE: Loading dynamic engine
ENGINE: Loading dynamic engine
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
Using existing control interface directory.
ctrl_iface bind(PF_UNIX) failed: Address already in use
ctrl_iface exists and seems to be in use - cannot override it
Delete ‘/var/run/wpa_supplicant/wlan0’ manually if it is not used anymore
Failed to initialize control interface ‘/var/run/wpa_supplicant’.
You may have another wpa_supplicant process already running or the file was
left by an unclean termination of wpa_supplicant in which case you will need
to manually remove this file before starting wpa_supplicant again.

Failed to add interface wlan0
wlan0: Request to deauthenticate - bssid=00:00:00:00:00:00 pending_bssid=00:00:00:00:00:00 reason=3 state=DISCONNECTED
TDLS: Tear down peers
wlan0: State: DISCONNECTED → DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=4 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
wpa_driver_wext_set_countermeasures
WEXT: SIOCSIWAUTH(param 4 value 0x0) failed: Invalid argument)
wlan0: WPA: Clear old PMK and PTK
wlan0: Cancelling scan request
wlan0: Cancelling authentication timeout
Remove interface wlan0 from radio phy0
Remove radio phy0
WEXT: SIOCSIWAUTH(param 7 value 0x0) failed: Invalid argument)
ioctl[SIOCGIWMODE]: Invalid argument
ioctl[SIOCSIWAP]: Invalid argument
WEXT: Failed to clear BSSID selection on disconnect
ioctl[SIOCSIWESSID]: Invalid argument
WEXT: Failed to clear SSID on disconnect
netlink: Operstate: ifindex=4 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)

@permy, your issue is likely from a different cause than that of @Pierluigi. In your case you may want to start a new thread; in the case of @Pierluigi, you’ll need to flash again and be careful to use sudo when required if manually running the flash, and also being careful that any kind of VM or other host uses a native Linux file system (e.g., use ext4, never use NTFS, VFAT or HFS).

Using existing control interface directory.
ctrl_iface bind(PF_UNIX) failed: Address already in use
ctrl_iface exists and seems to be in use - cannot override it
Delete '/var/run/wpa_supplicant/wlan0' manually if it is not used anymore
Failed to initialize control interface '/var/run/wpa_supplicant'.
You may have another wpa_supplicant process already running or the file was
left by an unclean termination of wpa_supplicant in which case you will need
to manually remove this file before starting wpa_supplicant again.

I had the same issue than Pierluigi and when tried this command, it did work. Thanks !

Pierluigi,

Could you reflash the device with jetpack and try “sudo iw dev wlan0 scan” (if wlan0 is up)

Yes, this thread should be split into two.

Permy, first issue might be the specification of -Dwext as the wireless driver. That is an obsolete driver (from 1997) and is a likely reason for all the ioctl errors. The driver you should probably be specifying is nl80211.

wpa_supplicant -h


drivers:
nl80211 = Linux nl80211/cfg80211
wext = Linux wireless extensions (generic)

The other issue may be in the wpa_supplicant.conf or somewhere else. There have been issues with quotes in the config file and various other things causing the same error message. See these couple threads for examples:
https://forums.gentoo.org/viewtopic-t-921474-start-0.html
https://bbs.archlinux.org/viewtopic.php?id=170353

Pierluigi, I’m just going to repeat what other people said in this thread in a different way.

iwconfig is showing wlan0 so that is there. The “no extensions” is what your system will show even if wifi was working.

when you run ifconfig, wlan0 isn’t showing up unless you use the “-a” option. But it is showing up if you use the -a option. This means the interface is there but it isn’t up.

You executed the command ‘ifconfig wlan0 up’ and it said the operation wasn’t permitted. This is because you weren’t root. Only root can bring the interface up.

You executed ‘sudo ifconfig wlan0 up’ and that should bring it up. But it is saying that /usr/bin/sudo isn’t uid 0 and the suid bit isn’t set. The binary executable /usr/bin/sudo needs to have the sudo bit set and needs to be owned by root. It needs to switch to the root user to do things and for that to work, it needs the suid bit and to be owned by root. Can you do a:

ls -l /usr/bin/sudo

You should get:

-rwsr-xr-x root root /usr/bin/sudo

where the “s” is the sudo bit and the owner is root.

If that isn’t the case, the sudo binary is messed up. Maybe the permissions were changed on it accidentally or the user was changed. But you say this happened right after flashing and that is why linuxdev is asking you about the filesystem type of the device you use to flash. To maintain these types of permissions like suid, root, etc. you need a compatible filesystem and if you flashed from a system that didn’t deal with bits and permissions in the same way, the suid bit and/or user might end up wrong after flashing.

And that is why linuxdev and WayneWWW are recommending reflashing, it seems the permissions on sudo might be wrong (check the ls -l above). See why sudo isn’t working before moving on to the wireless issue. If it the issue is the filesystem on the host device used to flash, you need to fix that before flashing again.

To see if sudo works, you can try a:

sudo bash

and it should give you a root shell that you should be able to do this in:

echo “” > /root_file
rm /root_file
exit

If you aren’t root and you try the above, you’ll get a permission denied.

After this mystery is solved and one the interface is up, it needs to be configured, of course.