dmesg
(display message或者driver message)是Linux系统中用于显示内核启动信息和运行时状态的命令。它可以帮助我们诊断硬件和驱动程序的问题。以下是一些可能表明硬件故障的dmesg
日志示例:
[ 0.000000] Memory: 8177M/16384M available (8M kernel code, 1344M rwdata, 2688M rodata, 1280M init, 975M bss, 26880M reserved, 0K highmem)
[ 0.000000] SLUB: HWalign=64, Size=1.00MB, MinObjects=16, CPUs=8, Nodes Per Cab=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] rcu: Hierarchical SRCU implementation.
[ 0.000000] NR_IRQS: 256, nr_irqs: 256, preallocated irqs: 256
[ 0.000000] Clocksource systick: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 764504378 ns
[ 0.000000] NET: Registered protocol family 2
[ 0.000000] tcp_listen_portaddr_hash hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.000000] TCP established hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] TCP bind hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] TCP: Hash tables configured (established 32768 bind 32768)
[ 0.000000] MPTCP hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.000000] MPTCP built-in
[ 0.000000] NET: Registered protocol family 1
[ 0.000000] pci 0000:00:00.0: no PCI bus found
[ 0.000000] pci 0000:00:00.0: PCI bridge to nowhere
[ 0.000000] pci 0000:00:00.0: no PCI devices found
[ 0.000000] pci 0000:00:00.0: PCI bridge to nowhere
[ 0.000000] pci 0000:00:00.0: no PCI devices found
[ 0.000000] ACPI: Added _OSI(Module Device)
[ 0.000000] ACPI: Added _OSI(Processor Device)
[ 0.000000] ACPI: Added _OSI(3.0 _SCP Extensions)
[ 0.000000] ACPI: Added _OSI(Processor Aggregator Device)
[ 0.000000] ACPI: Added _OSI(Logical Memory Controller)
[ 0.000000] ACPI: Added _OSI(Processor Device)
[ 0.000000] ACPI: Added _OSI(3.0 _SCP Extensions)
[ 0.000000] ACPI: Added _OSI(Processor Aggregator Device)
[ 0.000000] ACPI: Added _OSI(Logical Memory Controller)
[ 0.000000] ACPI: Executed 1 blocks of module-level executable AML code
[ 0.000000] ACPI: Executed 1 blocks of block-level executable AML code
[ 0.000000] ACPI Exception: AE_NOT_FOUND, While evaluating _OSC (20210831/psargs-359)
[ 0.000000] ACPI Exception: AE_NOT_FOUND, While evaluating _OSC (20210831/psargs-359)
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Processor Device) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(3.0 _SCP Extensions) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Processor Aggregator Device) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Logical Memory Controller) query ignored
[ 0.000000] ACPI Error: Method parse/execution failed \_SB.PCI0.LPCB.EC0._OSC, AE_NOT_FOUND (20210831/psparse-542)
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Processor Device) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(3.0 _SCP Extensions) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Processor Aggregator Device) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Logical Memory Controller) query ignored
[ 0.000000] ACPI Exception: AE_NOT_FOUND, While evaluating _OSC (20210831/psargs-359)
[ 0.000000] ACPI Exception: AE_NOT_FOUND, While evaluating _OSC (20210831/psargs-359)
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Processor Device) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(3.0 _SCP Extensions) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Processor Aggregator Device) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Logical Memory Controller) query ignored
[ 0.000000] ACPI Error: Method parse/execution failed \_SB.PCI0.LPCB.EC0._OSC, AE_NOT_FOUND (20210831/psparse-542)
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Processor Device) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(3.0 _SCP Extensions) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Processor Aggregator Device) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Logical Memory Controller) query ignored
[ 0.000000] ACPI Exception: AE_NOT_FOUND, While evaluating _OSC (20210831/psargs-359)
[ 0.000000] ACPI Exception: AE_NOT_FOUND, While evaluating _OSC (20210831/psargs-359)
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Processor Device) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(3.0 _SCP Extensions) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Processor Aggregator Device) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Logical Memory Controller) query ignored
[ 0.000000] ACPI Error: Method parse/execution failed \_SB.PCI0.LPCB.EC0._OSC, AE_NOT_FOUND (20210831/psparse-542)
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Processor Device) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(3.0 _SCP Extensions) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Processor Aggregator Device) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Logical Memory Controller) query ignored
[ 0.000000] ACPI Exception: AE_NOT_FOUND, While evaluating _OSC (20210831/psargs-359)
[ 0.000000] ACPI Exception: AE_NOT_FOUND, While evaluating _OSC (20210831/psargs-359)
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Processor Device) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(3.0 _SCP Extensions) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Processor Aggregator Device) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Logical Memory Controller) query ignored
[ 0.000000] ACPI Error: Method parse/execution failed \_SB.PCI0.LPCB.EC0._OSC, AE_NOT_FOUND (20210831/psparse-542)
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Processor Device) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(3.0 _SCP Extensions) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Processor Aggregator Device) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Logical Memory Controller) query ignored
[ 0.000000] ACPI Exception: AE_NOT_FOUND, While evaluating _OSC (20210831/psargs-359)
[ 0.000000] ACPI Exception: AE_NOT_FOUND, While evaluating _OSC (20210831/psargs-359)
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Processor Device) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(3.0 _SCP Extensions) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Processor Aggregator Device) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Logical Memory Controller) query ignored
[ 0.000000] ACPI Error: Method parse/execution failed \_SB.PCI0.LPCB.EC0._OSC, AE_NOT_FOUND (20210831/psparse-542)
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Processor Device) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(3.0 _SCP Extensions) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Processor Aggregator Device) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Logical Memory Controller) query ignored
[ 0.000000] ACPI Exception: AE_NOT_FOUND, While evaluating _OSC (20210831/psargs-359)
[ 0.000000] ACPI Exception: AE_NOT_FOUND, While evaluating _OSC (20210831/psargs-359)
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Processor Device) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(3.0 _SCP Extensions) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Processor Aggregator Device) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Logical Memory Controller) query ignored
[ 0.000000] ACPI Error: Method parse/execution failed \_SB.PCI0.LPCB.EC0._OSC, AE_NOT_FOUND (20210831/psparse-542)
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Processor Device) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(3.0 _SCP Extensions) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Processor Aggregator Device) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Logical Memory Controller) query ignored
[ 0.000000] ACPI Exception: AE_NOT_FOUND, While evaluating _OSC (20210831/psargs-359)
[ 0.000000] ACPI Exception: AE_NOT_FOUND, While evaluating _OSC (20210831/psargs-359)
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Processor Device) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(3.0 _SCP Extensions) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Processor Aggregator Device) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Logical Memory Controller) query ignored
[ 0.000000] ACPI Error: Method parse/execution failed \_SB.PCI0.LPCB.EC0._OSC, AE_NOT_FOUND (20210831/psparse-542)
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Processor Device) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(3.0 _SCP Extensions) query ignored
[ 0.000000] ACPI: [Firmware Bug]: BIOS _OSI(Processor Aggregator Device) query ignored
[ 0.000000] ACPI