<?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: make imx8 bootable from mmcblk2boot0</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/make-imx8-bootable-from-mmcblk2boot0/m-p/1255550#M171930</link>
    <description>&lt;P&gt;The i.MX8MP binary release contains the uuu script.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The default is to write to the emmc boot0 not the user partition.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW, all the i.MX. It is all. the uuu script default is to write to the emmc boot0 not user partition.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and boot0 is the index for the Linux. In the emmc spec, it call boot1, boot2 and user partition.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please download the i.MX8MP, binary release to check.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applications-processors:IMXLINUX?tab=In-Depth_Tab" target="_blank"&gt;Embedded Linux for i.MX Applications Processors | NXP Semiconductors&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/141142i276A6C6D78AE43A0/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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;uuu_version 1.2.39&lt;/P&gt;
&lt;P&gt;# This command will be run when i.MX6/7 i.MX8MM, i.MX8MQ&lt;BR /&gt;SDP: boot -f imx-boot-imx8mpevk-sd.bin-flash_evk&lt;/P&gt;
&lt;P&gt;# This command will be run when ROM support stream mode&lt;BR /&gt;# i.MX8QXP, i.MX8QM&lt;BR /&gt;SDPS: boot -f imx-boot-imx8mpevk-sd.bin-flash_evk&lt;/P&gt;
&lt;P&gt;# These commands will be run when use SPL and will be skipped if no spl&lt;BR /&gt;# SDPU will be deprecated. please use SDPV instead of SDPU&lt;BR /&gt;# {&lt;BR /&gt;SDPU: delay 1000&lt;BR /&gt;SDPU: write -f imx-boot-imx8mpevk-sd.bin-flash_evk -offset 0x57c00&lt;BR /&gt;SDPU: jump&lt;BR /&gt;# }&lt;/P&gt;
&lt;P&gt;# These commands will be run when use SPL and will be skipped if no spl&lt;BR /&gt;# if (SPL support SDPV)&lt;BR /&gt;# {&lt;BR /&gt;SDPV: delay 1000&lt;BR /&gt;SDPV: write -f imx-boot-imx8mpevk-sd.bin-flash_evk -skipspl&lt;BR /&gt;SDPV: jump&lt;BR /&gt;# }&lt;/P&gt;
&lt;P&gt;FB: ucmd setenv fastboot_dev mmc&lt;BR /&gt;FB: ucmd setenv mmcdev ${emmc_dev}&lt;BR /&gt;FB: ucmd mmc dev ${emmc_dev}&lt;BR /&gt;FB: flash -raw2sparse all imx-image-multimedia-imx8mpevk.wic&lt;BR /&gt;FB: flash bootloader imx-boot-imx8mpevk-sd.bin-flash_evk&lt;BR /&gt;FB: ucmd if env exists emmc_ack; then ; else setenv emmc_ack 0; fi;&lt;BR /&gt;FB: ucmd mmc partconf ${emmc_dev} ${emmc_ack} 1 0&lt;BR /&gt;FB: done&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Apr 2021 06:24:58 GMT</pubDate>
    <dc:creator>BiyongSUN</dc:creator>
    <dc:date>2021-04-01T06:24:58Z</dc:date>
    <item>
      <title>make imx8 bootable from mmcblk2boot0</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/make-imx8-bootable-from-mmcblk2boot0/m-p/1241544#M170474</link>
      <description>&lt;P&gt;I found instruction to flash the flash.bin (boot-image) to emmc. It uses this command:&lt;/P&gt;&lt;P&gt;dd if=flash.bin of=/dev/mmcblk2 bs=1k seek=32 (seek depends on type of imx8).&lt;/P&gt;&lt;P&gt;But where it is actually written to? I know there are 2 boot sections (mmcblk2boot0, mmcblk2boot1), one rpmg and the big "standard" section.&lt;/P&gt;&lt;P&gt;But as far as I know the mmcblk2 is partitioned and filled with formatted parts usually (mmcblk2p1, p2...)&lt;/P&gt;&lt;P&gt;If I do the above command ... will I destroy this partitions? Or is there some space left from mmcblk2 until mmcblk2p1 starts? If so, how many?&lt;/P&gt;&lt;P&gt;Best is probably to flash this to boot. It did that:&lt;/P&gt;&lt;P&gt;dd if=flash.bin of=/dev/mmcblk2boot0 bs=1k seek=32&lt;/P&gt;&lt;P&gt;But device isn't booting. What is the problem? Do I have to mark it bootable? How to do that out of uboot?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 07:01:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/make-imx8-bootable-from-mmcblk2boot0/m-p/1241544#M170474</guid>
      <dc:creator>s_arendt</dc:creator>
      <dc:date>2021-03-08T07:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: make imx8 bootable from mmcblk2boot0</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/make-imx8-bootable-from-mmcblk2boot0/m-p/1241697#M170487</link>
      <description>&lt;P&gt;Hi s_arendt&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for understanding emmc programming one can refer to sect.4.3.5 Copying the kernel image and DTB file, sect.4.4.1.3 Using eMMC, sect.4.3.4 Copying a bootloader image&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A style="box-sizing: border-box; background-color: transparent; color: #215bd6; text-decoration: none; cursor: pointer;" href="https://www.nxp.com/docs/en/user-guide/IMX_LINUX_USERS_GUIDE.pdf" target="_blank" rel="noopener"&gt;i.MX Linux User’s Guide​&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;sect.5.8.2.2.1 High Level eMMC Boot Flow&lt;/P&gt;
&lt;P&gt;&lt;A id="relatedDocsClick_2" href="https://www.nxp.com/webapp/Download?colCode=IMX8DQXPRM" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;i.MX 8DualXPlus/8QuadXPlus Applications Processor Reference Manual&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;But device isn't booting. What is the problem?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;one can try to program with UUU tool, example_kernel_emmc.uuu included in Demo Image&lt;/P&gt;
&lt;P&gt;&lt;A style="box-sizing: border-box; background-color: transparent; color: #215bd6; text-decoration: none; cursor: pointer;" href="https://www.nxp.com/webapp/Download?colCode=L5.4.70_2.3.0_MX8QXPC0&amp;amp;appType=license" target="_blank"&gt;i.MX 8QuadXPlus(B0, C0) MEK, i.MX 8DualX MEK&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;A href="https://imxdev.gitlab.io/tutorial/How_to_use_UUU_to_flash_the_iMX_boards/" target="_blank"&gt;https://imxdev.gitlab.io/tutorial/How_to_use_UUU_to_flash_the_iMX_boards/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/NXPmicro/mfgtools/wiki/Sample-script" target="_blank"&gt;https://github.com/NXPmicro/mfgtools/wiki/Sample-script&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/How-to-upgrade-Linux-Kernel-and-dtb-on-eMMC-without-UUU/ta-p/1116428" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/How-to-upgrade-Linux-Kernel-and-dtb-on-eMMC-without-UUU/ta-p/1116428&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applications-processors:IMXLINUX?tab=In-Depth_Tab" target="_blank"&gt;https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applications-processors:IMXLINUX?tab=In-Depth_Tab&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/NXPmicro/mfgtools" target="_blank"&gt;https://github.com/NXPmicro/mfgtools&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 10:34:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/make-imx8-bootable-from-mmcblk2boot0/m-p/1241697#M170487</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2021-03-08T10:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: make imx8 bootable from mmcblk2boot0</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/make-imx8-bootable-from-mmcblk2boot0/m-p/1242306#M170553</link>
      <description>&lt;P&gt;I think I did everything right:&lt;/P&gt;&lt;P&gt;bootmode is set properly (2=emmc/usdhc3) for imx8mp, I could catch in u-boot Reg&amp;nbsp;30390070: 02000009&lt;/P&gt;&lt;P&gt;I set boot0 as boot partition by&amp;nbsp;&lt;/P&gt;&lt;P&gt;"mmc partconf 2 1 1 0" or "mmc partconf&amp;nbsp; 2 0 1 0"&amp;nbsp; (one with, one without ACK)&lt;/P&gt;&lt;P&gt;And I could see this is proper set by "mmc partconf 2"&lt;/P&gt;&lt;P&gt;&amp;nbsp;u-boot=&amp;gt; mmc partconf 2&lt;BR /&gt;EXT_CSD[179], PARTITION_CONFIG:&lt;BR /&gt;BOOT_ACK: 0x1&lt;BR /&gt;BOOT_PARTITION_ENABLE: 0x1&lt;/P&gt;&lt;P&gt;PARTITION_ACCESS: 0x0&lt;/P&gt;&lt;P&gt;I flashed with "dd if=flash.bin of=/dev/mmcblk2boot0 bs=1k seek=32" and veryfied by hexdump code starts at 0x8000&lt;/P&gt;&lt;P&gt;So why it is not booting? What did I forget? It boots from /dev/mmcblk2 without problems after switching back by "mmc partconf 2 0 0 0"&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 07:29:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/make-imx8-bootable-from-mmcblk2boot0/m-p/1242306#M170553</guid>
      <dc:creator>s_arendt</dc:creator>
      <dc:date>2021-03-09T07:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: make imx8 bootable from mmcblk2boot0</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/make-imx8-bootable-from-mmcblk2boot0/m-p/1242387#M170559</link>
      <description>&lt;P&gt;&amp;gt;bootmode is set properly (2=emmc/usdhc3) for imx8mp&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sorry i.MX8M Plus is not officially released and not supported yet. It is described as&lt;/P&gt;
&lt;P&gt;"PREPRODUCTION" on below link&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/products/processors-and-microcontrollers/arm-processors/i-mx-applications-processors/i-mx-8-processors/i-mx-8m-plus-arm-cortex-a53-machine-learning-vision-multimedia-and-industrial-iot:IMX8MPLUS" target="_blank"&gt;https://www.nxp.com/products/processors-and-microcontrollers/arm-processors/i-mx-applications-processors/i-mx-8-processors/i-mx-8m-plus-arm-cortex-a53-machine-learning-vision-multimedia-and-industrial-iot:IMX8MPLUS&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Support can be provided through NXP Professional Services:&lt;BR /&gt;&lt;A href="https://contact.nxp.com/new-prof-svcs-sw-tech" target="_blank"&gt;https://contact.nxp.com/new-prof-svcs-sw-tech&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 09:16:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/make-imx8-bootable-from-mmcblk2boot0/m-p/1242387#M170559</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2021-03-09T09:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: make imx8 bootable from mmcblk2boot0</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/make-imx8-bootable-from-mmcblk2boot0/m-p/1246312#M170909</link>
      <description>&lt;P&gt;The examples doesn't handle the boot0/1 partitions. Seems that nobody tested this. I datasheet it is mentioned:&amp;nbsp;&lt;/P&gt;&lt;P&gt;"The boot partition can be selected for an MMC4.x card after&lt;BR /&gt;the card initialization is complete. The ROM code reads the&lt;BR /&gt;BOOT_PARTITION_ENABLE field in the Ext_CSD[179] to get&lt;BR /&gt;the boot partition to be set. If there is no boot partition&lt;BR /&gt;mentioned in the BOOT_PARTITION_ENABLE field or the&lt;BR /&gt;user partition was mentioned, the ROM boots from the user&lt;BR /&gt;partition."&lt;/P&gt;&lt;P&gt;This is set properly as stated above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 09:36:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/make-imx8-bootable-from-mmcblk2boot0/m-p/1246312#M170909</guid>
      <dc:creator>s_arendt</dc:creator>
      <dc:date>2021-03-16T09:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: make imx8 bootable from mmcblk2boot0</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/make-imx8-bootable-from-mmcblk2boot0/m-p/1254335#M171803</link>
      <description>&lt;P&gt;All this documents&amp;nbsp; do not refer to boot0 section of emmc. Imx8mp is not preproduction anymore. UUU is not what I want to use for flash.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 15:06:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/make-imx8-bootable-from-mmcblk2boot0/m-p/1254335#M171803</guid>
      <dc:creator>s_arendt</dc:creator>
      <dc:date>2021-03-30T15:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: make imx8 bootable from mmcblk2boot0</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/make-imx8-bootable-from-mmcblk2boot0/m-p/1255550#M171930</link>
      <description>&lt;P&gt;The i.MX8MP binary release contains the uuu script.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The default is to write to the emmc boot0 not the user partition.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW, all the i.MX. It is all. the uuu script default is to write to the emmc boot0 not user partition.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and boot0 is the index for the Linux. In the emmc spec, it call boot1, boot2 and user partition.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please download the i.MX8MP, binary release to check.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applications-processors:IMXLINUX?tab=In-Depth_Tab" target="_blank"&gt;Embedded Linux for i.MX Applications Processors | NXP Semiconductors&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/141142i276A6C6D78AE43A0/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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;uuu_version 1.2.39&lt;/P&gt;
&lt;P&gt;# This command will be run when i.MX6/7 i.MX8MM, i.MX8MQ&lt;BR /&gt;SDP: boot -f imx-boot-imx8mpevk-sd.bin-flash_evk&lt;/P&gt;
&lt;P&gt;# This command will be run when ROM support stream mode&lt;BR /&gt;# i.MX8QXP, i.MX8QM&lt;BR /&gt;SDPS: boot -f imx-boot-imx8mpevk-sd.bin-flash_evk&lt;/P&gt;
&lt;P&gt;# These commands will be run when use SPL and will be skipped if no spl&lt;BR /&gt;# SDPU will be deprecated. please use SDPV instead of SDPU&lt;BR /&gt;# {&lt;BR /&gt;SDPU: delay 1000&lt;BR /&gt;SDPU: write -f imx-boot-imx8mpevk-sd.bin-flash_evk -offset 0x57c00&lt;BR /&gt;SDPU: jump&lt;BR /&gt;# }&lt;/P&gt;
&lt;P&gt;# These commands will be run when use SPL and will be skipped if no spl&lt;BR /&gt;# if (SPL support SDPV)&lt;BR /&gt;# {&lt;BR /&gt;SDPV: delay 1000&lt;BR /&gt;SDPV: write -f imx-boot-imx8mpevk-sd.bin-flash_evk -skipspl&lt;BR /&gt;SDPV: jump&lt;BR /&gt;# }&lt;/P&gt;
&lt;P&gt;FB: ucmd setenv fastboot_dev mmc&lt;BR /&gt;FB: ucmd setenv mmcdev ${emmc_dev}&lt;BR /&gt;FB: ucmd mmc dev ${emmc_dev}&lt;BR /&gt;FB: flash -raw2sparse all imx-image-multimedia-imx8mpevk.wic&lt;BR /&gt;FB: flash bootloader imx-boot-imx8mpevk-sd.bin-flash_evk&lt;BR /&gt;FB: ucmd if env exists emmc_ack; then ; else setenv emmc_ack 0; fi;&lt;BR /&gt;FB: ucmd mmc partconf ${emmc_dev} ${emmc_ack} 1 0&lt;BR /&gt;FB: done&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 06:24:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/make-imx8-bootable-from-mmcblk2boot0/m-p/1255550#M171930</guid>
      <dc:creator>BiyongSUN</dc:creator>
      <dc:date>2021-04-01T06:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: make imx8 bootable from mmcblk2boot0</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/make-imx8-bootable-from-mmcblk2boot0/m-p/1255732#M171959</link>
      <description>&lt;P&gt;unfortunately nxp does not support other options, except uuu for flash programming, sorry.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 09:54:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/make-imx8-bootable-from-mmcblk2boot0/m-p/1255732#M171959</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2021-04-01T09:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: make imx8 bootable from mmcblk2boot0</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/make-imx8-bootable-from-mmcblk2boot0/m-p/1256056#M171993</link>
      <description>&lt;P&gt;I think you need to read the jedec spec for emmc.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And you have no idea of the emmc hardware partitions. in spec, boot1, boot1 and user.&lt;/P&gt;
&lt;P&gt;And for the emmc, even you can crate 4 general purpose partitions.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All those are hardware.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You mentioned the mmcblk1p1, mmcblk1p2 ... are are file system concept.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Suggest you can read the following document and then you try to read the JEDEC spec.&lt;/P&gt;
&lt;P&gt;eMMC RPMB Enhance and GP&lt;BR /&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/eMMC-RPMB-Enhance-and-GP/ta-p/1099818" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/eMMC-RPMB-Enhance-and-GP/ta-p/1099818&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 02:24:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/make-imx8-bootable-from-mmcblk2boot0/m-p/1256056#M171993</guid>
      <dc:creator>BiyongSUN</dc:creator>
      <dc:date>2021-04-02T02:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: make imx8 bootable from mmcblk2boot0</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/make-imx8-bootable-from-mmcblk2boot0/m-p/1256103#M171996</link>
      <description>&lt;P&gt;i.MX 8QuadMax Applications Processor Reference Manual, Rev. F, 10/2019&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 712px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/141236iA48B3CDEE1440074/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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;root@imx8qmmek:~# uname -a&lt;BR /&gt;Linux imx8qmmek 5.4.70-2.3.0+g4f2631b022d8 #1 SMP PREEMPT Wed Dec 16 09:53:54 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux&lt;BR /&gt;root@imx8qmmek:~#&lt;/P&gt;
&lt;P&gt;use 5.4.70 boot from sd card then flash the flash.bin here is /run/media/mmcblk1p1/imx-boot-imx8qmmek-sd.bin-flash, which copied at sdcard fat partition, to the emmc boot0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;all these commands are in the Linux.&lt;/P&gt;
&lt;P&gt;imx-boot-imx8qmmek-sd.bin-flash is from 5.4.47 release different from 5.4.70, that we can easily check.&lt;/P&gt;
&lt;P&gt;Clean up before test&lt;/P&gt;
&lt;P&gt;mmc bootpart enable 0 1 /dev/mmcblk0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;mmc extcsd read /dev/mmcblk0&lt;/P&gt;
&lt;P&gt;Erased memory content [ERASED_MEM_CONT: 0x00]&lt;BR /&gt;Boot configuration bytes [PARTITION_CONFIG: 0x40]&lt;BR /&gt;Not boot enable&lt;BR /&gt;No access to boot partition&lt;BR /&gt;Boot config protection [BOOT_CONFIG_PROT: 0x00]&lt;BR /&gt;Boot bus Conditions [BOOT_BUS_CONDITIONS: 0x00]&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;echo 0 &amp;gt; /sys/block/mmcblk0boot0/force_ro&lt;/P&gt;
&lt;P&gt;dd if=/dev/zero of=/dev/mmcblk0boot0 bs=1M count=1&lt;BR /&gt;&lt;BR /&gt;echo 1 &amp;gt; /sys/block/mmcblk0boot0/force_ro&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;test start&lt;/P&gt;
&lt;P&gt;echo 0 &amp;gt; /sys/block/mmcblk0boot0/force_ro&lt;/P&gt;
&lt;P&gt;dd if=/run/media/mmcblk1p1/imx-boot-imx8qmmek-sd.bin-flash of=/dev/mmcblk0boot0&lt;/P&gt;
&lt;P&gt;echo 1 &amp;gt; /sys/block/mmcblk0boot0/force_ro&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;mmc bootpart enable 1 1 /dev/mmcblk0&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;mmc extcsd read /dev/mmcblk0&lt;/P&gt;
&lt;P&gt;Boot configuration bytes [PARTITION_CONFIG: 0x48]&lt;BR /&gt;Boot Partition 1 enabled&lt;BR /&gt;No access to boot partition&lt;BR /&gt;Boot config protection [BOOT_CONFIG_PROT: 0x00]&lt;BR /&gt;Boot bus Conditions [BOOT_BUS_CONDITIONS: 0x00]&lt;BR /&gt;High-density erase group definition [ERASE_GROUP_&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;not you can see the u-boot is 5.4.47 in mmc0 boot0&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;U-Boot 2020.04-5.4.47-2.2.0+gffc3fbe7e5 (Sep 12 2020 - 03:33:55 +0000)&lt;/P&gt;
&lt;P&gt;CPU: NXP i.MX8QM RevB A53 at 1200 MHz at 27C&lt;/P&gt;
&lt;P&gt;Model: NXP i.MX8QM MEK&lt;BR /&gt;Board: iMX8QM MEK&lt;BR /&gt;Boot: MMC0&lt;BR /&gt;DRAM: 6 GiB&lt;BR /&gt;TCPC: Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C0 0x51]&lt;BR /&gt;MMC: FSL_SDHC: 0, FSL_SDHC: 1&lt;BR /&gt;Loading Environment from MMC... *** Warning - bad CRC, using default environment&lt;/P&gt;
&lt;P&gt;[*]-Video Link 0it6263_i2c_reg_read, read err 3&lt;BR /&gt;faill to read from it6263 revision, ret 3&lt;BR /&gt;(1280 x 720)&lt;BR /&gt;[0] dpu@56180000, video&lt;BR /&gt;[1] lvds-channel@0, display&lt;BR /&gt;[2] lvds-to-hdmi-bridge@4c,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 03:40:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/make-imx8-bootable-from-mmcblk2boot0/m-p/1256103#M171996</guid>
      <dc:creator>BiyongSUN</dc:creator>
      <dc:date>2021-04-02T03:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: make imx8 bootable from mmcblk2boot0</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/make-imx8-bootable-from-mmcblk2boot0/m-p/1276372#M174005</link>
      <description>&lt;P&gt;try flash to offset 0&lt;BR /&gt;I verify on imx8mpevk(lpddr4) is okay&lt;BR /&gt;when use the follow command&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;dd if=imx-boot of=/dev/mmcblk2boot0 bs=4K conv=fsync&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and you can to check bootloader_mmc_offset() in uboot-imx/drivers/fastboot/fb_fsl/fb_fsl_partitions.c&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kunyichen_0-1620902288035.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/144656iD52B84D331D5F717/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kunyichen_0-1620902288035.png" alt="kunyichen_0-1620902288035.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 10:38:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/make-imx8-bootable-from-mmcblk2boot0/m-p/1276372#M174005</guid>
      <dc:creator>kunyichen</dc:creator>
      <dc:date>2021-05-13T10:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: make imx8 bootable from mmcblk2boot0</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/make-imx8-bootable-from-mmcblk2boot0/m-p/1311287#M177276</link>
      <description>&lt;P&gt;Thanks and sorry for the late answer.&lt;BR /&gt;I think that I missed just &lt;EM&gt;mmc bootpart enable 1 1 /dev/mmcblk0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But one more question: What to set &lt;STRONG&gt;save the environment&lt;/STRONG&gt;? I get this error:&lt;/P&gt;&lt;P&gt;Loading Environment from MMC... MMC: block number 0x1 exceeds max(0x0)&lt;BR /&gt;MMC: block number 0x2010 exceeds max(0x0)&lt;BR /&gt;MMC: block number 0x2210 exceeds max(0x0)&lt;BR /&gt;*** Error - No Valid Environment Area found&lt;BR /&gt;*** Warning - bad env area, using default environment&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An my setting in kernel config is:&lt;/P&gt;&lt;P&gt;[*] Environment in an MMC device&lt;/P&gt;&lt;P&gt;[*] Enable redundant environment support&lt;BR /&gt;(0x400000) Environment offset&lt;BR /&gt;(0x440000) Redundant environment offset&lt;BR /&gt;(0x2000) Environment Size&lt;BR /&gt;&amp;nbsp;[*] Relocate gd-&amp;gt;env_addr&lt;BR /&gt;&amp;nbsp;(2) mmc device number&lt;BR /&gt;&amp;nbsp;(0) mmc partition number&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I this mmc partition number is wrong, as it should refer to mmcblk2boot0. But what number is used for boot0?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jul 2021 12:18:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/make-imx8-bootable-from-mmcblk2boot0/m-p/1311287#M177276</guid>
      <dc:creator>s_arendt</dc:creator>
      <dc:date>2021-07-21T12:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: make imx8 bootable from mmcblk2boot0</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/make-imx8-bootable-from-mmcblk2boot0/m-p/1710616#M211359</link>
      <description>Hello, do you know the addresses of /dev/mmcblk0 and /dev/mmcblk1 under the emmc of the emmc equipped with imx93 processor development board MCIMX93? Can I update uboot online under the uboot command line?</description>
      <pubDate>Thu, 24 Aug 2023 10:17:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/make-imx8-bootable-from-mmcblk2boot0/m-p/1710616#M211359</guid>
      <dc:creator>yixinchi</dc:creator>
      <dc:date>2023-08-24T10:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: make imx8 bootable from mmcblk2boot0</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/make-imx8-bootable-from-mmcblk2boot0/m-p/1711047#M211414</link>
      <description>Unfortunately, like you said the method I did not succeed, I read the IMX_LINUX_USERS_GUIDE.pdf manual before, I tried the mmc partition structure on page 9, and did not find the uboot that I downloaded using uuu, I even rummaged from 0x0 to 0xa00000 and did not find it</description>
      <pubDate>Fri, 25 Aug 2023 00:23:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/make-imx8-bootable-from-mmcblk2boot0/m-p/1711047#M211414</guid>
      <dc:creator>yixinchi</dc:creator>
      <dc:date>2023-08-25T00:23:39Z</dc:date>
    </item>
  </channel>
</rss>

