i.MX8-MEVK Wifi Support

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX8-MEVK Wifi Support

Jump to solution
5,025 Views
simonwan
Contributor I

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

0 Kudos
1 Solution
3,947 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

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.
-------------------------------------------------------------------------------

View solution in original post

0 Kudos
6 Replies
3,947 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

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 

0 Kudos
3,947 Views
simonwan
Contributor I

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.

0 Kudos
3,947 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi Simon,

Here could you  tell me what are the interface of your two wifi, both SDIO, or others?

Have a nice day

Rita

0 Kudos
3,948 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

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.
-------------------------------------------------------------------------------

0 Kudos
3,105 Views
VinithNama
Contributor III

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

0 Kudos
3,947 Views
simonwan
Contributor I

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:

0 Kudos