<?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: Failed to boot from emmc. in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Failed-to-boot-from-emmc/m-p/468719#M74037</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oliver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after boot failure attach the board with any JTAG debugger&lt;/P&gt;&lt;P&gt;and dump 0x907400 (ROM uses 0x907000 as starting address),&lt;/P&gt;&lt;P&gt;you should see your IVT header here if the eMMC access is ok.&lt;/P&gt;&lt;P&gt;Also recommended to check boot settings reading SRC_SBMR1,2 registers.&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;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Dec 2015 01:59:24 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2015-12-09T01:59:24Z</dc:date>
    <item>
      <title>Failed to boot from emmc.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Failed-to-boot-from-emmc/m-p/468718#M74036</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;We have a custom board with eMMC(on SD4) and SD(on SD3), when I try to boot from eMMC, it's always failed and enter serial download mode but boot success from SD.&lt;/P&gt;&lt;P&gt;However, I can download image to eMMC by MFGTool without any error, or access the eMMC after boot from SD.&lt;/P&gt;&lt;P&gt;I load my bootloader image to RAM by MFGTool and dump the SRC memory as below. Seems the system was reset by WDOG?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #2873ee;"&gt;U-Boot &amp;gt; md 020d8000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #2873ee;"&gt;020d8000: 00000521 00005860 00000011 00000000&amp;nbsp;&amp;nbsp;&amp;nbsp; !...`X..........&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #2873ee;"&gt;020d8010: 00000000 00000000 0000001f 12000001&amp;nbsp;&amp;nbsp;&amp;nbsp; ................&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I think maybe timing incorrect when boot ROM try to initiate eMMC at very early stage, but how to debug this kind of issue?&lt;/P&gt;&lt;P&gt;Please give me an advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Oliver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 10:59:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Failed-to-boot-from-emmc/m-p/468718#M74036</guid>
      <dc:creator>oliverkuo</dc:creator>
      <dc:date>2015-12-08T10:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to boot from emmc.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Failed-to-boot-from-emmc/m-p/468719#M74037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oliver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after boot failure attach the board with any JTAG debugger&lt;/P&gt;&lt;P&gt;and dump 0x907400 (ROM uses 0x907000 as starting address),&lt;/P&gt;&lt;P&gt;you should see your IVT header here if the eMMC access is ok.&lt;/P&gt;&lt;P&gt;Also recommended to check boot settings reading SRC_SBMR1,2 registers.&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;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 01:59:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Failed-to-boot-from-emmc/m-p/468719#M74037</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2015-12-09T01:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to boot from emmc.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Failed-to-boot-from-emmc/m-p/468720#M74038</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 response, unfortunately, our custom board doesn't have JTAG, is there any thing we can check from software or hardware view?&lt;/P&gt;&lt;P&gt;Ex, measure eMMC pins to confirm power sequence or software setting related to eMMC boot?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Oliver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 10:20:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Failed-to-boot-from-emmc/m-p/468720#M74038</guid>
      <dc:creator>oliverkuo</dc:creator>
      <dc:date>2015-12-09T10:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to boot from emmc.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Failed-to-boot-from-emmc/m-p/468721#M74039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oliver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unfortunately without jtag there is no much possibilities&lt;/P&gt;&lt;P&gt;to debug such case. One can check signals with oscilloscope&lt;/P&gt;&lt;P&gt;and try other eMMCs.&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, 09 Dec 2015 11:04:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Failed-to-boot-from-emmc/m-p/468721#M74039</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2015-12-09T11:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to boot from emmc.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Failed-to-boot-from-emmc/m-p/468722#M74040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oliver,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please show me the emmc boot configuration?&lt;/P&gt;&lt;P&gt;emmc has boot partition, that is why we need to configure the boot partition.&lt;/P&gt;&lt;P&gt;you can see that in the mfg tool&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;echo 8 &amp;gt; /sys/block/mmcblk%mmc%/device/boot_config&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2015 06:10:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Failed-to-boot-from-emmc/m-p/468722#M74040</guid>
      <dc:creator>BiyongSUN</dc:creator>
      <dc:date>2015-12-10T06:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to boot from emmc.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Failed-to-boot-from-emmc/m-p/468723#M74041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Biyong,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The original command in my ucl2.xml is below, however, it's still failed even I change to your command.&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;Our hardware design uses 1.8V for eMMC IO signal, I check imx_esdhc.c seems doesn't check ESDHC_HOSTCAPBLT_VS18 host capability, is it supported for 1.8V eMMC boot?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2015 10:19:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Failed-to-boot-from-emmc/m-p/468723#M74041</guid>
      <dc:creator>oliverkuo</dc:creator>
      <dc:date>2015-12-10T10:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to boot from emmc.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Failed-to-boot-from-emmc/m-p/468724#M74042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As previous mention, please get the boot configuration by cat boot_info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cat&amp;nbsp; /sys/devices/platform/sdhci-esdhc-imx.3/mmc_host/mmc0/mmc0:0001/boot_info&lt;/P&gt;&lt;P&gt;boot_info:0x07;&lt;BR /&gt;&amp;nbsp; ALT_BOOT_MODE:1 - Supports alternate boot method&lt;BR /&gt;&amp;nbsp; DDR_BOOT_MODE:1 - Supports alternate dual data rate during boot&lt;BR /&gt;&amp;nbsp; HS_BOOTMODE:1 - Supports high speed timing during boot&lt;BR /&gt;boot_size:2048KB&lt;BR /&gt;boot_partition:0x48;&lt;BR /&gt;&amp;nbsp; BOOT_ACK:1 - Boot acknowledge sent during boot operation&lt;BR /&gt;&amp;nbsp; BOOT_PARTITION-ENABLE: 1 - Boot partition 1 enabled&lt;BR /&gt;boot_bus:0x00&lt;BR /&gt;&amp;nbsp; BOOT_MODE:0 - Use single data rate + backward compatible timings in boot operation&lt;BR /&gt;&amp;nbsp; RESET_BOOT_BUS_WIDTH:0 - Reset bus width to x1, single data rate and backwardcompatible timings after boot operation&lt;BR /&gt;&amp;nbsp; BOOT_BUS_WIDTH:0 - x1 (sdr) or x4 (ddr) bus width in boot operation mode&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2015 10:33:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Failed-to-boot-from-emmc/m-p/468724#M74042</guid>
      <dc:creator>BiyongSUN</dc:creator>
      <dc:date>2015-12-10T10:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to boot from emmc.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Failed-to-boot-from-emmc/m-p/468725#M74043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Biyong,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your useful information, I check &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;/sys/devices/platform/sdhci-esdhc-imx.3/mmc_host/mmc0/mmc0:0001/boot_info as below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;boot_info:0x07;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; ALT_BOOT_MODE:1 - Supports alternate boot method&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; DDR_BOOT_MODE:1 - Supports alternate dual data rate during boot&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; HS_BOOTMODE:1 - Supports high speed timing during boot&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;boot_size:2048KB&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;boot_partition:0x00;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; BOOT_ACK:0 - No boot acknowledge sent&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; BOOT_PARTITION-ENABLE: 0 - Device not boot enabled&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;boot_bus:0x00&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; BOOT_MODE:0 - Use single data rate + backward compatible timings in boot operation&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; RESET_BOOT_BUS_WIDTH:0 - Reset bus width to x1, single data rate and backwardcompatible timings after boot operation&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; BOOT_BUS_WIDTH:0 - x1 (sdr) or x4 (ddr) bus width in boot operation mode&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The boot_partition was not enabled, but I'm sure MFGTool script DO enable the boot partition by below instruction.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;echo 8 &amp;gt; /sys/devices/platform/sdhci-esdhc-imx.3/mmc_host/mmc0/mmc0:0001/boot_config&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;So I add a command behind to check if the boot_partition is enabled, "cat /sys/devices/platform/sdhci-esdhc-imx.3/mmc_host/mmc0/mmc0:0001/boot_info".&lt;/P&gt;&lt;P&gt;After adding this command, the board can boot from emmc success! How come??&lt;/P&gt;&lt;P&gt;I'm concern if this would work on all my platform, any idea about the root cause of above symptom?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Oliver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 06:49:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Failed-to-boot-from-emmc/m-p/468725#M74043</guid>
      <dc:creator>oliverkuo</dc:creator>
      <dc:date>2015-12-11T06:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to boot from emmc.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Failed-to-boot-from-emmc/m-p/468726#M74044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your &lt;EM&gt;boot_partition:0x00;&lt;/EM&gt; shows the boot configuration is wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems you are using the BSP L3.0.35. It has some issue for emmc boot configuration. But can use a workaround of changing the command order in mfg tool xml.&lt;/P&gt;&lt;P&gt;But it is a workaround. not fix. it is under some cases. This workaround doesn't work all the time.&lt;/P&gt;&lt;P&gt;to fix, please check the item #2 below.&lt;/P&gt;&lt;P&gt;In the new BSP release 3.10.xx or 3.14.xx&amp;nbsp; kernel has no such issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. For test, please use the third party application mmc attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; a. put to mfg tools:&amp;nbsp; Profiles\MX6Q Linux Update\OS Firmware\files\mmc.tar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; b. add following line to Profiles\MX6Q Linux Update\OS Firmware\ucl2.xml&lt;/P&gt;&lt;P&gt;--&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;CMD state="Updater" type="push" body="$ dd if=$FILE of=/dev/mmcblk0boot0 bs=512 seek=2 skip=2"&amp;gt;write U-Boot to sd card&amp;lt;/CMD&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;CMD state="Updater" type="push" body="$ echo 1 &amp;gt; /sys/block/mmcblk0boot0/force_ro"&amp;gt; re-enable read-only access &amp;lt;/CMD&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!--&lt;/P&gt;&lt;P&gt;&amp;lt;CMD state="Updater" type="push" body="$ echo 8 &amp;gt; /sys/devices/platform/sdhci-esdhc-imx.3/mmc_host/mmc0/mmc0:0001/boot_config"&amp;gt;enable boot partion 1 to boot&amp;lt;/CMD&amp;gt;&lt;/P&gt;&lt;P&gt;--&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt; &amp;lt;CMD state="Updater" type="push" body="send" file="files/mmc.tar"&amp;gt;Sending mmc util&amp;lt;/CMD&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp; &amp;lt;CMD state="Updater" type="push" body="$ tar xf $FILE "&amp;gt; untar mmc&amp;lt;/CMD&amp;gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp; &amp;lt;CMD state="Updater" type="push" body="$ ./mmc bootpart enable 1 1 /dev/mmcblk0"/&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can untar the mmc.tar. put in the sdcard use the SD card boot and write the boot configuration to emmc.&lt;/P&gt;&lt;P&gt;run the command &lt;SPAN style="color: #e23d39;"&gt; ./mmc bootpart enable 1 1&lt;/SPAN&gt; as it is mentioned above in mfg tool .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. to fix&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Modify the following code. and re-compile the kernel for mfg tool . and use the new mfg tool kernel to flash the emmc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drivers/mmc/core/mmc.c&lt;BR /&gt;setup_boot_partitions&lt;BR /&gt;…..&lt;BR /&gt;err = mmc_send_ext_csd(card, ext_csd);&amp;nbsp; // The setup_boot_partitions is trying to filter&amp;nbsp; wrong value&amp;nbsp; but&amp;nbsp; back door here. &lt;BR /&gt; .....&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;&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;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp; it reads back the value may contain the PARTITION_ACCESS bit by&amp;nbsp; echo the force_ro&lt;BR /&gt;/* enable the boot partition in boot mode */&lt;BR /&gt; /* boot enable be -&lt;BR /&gt;&amp;nbsp; * 0x00 - disable boot enable.&lt;BR /&gt;&amp;nbsp; * 0x08 - boot partition 1 is enabled for boot.&lt;BR /&gt;&amp;nbsp; * 0x10 - boot partition 2 is enabled for boot.&lt;BR /&gt;&amp;nbsp; * 0x38&lt;BR /&gt;switch (part &amp;amp; EXT_CSD_BOOT_PARTITION_ENABLE_MASK) {&lt;/P&gt;&lt;P&gt;break;&lt;BR /&gt; case EXT_CSD_BOOT_PARTITION_ENABLE_MASK:&lt;BR /&gt;&amp;nbsp; boot_config = ((ext_csd[EXT_CSD_PART_CONFIG]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; | EXT_CSD_BOOT_PARTITION_ENABLE_MASK)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp; ~EXT_CSD_BOOT_ACK_ENABLE);&lt;BR /&gt;&amp;nbsp; break;&lt;BR /&gt; default:&lt;BR /&gt;&amp;nbsp; printk(KERN_ERR "%s: wrong boot config parameter"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; " 00 (disable boot), 08 (enable boot1),"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; "16 (enable boot2), 56 (User area)\n",&lt;BR /&gt;&amp;nbsp;&amp;nbsp; mmc_hostname(card-&amp;gt;host));&lt;BR /&gt;&amp;nbsp; err = -EINVAL;&lt;BR /&gt;&amp;nbsp; goto err_rtn;&lt;BR /&gt; }&lt;BR /&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp; boot_config = boot_config&amp;nbsp; &amp;amp;&amp;nbsp; 0x78;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; Let PARTITION_ACCESS = 0&lt;/SPAN&gt;&lt;BR /&gt; err = mmc_switch(card, EXT_CSD_CMD_SET_NORMAL,&lt;BR /&gt;&amp;nbsp; EXT_CSD_PART_CONFIG, boot_config, card-&amp;gt;ext_csd.part_time);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following is from the emmc spec.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Untitled.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/22187i7A9C12C2E0D6E496/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;boot_config = boot_config&amp;nbsp; &amp;amp;&amp;nbsp; 0x78;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; Let PARTITION_ACCESS = 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Untitled.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/22234iB643D452CF8CC035/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 08:03:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Failed-to-boot-from-emmc/m-p/468726#M74044</guid>
      <dc:creator>BiyongSUN</dc:creator>
      <dc:date>2015-12-11T08:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to boot from emmc.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Failed-to-boot-from-emmc/m-p/468727#M74045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Biyong,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try your modification but still failed to boot from eMMC, I also test several values but no one works.&lt;/P&gt;&lt;P&gt;I add "mmc_read_ext_csd" at the end of "setup_boot_partitions" and could boot from eMMC success.&lt;/P&gt;&lt;P&gt;Finally, I add below code to solve the issue in my case.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;card-&amp;gt;ext_csd.part_config = ext_csd[EXT_CSD_PART_CONFIG];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your kindly support.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Oliver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Dec 2015 10:30:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Failed-to-boot-from-emmc/m-p/468727#M74045</guid>
      <dc:creator>oliverkuo</dc:creator>
      <dc:date>2015-12-14T10:30:41Z</dc:date>
    </item>
  </channel>
</rss>

