162306a36Sopenharmony_ciWhat: /sys/firmware/lefi/boardinfo 262306a36Sopenharmony_ciDate: October 2020 362306a36Sopenharmony_ciContact: Tiezhu Yang <yangtiezhu@loongson.cn> 462306a36Sopenharmony_ciDescription: 562306a36Sopenharmony_ci Get mainboard and BIOS info easily on the Loongson platform, 662306a36Sopenharmony_ci this is useful to point out the current used mainboard type 762306a36Sopenharmony_ci and BIOS version when there exists problems related with 862306a36Sopenharmony_ci hardware or firmware. 962306a36Sopenharmony_ci 1062306a36Sopenharmony_ci The related structures are already defined in the interface 1162306a36Sopenharmony_ci specification about firmware and kernel which are common 1262306a36Sopenharmony_ci requirement and specific for Loongson64, so only add a new 1362306a36Sopenharmony_ci boardinfo.c file in arch/mips/loongson64. 1462306a36Sopenharmony_ci 1562306a36Sopenharmony_ci For example: 1662306a36Sopenharmony_ci 1762306a36Sopenharmony_ci [loongson@linux ~]$ cat /sys/firmware/lefi/boardinfo 1862306a36Sopenharmony_ci Board Info 1962306a36Sopenharmony_ci Manufacturer : LEMOTE 2062306a36Sopenharmony_ci Board Name : LEMOTE-LS3A4000-7A1000-1w-V01-pc 2162306a36Sopenharmony_ci Family : LOONGSON3 2262306a36Sopenharmony_ci 2362306a36Sopenharmony_ci BIOS Info 2462306a36Sopenharmony_ci Vendor : Kunlun 2562306a36Sopenharmony_ci Version : Kunlun-A1901-V4.1.3-20200414093938 2662306a36Sopenharmony_ci ROM Size : 4 KB 2762306a36Sopenharmony_ci Release Date : 2020-04-14 2862306a36Sopenharmony_ci 2962306a36Sopenharmony_ci By the way, using dmidecode command can get the similar info if there 3062306a36Sopenharmony_ci exists SMBIOS in firmware, but the fact is that there is no SMBIOS on 3162306a36Sopenharmony_ci some machines, we can see nothing when execute dmidecode, like this: 3262306a36Sopenharmony_ci 3362306a36Sopenharmony_ci [root@linux loongson]# dmidecode 3462306a36Sopenharmony_ci # dmidecode 2.12 3562306a36Sopenharmony_ci # No SMBIOS nor DMI entry point found, sorry. 36