<?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: Possible to flash bootloader from Linux on i.MX536? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Possible-to-flash-bootloader-from-Linux-on-i-MX536/m-p/709343#M110266</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when running off NAND seems "&lt;CODE&gt;flash_erase&lt;/CODE&gt;" destroys nand ubifs structures&lt;/P&gt;&lt;P&gt;so there are such errors. Note, nxp supports only nand programming using&lt;/P&gt;&lt;P&gt;mfg tools option, available on link&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/products/power-management/pmics/power-management-for-i.mx-application-processors/i.mx53-quick-start-board:IMX53QSB?tab=Design_Tools_Tab" title="https://www.nxp.com/products/power-management/pmics/power-management-for-i.mx-application-processors/i.mx53-quick-start-board:IMX53QSB?tab=Design_Tools_Tab"&gt;i.MX53 Quick Start Board|NXP&lt;/A&gt;&amp;nbsp;&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>Wed, 20 Sep 2017 23:08:51 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2017-09-20T23:08:51Z</dc:date>
    <item>
      <title>Possible to flash bootloader from Linux on i.MX536?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Possible-to-flash-bootloader-from-Linux-on-i-MX536/m-p/709342#M110265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm attempting to flash the bootloader to NAND from Linux Userspace. I can do this successfully if I'm running off MMC, but if I'm running off NAND I get errors. My NAND partitions are the following:&lt;/P&gt;&lt;P&gt;1 - Bootloader&lt;/P&gt;&lt;P&gt;2 - Kernel&lt;/P&gt;&lt;P&gt;3 - RootFS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Linux kernel 2.6.35 and u-boot 2009.08.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the error I get when attempting to flash while running from NAND:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;# flash_erase /dev/mtd0 0 0
Erasing 128 Kibyte @ fe0000 -- 100 % complete
# kobs-ng init --chip_0_device_path=/dev/mtd0 ./u-boot.bin
UBIFS error (pid 856): ubifs_check_node: bad CRC: calculated 0x54b729d9, read 0x89df9781
UBIFS error (pid 856): ubifs_check_node: bad node at LEB 530:8016
UBIFS error (pid 856): ubifs_read_node: expected node type 1
UBIFS error (pid 856): do_readpage: cannot read page 3 of inode 6759, error -117
UBIFS error (pid 856): ubifs_check_node: bad CRC: calculated 0x54b729d9, read 0x89df9781
UBIFS error (pid 856): ubifs_check_node: bad node at LEB 530:8016
UBIFS error (pid 856): ubifs_read_node: expected node type 1
UBIFS error (pid 856): do_readpage: cannot read page 3 of inode 6759, error -117
zsh: bus error&amp;nbsp; kobs-ng init --chip_0_device_path=/dev/mtd0 ./u-boot.bin
# UBIFS error (pid 800): ubifs_check_node: bad CRC: calculated 0x175bdab8, read 0x283fd80a
UBIFS error (pid 800): ubifs_check_node: bad node at LEB 2785:5616
UBIFS error (pid 800): ubifs_read_node: expected node type 1
UBIFS error (pid 800): do_readpage: cannot read page 44 of inode 8679, error -117
UBIFS error (pid 800): ubifs_check_node: bad CRC: calculated 0x175bdab8, read 0x283fd80a
UBIFS error (pid 800): ubifs_check_node: bad node at LEB 2785:5616
UBIFS error (pid 800): ubifs_read_node: expected node type 1
UBIFS error (pid 800): do_readpage: cannot read page 44 of inode 8679, error -117
UBIFS error (pid 800): ubifs_check_node: bad CRC: calculated 0x175bdab8, read 0x283fd80a
UBIFS error (pid 800): ubifs_check_node: bad node at LEB 2785:5616
UBIFS error (pid 800): ubifs_read_node: expected node type 1
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It continues to print UBIFS errors till a power cycle, at which point there is no bootloader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to write the bootloader to NAND from Linux userspace if you booted from NAND?&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, 20 Sep 2017 13:25:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Possible-to-flash-bootloader-from-Linux-on-i-MX536/m-p/709342#M110265</guid>
      <dc:creator>michaeljohn</dc:creator>
      <dc:date>2017-09-20T13:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to flash bootloader from Linux on i.MX536?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Possible-to-flash-bootloader-from-Linux-on-i-MX536/m-p/709343#M110266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when running off NAND seems "&lt;CODE&gt;flash_erase&lt;/CODE&gt;" destroys nand ubifs structures&lt;/P&gt;&lt;P&gt;so there are such errors. Note, nxp supports only nand programming using&lt;/P&gt;&lt;P&gt;mfg tools option, available on link&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/products/power-management/pmics/power-management-for-i.mx-application-processors/i.mx53-quick-start-board:IMX53QSB?tab=Design_Tools_Tab" title="https://www.nxp.com/products/power-management/pmics/power-management-for-i.mx-application-processors/i.mx53-quick-start-board:IMX53QSB?tab=Design_Tools_Tab"&gt;i.MX53 Quick Start Board|NXP&lt;/A&gt;&amp;nbsp;&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>Wed, 20 Sep 2017 23:08:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Possible-to-flash-bootloader-from-Linux-on-i-MX536/m-p/709343#M110266</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-09-20T23:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to flash bootloader from Linux on i.MX536?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Possible-to-flash-bootloader-from-Linux-on-i-MX536/m-p/709344#M110267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I wasn't clearer in my original post. The bootloader is on the first NAND partition (/dev/mtd0) and UBIFS is on the third NAND partition (/dev/mtd2). Would "flash_erase" still destroy NAND UBIFS structures in this case?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2017 00:58:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Possible-to-flash-bootloader-from-Linux-on-i-MX536/m-p/709344#M110267</guid>
      <dc:creator>michaeljohn</dc:creator>
      <dc:date>2017-09-21T00:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to flash bootloader from Linux on i.MX536?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Possible-to-flash-bootloader-from-Linux-on-i-MX536/m-p/709345#M110268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been investigating this with Michael, I can reproduce the issue by issuing&lt;/P&gt;&lt;P&gt;echo 1 &amp;gt; /sys/devices/platform/mxc_nandv2_flash.0/disable_bi_swap&lt;/P&gt;&lt;P&gt;and then accessing something on a filesystem on the NAND chip. This issue seems to be that kobs-ng modifies&amp;nbsp;&lt;SPAN&gt;disable_bi_swap during the write process and does not restore it.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 02:29:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Possible-to-flash-bootloader-from-Linux-on-i-MX536/m-p/709345#M110268</guid>
      <dc:creator>tobycollett</dc:creator>
      <dc:date>2017-10-11T02:29:38Z</dc:date>
    </item>
  </channel>
</rss>

