diff options
author | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2018-06-05 00:08:04 +0200 |
---|---|---|
committer | Stefan Agner <stefan.agner@toradex.com> | 2018-07-27 14:50:11 +0200 |
commit | 08370b35049d86316770580dbd17005ffffcf068 (patch) | |
tree | c19a7b68db47292955480ae3f425d7b103bd3254 /include/configs/apalis_t30.h | |
parent | 745ee219dd9a4643df54abe79dc37d22e5623266 (diff) |
apalis_t30: add configuration for tezi
Modify configuration for Tezi:
- Use distroboot by default
- Boot from external SD cards by default
- Disable USB PID from config block (otherwise recovery mode download
in U-Boot stage fails)
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Acked-by: Stefan Agner <stefan.agner@toradex.com>
Diffstat (limited to 'include/configs/apalis_t30.h')
-rw-r--r-- | include/configs/apalis_t30.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/include/configs/apalis_t30.h b/include/configs/apalis_t30.h index 2896c522e72..96ff42a30c4 100644 --- a/include/configs/apalis_t30.h +++ b/include/configs/apalis_t30.h @@ -44,12 +44,19 @@ #define CONFIG_GENERIC_MMC #define CONFIG_SUPPORT_EMMC_BOOT /* eMMC specific */ -/* Environment in eMMC, before config block at the end of 1st "boot sector" */ +#ifdef CONFIG_TDX_EASY_INSTALLER +#define CONFIG_ENV_IS_NOWHERE +#else #define CONFIG_ENV_IS_IN_MMC +#endif + +#ifdef CONFIG_ENV_IS_IN_MMC +/* Environment in eMMC, before config block at the end of 1st "boot sector" */ #define CONFIG_ENV_OFFSET (-CONFIG_ENV_SIZE + \ CONFIG_TDX_CFG_BLOCK_OFFSET) #define CONFIG_SYS_MMC_ENV_DEV 0 #define CONFIG_SYS_MMC_ENV_PART 1 +#endif /*CONFIG_ENV_IS_IN_MMC */ /* USB host support */ #define CONFIG_USB_EHCI @@ -81,9 +88,14 @@ #undef CONFIG_SERVERIP #define CONFIG_SERVERIP 192.168.10.1 +#ifdef CONFIG_TDX_EASY_INSTALLER +#define CONFIG_BOOTCOMMAND \ + "run distro_bootcmd" +#else #define CONFIG_BOOTCOMMAND \ "run emmcboot; setenv fdtfile ${soc}-apalis-${fdt_board}.dtb && " \ "run distro_bootcmd" +#endif #define DFU_ALT_EMMC_INFO "apalis_t30.img raw 0x0 0x500 mmcpart 1; " \ "boot part 0 1 mmcpart 0; " \ |