[U-Boot] [PATCH 1/3] cmd: fru: Add support for FRU commands
Simon Glass
sjg at chromium.org
Mon Oct 21 23:46:57 UTC 2019
Hi Michal,
On Mon, 14 Oct 2019 at 07:29, Michal Simek <michal.simek at xilinx.com> wrote:
>
> From: Siva Durga Prasad Paladugu <siva.durga.paladugu at xilinx.com>
>
> This patch adds support for fru commands "fru capture" and "fru display".
> The fru capture parses the FRU table present at an address and stores in a
> structure for later use. The fru display prints the content of captured
> structured in a readable format.
>
> As of now, it supports only common header and board area of FRU. Also, it
> supports only English language code and ASCII8 format.
>
> fru_data variable is placed to data section because fru parser can be
> called very early before bss is initialized. And also information needs to
> be shared that's why it is exported via header.
>
> Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu at xilinx.com>
> Signed-off-by: Michal Simek <michal.simek at xilinx.com>
> ---
>
> MAINTAINERS | 3 +
> cmd/Kconfig | 8 ++
> cmd/Makefile | 1 +
> cmd/fru.c | 68 +++++++++++++
> common/Makefile | 1 +
> common/fru_ops.c | 247 +++++++++++++++++++++++++++++++++++++++++++++++
Can we get some tests for this file?
> include/fru.h | 64 ++++++++++++
> 7 files changed, 392 insertions(+)
> create mode 100644 cmd/fru.c
> create mode 100644 common/fru_ops.c
> create mode 100644 include/fru.h
>
Regards,
Simon
More information about the U-Boot
mailing list