mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00: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
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue