<?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 Setting the Default Ethernet address and disable DHCP on boot.</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-Setting-the-Default-Ethernet-address-and-disable-DHCP-on/m-p/349901#M48570</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was able to include the updated interfaces file in yocto by doing the following so others can do this as well.&amp;nbsp; I added recipes-core in my layer and then added an init-ifupdown folder. Inside that folder I added an init-ifupdown_1.0.bbappend file that contains only;&lt;/P&gt;&lt;P&gt;FILESEXTRAPATHS_prepend := "${THISDIR}/init-ifupdown-1.0:"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I put a init-ifupdown-1.0 folder that contains my updated interfaces file for yocto to include.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what my interfaces file contains where I set the eth0 to static and manually set it's address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# The loopback interface&lt;/P&gt;
&lt;P&gt;auto lo&lt;/P&gt;
&lt;P&gt;iface lo inet loopback&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# Wireless interfaces&lt;/P&gt;
&lt;P&gt;iface wlan0 inet dhcp&lt;/P&gt;
&lt;P&gt;&amp;nbsp; wireless_mode managed&lt;/P&gt;
&lt;P&gt;&amp;nbsp; wireless_essid any&lt;/P&gt;
&lt;P&gt;&amp;nbsp; wpa-driver wext&lt;/P&gt;
&lt;P&gt;&amp;nbsp; wpa-conf /etc/wpa_supplicant.conf&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;iface atml0 inet dhcp&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# Wired or wireless interfaces&lt;/P&gt;
&lt;P&gt;auto eth0&lt;/P&gt;
&lt;P&gt;iface eth0 inet static&lt;/P&gt;
&lt;P&gt;&amp;nbsp; address 10.254.253.1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; netmask 255.255.255.0&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;iface eth1 inet dhcp&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# Ethernet/RNDIS gadget (g_ether)&lt;/P&gt;
&lt;P&gt;# ... or on host side, usbnet and random hwaddr&lt;/P&gt;
&lt;P&gt;iface usb0 inet static&lt;/P&gt;
&lt;P&gt;&amp;nbsp; address 192.168.7.2&lt;/P&gt;
&lt;P&gt;&amp;nbsp; netmask 255.255.255.0&lt;/P&gt;
&lt;P&gt;&amp;nbsp; network 192.168.7.0&lt;/P&gt;
&lt;P&gt;&amp;nbsp; gateway 192.168.7.1&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# Bluetooth networking&lt;/P&gt;
&lt;P&gt;iface bnep0 inet dhcp&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hope this is helpful for someone else.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Feb 2015 15:39:46 GMT</pubDate>
    <dc:creator>michaeldiamond</dc:creator>
    <dc:date>2015-02-18T15:39:46Z</dc:date>
    <item>
      <title>Yocto Setting the Default Ethernet address and disable DHCP on boot.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-Setting-the-Default-Ethernet-address-and-disable-DHCP-on/m-p/349898#M48567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have not found anything real concrete on this.&amp;nbsp; In LTIB there were settings in the menuconfig to be able to set a default IP address, subnet, etc... and turn the dhcp server off.&amp;nbsp; The kernel uses the UDHCPC and gives the following while booting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready&lt;/P&gt;&lt;P&gt;udhcpc (v1.22.1) started&lt;/P&gt;&lt;P&gt;Sending discover...&lt;/P&gt;&lt;P&gt;Sending discover...&lt;/P&gt;&lt;P&gt;Sending discover...&lt;/P&gt;&lt;P&gt;No lease, forking to background&lt;/P&gt;&lt;P&gt;done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if this can be done from the machine conf file or if I need an .bbappend file somewhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 21:26:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-Setting-the-Default-Ethernet-address-and-disable-DHCP-on/m-p/349898#M48567</guid>
      <dc:creator>michaeldiamond</dc:creator>
      <dc:date>2015-02-04T21:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto Setting the Default Ethernet address and disable DHCP on boot.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-Setting-the-Default-Ethernet-address-and-disable-DHCP-on/m-p/349899#M48568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;&amp;nbsp; The Yocto does not provide additional pseudo-graphical configuration tool, as&lt;BR /&gt; the menuconfig for kernel, which was used under LTIB. &lt;BR /&gt; Looks like the only solution is to prepare proper file (manually), that should be located &lt;BR /&gt; in /etc/network/interfaces of rootfs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;Template is located in&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;&amp;lt;Yocto_dir&amp;gt;/fsl-release-bsp/sources/poky/meta-yocto-bsp/recipes-core/init-ifupdown&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;&lt;BR /&gt; Please use Linux command &lt;BR /&gt; &lt;BR /&gt; $ man 5 interfaces &lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;for more details about file “interfaces”&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Yuri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 10:13:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-Setting-the-Default-Ethernet-address-and-disable-DHCP-on/m-p/349899#M48568</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2015-02-10T10:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto Setting the Default Ethernet address and disable DHCP on boot.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-Setting-the-Default-Ethernet-address-and-disable-DHCP-on/m-p/349900#M48569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for this information.&amp;nbsp; I was able to adjust the interfaces file and that worked.&amp;nbsp; Now I just need yocto to place the modified one in my image.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 21:54:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-Setting-the-Default-Ethernet-address-and-disable-DHCP-on/m-p/349900#M48569</guid>
      <dc:creator>michaeldiamond</dc:creator>
      <dc:date>2015-02-11T21:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto Setting the Default Ethernet address and disable DHCP on boot.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-Setting-the-Default-Ethernet-address-and-disable-DHCP-on/m-p/349901#M48570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was able to include the updated interfaces file in yocto by doing the following so others can do this as well.&amp;nbsp; I added recipes-core in my layer and then added an init-ifupdown folder. Inside that folder I added an init-ifupdown_1.0.bbappend file that contains only;&lt;/P&gt;&lt;P&gt;FILESEXTRAPATHS_prepend := "${THISDIR}/init-ifupdown-1.0:"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I put a init-ifupdown-1.0 folder that contains my updated interfaces file for yocto to include.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what my interfaces file contains where I set the eth0 to static and manually set it's address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# The loopback interface&lt;/P&gt;
&lt;P&gt;auto lo&lt;/P&gt;
&lt;P&gt;iface lo inet loopback&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# Wireless interfaces&lt;/P&gt;
&lt;P&gt;iface wlan0 inet dhcp&lt;/P&gt;
&lt;P&gt;&amp;nbsp; wireless_mode managed&lt;/P&gt;
&lt;P&gt;&amp;nbsp; wireless_essid any&lt;/P&gt;
&lt;P&gt;&amp;nbsp; wpa-driver wext&lt;/P&gt;
&lt;P&gt;&amp;nbsp; wpa-conf /etc/wpa_supplicant.conf&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;iface atml0 inet dhcp&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# Wired or wireless interfaces&lt;/P&gt;
&lt;P&gt;auto eth0&lt;/P&gt;
&lt;P&gt;iface eth0 inet static&lt;/P&gt;
&lt;P&gt;&amp;nbsp; address 10.254.253.1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; netmask 255.255.255.0&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;iface eth1 inet dhcp&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# Ethernet/RNDIS gadget (g_ether)&lt;/P&gt;
&lt;P&gt;# ... or on host side, usbnet and random hwaddr&lt;/P&gt;
&lt;P&gt;iface usb0 inet static&lt;/P&gt;
&lt;P&gt;&amp;nbsp; address 192.168.7.2&lt;/P&gt;
&lt;P&gt;&amp;nbsp; netmask 255.255.255.0&lt;/P&gt;
&lt;P&gt;&amp;nbsp; network 192.168.7.0&lt;/P&gt;
&lt;P&gt;&amp;nbsp; gateway 192.168.7.1&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# Bluetooth networking&lt;/P&gt;
&lt;P&gt;iface bnep0 inet dhcp&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hope this is helpful for someone else.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 15:39:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-Setting-the-Default-Ethernet-address-and-disable-DHCP-on/m-p/349901#M48570</guid>
      <dc:creator>michaeldiamond</dc:creator>
      <dc:date>2015-02-18T15:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto Setting the Default Ethernet address and disable DHCP on boot.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-Setting-the-Default-Ethernet-address-and-disable-DHCP-on/m-p/349902#M48571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is really helpful. Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 12:18:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-Setting-the-Default-Ethernet-address-and-disable-DHCP-on/m-p/349902#M48571</guid>
      <dc:creator>dariuszzawisko</dc:creator>
      <dc:date>2015-03-17T12:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto Setting the Default Ethernet address and disable DHCP on boot.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-Setting-the-Default-Ethernet-address-and-disable-DHCP-on/m-p/349903#M48572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me take up this question again. I have performed the steps that you indicate and the problem is when restarting the board does not assign static ip until it does not launch:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ifdown eth0&lt;BR /&gt;Ifup eth0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know what the problem may be?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 10:19:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-Setting-the-Default-Ethernet-address-and-disable-DHCP-on/m-p/349903#M48572</guid>
      <dc:creator>sergi1</dc:creator>
      <dc:date>2017-01-26T10:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto Setting the Default Ethernet address and disable DHCP on boot.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-Setting-the-Default-Ethernet-address-and-disable-DHCP-on/m-p/349904#M48573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have the same behavior. i guess it do this because the actual default configuration is systemd. and init.d scripts are not executed.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2018 09:26:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-Setting-the-Default-Ethernet-address-and-disable-DHCP-on/m-p/349904#M48573</guid>
      <dc:creator>firex</dc:creator>
      <dc:date>2018-05-04T09:26:31Z</dc:date>
    </item>
  </channel>
</rss>

