Back to home page

OSCL-LXR

 
 

    


0001 What:           /sys/firmware/lefi/boardinfo
0002 Date:           October 2020
0003 Contact:        Tiezhu Yang <yangtiezhu@loongson.cn>
0004 Description:
0005                 Get mainboard and BIOS info easily on the Loongson platform,
0006                 this is useful to point out the current used mainboard type
0007                 and BIOS version when there exists problems related with
0008                 hardware or firmware.
0009 
0010                 The related structures are already defined in the interface
0011                 specification about firmware and kernel which are common
0012                 requirement and specific for Loongson64, so only add a new
0013                 boardinfo.c file in arch/mips/loongson64.
0014 
0015                 For example:
0016 
0017                 [loongson@linux ~]$ cat /sys/firmware/lefi/boardinfo
0018                 Board Info
0019                 Manufacturer            : LEMOTE
0020                 Board Name              : LEMOTE-LS3A4000-7A1000-1w-V01-pc
0021                 Family                  : LOONGSON3
0022 
0023                 BIOS Info
0024                 Vendor                  : Kunlun
0025                 Version                 : Kunlun-A1901-V4.1.3-20200414093938
0026                 ROM Size                : 4 KB
0027                 Release Date            : 2020-04-14
0028 
0029                 By the way, using dmidecode command can get the similar info if there
0030                 exists SMBIOS in firmware, but the fact is that there is no SMBIOS on
0031                 some machines, we can see nothing when execute dmidecode, like this:
0032 
0033                 [root@linux loongson]# dmidecode
0034                 # dmidecode 2.12
0035                 # No SMBIOS nor DMI entry point found, sorry.