[PATCH 2/5] board: gateworks: venice: do not overwrite serial#
Tim Harvey
tharvey at gateworks.com
Wed Aug 18 23:51:41 CEST 2021
Do not overwrite existing serial# env to avoid:
Signed-off-by: Tim Harvey <tharvey at gateworks.com>
---
board/gateworks/venice/imx8mm_venice.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/board/gateworks/venice/imx8mm_venice.c b/board/gateworks/venice/imx8mm_venice.c
index 2a97d55d32..46f4bff925 100644
--- a/board/gateworks/venice/imx8mm_venice.c
+++ b/board/gateworks/venice/imx8mm_venice.c
@@ -114,7 +114,8 @@ int board_late_init(void)
led_default_state();
/* Set board serial/model */
- env_set_ulong("serial#", gsc_get_serial());
+ if (!env_get("serial#"))
+ env_set_ulong("serial#", gsc_get_serial());
env_set("model", gsc_get_model());
/* Set fdt_file vars */
--
2.17.1
More information about the U-Boot
mailing list