mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 04:46:01 +01: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();
|
led_default_state();
|
||||||
|
|
||||||
/* Set board serial/model */
|
/* 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());
|
env_set("model", gsc_get_model());
|
||||||
|
|
||||||
/* Set fdt_file vars */
|
/* Set fdt_file vars */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user