<?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: u-boot and config_evn_extra_setting in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/u-boot-and-config-evn-extra-setting/m-p/167727#M4887</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you null terminating the strings you are supplying to CONFIG_EXTRA_ENV_SETTINGS?&amp;nbsp; Also take note there are string length limitations you have with #define statements which can also limit how much you can define.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a snippet of code from a boot loader of mine&lt;/P&gt;&lt;P&gt;#define CONFIG_EXTRA_ENV_SETTINGS \&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "autoload=n\0" \&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "firstboot=1\0" \&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "calibratets=1\0"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You may also try using the following two defines instead of the CONFIG_EXTRA_ENV_SETTINGS.&lt;/P&gt;&lt;P&gt;Note: these are code snippets from a ARM9 project of mine not using an i.MX28.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#define CONFIG_BOOTARGS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "root=/dev/mtdblock5 rw rootfstype=jffs2 console=ttyAM ramdisk_size=4000"&lt;BR /&gt;#define CONFIG_BOOTCOMMAND&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "cp.b 0x600C0000 0xC0080000 0x00400000;bootm 0xC0080000"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Aug 2011 18:00:38 GMT</pubDate>
    <dc:creator>dot_bob</dc:creator>
    <dc:date>2011-08-31T18:00:38Z</dc:date>
    <item>
      <title>u-boot and config_evn_extra_setting</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/u-boot-and-config-evn-extra-setting/m-p/167726#M4886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for the stupid message to the group. &amp;nbsp;I sent it before realizing I needed to add this discussion and not blast everyone an email.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;So I have the evk and bootlets and all that good stuff building on my system. &lt;/PRE&gt;&lt;PRE&gt;(Ubunutu Linux true (not a vm)) &lt;/PRE&gt;&lt;PRE&gt;
&lt;/PRE&gt;&lt;PRE&gt; I use the makefile from the imx-bootlets-src-10.12.01.tar.gz file to create a boot stream from the u-boot elf I built. &lt;/PRE&gt;&lt;PRE&gt;The sources of the u-boot are from the ltib (I don't use ltib I have my own build system which I've used for 2 years on the mx25)  &lt;/PRE&gt;&lt;PRE&gt;
&lt;/PRE&gt;&lt;PRE&gt;I just took the u-boot directory and patches from the ltib.  &lt;/PRE&gt;&lt;PRE&gt;
&lt;/PRE&gt;&lt;PRE&gt;I load the boot stream onto my evk all fine and dandy with my cool ported usb downloader that runs on &lt;/PRE&gt;&lt;PRE&gt;linux.  &lt;/PRE&gt;&lt;PRE&gt;
&lt;/PRE&gt;&lt;PRE&gt;The one thing that is driving me nuts and maybe someone else has seen this, is that in the &lt;/PRE&gt;&lt;PRE&gt;mx28_evk.h I set CONFIG_EXTRA_ENV_SETTINGS to a bunch of nfs boot params so I don't have &lt;/PRE&gt;&lt;PRE&gt;to type it in everytime.  &lt;/PRE&gt;&lt;PRE&gt;
&lt;/PRE&gt;&lt;PRE&gt;When I type printenv at the u-boot prompt I see...   &lt;/PRE&gt;&lt;PRE&gt;
&lt;/PRE&gt;&lt;PRE&gt;GNET MX28 U-Boot &amp;gt; printenv &lt;/PRE&gt;&lt;PRE&gt;stdin=serial &lt;/PRE&gt;&lt;PRE&gt;stdout=serial &lt;/PRE&gt;&lt;PRE&gt;stderr=serial &lt;/PRE&gt;&lt;PRE&gt;ethact=FEC0 &lt;/PRE&gt;&lt;PRE&gt;ver=U-Boot 2009.08-svn45823 (Aug 30 2011 - 17:04:15)  Environment size: 106/130044 bytes &lt;/PRE&gt;&lt;PRE&gt;GNET MX28 U-Boot &amp;gt; &lt;/PRE&gt;&lt;PRE&gt;
&lt;/PRE&gt;&lt;PRE&gt;GNET MX28 U-Boot &amp;gt;   &lt;/PRE&gt;&lt;PRE&gt;
&lt;/PRE&gt;&lt;PRE&gt;Nothing nadda .. nothing of interest to me.  &lt;/PRE&gt;&lt;PRE&gt;You'll also notice that the CONFIG_SYS_PROMPT works so I know my header file is being picked. &lt;/PRE&gt;&lt;PRE&gt; I even went so far as to hexdump the imx28_ivt_uboot.sb to see if I could find the string and all my &lt;/PRE&gt;&lt;PRE&gt;stuff is there.  &lt;/PRE&gt;&lt;PRE&gt;
&lt;/PRE&gt;&lt;PRE&gt;oiy vey!  &lt;/PRE&gt;&lt;PRE&gt;
&lt;/PRE&gt;&lt;PRE&gt;I'm sure I'm missing some stupid u-boot #define CONFIG_TURN_THIS_ENV_ON param somewhere. &lt;/PRE&gt;&lt;PRE&gt;
&lt;/PRE&gt;&lt;PRE&gt; I thought I'd ask you guys to see if you've seen this.  &lt;/PRE&gt;&lt;PRE&gt;Thanks in advance. &lt;/PRE&gt;&lt;PRE&gt;
&lt;/PRE&gt;&lt;PRE&gt; -stv &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:15:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/u-boot-and-config-evn-extra-setting/m-p/167726#M4886</guid>
      <dc:creator>netstv</dc:creator>
      <dc:date>2020-10-29T09:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: u-boot and config_evn_extra_setting</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/u-boot-and-config-evn-extra-setting/m-p/167727#M4887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you null terminating the strings you are supplying to CONFIG_EXTRA_ENV_SETTINGS?&amp;nbsp; Also take note there are string length limitations you have with #define statements which can also limit how much you can define.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a snippet of code from a boot loader of mine&lt;/P&gt;&lt;P&gt;#define CONFIG_EXTRA_ENV_SETTINGS \&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "autoload=n\0" \&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "firstboot=1\0" \&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "calibratets=1\0"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You may also try using the following two defines instead of the CONFIG_EXTRA_ENV_SETTINGS.&lt;/P&gt;&lt;P&gt;Note: these are code snippets from a ARM9 project of mine not using an i.MX28.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#define CONFIG_BOOTARGS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "root=/dev/mtdblock5 rw rootfstype=jffs2 console=ttyAM ramdisk_size=4000"&lt;BR /&gt;#define CONFIG_BOOTCOMMAND&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "cp.b 0x600C0000 0xC0080000 0x00400000;bootm 0xC0080000"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2011 18:00:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/u-boot-and-config-evn-extra-setting/m-p/167727#M4887</guid>
      <dc:creator>dot_bob</dc:creator>
      <dc:date>2011-08-31T18:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: u-boot and config_evn_extra_setting</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/u-boot-and-config-evn-extra-setting/m-p/167728#M4888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes on the null terminating.&lt;/P&gt;&lt;P&gt;maybe I'll try your other config_bootargs etc...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think it may have something to do with the&amp;nbsp;﻿ENV_IS_EMBEDDED... stay tuned... I'll post it once I figure it out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2011 18:14:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/u-boot-and-config-evn-extra-setting/m-p/167728#M4888</guid>
      <dc:creator>netstv</dc:creator>
      <dc:date>2011-08-31T18:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: u-boot and config_evn_extra_setting</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/u-boot-and-config-evn-extra-setting/m-p/167729#M4889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok .. found it.... &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#define CONFIG_ENV_IS_EMBEDDED&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That does it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ciao.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2011 18:26:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/u-boot-and-config-evn-extra-setting/m-p/167729#M4889</guid>
      <dc:creator>netstv</dc:creator>
      <dc:date>2011-08-31T18:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: u-boot and config_evn_extra_setting</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/u-boot-and-config-evn-extra-setting/m-p/167730#M4890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;I would like to build U-BOOT for the i.MX28 EVK board without using LTIB like you did. Could you please give us the steps to perfom that (where to get and copy U-BOOT and apply the patches from LTIB project)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;:-)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jan 2012 20:32:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/u-boot-and-config-evn-extra-setting/m-p/167730#M4890</guid>
      <dc:creator>Jean-PaulLePape</dc:creator>
      <dc:date>2012-01-14T20:32:05Z</dc:date>
    </item>
  </channel>
</rss>

