使用最低版本的 Ubuntu 16.04 无法通过 Odroid c0 连接到 Wi-Fi 网络

使用最低版本的 Ubuntu 16.04 无法通过 Odroid c0 连接到 Wi-Fi 网络

我想连接到建议使用 /etc/wpa_supplicant/wpa_supplicant.conf 的 wifi:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1

network={
   ssid="####"
   proto=RSN
   key_mgmt=WPA-EAP
   pairwise=TKIP
   auth_alg=OPEN
   eap=PEAP
   identity="####"
   password="####"
   ca_cert="/etc/ssl/certs/cacert.org.pem"
   phase2="auth=MSCHAPV2"
}

我已经评论了 proto 和 key_mgmt,因为我找不到问题

这是我的 iwconfig 的相关部分:

wlx7cdd90ae2375  IEEE 802.11bgn  ESSID:off/any  
          Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated
          Tx-Power=20 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off

ifconfig 如下:

eth0      Link encap:Ethernet  HWaddr 00:1e:06:20:43:40  
          inet6 addr: fe80::21e:6ff:fe20:4340/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:61 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:19278 (19.2 KB)
          Interrupt:40 

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

wlx7cdd90ae2375 Link encap:Ethernet  HWaddr 7c:dd:90:ae:23:75  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1017 (1.0 KB)  TX bytes:0 (0.0 B)

然后我尝试 sudo wpa_supplicant -i wlan0 -D wext -c /etc/wpa_supplicant/wpa_supplicant.conf -d:

wpa_supplicant v2.4
random: Trying to read entropy from /dev/random
Successfully initialized wpa_supplicant
Initializing interface 'wlx7cdd90ae2375' conf '/etc/wpa_supplicant/wpa_supplicant.conf' driver 'wext' 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='/var/run/wpa_supplicant'
ctrl_interface_group='0'
ap_scan=1
Line 16: removed CCMP from group cipher list since it was not allowed for pairwise cipher
Priority group 0
   id=0 ssid='####'
WEXT: cfg80211-based driver detected
wext: interface wlx7cdd90ae2375 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: ifindex=5 linkmode=1 (userspace-control), operstate=5 (IF_OPER_DORMANT)
Add interface wlx7cdd90ae2375 to a new radio phy0
wlx7cdd90ae2375: Own MAC address: 7c:dd:90:ae:23:75
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_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
wlx7cdd90ae2375: RSN: flushing PMKID list in the driver
wlx7cdd90ae2375: No enabled networks (1 disabled networks)
wlx7cdd90ae2375: State: DISCONNECTED -> INACTIVE
TDLS: TDLS operation not supported by driver
TDLS: Driver uses internal link setup
TDLS: Driver does not support TDLS channel switching
wlx7cdd90ae2375: WPS: UUID based on MAC address: d9d8434c-a009-5512-a2e0-281db564c0b2
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
ctrl_interface_group=0
wlx7cdd90ae2375: Added interface wlx7cdd90ae2375
wlx7cdd90ae2375: State: INACTIVE -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=5 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
random: Got 20/20 bytes from /dev/random
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlx7cdd90ae2375' added
WEXT: if_removed already cleared - ignore event
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlx7cdd90ae2375' added
WEXT: if_removed already cleared - ignore event
Wireless event: cmd=0x8b1a len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlx7cdd90ae2375' added
WEXT: if_removed already cleared - ignore event
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlx7cdd90ae2375' added
WEXT: if_removed already cleared - ignore event
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlx7cdd90ae2375' added
WEXT: if_removed already cleared - ignore event
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlx7cdd90ae2375' added
WEXT: if_removed already cleared - ignore event
EAPOL: disable timer tick
wlx7cdd90ae2375: Removing interface wlx7cdd90ae2375
wlx7cdd90ae2375: 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
wlx7cdd90ae2375: State: DISCONNECTED -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=5 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
wpa_driver_wext_set_countermeasures
wlx7cdd90ae2375: WPA: Clear old PMK and PTK
wlx7cdd90ae2375: Cancelling scan request
wlx7cdd90ae2375: Cancelling authentication timeout
Remove interface wlx7cdd90ae2375 from radio phy0
Remove radio phy0
netlink: Operstate: ifindex=5 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)
wlx7cdd90ae2375: CTRL-EVENT-TERMINATING 

这是我第一次使用没有 GUI 的操作系统,我仍然使用 HDMI 连接的显示器,因为我没有互联网,所以无法安装任何东西。如果您需要任何进一步的信息,请告诉我!

答案1

关注这个官方维基页面:

http://odroid.com/dokuwiki/doku.php?id=en:minimal_image_wifi_setup

我确认这些说明刚刚在运行官方 ODROID 最小 Ubuntu 16.04 映像的 ODROID C1+ 上对我有效。

我确实遇到了问题,因为我使用的是臭名昭著的 Edimax 7811UN USB WiFi 加密狗。它需要两个额外的步骤:

1)我必须按照本主题中的最后一篇文章,在 .service 文件中的 wpa_supplicant 行末尾添加 -D wext:

https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=104856

2) 另一个步骤是臭名昭著的 Edimax 省电问题。

如果您有一个具有相同芯片组的 WiFi 适配器,您可能需要对其进行故障排除/修复。

相关内容