MA-15198 Fix imx8mn fastboot flash fail
authorJi Luo <ji.luo@nxp.com>
Tue, 23 Jul 2019 06:44:26 +0000 (14:44 +0800)
committerJi Luo <ji.luo@nxp.com>
Wed, 24 Jul 2019 05:35:15 +0000 (13:35 +0800)
Align the eMMC device id to '2' to get correct bootloader0
offset.

Test: bootloader0 partition flash.

Change-Id: Idac6bfe55857e3f80b7e18691bbe3c5e5c453e10
Signed-off-by: Ji Luo <ji.luo@nxp.com>
drivers/fastboot/fb_fsl/fb_fsl_partitions.c

index 6d2ad09..f72a9f7 100644 (file)
@@ -64,7 +64,7 @@ static ulong bootloader_mmc_offset(void)
                        return 0x8000;
        } else if (is_imx8mn()) {
                /* target device is eMMC boot0 partition, bootloader offset is 0x0 */
-               if (env_get_ulong("emmc_dev", 10, 1) == fastboot_devinfo.dev_id)
+               if (env_get_ulong("emmc_dev", 10, 2) == fastboot_devinfo.dev_id)
                        return 0;
                else
                        return 0x8000;