Re: [PATCH 3/3] MIPS: Loongson64: Add /proc/boardinfo

From: Tiezhu Yang
Date: Sat Oct 17 2020 - 01:26:49 EST


On 10/16/2020 09:11 PM, Pavel Machek wrote:
Hi!

Add /proc/boardinfo to get mainboard and BIOS info easily on the Loongson
platform, this is useful to point out the current used mainboard type and
BIOS version when there exists problems related with hardware or firmware.

E.g. with this patch:

[loongson@linux ~]$ cat /proc/boardinfo
Board Info
Manufacturer : LEMOTE
Board Name : LEMOTE-LS3A4000-7A1000-1w-V01-pc
Family : LOONGSON3

BIOS Info
Vendor : Kunlun
Version : Kunlun-A1901-V4.1.3-20200414093938
ROM Size : 4 KB
Release Date : 2020-04-14
Please put this into /sys somewhere, with usual rules. This is hard to
extend/parse.

Hi Pavel,

Thanks for your suggestion. I submitted a new version some days ago.

[1/2] MIPS: Loongson64: Add /sys/firmware/lefi/boardinfo
https://lore.kernel.org/patchwork/patch/1320574/

[2/2] Documentation: ABI: Add /sys/firmware/lefi/boardinfo description for Loongson64
https://lore.kernel.org/patchwork/patch/1320573/

Thanks,
Tiezhu


Pavel