<?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: saving environment variables to SDCARD instead how to save it to FLASH</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/saving-environment-variables-to-SDCARD-instead-how-to-save-it-to/m-p/704357#M109403</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramanjineyulu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what uboot version used in the case, please try nxp release imx_v2016.03 :&lt;/P&gt;&lt;P&gt;&lt;A href="http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git/tree/?h=imx_v2016.03_4.1.15_2.0.0_ga"&gt;http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git/tree/?h=imx_v2016.03_4.1.15_2.0.0_ga&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Aug 2017 10:09:04 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2017-08-28T10:09:04Z</dc:date>
    <item>
      <title>saving environment variables to SDCARD instead how to save it to FLASH</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/saving-environment-variables-to-SDCARD-instead-how-to-save-it-to/m-p/704354#M109400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am currently working on U-Boot source code.&lt;/P&gt;&lt;P&gt;I have to change the uboot environment variables saving to SDCARD instead i have to store into FLASH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to know what are the changes i have to do to save it to FLASH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;board specific header file contains the below macro&lt;/P&gt;&lt;P&gt;#define CONFIG_ENV_IS_IN_MMC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think may be i have replace the above line with #define CONFIG_ENV_IS_IN_FLASH&lt;/P&gt;&lt;P&gt;Still any changes i have to do to save uboot environment variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also added the FLASH base address and OFFSET and environment size.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give any suggestion to save it to FLASH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Ramanjineyulu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2017 10:16:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/saving-environment-variables-to-SDCARD-instead-how-to-save-it-to/m-p/704354#M109400</guid>
      <dc:creator>ramanjineyuluth</dc:creator>
      <dc:date>2017-08-22T10:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: saving environment variables to SDCARD instead how to save it to FLASH</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/saving-environment-variables-to-SDCARD-instead-how-to-save-it-to/m-p/704355#M109401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramanjineyulu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are right, for saving uboot environment variables in flash it is sufficient to&lt;BR /&gt;set #define CONFIG_ENV_IS_IN_FLASH, no other changes in uboot sources &lt;BR /&gt;are necessary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&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>Sun, 27 Aug 2017 22:46:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/saving-environment-variables-to-SDCARD-instead-how-to-save-it-to/m-p/704355#M109401</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-08-27T22:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: saving environment variables to SDCARD instead how to save it to FLASH</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/saving-environment-variables-to-SDCARD-instead-how-to-save-it-to/m-p/704356#M109402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;Below are the changes in board specific header file.&lt;/P&gt;&lt;P&gt;#define CONFIG_ENV_IS_IN_FLASH&lt;/P&gt;&lt;P&gt;#define CONFIG_SYS_FLASH_BASE CONFIG_SYS_FSL_FLASH0_BASE&lt;/P&gt;&lt;P&gt;#define FLASH_SECTOR_SIZE 0x40000&lt;/P&gt;&lt;P&gt;#define CONFIG_SYS_MAX_FLASH_BANKS 1&lt;BR /&gt;#define CONFIG_ENV_SIZE (0x2000) /* 8 KB */&lt;BR /&gt;#define CONFIG_ENV_SECT_SIZE (FLASH_SECTOR_SIZE) /* 256 KB */&lt;BR /&gt;#define CONFIG_SYS_MAX_FLASH_SECT (0x4000000 / CONFIG_ENV_SECT_SIZE)&lt;BR /&gt;#define CONFIG_ENV_OFFSET 2 * CONFIG_ENV_SECT_SIZE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have comment MMC related macros.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i have compiled the source code am getting the below error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u-boot/common/board_r.c:364: undefined reference to `flash_init'&lt;BR /&gt;common/built-in.o: In function `addr2info':&lt;/P&gt;&lt;P&gt;u-boot/common/flash.c:95: undefined reference to `flash_info'&lt;/P&gt;&lt;P&gt;u-boot/common/flash.c:163: undefined reference to `write_buff'&lt;BR /&gt;common/built-in.o: In function `do_env_save':&lt;/P&gt;&lt;P&gt;u-boot/common/cmd_nvedit.c:710: undefined reference to `saveenv'&lt;BR /&gt;Segmentation fault (core dumped)&lt;BR /&gt;Makefile:1207: recipe for target 'u-boot' failed&lt;BR /&gt;make: *** [u-boot] Error 139&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please help on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Ramanjineyulu Thota.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2017 07:31:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/saving-environment-variables-to-SDCARD-instead-how-to-save-it-to/m-p/704356#M109402</guid>
      <dc:creator>ramanjineyuluth</dc:creator>
      <dc:date>2017-08-28T07:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: saving environment variables to SDCARD instead how to save it to FLASH</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/saving-environment-variables-to-SDCARD-instead-how-to-save-it-to/m-p/704357#M109403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramanjineyulu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what uboot version used in the case, please try nxp release imx_v2016.03 :&lt;/P&gt;&lt;P&gt;&lt;A href="http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git/tree/?h=imx_v2016.03_4.1.15_2.0.0_ga"&gt;http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git/tree/?h=imx_v2016.03_4.1.15_2.0.0_ga&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2017 10:09:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/saving-environment-variables-to-SDCARD-instead-how-to-save-it-to/m-p/704357#M109403</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-08-28T10:09:04Z</dc:date>
    </item>
  </channel>
</rss>

