<?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: Generating u-boot env file (for MfgTool) from Yocto in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Generating-u-boot-env-file-for-MfgTool-from-Yocto/m-p/676219#M104281</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can find environment as set of null-terminated strings in the image. &lt;BR /&gt;I mean you can change the environment directly in boot image without u-boot rebuilding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Victor&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>Fri, 21 Jul 2017 07:18:04 GMT</pubDate>
    <dc:creator>b36401</dc:creator>
    <dc:date>2017-07-21T07:18:04Z</dc:date>
    <item>
      <title>Generating u-boot env file (for MfgTool) from Yocto</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Generating-u-boot-env-file-for-MfgTool-from-Yocto/m-p/676218#M104280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using Yocto, and have patched u-boot to customise its default environment, but am looking for a way to have bitbake spit out an env file for use by MfgTool - generated from the patched source/image.&lt;/P&gt;&lt;P&gt;Are there any extra options or build targets I can hook into?&lt;/P&gt;&lt;P&gt;I've seen&amp;nbsp;the suggestion in this thread -&amp;nbsp;&lt;A href="https://community.nxp.com/thread/308031"&gt;U-Boot environment variables from MfgTool&lt;/A&gt;&amp;nbsp; - but the method seems to require entering the envars into a text file. I'd like to&amp;nbsp;have it generated from the source/image itself, otherwise it's an additional file to have to keep in sync.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2017 16:53:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Generating-u-boot-env-file-for-MfgTool-from-Yocto/m-p/676218#M104280</guid>
      <dc:creator>colinhelliwell</dc:creator>
      <dc:date>2017-07-20T16:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: Generating u-boot env file (for MfgTool) from Yocto</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Generating-u-boot-env-file-for-MfgTool-from-Yocto/m-p/676219#M104281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can find environment as set of null-terminated strings in the image. &lt;BR /&gt;I mean you can change the environment directly in boot image without u-boot rebuilding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Victor&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>Fri, 21 Jul 2017 07:18:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Generating-u-boot-env-file-for-MfgTool-from-Yocto/m-p/676219#M104281</guid>
      <dc:creator>b36401</dc:creator>
      <dc:date>2017-07-21T07:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Generating u-boot env file (for MfgTool) from Yocto</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Generating-u-boot-env-file-for-MfgTool-from-Yocto/m-p/676220#M104282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Additionally you can use "Environment Configuration" section in u-boot header file to build u-boot with custom default environment variables.&lt;BR /&gt;Please refer this discussion for the details:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://ltib.nongnu.narkive.com/CEjtd9HJ/u-boot-default-environment-variables-location"&gt;http://ltib.nongnu.narkive.com/CEjtd9HJ/u-boot-default-environment-variables-location&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Victor&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>Fri, 21 Jul 2017 08:57:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Generating-u-boot-env-file-for-MfgTool-from-Yocto/m-p/676220#M104282</guid>
      <dc:creator>b36401</dc:creator>
      <dc:date>2017-07-21T08:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Generating u-boot env file (for MfgTool) from Yocto</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Generating-u-boot-env-file-for-MfgTool-from-Yocto/m-p/676221#M104283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that is how I've done it - patched the header file to modify&amp;nbsp;&lt;SPAN style="color: #222222;"&gt;CONFIG_EXTRA_ENV_SETTINGS.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222;"&gt;The trouble is that, with MfgTool, it seems that a default (shipped with the tool) environment is programmed into the board. I can give it a custom .env [text] file to append/modify this default, so was wondering if there was anything in u-boot/yocto that already&amp;nbsp;automatically generated this - or even something close to it - from my u-boot (i.e. whatever is in the source). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222;"&gt;The header file itself contains other #defines in&amp;nbsp;&lt;SPAN&gt;CONFIG_EXTRA_ENV_SETTINGS - perhaps a little more processing of it is needed. Or - more complex - parsing elf-style header info in the binary in order to find the&amp;nbsp;region of the image with the env data?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2017 09:59:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Generating-u-boot-env-file-for-MfgTool-from-Yocto/m-p/676221#M104283</guid>
      <dc:creator>colinhelliwell</dc:creator>
      <dc:date>2017-07-21T09:59:56Z</dc:date>
    </item>
  </channel>
</rss>

