在龙芯平台上dmidecode工具获得不了硬件的信息

rt。想通过dmidecode工具来获取硬件信息,但是都显示No SMBIOS nor DMI entry point found, sorry.
想请教一下,还有什么办法可以获取类似于x86的CPUID,BIOS Serial Number之类的信息。万分感谢。

如果有c接口最好。
已邀请:

lemote1

赞同来自:

请提供你使用的系统与内核版本供分析。

xen0n

赞同来自:

龙芯的 smbios 表格就算有也是不完整的,现有的龙芯平台固件和 Linux/MIPS 本身也都没有 ACPI 支持。楼主说的信息倒是可以用其他方式获得:
 
- CPU 特性:读取 /proc/cpuinfo
- 板子序号等等:读取 /proc/boardinfo(仅打了 Loongnix 相关补丁的内核适用)
 
不过现在看来龙芯平台支持现行标准如 SMBIOS、ACPI、EFI 只是时间问题,假以时日,让一些 x86 环境的工具能搬家过来,不失为一件好事。

lemote1

赞同来自:

[root@sunhaiyong RDCTest]# dmidecode 
# dmidecode 2.12
# SMBIOS entry point at 0x0fffe000
SMBIOS 2.6 present.
18 structures occupying 797 bytes.
Table at 0x0FFFE01F.
 
Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
        Vendor: Lemote
        Version: Lemote-PMON-V1.0.0-20170309
        Release Date: 03/09/2017
        Address: 0xE0000
        Runtime Size: 128 kB
        ROM Size: 1024 kB
        Characteristics:
                BIOS is upgradeable
                BIOS shadowing is allowed
                Selectable boot is supported
                Boot from PC Card (PCMCIA) is supported
                Smart battery is supported
                Function key-initiated network boot is supported
        BIOS Revision: 2.1
 
Handle 0x0001, DMI type 1, 27 bytes
System Information
        Manufacturer: Lemote
        Product Name: Lemote-LS3A2000-RS780E-1w-V0.1-A1601
        Version: 0.1
        Serial Number: Not Specified
        UUID: 468D0997-F36B-1400-6954-000000000000
        Wake-up Type: Power Switch
        SKU Number: Not Specified
        Family: LoongSon3
 
Handle 0x0002, DMI type 2, 17 bytes
Base Board Information
        Manufacturer: Lemote
        Product Name: Lemote-LS3A2000-RS780E-1w-V0.1-A1601
        Version: 0.1
        Serial Number: Not Specified
        Asset Tag: Not Specified
        Features:
                Board is a hosting board
                Board is replaceable
        Location In Chassis: Not Specified
 

要回复问题请先登录注册