my SDK is imx-yocto-L5.10.72_2.2.0,and test on imx8mm evk,when power on finish run rfkill list as below:
root@imx8mm-lpddr4-evk:~# rfkill list
0: phy0: Wireless LAN
Soft blocked: yes
Hard blocked: no
1: brcmfmac-wifi: Wireless LAN
Soft blocked: yes
Hard blocked: no
and how can I make Soft blocked to "no" by config yocto or other source code ?
instead of “echo 1 > /sys/class/rfkill/rfkill0/state”
can you help me?
Hello @f1engmin11,
I hope you are doing well.
how can I make Soft blocked to "no" by config yocto or other source code ?
->Please run the below command.
rfkill [options] command
Where put the below string as a command.
unblock index|type
(Enable the device corresponding to the given index. If the device is hard-blocked, e.g. via a hardware switch, it will remain unavailable though it is now soft-unblocked.)
I hope this answers your query.
Thanks & Regards,
Sanket Parekh
thanks,but I mean is not use command, but via yocto source code or rootfs config file, to set the defualt value of rfkill soft status.
Hello @f1engmin11,
I hope you are doing well.
For that purpose, I suggest referring to the below links in order to execute your script.
https://stackoverflow.com/questions/70532388/execute-custom-script-after-boot-on-yocto-built-linux-s...
https://www.yoctoproject.org/pipermail/yocto/2018-March/040185.html
https://stackoverflow.com/questions/70572088/yocto-wifi-configuration-for-automatic-connection-at-bo...
https://community.nxp.com/t5/i-MX-Processors/How-to-configure-Yocto-to-enable-WiFi-BT-on-the-i-MX8-M...
These will surely help you!
Thanks & Regards,
Sanket Parekh