<?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のトピックHow to do multi-o ption boot in imx8mplus platform ?</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-do-multi-o-ption-boot-in-imx8mplus-platform/m-p/1685913#M209071</link>
    <description>&lt;P&gt;Dear NXP ,&lt;/P&gt;&lt;P&gt;HW platform : imx8mplus&lt;/P&gt;&lt;P&gt;u-boot version:&amp;nbsp;2021.04-r0&lt;/P&gt;&lt;P&gt;kernel version : 5.10.72&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to some function as follows:&lt;/P&gt;&lt;P&gt;(1) Set the switch to 0x11 :&amp;nbsp;It boot from SD card .&lt;/P&gt;&lt;P&gt;(2) Set the switch to 0x10 : It will check whether the SD card is inserted,&amp;nbsp;&lt;/P&gt;&lt;P&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;and&amp;nbsp; if the SD card is already inserted, it will boot from the SD card.&amp;nbsp;If the&lt;/P&gt;&lt;P&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;SD card is not inserted, boot from emmc .&lt;/P&gt;&lt;P&gt;I think this part should modify u-boot code.&amp;nbsp;Please tell me how to implement ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jul 2023 16:21:01 GMT</pubDate>
    <dc:creator>t2865k5</dc:creator>
    <dc:date>2023-07-11T16:21:01Z</dc:date>
    <item>
      <title>How to do multi-o ption boot in imx8mplus platform ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-do-multi-o-ption-boot-in-imx8mplus-platform/m-p/1685913#M209071</link>
      <description>&lt;P&gt;Dear NXP ,&lt;/P&gt;&lt;P&gt;HW platform : imx8mplus&lt;/P&gt;&lt;P&gt;u-boot version:&amp;nbsp;2021.04-r0&lt;/P&gt;&lt;P&gt;kernel version : 5.10.72&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to some function as follows:&lt;/P&gt;&lt;P&gt;(1) Set the switch to 0x11 :&amp;nbsp;It boot from SD card .&lt;/P&gt;&lt;P&gt;(2) Set the switch to 0x10 : It will check whether the SD card is inserted,&amp;nbsp;&lt;/P&gt;&lt;P&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;and&amp;nbsp; if the SD card is already inserted, it will boot from the SD card.&amp;nbsp;If the&lt;/P&gt;&lt;P&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;SD card is not inserted, boot from emmc .&lt;/P&gt;&lt;P&gt;I think this part should modify u-boot code.&amp;nbsp;Please tell me how to implement ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 16:21:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-do-multi-o-ption-boot-in-imx8mplus-platform/m-p/1685913#M209071</guid>
      <dc:creator>t2865k5</dc:creator>
      <dc:date>2023-07-11T16:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to do multi-o ption boot in imx8mplus platform ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-do-multi-o-ption-boot-in-imx8mplus-platform/m-p/1690677#M209526</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/184266"&gt;@t2865k5&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On iMX8MP you can achieve this process using Uboot configuring the variables environment provided by Uboot and edit some scripts.&lt;BR /&gt;First, you will need to use the command &lt;EM&gt;printenv&lt;/EM&gt;, here you will see the variables environment.&lt;BR /&gt;Specifically, focus on these variables extracted from printenv on UBoot console:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;bootcmd=run distro_bootcmd;run bsp_bootcmd
distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done
bootcmd_mmc2=devnum=2; run mmc_boot
mmcboot=echo Booting from mmc ...; run mmcargs; if test ${boot_fit} = yes || test ${boot_fit} = try; then bootm ${loadaddr}; else if run loadfdt; then booti ${loadaddr} - ${fdt_addr_r}; else echo WARN: Cannot load the DT; fi; fi;
bsp_bootcmd=echo Running BSP bootcmd ...; mmc dev ${mmcdev}; if mmc rescan; then if run loadbootscript; then run bootscript; else if run loadimage; then run mmcboot; else run netboot; fi; fi; fi;
mmcboot=echo Booting from mmc ...; run mmcargs; if test ${boot_fit} = yes || test ${boot_fit} = try; then bootm ${loadaddr}; else if run loadfdt; then booti ${loadaddr} - ${fdt_addr_r}; else echo WARN: Cannot load the DT; fi; fi;
mmcdev=1&lt;/LI-CODE&gt;
&lt;P&gt;As you can see, for the boot process on variable bsp_bootcmd, mmcdev corresponds to the sd or the emmc.&lt;BR /&gt;&lt;BR /&gt;Also, bsp_bootcmd defines the decision process if emmc or sd is not available.&lt;BR /&gt;&lt;BR /&gt;In conclusion, to choose the mmc device you will need to edit the mmcdev variable, and to define the process you are describing in your question you will need to edit bsp_bootcmd.&lt;BR /&gt;&lt;BR /&gt;I hope this information will be helpful.&lt;/P&gt;
&lt;P&gt;Best regards, Brian.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jul 2023 01:32:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-do-multi-o-ption-boot-in-imx8mplus-platform/m-p/1690677#M209526</guid>
      <dc:creator>brian14</dc:creator>
      <dc:date>2023-07-22T01:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to do multi-o ption boot in imx8mplus platform ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-do-multi-o-ption-boot-in-imx8mplus-platform/m-p/1691233#M209583</link>
      <description>&lt;P&gt;&lt;SPAN&gt;(2) Set the switch to 0x10 : It will check whether the SD card is inserted, &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;(who will check that? you have no bootloader running at that moment. It is at ROM code boot stage)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;You could not achieve that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because when you set the boot from sdcard . It will get boot fail if no sdcard with available image there.&amp;nbsp; And it will go to usb serial download mode.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then you don't have bootloader and uboot running and you do not have any chance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if you boot from emmc fail, it has&amp;nbsp;SD/MMC manufacture mode to boot from sdcard.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-07-24_170154.png" style="width: 872px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/233228iEDC863A373B66DF8/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-07-24_170154.png" alt="2023-07-24_170154.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ROM code will go to 1 sdcard or 2 MMC.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-07-24_170757.png" style="width: 946px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/233230i00462A33D997BCA5/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-07-24_170757.png" alt="2023-07-24_170757.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 09:14:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-do-multi-o-ption-boot-in-imx8mplus-platform/m-p/1691233#M209583</guid>
      <dc:creator>Mestkim</dc:creator>
      <dc:date>2023-07-24T09:14:30Z</dc:date>
    </item>
  </channel>
</rss>

