Hi experts,
I was recently working with i.MX 8M Evaluation Kit, and I set up the board with a self-built fsl-image-qt5-validation-imx image by following the i.MX Yocto Project User's Guide.
Now, if I run command ifconfig, I get only eth0 and lo.
By checking iwconfig, I get p2p0, wlan0, eth0, and lo. However, I cannot bring the wlan0 up correctly.
I tried to configure the wifi name and password by:
1) editing the file /ect/wpa-supplicant with wifi configuration, and then execute the command:
wpa_supplicant -B -D wext -i wlan0 -c /etc/wpa_supplicant.conf
which gives me the error:
Successfully initialized wpa_supplicantwext -i wlan0 -c /etc/wpa_supplicant.conf
rfkill: Cannot open RFKILL contro[ 557.160543] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
l device
ioctl[SIOCSIWPMKSA]: Invalid argument
ioctl[SIOCSIWPMKSA]: Invalid argument
2) Execute the iwconfig command:
iwconfig wlan0 essid $SSID key s:$PASSWORD
which gives me the error:
Error for wireless request "Set Encode" (8B2A) :
SET failed on device wlan0 ; Invalid argument.
Any idea about how to enable the wifi connection?
Simon
解決済! 解決策の投稿を見る。
Hi Simon,
About the set WiFi. You can try to run the below shell commands:
ifconfig wlan0 down
ifconfig wlan0 up
$nano /etc/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1
network={
ssid="</ the name of your internet acces point>"
key_mgmt=WPA-PSK
psk="</ the password of your internet access point>"
proto=WPA2
}
$wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf -D nl80211
$udhcpc -i wlan0
Have a great day,
Rita
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
And about add wifi you also can refer to the follow thread, hope this can do help for you.
https://community.nxp.com/message/1074261?commentID=1074261#comment-1074261
By the way, actually I have two WiFi APs, and the other one is managed as WPA-EAP.
I'm wondering if there is anything needs to be changed besides modifying the file /etc/wpa_supplicant.conf to connect with this AP?
I have the question because after I modify the .conf according to the example here, my board still cannot access the EAP AP, while the WPA2 case works fine.
I suspect I may change the command
wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf -D nl80211
while I don't find any instruction about this yet.
Please let me know if you have any suggestion, thank you in advance.
Hi Simon,
Here could you tell me what are the interface of your two wifi, both SDIO, or others?
Have a nice day
Rita
Hi Simon,
About the set WiFi. You can try to run the below shell commands:
ifconfig wlan0 down
ifconfig wlan0 up
$nano /etc/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1
network={
ssid="</ the name of your internet acces point>"
key_mgmt=WPA-PSK
psk="</ the password of your internet access point>"
proto=WPA2
}
$wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf -D nl80211
$udhcpc -i wlan0
Have a great day,
Rita
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
Hi ,
After using the above commands you have specified, I am getting the below error
"rfkill: Cannot open RFKILL control device"
and after I'm using the command udhcpc -i wlan0 it shows nothing is getting or wifi is not getting connected.
udhcpc: started, v1.31.0
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
Hi Rita,
Thanks a lot for the detailed instructions.
udhcpc -i wlan0 is what I missed before. Thank you and have a great day :smileyhappy: