Re: [PATCH v1 2/4] cmd: Add a sysinfo command

2023-06-16 Thread Marek Vasut
On 6/16/23 17:21, Detlev Casanova wrote: [...] +static int do_sysinfo_id(struct cmd_tbl *cmdtp, int flag, int argc, +char *const argv[]) +{ + struct udevice *dev; + u32 board_id; + char board_id_str[5] = { '\0' }; + int ret = get_sysinfo(&dev); +

[PATCH v1 2/4] cmd: Add a sysinfo command

2023-06-16 Thread Detlev Casanova
The command is able to show different information for the running system: * Model name * Board ID * Revision This command can be used by boot shell scripts to select configurations depending on the specific running system. Signed-off-by: Detlev Casanova --- cmd/Kconfig | 6 +++ cmd/Makefile