<?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: Is there a difference between the image that would be used to boot from USB and the image used to boot from SPI-flash? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Is-there-a-difference-between-the-image-that-would-be-used-to/m-p/252345#M23350</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fabio,&lt;/P&gt;&lt;P&gt;Thanks for the pointer to that README.&amp;nbsp; FWIW, it says that all iMX devices can boot from UART as a fallback.&lt;/P&gt;&lt;P&gt;I don't think that's the case for the iMX6 is it?&amp;nbsp; I'm pretty sure that the fallback for iMX6 is USB (i use the imx_usb&lt;/P&gt;&lt;P&gt;tool from Boundary devices with my sabresdb board).&amp;nbsp; I really wish it did support UART mode (I prefer simplicity),&lt;/P&gt;&lt;P&gt;so if it does, please reply!&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Nov 2013 13:07:33 GMT</pubDate>
    <dc:creator>EdSutter</dc:creator>
    <dc:date>2013-11-04T13:07:33Z</dc:date>
    <item>
      <title>Is there a difference between the image that would be used to boot from USB and the image used to boot from SPI-flash?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Is-there-a-difference-between-the-image-that-would-be-used-to/m-p/252340#M23345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had been using SABRESD u-boot-2009.08 (from LTIB) and I was able to download the u-boot.bin file &lt;/P&gt;&lt;P&gt;through &lt;SPAN style="font-size: 10pt;"&gt;usb (using&amp;nbsp; boundary-device's free imx_usb tool) to boot a board with the SD card removed&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(our real system will not have an SD card, it will boot from SPI-flash).&lt;/P&gt;&lt;P&gt;Then I added a second SPI-flash device to ECSPI5 (bootable spi) and I was able to load the exact&lt;/P&gt;&lt;P&gt;same u-boot.bin image into the SPI-flash.&amp;nbsp; When I changed the boot pins to boot from that device,&lt;/P&gt;&lt;P&gt;it worked just fine.&amp;nbsp; That confirmed my assumption that the exact same binary can be used whether&lt;/P&gt;&lt;P&gt;I'm booting raw from USB &lt;SPAN style="font-size: 10pt;"&gt;or SPI-flash.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;So far so good...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since then I've transitioned over to the latest uboot (u-boot-2013.10), got all the same SPI&lt;/P&gt;&lt;P&gt;drivers working so that I can take the same image (now called u-boot.imx) that I boot off USB and burn&lt;/P&gt;&lt;P&gt;it into SPI-flash (to boot &lt;SPAN style="font-size: 10pt;"&gt;from SPI).&amp;nbsp;&amp;nbsp; I'm no longer able to boot from SPI using the same image that I use&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;to boot from USB.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've verified that the data is properly loading into the SPI-flash, so I *thought* I should be able to use&lt;/P&gt;&lt;P&gt;the exact same image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone else tried this?&amp;nbsp; Is my assumption about the images correct?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 14:58:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Is-there-a-difference-between-the-image-that-would-be-used-to/m-p/252340#M23345</guid>
      <dc:creator>EdSutter</dc:creator>
      <dc:date>2013-11-01T14:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a difference between the image that would be used to boot from USB and the image used to boot from SPI-flash?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Is-there-a-difference-between-the-image-that-would-be-used-to/m-p/252341#M23346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Starting to investigate this, it appears that the 0x400 byte offset that is in the older version of u-boot.bin&lt;/P&gt;&lt;P&gt;which was established in the file flash_header.S of the older uboot build is no longer there.&lt;/P&gt;&lt;P&gt;Looks like the image now uses a new option to the mkimage tool "imximage" to create this instead of&lt;/P&gt;&lt;P&gt;having it built into the boot code as it was in the older version of u-boot.&lt;/P&gt;&lt;P&gt;Not sure if this is the problem, but I'm in pursuit...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 15:32:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Is-there-a-difference-between-the-image-that-would-be-used-to/m-p/252341#M23346</guid>
      <dc:creator>EdSutter</dc:creator>
      <dc:date>2013-11-01T15:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a difference between the image that would be used to boot from USB and the image used to boot from SPI-flash?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Is-there-a-difference-between-the-image-that-would-be-used-to/m-p/252342#M23347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I definitely need an explanation for this one...&lt;/P&gt;&lt;P&gt;Comparing the binary u-boot.imx with the older u-boot.bin from LTIB's uboot I notice (as I said above) that the 0x400 byte&lt;/P&gt;&lt;P&gt;offset is not in the image; as specified in the iMX6 reference manual section 8.6.1 "Image Vector Table and Boot Data".&lt;/P&gt;&lt;P&gt;If i understand this correctly, the bootrom is expecting the IVT to be at a 0x400 byte offset from the base of the image.&lt;/P&gt;&lt;P&gt;This offset is not in u-boot.imx.&amp;nbsp; So, taking a shot in the dark, I prepended the u-boot.imx file with 0x400 bytes of zeroes.&lt;/P&gt;&lt;P&gt;NOW IT WORKS!!??&amp;nbsp; Whats up with that?&amp;nbsp; It makes sense to me that this offset is needed, but how are other folks using this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm updating this reply because I've also confirmed that the u-boot.imx file that is built does not boot when installed on &lt;/P&gt;&lt;P&gt;an sd card either.&amp;nbsp; If I use the file that has the 0x400 byte offset, then it boots.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 19:24:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Is-there-a-difference-between-the-image-that-would-be-used-to/m-p/252342#M23347</guid>
      <dc:creator>EdSutter</dc:creator>
      <dc:date>2013-11-01T19:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a difference between the image that would be used to boot from USB and the image used to boot from SPI-flash?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Is-there-a-difference-between-the-image-that-would-be-used-to/m-p/252343#M23348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u-boot.imx should be flashed at 0x400 offset when booting from SD card:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sudo dd if=u-boot.imx of=/dev/mmcblk0 bs=1k seek=1; sync&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(This is explained at the the doc/README.imximage file:&lt;/P&gt;&lt;P&gt;&lt;A href="http://git.denx.de/?p=u-boot.git;a=blob;f=doc/README.imximage;h=dcda2005af93439ca42e85c5b7ffb1ccd4233586;hb=refs/heads/master" title="http://git.denx.de/?p=u-boot.git;a=blob;f=doc/README.imximage;h=dcda2005af93439ca42e85c5b7ffb1ccd4233586;hb=refs/heads/master"&gt;git.denx.de Git - u-boot.git/blob - doc/README.imximage&lt;/A&gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When booting from SPI flash and SD card the ROM starts reading from 0x400 offset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabio Estevam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 02:52:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Is-there-a-difference-between-the-image-that-would-be-used-to/m-p/252343#M23348</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2013-11-04T02:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a difference between the image that would be used to boot from USB and the image used to boot from SPI-flash?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Is-there-a-difference-between-the-image-that-would-be-used-to/m-p/252344#M23349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you misunderstand the difference between iMX6 IVT offset 0x400 and uboot building offset 0x400.&lt;/P&gt;&lt;P&gt;Firstly.iMX6 only can support booting device with specified offset (device type dependant, e.g eMMC is 0x400).&lt;/P&gt;&lt;P&gt;Secondly,FSL uboot building generated an extra 0x400 dummy padding bytes before IVT offset.&lt;/P&gt;&lt;P&gt; Unfortunately,MFG tool and fastboot only support flashing pure content (with out padding bytes). So we have to &lt;/P&gt;&lt;P&gt;cut off padding bytes from generated u-boot.bin.&lt;/P&gt;&lt;P&gt; For fastboot what I often used to debugging,I add a patch to support u-boot.bin with padding bytes or not). You can &lt;/P&gt;&lt;P&gt;touch it as a refer. This patch will check this is padding uboot or not and flash to proper offset of booting device.&lt;/P&gt;&lt;P&gt;//only apply for SD/MMC boot device&lt;/P&gt;&lt;P&gt;static void patch_on_bootloader(char* source,char* dest,char *length){&lt;/P&gt;&lt;P&gt;&amp;nbsp; unsigned char* source_buf=simple_strtoul(source, NULL, 16);&lt;/P&gt;&lt;P&gt;&amp;nbsp; unsigned int dest_start = simple_strtoul(dest, NULL, 16);&lt;/P&gt;&lt;P&gt;&amp;nbsp; int no_padding=0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; //dest normally pointer to dest device partition start sector&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(source_buf){&lt;/P&gt;&lt;P&gt;&amp;nbsp; //check if there is padding of source image&lt;/P&gt;&lt;P&gt;&amp;nbsp; if((source_buf[0]==0xD1)&amp;amp;&amp;amp;((source_buf[3]==0x40)||&lt;/P&gt;&lt;P&gt;&amp;nbsp; (source_buf[3]==0x41)))&lt;/P&gt;&lt;P&gt;&amp;nbsp; no_padding=1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; //we should change dest for padding or not&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(dest_start){&lt;/P&gt;&lt;P&gt;&amp;nbsp; //should step on padding bytes&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(!no_padding){&lt;/P&gt;&lt;P&gt;&amp;nbsp; sprintf(source,"0x%x",source_buf+0x400);&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; }else{&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(no_padding){&lt;/P&gt;&lt;P&gt;&amp;nbsp; //jump over dest in 0x200&lt;/P&gt;&lt;P&gt;&amp;nbsp; dest_start+=0x400/MMC_SATA_BLOCK_SIZE;//&lt;/P&gt;&lt;P&gt;&amp;nbsp; sprintf(dest,"0x%x",dest_start);&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; //ignore length since it's calculated freely&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 03:08:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Is-there-a-difference-between-the-image-that-would-be-used-to/m-p/252344#M23349</guid>
      <dc:creator>raymondwang</dc:creator>
      <dc:date>2013-11-04T03:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a difference between the image that would be used to boot from USB and the image used to boot from SPI-flash?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Is-there-a-difference-between-the-image-that-would-be-used-to/m-p/252345#M23350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fabio,&lt;/P&gt;&lt;P&gt;Thanks for the pointer to that README.&amp;nbsp; FWIW, it says that all iMX devices can boot from UART as a fallback.&lt;/P&gt;&lt;P&gt;I don't think that's the case for the iMX6 is it?&amp;nbsp; I'm pretty sure that the fallback for iMX6 is USB (i use the imx_usb&lt;/P&gt;&lt;P&gt;tool from Boundary devices with my sabresdb board).&amp;nbsp; I really wish it did support UART mode (I prefer simplicity),&lt;/P&gt;&lt;P&gt;so if it does, please reply!&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 13:07:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Is-there-a-difference-between-the-image-that-would-be-used-to/m-p/252345#M23350</guid>
      <dc:creator>EdSutter</dc:creator>
      <dc:date>2013-11-04T13:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a difference between the image that would be used to boot from USB and the image used to boot from SPI-flash?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Is-there-a-difference-between-the-image-that-would-be-used-to/m-p/252346#M23351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Raymond,&lt;/P&gt;&lt;P&gt;Yea, my impression of all this was that the 0x400 offset was just some requirement put on by the rom-bootloader in the iMX6.&lt;/P&gt;&lt;P&gt;Not sure where this snippet of code would be used in fastboot, but I simply dumped the content of the file (u-boot.imx) using&lt;/P&gt;&lt;P&gt;'od' to essentially &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;do what your code does.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Don't know much about 'fastboot', but AFAIK, this applies only to Android, correct?&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 13:18:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Is-there-a-difference-between-the-image-that-would-be-used-to/m-p/252346#M23351</guid>
      <dc:creator>EdSutter</dc:creator>
      <dc:date>2013-11-04T13:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a difference between the image that would be used to boot from USB and the image used to boot from SPI-flash?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Is-there-a-difference-between-the-image-that-would-be-used-to/m-p/252347#M23352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp; I don't think fastboot can only be for android based devices. My patch is for correct putting FSL uboot.bin to proper offset.&lt;/P&gt;&lt;P&gt;Sometimes FSL u-boot.bin should be flashed without 0x400 padding bytes,so using below command to remove padding &lt;/P&gt;&lt;P&gt;bytes:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #edf8ca;"&gt;sudo dd if=u-boot.imx of=/dev/mmcblk0 bs=1k seek=1; sync&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #edf8ca;"&gt;&amp;nbsp; With my patch,fastboot can check this uboot has padding bytes or not.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #edf8ca;"&gt;&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 03:16:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Is-there-a-difference-between-the-image-that-would-be-used-to/m-p/252347#M23352</guid>
      <dc:creator>raymondwang</dc:creator>
      <dc:date>2013-11-05T03:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a difference between the image that would be used to boot from USB and the image used to boot from SPI-flash?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Is-there-a-difference-between-the-image-that-would-be-used-to/m-p/252348#M23353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, mx6 uses USB as fallback method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabio Estevam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2013 17:50:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Is-there-a-difference-between-the-image-that-would-be-used-to/m-p/252348#M23353</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2013-11-06T17:50:17Z</dc:date>
    </item>
  </channel>
</rss>

