From 885dcc36afe80f5d0e56ee540787fee5102ac601 Mon Sep 17 00:00:00 2001 From: Philippe Schenker Date: Fri, 8 Apr 2022 10:07:08 +0200 Subject: [PATCH] board: colibri-imx6ull: Do not leave variant variable unset Toradex uses the variable variant to distinguish between modules with eMMC, NAND with wifi and NAND without wifi. This variable is set on every boot. Set this variable also if we have a NAND module without wifi to prevent issues. Signed-off-by: Philippe Schenker Signed-off-by: Marcel Ziswiler --- board/toradex/colibri-imx6ull/colibri-imx6ull.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/board/toradex/colibri-imx6ull/colibri-imx6ull.c b/board/toradex/colibri-imx6ull/colibri-imx6ull.c index 02ab5889b9..3244184f27 100644 --- a/board/toradex/colibri-imx6ull/colibri-imx6ull.c +++ b/board/toradex/colibri-imx6ull/colibri-imx6ull.c @@ -172,10 +172,14 @@ int board_late_init(void) } else { if (is_emmc) env_set("variant", "-emmc"); + else + env_set("variant", ""); } #else if (is_emmc) env_set("variant", "-emmc"); + else + env_set("variant", ""); #endif /* -- 2.39.5