<?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: IMX6 eMMC boot</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-eMMC-boot/m-p/1484036#M192157</link>
    <description>&lt;P&gt;Hi. I have the same problem with imx7d. did you solve this problem?&lt;/P&gt;&lt;P&gt;I'm running on SD Card without any problem but can not run with eMMC. u-boot.imx or u-boot.bin give same result. boot_cfg pins seem correct. I tried mmcblkX or mmcblkXboot0. Why is eMMC boot not working?&lt;/P&gt;</description>
    <pubDate>Mon, 04 Jul 2022 11:31:51 GMT</pubDate>
    <dc:creator>Ahmet_Cihan_AKINCA</dc:creator>
    <dc:date>2022-07-04T11:31:51Z</dc:date>
    <item>
      <title>IMX6 eMMC boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-eMMC-boot/m-p/354373#M49533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I'm trying to get our custom board with an IMX6 to boot u-boot from eMMC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's what I've done:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) use boundary devices imx_usb to load u-boot in using the serial downloader mode.&lt;/P&gt;&lt;P&gt;2) boot linux from sdcard on sd3&lt;/P&gt;&lt;P&gt;3) cd cd /sys/bus/mmc/devices/mmc1\:0001/&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (sd4, emmc)&lt;/P&gt;&lt;P&gt;4) cat boot_info&lt;/P&gt;&lt;P&gt;1) desired SD clock: 52000000, actual: 49500000&lt;/P&gt;&lt;P&gt;1) desired SD clock: 52000000, actual: 49500000&lt;/P&gt;&lt;P&gt;mmc1: BKOPS_EN bit is not set&lt;/P&gt;&lt;P&gt;boot_info:0x07;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ALT_BOOT_MODE:1 - Supports alternate boot method&lt;/P&gt;&lt;P&gt;&amp;nbsp; DDR_BOOT_MODE:1 - Supports alternate dual data rate during boot&lt;/P&gt;&lt;P&gt;&amp;nbsp; HS_BOOTMODE:1 - Supports high speed timing during boot&lt;/P&gt;&lt;P&gt;boot_size:4096KB&lt;/P&gt;&lt;P&gt;boot_partition:0x49;&lt;/P&gt;&lt;P&gt;&amp;nbsp; BOOT_ACK:1 - Boot acknowledge sent during boot operation&lt;/P&gt;&lt;P&gt;&amp;nbsp; BOOT_PARTITION-ENABLE: 1 - Boot partition 1 enabled&lt;/P&gt;&lt;P&gt;boot_bus:0x00&lt;/P&gt;&lt;P&gt;&amp;nbsp; BOOT_MODE:0 - Use single data rate + backward compatible timings in boot operation&lt;/P&gt;&lt;P&gt;&amp;nbsp; RESET_BOOT_BUS_WIDTH:0 - Reset bus width to x1, single data rate and backwardcompatible timings after boot operation&lt;/P&gt;&lt;P&gt;&amp;nbsp; BOOT_BUS_WIDTH:0 - x1 (sdr) or x4 (ddr) bus width in boot operation mode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5) write u-boot.imx (same one serial downloader used) to emmc using:&lt;/P&gt;&lt;P&gt;dd if=/sdcard/u-boot.imx bs=1k seek=1 conv=fsync of=/dev/mmcblk1&lt;/P&gt;&lt;P&gt;I have 4 mmcblk1 devices:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; mmcblk1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; mmcblk1boot0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; mmcblk1boot1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; mmcblk1rpmb&lt;/P&gt;&lt;P&gt;I assume writting to the mmcblk1 entry is correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6) reboot and verify image:&lt;/P&gt;&lt;P&gt;dd if=/dev/mmcblk1 bs=1k skip=1 count=211 of=/tmp/uboot.tmp&lt;/P&gt;&lt;P&gt;diff -s /sdcard/u-boot.imx /tmp/uboot.tmp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7) reboot and set fuses in u-boot:&lt;/P&gt;&lt;P&gt;fuse prog 0 5 00005862&lt;/P&gt;&lt;P&gt;fuse prog 0 6 00000010&lt;/P&gt;&lt;P&gt;That sets: BOOT_CFG1 to 0x62&lt;/P&gt;&lt;P&gt;BOOT_CFG2 to 0x58&lt;/P&gt;&lt;P&gt;and BT_FUSE_SEL to 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;8) set dipswitches so boot_mode gpios = 00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;9) power on, nothing happens. try using imx_usb serial downloader app thingy, and it works. So something is failing.&lt;/P&gt;&lt;P&gt;We scoped the clk pin on the eMMC and it appeared to wiggle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some final points.&lt;/P&gt;&lt;P&gt;We are using a 16GB eMMC v4.41 chip, with an 8 bit bus. No vselect. On the default pins for SD4. We have a reset pin, on NANDF_ALE.&lt;/P&gt;&lt;P&gt;I have the line: "BOOT_FROM sd" in my u-boot board.cfg file, which I think sets the offset to 0x400.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have I missed anything?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 14:07:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-eMMC-boot/m-p/354373#M49533</guid>
      <dc:creator>andrewparlane</dc:creator>
      <dc:date>2014-09-29T14:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 eMMC boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-eMMC-boot/m-p/354374#M49534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to use u-boot.bin, not u-boot.imx in the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dd if=/sdcard/u-boot.imx bs=1k seek=1 conv=fsync of=/dev/mmcblk1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are missing the IVT table in your MMC image, see this post for the differences between .bin and .imx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/340349"&gt;u-boot.bin and u-boot.imx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 09:53:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-eMMC-boot/m-p/354374#M49534</guid>
      <dc:creator>MT</dc:creator>
      <dc:date>2014-10-01T09:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 eMMC boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-eMMC-boot/m-p/354375#M49535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrew&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can just reproduce boot settings for SPF-27392 (also pins on SD4)&lt;/P&gt;&lt;P&gt;MCIMX6DL-SDP p.5 for eMMC &lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=i.MX6Q&amp;amp;nodeId=018rH3ZrDRB24A&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab"&gt;i.MX6_SABRE_SDP_DESIGNFILES&lt;/A&gt; &lt;IMG alt="" class="jiveImage" src="http://www.freescale.com/files/graphic/SECURITYINFOIMAGE.gif" /&gt;&lt;/P&gt;&lt;P&gt;Programming is performed with MFG Tool &lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=i.MX6S&amp;amp;nodeId=018rH3ZrDRB24A&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab"&gt;IMX_6DL_6S_MFG_TOOL&lt;/A&gt; &lt;IMG alt="" class="jiveImage" src="http://www.freescale.com/files/graphic/SECURITYINFOIMAGE.gif" /&gt;&lt;/P&gt;&lt;P&gt;steps are described in i.MX_6Solo6DualLite_SABRE-SDP_Linux_User's_Guide.pdf&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.freescale.com/webapp/Download?colCode=L3.0.35_4.1.0_LINUX_DOCS&amp;amp;location=null&amp;amp;fasp=1&amp;amp;WT_TYPE=Supporting%20Information&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=gz&amp;amp;WT_ASSET=Documentation&amp;amp;fileExt=.gz"&gt;L3.0.35_4.1.0_LINUX_DOCS&lt;/A&gt;&lt;/P&gt;&lt;P&gt;attached ucl2.xml profile "SabreSD-eMMC-uboot-kernel" shows commands&lt;/P&gt;&lt;P&gt;which uses MFG Tool for eMMC programming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 10:07:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-eMMC-boot/m-p/354375#M49535</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2014-10-01T10:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 eMMC boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-eMMC-boot/m-p/354376#M49536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately that didn't help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote my u-boot.bin to /dev/mmcblk1, /dev/mmcblk1boot0 and /dev/mmcblk1boot1&lt;/P&gt;&lt;P&gt;Can you confirm which it should be?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For reference I'm using Boundary Devices uboot, from commit: 4dfca8881f318f0d346b575ffbe93aa12755c4e9, working on trying to figure out which branch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kernel is also from Boundary Devices linux-imx6, 3.10.17-ga branch. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 11:13:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-eMMC-boot/m-p/354376#M49536</guid>
      <dc:creator>andrewparlane</dc:creator>
      <dc:date>2014-10-01T11:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 eMMC boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-eMMC-boot/m-p/354377#M49537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrew&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Boundary Devices use different methods for eMMC programming, so&lt;/P&gt;&lt;P&gt;I would suggest to join the mailing list below so more people can help you&lt;/P&gt;&lt;P&gt;and post on Boundary Devices forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="loading" href="https://lists.yoctoproject.org/listinfo/meta-freescale" title="https://lists.yoctoproject.org/listinfo/meta-freescale"&gt;https://lists.yoctoproject.org/listinfo/meta-freescale&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="loading" href="http://boundarydevices.com/community/" title="http://boundarydevices.com/community/"&gt;http://boundarydevices.com/community/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 11:33:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-eMMC-boot/m-p/354377#M49537</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2014-10-01T11:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 eMMC boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-eMMC-boot/m-p/354378#M49538</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;&lt;/P&gt;&lt;P&gt;I looked through that docs and the schematic. It states required dipswitches, which maps to gpio pull ups, which maps to setting bits in the BOOT_CFG 1 and 2 regs. They agree with what I'm setting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at the ucl2.xml you attached (thanks), how do I tell which &amp;lt;LIST&amp;gt; section I want to look at. The "Choose eMMC android as media" looks promising.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This runs the following commands:&lt;/P&gt;&lt;P&gt;dd if=/dev/zero of=/dev/mmcblk0 bs=512 seek=1536 count=16&lt;/P&gt;&lt;P&gt;echo 0 &amp;gt; /sys/block/mmcblk0boot0/force_ro&lt;/P&gt;&lt;P&gt;dd if=$FILE of=/dev/mmcblk0boot0 bs=512 seek=2 skip=2&lt;/P&gt;&lt;P&gt;echo 1 &amp;gt; /sys/block/mmcblk0boot0/force_ro&lt;/P&gt;&lt;P&gt;echo 8 &amp;gt; /sys/devices/platform/sdhci-esdhc-imx.3/mmc_host/mmc0/mmc0:0001/boot_config&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This looks promissing.&lt;/P&gt;&lt;P&gt;I haven't run the first line. The actual writing the image writes to boot0 which is good to know, and it also skip=2 which I wasn't doing. This skips the first 1K of input data. Which if I'm correct is meant to contain the IVT?&lt;/P&gt;&lt;P&gt;The rest I think I've got done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried these new commands and still nothing. Unfortunately it could be anything from my image is in the wrong place, to I need to add a config option to u-boot to my fuses are wrong. It makes it quite hard to figure out where it's going wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 11:35:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-eMMC-boot/m-p/354378#M49538</guid>
      <dc:creator>andrewparlane</dc:creator>
      <dc:date>2014-10-01T11:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 eMMC boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-eMMC-boot/m-p/354379#M49539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I'll get in touch with them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 11:35:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-eMMC-boot/m-p/354379#M49539</guid>
      <dc:creator>andrewparlane</dc:creator>
      <dc:date>2014-10-01T11:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 eMMC boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-eMMC-boot/m-p/354380#M49540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrew&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, skipping the first 1K is for providing correct IVT offset (1K for SD boot).&lt;/P&gt;&lt;P&gt;Actually you can check image with hex editor : if it already has this offset or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also after boot failure, one can connect the OTG on the board to the PC, if a new HID &lt;/P&gt;&lt;P&gt;device can be found,&amp;nbsp; the ROM code entered serial download mode which mean &lt;/P&gt;&lt;P&gt;some error occurred in the booting process. One can also check with MFG Tool,&lt;/P&gt;&lt;P&gt;if it sees i.MX6 device.&lt;/P&gt;&lt;P&gt;Then attach the board with any JTAG debugger, such as RV-ICE or &lt;/P&gt;&lt;P&gt;Lauterbach and dump 0x907400 (ROM uses 0x907000 as starting address),&lt;/P&gt;&lt;P&gt;you should see your IVT header here if the SD access is ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 12:11:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-eMMC-boot/m-p/354380#M49540</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2014-10-01T12:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 eMMC boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-eMMC-boot/m-p/354381#M49541</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;Let me see if I understand this correctly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;building u-boot causes the IVT to be generated it is pre-pended to the .imx file and the result is the .bin? My .imx file is 213KB and my .bin is 209KB. This suggests that either Boundary's u-boot is not doing the same thing, or the .imx -&amp;gt; .bin is stripping stuff out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then we write the resulting image to eMMC, containing the IVT and the binary. The IVT goes at address 0x400, the u-boot binary at 0x800.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After a boot failure, the&amp;nbsp; serial downloader is active, and I can use the boundary imx_usb tool to load in u-boot. So it has reverted to serial downloader mode, showing there is an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 12:27:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-eMMC-boot/m-p/354381#M49541</guid>
      <dc:creator>andrewparlane</dc:creator>
      <dc:date>2014-10-01T12:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 eMMC boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-eMMC-boot/m-p/354382#M49542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrew&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;seems for yocto correct &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sudo dd if=u-boot.imx of=/dev/sbX bs=512 seek=2; sync&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as suggested in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/330366"&gt;How to burn Uboot   Linux on SD Card?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 12:54:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-eMMC-boot/m-p/354382#M49542</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2014-10-01T12:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 eMMC boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-eMMC-boot/m-p/354383#M49543</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;I tried that command using mmcblk0, mmcblk0boot0 and mmcblk0boot1 with both the .imx and .bin files and it still doesn't work. I'm going to try and validate my IVT and see if I can spot the problem that way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 13:30:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-eMMC-boot/m-p/354383#M49543</guid>
      <dc:creator>andrewparlane</dc:creator>
      <dc:date>2014-10-01T13:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 eMMC boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-eMMC-boot/m-p/354384#M49544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been looking through my .imx and .bin files and found that the IVT is actually in the .imx and not in the .bin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the first 48 bytes of .imx file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;d1 00 20 40 00 00 80 17 00 00 00 00 30 fc 7f 17&lt;/P&gt;&lt;P&gt;24 fc 7f 17 04 fc 7f 17 00 00 00 00 00 00 00 00 &lt;/P&gt;&lt;P&gt;f5 fb 7f 17 00 60 03 00 00 00 00 00 d2 03 18 40&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So first 4 bytes are header and version:&lt;/P&gt;&lt;P&gt;d1 - tag (correct)&lt;/P&gt;&lt;P&gt;00 20 - length in big endian = 32 bytes as required&lt;/P&gt;&lt;P&gt;40 - version (supported = 40 or 41)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next 4 bytes are entry address&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;00 00 80 17 - 0x17800000 as set in u-boot using CONFIG_SYS_TEXT_BASE. Copied from the nitrogen6lite config&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;Next we have 4 bytes reserved set to 0s&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;Next DCD address&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;30 fc 7f 17 - 0x177ffc30&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;Then bood data address&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;24 fc 7f 17 - 0x177ffc24&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;Then self, address of IVT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;04 fc 7f 17 - 0x177ffc04&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;csf addrss&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;00 00 00 00 - not secure boot&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;reseverd&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;0s as required&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;So since the IVT is at 177ffc04 and is 32 bytes long. The boot data is right after at address ...177ffc24.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;This consists of 12 bytes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;f5 fb 7f 17 - 177ffbf5 - absolute address of image. Where does this come from?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;00 60 03 00 - size of image = 0x36000 ~= 213KB which matches the size of my .imx&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;00 00 00 00 - plugin, 0 as expected&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;Then there is the device config data, the header is&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;d2 - tag as required&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;03 18 - size&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;40 - version, the TRM says: "Version: A single byte field set to 0x41" does this mean my DCD is not supported? Or is it just a typo in the TRM.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;So my questions are:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;1) I assume I need to use the .imx then since this contains the IVT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;2) What does the "absolute address of image" in the boot data section refer to?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;3) Does the version being 0x40 in the DCD cause a problem?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;4) Is 0x1780_0000 a reasonable value for &lt;SPAN style="font-size: 13.3333339691162px;"&gt;CONFIG_SYS_TEXT_BASE?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;5) Which eMMC partition does it try and read the image from? boot0 boot1 or the start of the main eMMC (mmcblk0). I've seen various answers to this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;Andy&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 14:43:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-eMMC-boot/m-p/354384#M49544</guid>
      <dc:creator>andrewparlane</dc:creator>
      <dc:date>2014-10-01T14:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 eMMC boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-eMMC-boot/m-p/354385#M49545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We also have a custom board that is successfully booting from eMMC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, ensure your boot switches are correctly set to boot from eMMC.&amp;nbsp; How this is done is specific to your board and how you've wired up the BOOT_CFG pins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next, you said your kernel was reporting the eMMC being setup as follows:&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;Andrew Parlane wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;boot_partition:0x49;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; BOOT_ACK:1 - Boot acknowledge sent during boot operation&lt;/P&gt;
&lt;P&gt;&amp;nbsp; BOOT_PARTITION-ENABLE: 1 - Boot partition 1 enabled&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;This means the eMMC will be exposing the "boot" regions (which are distinct from the main "user area"), and the boot ROM will load U-Boot from there.&amp;nbsp; So that's where you need to copy U-Boot:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Enable writes to /dev/mmcblk1boot0&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;echo 0 &amp;gt; /sys/block/mmcblk1boot0/force_ro&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;# Precaution: Erase entire eMMC boot region.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;dd if=/dev/zero of=/dev/mmcblk1boot0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;# Copy U-Boot to eMMC boot region.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;dd if=u-boot.imx of=/dev/mmcblk1boot0 bs=512 seek=2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then power-cycle the board.&amp;nbsp; U-Boot should load immediately.&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The U-Boot binary image you successfully loaded and ran via the USB serial downloader &lt;EM&gt;should&lt;/EM&gt; work for this purpose.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you have U-Boot successfully loading and running, check that U-Boot can see and read from the eMMC using U-Boot's 'mmc' and 'fatls' or 'ext2ls' commands.&amp;nbsp; If not, you have more work to do :-).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 20:05:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-eMMC-boot/m-p/354385#M49545</guid>
      <dc:creator>leoschwab</dc:creator>
      <dc:date>2014-10-01T20:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 eMMC boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-eMMC-boot/m-p/354386#M49546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, so I noticed last night my board had stopped working with the serial downloader when my boot_mode gpio lines were set to fuse boot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erasing /dev/mmcblk0boot1 and /dev/mmcblk0 (blk0 because my sdcard isn't in ATM). Still causes the same behavior, but erasing /dev/mmcblk0boot0 makes it work again with boot_mode = fuse boot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this tells me that I had firmware in the right place, and it validated, but the image refused to run correctly and crashes before any output comes out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erasing mmcblk0boot0 and putting my latest u-boot fw in there (exactly the same file I pass to imx_usb for the serial downloader). With the commands (i erased it earlier).&lt;/P&gt;&lt;P&gt;echo 0 &amp;gt; /sys/block/mmcblk0boot0/force_ro &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;dd if=/usr/local/fw/u-boot.imx of=/dev/mmcblk0boot0 bs=512 seek=2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;sync&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;Then I power cycle, and it fails to boot, and the serial downloader still works :\&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;I dump mmcblk0boot0 using dd if=/dev/mmcblk0boot0 of=/tmp/u-boot.tmp &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;and diff with the original binary. Other than&amp;nbsp; 0x400 bytes of 00s at the beginning and a tonne of 00s at the end, the dump is as expected. With the IVT located at 0x400 (same as described in one of my other comments).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;So not sure what's going on now, I thought I was making progress when the serial downloader stopped working.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 11:00:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-eMMC-boot/m-p/354386#M49546</guid>
      <dc:creator>andrewparlane</dc:creator>
      <dc:date>2014-10-02T11:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 eMMC boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-eMMC-boot/m-p/1484036#M192157</link>
      <description>&lt;P&gt;Hi. I have the same problem with imx7d. did you solve this problem?&lt;/P&gt;&lt;P&gt;I'm running on SD Card without any problem but can not run with eMMC. u-boot.imx or u-boot.bin give same result. boot_cfg pins seem correct. I tried mmcblkX or mmcblkXboot0. Why is eMMC boot not working?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 11:31:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-eMMC-boot/m-p/1484036#M192157</guid>
      <dc:creator>Ahmet_Cihan_AKINCA</dc:creator>
      <dc:date>2022-07-04T11:31:51Z</dc:date>
    </item>
  </channel>
</rss>

