Skip to content

Introduce the sysinfo command

Detlev Casanova u-boot 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest6 patches 14 repliesIn review
  2. v46 patches 4 repliesSuperseded
  3. v3 posting 2/26 patches 9 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v3 posting 1/20 of 5 patches0 repliesSuperseded
v24 patches2 repliesSuperseded
v14 patches12 repliesSuperseded

Changes in v5 from the cover letter

- Use less snprintf calls in drivers/sysinfo/rcar3.c
- Rebase on master

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6sysinfo: Add IDs for board id and revisioninclude/sysinfo.h+5 -04 replies
2/6cmd: Add a sysinfo commandcmd/Kconfig cmd/Makefile cmd/sysinfo.c+140 -03 replies
3/6sysinfo: Add a testconfigs/sandbox_defconfig drivers/sysinfo/sandbox.c test/cmd/Makefile +1 more+70 -01 reply
4/6sysinfo: Add documentationdoc/usage/cmd/sysinfo.rst+56 -02 replies
5/6sysinfo: rcar3: Use int instead of char for revisiondrivers/sysinfo/rcar3.c+39 -341 reply
6/6sysinfo: rcar3: Implement BOARD_ID and BOARD_REV_*drivers/sysinfo/rcar3.c+63 -263 replies

Reviews trailers per patch

5 of 6 patches have a Reviewed-by or Acked-by.

PatchMarek VasutSimon Glass
1/6R-b R-b
2/6R-b R-b
3/6R-b R-b
4/6R-b R-b
5/6R-b
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 0/6] Introduce the sysinfo command

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.

Changes since v4:
- Use less snprintf calls in drivers/sysinfo/rcar3.c
- Rebase on master
Changes since v3:
- Fix documentation typo.
Changes since v2:
- Fix code style.
- Use printf() instead of debug().
- Clarify sysinfo new ids types (int).
- Add a test for sysinfo command.
- Add documentation for sysinfo 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 (6):
sysinfo: Add IDs for board id and revision
cmd: Add a sysinfo command
sysinfo: Add a test
sysinfo: Add documentation
sysinfo: rcar3: Use int instead of char for revision
sysinfo: rcar3: Implement BOARD_ID and BOARD_REV_*

 cmd/Kconfig               |   6 ++
 cmd/Makefile              |   1 +
 cmd/sysinfo.c             | 133 ++++++++++++++++++++++++++++++++++++++
 configs/sandbox_defconfig |   1 +
 doc/usage/cmd/sysinfo.rst |  56 ++++++++++++++++
 drivers/sysinfo/rcar3.c   | 110 +++++++++++++++++++++----------
 drivers/sysinfo/sandbox.c |  17 +++++
 include/sysinfo.h         |   5 ++
 test/cmd/Makefile         |   1 +
 test/cmd/test_sysinfo.c   |  51 +++++++++++++++
 10 files changed, 347 insertions(+), 34 deletions(-)
 create mode 100644 cmd/sysinfo.c
 create mode 100644 doc/usage/cmd/sysinfo.rst
 create mode 100644 test/cmd/test_sysinfo.c
Signature · 1 line
2.41.0