[PATCH v2 0/4] Introduce the sysinfo command
Detlev Casanova
detlev.casanova at collabora.com
Wed Jun 28 21:32:35 CEST 2023
The command can be used to show various information that can be used to
identify the running system.
Currently supported subcommands are:
* model: A string representing the model
* id: The id of the board
* revision: The revision of this board.
I'm also not sure if a test should be added and where to start to test
this kind of command.
Changes since v1:
- Removed shell function to select linux device tree. This will be
distributions job.
- Break revision in rev_major and rev_minor in the sysinfo driver.
Detlev Casanova (4):
sysinfo: Add IDs for board id and revision
cmd: Add a sysinfo command
sysinfo: rcar3: Use int instead of char for revision
sysinfo: rcar3: Implement BOARD_ID and BOARD_REVISION_*
cmd/Kconfig | 6 ++
cmd/Makefile | 1 +
cmd/sysinfo.c | 134 ++++++++++++++++++++++++++++++++++++++
drivers/sysinfo/rcar3.c | 141 ++++++++++++++++++++++++++++------------
include/sysinfo.h | 5 ++
5 files changed, 245 insertions(+), 42 deletions(-)
create mode 100644 cmd/sysinfo.c
--
2.39.3
More information about the U-Boot
mailing list