mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-28 15:13:31 +08:00
board: gateworks: venice: do not overwrite serial#
Do not overwrite existing serial# env to avoid: ## Error: Can't overwrite "serial#" ## Error inserting "serial#" variable, errno=1 Signed-off-by: Tim Harvey <tharvey@gateworks.com>
This commit is contained in:
parent
9e4b38a12a
commit
45e82c379c
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user