<?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>i.MX ProcessorsのトピックRe: Yocto network configuration using command line</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-network-configuration-using-command-line/m-p/1616906#M202855</link>
    <description>&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;But our device is headless and boots directly into Yocto with our application.. U-Boot is not an option for our customers to change any settings, We have to find a way to do it using command line in ssh or using network setup API.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Amrit Soni&lt;/P&gt;</description>
    <pubDate>Thu, 16 Mar 2023 14:17:03 GMT</pubDate>
    <dc:creator>amrit_soni</dc:creator>
    <dc:date>2023-03-16T14:17:03Z</dc:date>
    <item>
      <title>Yocto network configuration using command line</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-network-configuration-using-command-line/m-p/1615192#M202734</link>
      <description>&lt;P&gt;I am using standard Yocto build from BSP 4.14.98 for imx8m mini. Our device is headless. After yocto boots on our device, I am able to access the device using ssh, device comes up with dhcp enabled, assigned IP address and works fine.&lt;/P&gt;&lt;P&gt;Before we ship the device, it must be configured for a known static ip address, subnet mask, gateway and dns. Our customers will have the option of using the device with the shipped ip address or change the network settings to their own.&lt;/P&gt;&lt;P&gt;I tried ifconfig command to change ip address, but upon reboot it went back to dhcp.&lt;/P&gt;&lt;P&gt;1. What is the best way to change ip address and mask etc., and save them?&lt;/P&gt;&lt;P&gt;2. My customers or I need to be able to do (1) above using my application without going to ssh. Is there any API (similar to Windows network adapter), I could use to change IP settings from my application?&lt;/P&gt;&lt;P&gt;Do I need to rebuild Yocto with any additional Install options?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Amrit Soni&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 19:51:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-network-configuration-using-command-line/m-p/1615192#M202734</guid>
      <dc:creator>amrit_soni</dc:creator>
      <dc:date>2023-03-14T19:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto network configuration using command line</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-network-configuration-using-command-line/m-p/1615947#M202795</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="bodyDisplay_0" class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;P&gt;To disable DHCP, please remove it(&lt;STRONG&gt;ip=dhcp&lt;/STRONG&gt;) in uboot command line;&lt;/P&gt;
&lt;P&gt;To use a static IP, you can use ifconfig command such as:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ifconfig eth0 10.192.242.117&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;To change MAC address, you can use below command in commandline:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;fec.macaddr=0x00,0x10,0x20,0x30,0x40,0x88&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="bodyDisplay_2" class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;P&gt;As for MAC address it can be permanently changed by burning e-fuse.&lt;BR /&gt;Alternatively you can add the command like this&lt;/P&gt;
&lt;P&gt;ifconfig eth0 hw ether 00:04:9f:00:e9:bb&lt;/P&gt;
&lt;P&gt;into init script of the system to overwrite the value.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 Mar 2023 16:59:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-network-configuration-using-command-line/m-p/1615947#M202795</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2023-03-15T16:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto network configuration using command line</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-network-configuration-using-command-line/m-p/1616906#M202855</link>
      <description>&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;But our device is headless and boots directly into Yocto with our application.. U-Boot is not an option for our customers to change any settings, We have to find a way to do it using command line in ssh or using network setup API.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Amrit Soni&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 14:17:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-network-configuration-using-command-line/m-p/1616906#M202855</guid>
      <dc:creator>amrit_soni</dc:creator>
      <dc:date>2023-03-16T14:17:03Z</dc:date>
    </item>
  </channel>
</rss>

