From: Jaehoon Chung Date: Wed, 17 Mar 2021 06:38:42 +0900 Subject: [PATCH 05/34] x86: coral: Put the eMMC first In-Reply-To: <20210315050034.1934660-6-sjg@chromium.org> References: <20210315050034.1934660-1-sjg@chromium.org> <20210315050034.1934660-6-sjg@chromium.org> Message-ID: <155b7b0f-3763-14b2-63f6-b7eda402cc06@samsung.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 3/15/21 2:00 PM, Simon Glass wrote: > At present the eMMC device does not have an alias so it appears after > the SD card which is device 1. There is no device 0 which is odd. > > Make the eMMC device be the first one. Update the boot script to use the > new device. > > Signed-off-by: Simon Glass Reviewed-by: Jaehoon Chung Best Regards, Jaehoon Chung > --- > > arch/x86/dts/chromebook_coral.dts | 1 + > include/configs/chromebook_coral.h | 6 +++--- > 2 files changed, 4 insertions(+), 3 deletions(-) > > diff --git a/arch/x86/dts/chromebook_coral.dts b/arch/x86/dts/chromebook_coral.dts > index 2ffe3b423c3..9f84480e68e 100644 > --- a/arch/x86/dts/chromebook_coral.dts > +++ b/arch/x86/dts/chromebook_coral.dts > @@ -47,6 +47,7 @@ > i2c5 = &i2c_5; > i2c6 = &i2c_6; > i2c7 = &i2c_7; > + mmc0 = &emmc; > mmc1 = &sdmmc; > }; > > diff --git a/include/configs/chromebook_coral.h b/include/configs/chromebook_coral.h > index 6e8e8ec1709..00760b8a307 100644 > --- a/include/configs/chromebook_coral.h > +++ b/include/configs/chromebook_coral.h > @@ -12,13 +12,13 @@ > > #define CONFIG_BOOTCOMMAND \ > "tpm init; tpm startup TPM2_SU_CLEAR; " \ > - "read mmc 2:2 100000 0 80; setexpr loader *001004f0; " \ > + "read mmc 0:2 100000 0 80; setexpr loader *001004f0; " \ > "setexpr size *00100518; setexpr blocks $size / 200; " \ > - "read mmc 2:2 100000 80 $blocks; setexpr setup $loader - 1000; " \ > + "read mmc 0:2 100000 80 $blocks; setexpr setup $loader - 1000; " \ > "setexpr cmdline_ptr $loader - 2000; " \ > "setexpr.s cmdline *$cmdline_ptr; " \ > "setexpr cmdline gsub %U \\\\${uuid}; " \ > - "if part uuid mmc 2:2 uuid; then " \ > + "if part uuid mmc 0:2 uuid; then " \ > "zboot start 100000 0 0 0 $setup cmdline; " \ > "zboot load; zboot setup; zboot dump; zboot go;" \ > "fi" >