diff options
author | Phil Sutter <phil@nwl.cc> | 2021-03-05 21:05:11 +0100 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2021-04-08 08:50:41 +0200 |
commit | a770159f88214846a66c7d7b6ee894de428e8fae (patch) | |
tree | 73d2bcecf52871fae19d44f8693f8ae687f18cca /board/Synology/ds414/cmd_syno.h | |
parent | e471ddf0f3472423e8cdf8cc7d06a0b8e2abfebc (diff) | |
download | u-boot-a770159f88214846a66c7d7b6ee894de428e8fae.zip u-boot-a770159f88214846a66c7d7b6ee894de428e8fae.tar.gz u-boot-a770159f88214846a66c7d7b6ee894de428e8fae.tar.bz2 |
arm: mvebu: ds414: Auto-populate env if appropriate
Define a misc_init_r() which calls "syno populate_env" if the
environment seems incomplete (or default), indicated by missing
"ethaddr" variable. With this in place, no random MAC address fallback
is needed anymore.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'board/Synology/ds414/cmd_syno.h')
-rw-r--r-- | board/Synology/ds414/cmd_syno.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/board/Synology/ds414/cmd_syno.h b/board/Synology/ds414/cmd_syno.h new file mode 100644 index 0000000..42e435c --- /dev/null +++ b/board/Synology/ds414/cmd_syno.h @@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Commands to deal with Synology specifics. + * + * Copyright (C) 2021 Phil Sutter <phil@nwl.cc> + */ + +#ifndef _CMD_SYNO_H +#define _CMD_SYNO_H + +#define SYNO_ETHADDR_MAX 4 +#define SYNO_SN_TAG "SN=" +#define SYNO_CHKSUM_TAG "CHK=" + +int do_syno_populate(int argc, char *const argv[]); + +#endif /* _CMD_SYNO_H */ |