diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2019-05-28 13:49:33 +0200 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2019-05-29 20:58:21 +0200 |
commit | ec10bdb7b7462ddb4987efc0f4995c89b9090c97 (patch) | |
tree | b939d92804b946caa7dba64f19ceba1333f36f2c | |
parent | 05887428474693d5890fa269fddf515cc55fe92c (diff) |
u-boot-toradex_2018.03: boot linux on apalis-imx8a0 from sd card
The Apalis iMX8 QM V1.0A are not fused but strapped to boot from SD card.
Revert the environment change which makes them boot from eMMC.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
-rw-r--r-- | recipes-bsp/u-boot/files/0001-Revert-apalis-imx8-fused-modules-boot-from-emmc.patch | 31 | ||||
-rw-r--r-- | recipes-bsp/u-boot/u-boot-toradex_2018.03.bb | 2 |
2 files changed, 33 insertions, 0 deletions
diff --git a/recipes-bsp/u-boot/files/0001-Revert-apalis-imx8-fused-modules-boot-from-emmc.patch b/recipes-bsp/u-boot/files/0001-Revert-apalis-imx8-fused-modules-boot-from-emmc.patch new file mode 100644 index 0000000..fdf009e --- /dev/null +++ b/recipes-bsp/u-boot/files/0001-Revert-apalis-imx8-fused-modules-boot-from-emmc.patch @@ -0,0 +1,31 @@ +From 7ade24bca52e1e6517ae9eb6c2820a0c7e881acd Mon Sep 17 00:00:00 2001 +From: Max Krummenacher <max.krummenacher@toradex.com> +Date: Tue, 28 May 2019 12:56:37 +0200 +Subject: [PATCH] Revert "apalis-imx8: fused modules boot from emmc" + +If one wants to build for Apalis iMX8 QM V1.0A one wants to boot the image +from SD card. + +This reverts commit c3d2ea3ea8a0c090cf359f286739f31d681ef71e. +--- + include/configs/apalis-imx8.h | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/include/configs/apalis-imx8.h b/include/configs/apalis-imx8.h +index ace5f172bd..f9b254fae0 100644 +--- a/include/configs/apalis-imx8.h ++++ b/include/configs/apalis-imx8.h +@@ -198,8 +198,8 @@ + #define CONFIG_SYS_MMC_IMG_LOAD_PART 1 + + /* On Apalis iMX8 USDHC1 is eMMC, USDHC2 is 8-bit SD and USDHC3 is 4-bit SD */ +-#define CONFIG_SYS_MMC_ENV_DEV 0 /* USDHC1 eMMC */ +-#define CONFIG_MMCROOT "/dev/mmcblk0p2" /* USDHC1 eMMC */ ++#define CONFIG_SYS_MMC_ENV_DEV 1 /* USDHC1 eMMC */ ++#define CONFIG_MMCROOT "/dev/mmcblk1p2" /* USDHC1 eMMC */ + #define CONFIG_SYS_FSL_USDHC_NUM 3 + + #define CONFIG_SYS_BOOTM_LEN (64 << 20) /* Increase max gunzip size */ +-- +2.13.6 + diff --git a/recipes-bsp/u-boot/u-boot-toradex_2018.03.bb b/recipes-bsp/u-boot/u-boot-toradex_2018.03.bb index c004a82..e32309a 100644 --- a/recipes-bsp/u-boot/u-boot-toradex_2018.03.bb +++ b/recipes-bsp/u-boot/u-boot-toradex_2018.03.bb @@ -7,6 +7,8 @@ inherit pythonnative PROVIDES += "u-boot" DEPENDS_append = " python dtc-native" +SRC_URI_append_apalis-imx8a0 = " file://0001-Revert-apalis-imx8-fused-modules-boot-from-emmc.patch" + BOOT_TOOLS = "imx-boot-tools" UBOOT_NAME_mx6 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}" |