<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Configure wireless in Yocto Linux automatically when the system starts in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Configure-wireless-in-Yocto-Linux-automatically-when-the-system/m-p/1580082#M199847</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/210184"&gt;@krsuresh&lt;/a&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV&gt;I hope you are doing well.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Please add&amp;nbsp;&lt;STRONG&gt;drvdbg=0x20037 i&lt;/STRONG&gt;n your&amp;nbsp;wi-fi module configuration in the wifi_mod_para_*.conf file to enable wifi driver debug logs.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Please provide me with boot logs,dmseg&amp;nbsp;logs and Wireshark captures for further debugging.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks &amp;amp; Regards,&lt;/DIV&gt;
&lt;DIV&gt;Dhruvit Vasavada&lt;/DIV&gt;</description>
    <pubDate>Tue, 10 Jan 2023 13:02:28 GMT</pubDate>
    <dc:creator>Dhruvit</dc:creator>
    <dc:date>2023-01-10T13:02:28Z</dc:date>
    <item>
      <title>Configure wireless in Yocto Linux automatically when the system starts</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Configure-wireless-in-Yocto-Linux-automatically-when-the-system/m-p/1576795#M199450</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;My goal is to configure wireless in Yocto Linux automatically when the system starts, but I am having trouble.&lt;BR /&gt;In accordance with expectations, the configuration is working properly, and the client is also connecting, but immediately it gets disconnected.&lt;BR /&gt;Kindly let me know if I am missing anything.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BoardDetails&lt;/STRONG&gt;: HummingBoard Pulse i.MX8M Plus SOM board&lt;BR /&gt;&lt;STRONG&gt;Code details&lt;/STRONG&gt;: &lt;A href="https://github.com/SolidRun/meta-solidrun-arm-imx8" target="_blank"&gt;https://github.com/SolidRun/meta-solidrun-arm-imx8&lt;/A&gt;&lt;BR /&gt;&lt;STRONG&gt;Branch&lt;/STRONG&gt;: hardknott-imx8mp&lt;/P&gt;&lt;P&gt;The steps I followed,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step1:&lt;/STRONG&gt;&lt;BR /&gt;Added custom recipe file and my script in systemd folder.&lt;BR /&gt;Systemd path: source/meta-imx/meta-bsp/recipes-core/systemd/wifiscript_1.00.bb&lt;BR /&gt;My Script File Path: source/meta-imx/meta-bsp/recipes-core/systemd/file/wifi_script.sh&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;wifiscript_1.00.bb Details:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;********************************&lt;/STRONG&gt;&lt;BR /&gt;LICENSE = "CLOSED"&lt;BR /&gt;inherit update-rc.d systemd&lt;/P&gt;&lt;P&gt;SYSTEMD_AUTO_ENABLE = "enable"&lt;BR /&gt;SYSTEMD_SERVICE_${PN} = "wifi-script.service"&lt;BR /&gt;INITSCRIPT_PACKAGES = "${PN}"&lt;/P&gt;&lt;P&gt;SRC_URI_append = " file://wifi-script.service \&lt;BR /&gt;file://wifi-script.sh \&lt;BR /&gt;"&lt;BR /&gt;FILES_${PN} += "${systemd_unitdir}/system/wifi-script.service"&lt;/P&gt;&lt;P&gt;do_install_append() {&lt;BR /&gt;install -d ${D}/${systemd_unitdir}/system&lt;BR /&gt;install -d ${D}${bindir}&lt;BR /&gt;install -m 0644 ${WORKDIR}/wifi-script.service ${D}/${systemd_unitdir}/system&lt;BR /&gt;install -m 0744 ${WORKDIR}/wifi-script.sh ${D}${bindir}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;My wifi_script.sh &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;*********************&lt;/STRONG&gt;&lt;BR /&gt;WlanCnt=0&lt;BR /&gt;connmanctl enable wifi&lt;BR /&gt;ifconfig wlan0 up&lt;BR /&gt;if [ $? -eq 0 ]; then&lt;BR /&gt;while [ 1 ]&lt;BR /&gt;do&lt;BR /&gt;ifconfig | grep wlan0&lt;BR /&gt;if [ $? -eq 0 ]; then&lt;BR /&gt;echo "Interface UP"&lt;BR /&gt;break;&lt;BR /&gt;else&lt;BR /&gt;echo "Wlan0 Interface DOWN"&lt;BR /&gt;fi&lt;BR /&gt;sleep 1&lt;BR /&gt;if [ $WlanCnt -eq 10 ]; then&lt;BR /&gt;ifconfig wlan0 up&lt;BR /&gt;WlanCnt=0&lt;BR /&gt;fi&lt;BR /&gt;WlanCnt=`expr $WlanCnt + 1`&lt;BR /&gt;done&lt;BR /&gt;ClientDetected=0;&lt;BR /&gt;while [ $ClientDetected -ne 1 ]&lt;BR /&gt;do&lt;BR /&gt;Count=0;&lt;BR /&gt;rm -rf /var/run/wpa_supplicant/wlan0&lt;BR /&gt;sleep 20&lt;BR /&gt;sudo wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf&lt;BR /&gt;if [ $? -eq 0 ]; then&lt;BR /&gt;while [ $Count -le 10 ]&lt;BR /&gt;do&lt;BR /&gt;iw wlan0 link | grep "Connected"&lt;BR /&gt;if [ $? -eq 0 ]; then&lt;BR /&gt;ClientDetected=1&lt;BR /&gt;break;&lt;BR /&gt;else&lt;BR /&gt;echo "Client not detected"&lt;BR /&gt;fi&lt;BR /&gt;sleep 1&lt;BR /&gt;Count=`expr $Count + 1`&lt;BR /&gt;done&lt;BR /&gt;if [ $ClientDetected -eq 1 ]; then&lt;BR /&gt;echo "Client detected"&lt;BR /&gt;sudo udhcpc -i wlan0&lt;BR /&gt;fi&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt;else&lt;BR /&gt;echo "WLAN not available"&lt;BR /&gt;fi&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step2: Target details&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;`root@imx8mpsolidrun:~# [ 63.440976] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready&lt;BR /&gt;[ 64.063630] imx-dwmac 30bf0000.ethernet eth1: PHY [stmmac-0:00] driver [ADIN1300] (irq=POLL)&lt;BR /&gt;[ 64.072117] imx-dwmac 30bf0000.ethernet eth1: configuring for phy/rgmii-id link mode&lt;/P&gt;&lt;P&gt;root@imx8mpsolidrun:~#&lt;BR /&gt;&lt;STRONG&gt;root@imx8mpsolidrun:~# iw wlan0 link&lt;/STRONG&gt;&lt;BR /&gt;Connected to ae:ca:9d:c8:20:75 (on wlan0)&lt;BR /&gt;SSID: suresh&lt;BR /&gt;freq: 5745&lt;BR /&gt;RX: 1138 bytes (4 packets)&lt;BR /&gt;TX: 5458 bytes (36 packets)&lt;BR /&gt;signal: -63 dBm&lt;BR /&gt;rx bitrate: 6.0 MBit/s&lt;BR /&gt;tx bitrate: 292.5 MBit/s&lt;/P&gt;&lt;P&gt;bss flags:&lt;BR /&gt;dtim period: 2&lt;BR /&gt;beacon int: 100&lt;BR /&gt;&lt;STRONG&gt;root@imx8mpsolidrun:~# ifconfig wlan0&lt;/STRONG&gt;&lt;BR /&gt;wlan0: flags=4163&amp;lt;UP,BROADCAST,RUNNING,MULTICAST&amp;gt; mtu 1500&lt;BR /&gt;inet 192.168.22.74 netmask 255.255.255.0 broadcast 192.168.22.255&lt;BR /&gt;inet6 fe80::7287:a7ff:fefd:723d prefixlen 64 scopeid 0x20&amp;lt;link&amp;gt;&lt;BR /&gt;ether 70:87:a7:fd:72:3d txqueuelen 1000 (Ethernet)&lt;BR /&gt;RX packets 2 bytes 676 (676.0 B)&lt;BR /&gt;RX errors 0 dropped 0 overruns 0 frame 0&lt;BR /&gt;TX packets 37 bytes 6336 (6.1 KiB)&lt;BR /&gt;TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0&lt;/P&gt;&lt;P&gt;root@imx8mpsolidrun:~#&lt;BR /&gt;&lt;STRONG&gt;root@imx8mpsolidrun:~# ping 8.8.8.8&lt;/STRONG&gt;&lt;BR /&gt;PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.&lt;BR /&gt;64 bytes from 8.8.8.8: icmp_seq=1 ttl=115 time=50.1 ms&lt;BR /&gt;64 bytes from 8.8.8.8: icmp_seq=2 ttl=115 time=33.7 ms&lt;BR /&gt;64 bytes from 8.8.8.8: icmp_seq=3 ttl=115 time=25.0 ms&lt;BR /&gt;^C&lt;BR /&gt;--- 8.8.8.8 ping statistics ---&lt;BR /&gt;3 packets transmitted, 3 received, 0% packet loss, time 2003ms&lt;BR /&gt;rtt min/avg/max/mdev = 24.977/36.270/50.106/10.415 ms&lt;BR /&gt;root@imx8mpsolidrun:~#&lt;BR /&gt;root@imx8mpsolidrun:~#&lt;BR /&gt;&lt;STRONG&gt;root@imx8mpsolidrun:~# iw wlan0 link&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Not connected.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;STRONG&gt;root@imx8mpsolidrun:~# ifconfig wlan0&lt;/STRONG&gt;&lt;BR /&gt;wlan0: flags=4163&amp;lt;UP,BROADCAST,RUNNING,MULTICAST&amp;gt; mtu 1500&lt;BR /&gt;inet 192.168.22.74 netmask 255.255.255.0 broadcast 192.168.22.255&lt;BR /&gt;inet6 fe80::7287:a7ff:fefd:723d prefixlen 64 scopeid 0x20&amp;lt;link&amp;gt;&lt;BR /&gt;ether 70:87:a7:fd:72:3d txqueuelen 1000 (Ethernet)&lt;BR /&gt;RX packets 13 bytes 2578 (2.5 KiB)&lt;BR /&gt;RX errors 0 dropped 0 overruns 0 frame 0&lt;BR /&gt;TX packets 61 bytes 8824 (8.6 KiB)&lt;BR /&gt;TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;root@imx8mpsolidrun:~# iw wlan0 scan | grep SSID&lt;/STRONG&gt;&lt;BR /&gt;SSID: suresh&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 02:57:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Configure-wireless-in-Yocto-Linux-automatically-when-the-system/m-p/1576795#M199450</guid>
      <dc:creator>krsuresh</dc:creator>
      <dc:date>2023-01-04T02:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Configure wireless in Yocto Linux automatically when the system starts</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Configure-wireless-in-Yocto-Linux-automatically-when-the-system/m-p/1580082#M199847</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/210184"&gt;@krsuresh&lt;/a&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV&gt;I hope you are doing well.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Please add&amp;nbsp;&lt;STRONG&gt;drvdbg=0x20037 i&lt;/STRONG&gt;n your&amp;nbsp;wi-fi module configuration in the wifi_mod_para_*.conf file to enable wifi driver debug logs.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Please provide me with boot logs,dmseg&amp;nbsp;logs and Wireshark captures for further debugging.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks &amp;amp; Regards,&lt;/DIV&gt;
&lt;DIV&gt;Dhruvit Vasavada&lt;/DIV&gt;</description>
      <pubDate>Tue, 10 Jan 2023 13:02:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Configure-wireless-in-Yocto-Linux-automatically-when-the-system/m-p/1580082#M199847</guid>
      <dc:creator>Dhruvit</dc:creator>
      <dc:date>2023-01-10T13:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Configure wireless in Yocto Linux automatically when the system starts</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Configure-wireless-in-Yocto-Linux-automatically-when-the-system/m-p/1586598#M200515</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/210184"&gt;@krsuresh&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Is your issue resolved?&lt;/P&gt;
&lt;P&gt;waiting for your response.&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Dhruvit Vasavada&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 12:08:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Configure-wireless-in-Yocto-Linux-automatically-when-the-system/m-p/1586598#M200515</guid>
      <dc:creator>Dhruvit</dc:creator>
      <dc:date>2023-01-23T12:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Configure wireless in Yocto Linux automatically when the system starts</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Configure-wireless-in-Yocto-Linux-automatically-when-the-system/m-p/1596521#M201324</link>
      <description>&lt;P&gt;Sorry for the delay. This issue not yet solved. Am in building core-minimal-image and adding packages one by one. Now am stuck with&amp;nbsp; .NET build.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 10:56:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Configure-wireless-in-Yocto-Linux-automatically-when-the-system/m-p/1596521#M201324</guid>
      <dc:creator>krsuresh</dc:creator>
      <dc:date>2023-02-09T10:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Configure wireless in Yocto Linux automatically when the system starts</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Configure-wireless-in-Yocto-Linux-automatically-when-the-system/m-p/1601944#M201731</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/210184"&gt;@krsuresh&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I hope you are doing well.&lt;/P&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Please provide me with boot logs,dmseg&amp;nbsp;logs, and Wireshark captures as mentioned in the previous reply for further debugging.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks &amp;amp; Regards,&lt;/DIV&gt;
&lt;DIV&gt;Dhruvit Vasavada.&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 11:45:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Configure-wireless-in-Yocto-Linux-automatically-when-the-system/m-p/1601944#M201731</guid>
      <dc:creator>Dhruvit</dc:creator>
      <dc:date>2023-02-20T11:45:36Z</dc:date>
    </item>
  </channel>
</rss>

