OSH-2022 / OSH-2022.github.io

USTC OSH 2022 course homepage
https://osh-2022.github.io
Apache License 2.0
5 stars 2 forks source link

平台兼容性报告 #2

Closed Kobe972 closed 2 years ago

Kobe972 commented 2 years ago

使用学校镜像网站(mirrors.ustc.edu.cn)的ubuntu 21.10系统(物理机)对最新的稳定版本linux 5.17.1内核进行默认配置编译,QEMU运行失败 复现方法:

sudo apt install build-essential libncurses-dev bison flex libssl-dev libelf-dev
cd linux-5.17.1/
make defconfig
make -j 8
qemu-system-x86_64 -kernel linux-5.17.1/arch/x86_64/boot/bzImage -nographic -append console=ttyS0

结果:

[    0.000000] Linux version 5.17.1 (xyc@xuyichang) (gcc (Ubuntu 11.2.0-7ubuntu2
[    0.000000] Command line: console=ttyS0
[    0.000000] x86/fpu: x87 FPU will use FXSAVE
[    0.000000] signal: max sigframe size: 1440
[    0.000000] BIOS-provided physical RAM map:
[    0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
[    0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
[    0.000000] BIOS-e820: [mem 0x0000000000100000-0x0000000007fdffff] usable
[    0.000000] BIOS-e820: [mem 0x0000000007fe0000-0x0000000007ffffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved
[    0.000000] NX (Execute Disable) protection: active
[    0.000000] SMBIOS 2.8 present.
[    0.000000] DMI: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.14.0-2 04/014
[    0.000000] tsc: Fast TSC calibration using PIT
[    0.000000] tsc: Detected 2399.933 MHz processor
[    0.005282] last_pfn = 0x7fe0 max_arch_pfn = 0x400000000
[    0.005881] x86/PAT: Configuration [0-7]: WB  WC  UC- UC  WB  WP  UC- WT  
[    0.014026] found SMP MP-table at [mem 0x000f5ce0-0x000f5cef]
[    0.018569] ACPI: Early table checksum verification disabled
[    0.018876] ACPI: RSDP 0x00000000000F5B20 000014 (v00 BOCHS )
[    0.019103] ACPI: RSDT 0x0000000007FE18FE 000034 (v01 BOCHS  BXPC     000000)
[    0.019619] ACPI: FACP 0x0000000007FE17B2 000074 (v01 BOCHS  BXPC     000000)
[    0.020064] ACPI: DSDT 0x0000000007FE0040 001772 (v01 BOCHS  BXPC     000000)
[    0.020142] ACPI: FACS 0x0000000007FE0000 000040
[    0.020190] ACPI: APIC 0x0000000007FE1826 000078 (v01 BOCHS  BXPC     000000)
[    0.020211] ACPI: HPET 0x0000000007FE189E 000038 (v01 BOCHS  BXPC     000000)
[    0.020228] ACPI: WAET 0x0000000007FE18D6 000028 (v01 BOCHS  BXPC     000000)
[    0.020293] ACPI: Reserving FACP table memory at [mem 0x7fe17b2-0x7fe1825]
[    0.020328] ACPI: Reserving DSDT table memory at [mem 0x7fe0040-0x7fe17b1]
[    0.020337] ACPI: Reserving FACS table memory at [mem 0x7fe0000-0x7fe003f]
[    0.020343] ACPI: Reserving APIC table memory at [mem 0x7fe1826-0x7fe189d]
[    0.020348] ACPI: Reserving HPET table memory at [mem 0x7fe189e-0x7fe18d5]
[    0.020354] ACPI: Reserving WAET table memory at [mem 0x7fe18d6-0x7fe18fd]
[    0.022340] No NUMA configuration found
[    0.022366] Faking a node at [mem 0x0000000000000000-0x0000000007fdffff]
[    0.022892] NODE_DATA(0) allocated [mem 0x07fdc000-0x07fdffff]
[    0.024510] Zone ranges:
[    0.024542]   DMA      [mem 0x0000000000001000-0x0000000000ffffff]
[    0.024609]   DMA32    [mem 0x0000000001000000-0x0000000007fdffff]
[    0.024621]   Normal   empty
[    0.024638] Movable zone start for each node
[    0.024666] Early memory node ranges
[    0.024696]   node   0: [mem 0x0000000000001000-0x000000000009efff]
[    0.024805]   node   0: [mem 0x0000000000100000-0x0000000007fdffff]
[    0.024978] Initmem setup node 0 [mem 0x0000000000001000-0x0000000007fdffff]
[    0.025763] On node 0, zone DMA: 1 pages in unavailable ranges
[    0.025991] On node 0, zone DMA: 97 pages in unavailable ranges
[    0.026604] On node 0, zone DMA32: 32 pages in unavailable ranges
[    0.026871] ACPI: PM-Timer IO Port: 0x608
[    0.027242] ACPI: LAPIC_NMI (acpi_id[0xff] dfl dfl lint[0x1])
[    0.027603] IOAPIC[0]: apic_id 0, version 32, address 0xfec00000, GSI 0-23
[    0.027718] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
[    0.027938] ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
[    0.027969] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[    0.028046] ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
[    0.028056] ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
[    0.028202] ACPI: Using ACPI (MADT) for SMP configuration information
[    0.028245] ACPI: HPET id: 0x8086a201 base: 0xfed00000
[    0.028510] smpboot: Allowing 1 CPUs, 0 hotplug CPUs
[    0.029226] PM: hibernation: Registered nosave memory: [mem 0x00000000-0x000]
[    0.029268] PM: hibernation: Registered nosave memory: [mem 0x0009f000-0x000]
[    0.029292] PM: hibernation: Registered nosave memory: [mem 0x000a0000-0x000]
[    0.029299] PM: hibernation: Registered nosave memory: [mem 0x000f0000-0x000]
[    0.029394] [mem 0x08000000-0xfffbffff] available for PCI devices
[    0.029666] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xfffs
[    0.038772] setup_percpu: NR_CPUS:64 nr_cpumask_bits:64 nr_cpu_ids:1 nr_node1
[    0.043927] percpu: Embedded 52 pages/cpu s174872 r8192 d29928 u2097152
[    0.045893] Fallback order for Node 0: 0 
[    0.046110] Built 1 zonelists, mobility grouping on.  Total pages: 31968
[    0.046128] Policy zone: DMA32
[    0.046294] Kernel command line: console=ttyS0
[    0.066384] Dentry cache hash table entries: 16384 (order: 5, 131072 bytes, )
[    0.080096] Inode-cache hash table entries: 8192 (order: 4, 65536 bytes, lin)
[    0.081276] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.084594] Memory: 92264K/130552K available (16396K kernel code, 2623K rwda)
[    0.087522] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.094926] Dynamic Preempt: voluntary
[    0.097339] rcu: Preemptible hierarchical RCU implementation.
[    0.097355] rcu:     RCU event tracing is enabled.
[    0.097380] rcu:     RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=1.
[    0.097460]  Trampoline variant of Tasks RCU enabled.
[    0.097537] rcu: RCU calculated value of scheduler-enlistment delay is 100 j.
[    0.097568] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.103682] NR_IRQS: 4352, nr_irqs: 256, preallocated irqs: 16
[    0.111909] random: get_random_bytes called from start_kernel+0x492/0x65f wi0
[    0.116078] Console: colour VGA+ 80x25
[    0.130637] printk: console [ttyS0] enabled
[    0.131582] ACPI: Core revision 20211217
[    0.135716] clocksource: hpet: mask: 0xffffffff max_cycles: 0xffffffff, max_s
[    0.139233] APIC: Switch to symmetric I/O mode setup
[    0.142884] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[    0.148034] clocksource: tsc-early: mask: 0xffffffffffffffff max_cycles: 0x2s
[    0.148784] Calibrating delay loop (skipped), value calculated using timer f)
[    0.149160] pid_max: default: 32768 minimum: 301
[    0.150828] LSM: Security Framework initializing
[    0.151588] SELinux:  Initializing.
[    0.152253] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linea)
[    0.152420] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, )
[    0.167899] Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0
[    0.168021] Last level dTLB entries: 4KB 0, 2MB 0, 4MB 0, 1GB 0
[    0.168323] Spectre V1 : Mitigation: usercopy/swapgs barriers and __user poin
[    0.168609] Spectre V2 : Mitigation: Retpolines
[    0.168717] Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on h
[    0.168912] Speculative Store Bypass: Vulnerable
[    0.384611] Freeing SMP alternatives memory: 44K
[    0.394623] random: fast init done
[    0.496924] smpboot: CPU0: AMD QEMU Virtual CPU version 2.5+ (family: 0x6, m)
[    0.501963] cblist_init_generic: Setting adjustable number of callback queue.
[    0.502213] cblist_init_generic: Setting shift to 0 and lim to 1.
[    0.502692] Performance Events: PMU not available due to virtualization, usi.
[    0.504411] rcu: Hierarchical SRCU implementation.
[    0.508766] smp: Bringing up secondary CPUs ...
[    0.508932] smp: Brought up 1 node, 1 CPU
[    0.509048] smpboot: Max logical packages: 1
[    0.509187] smpboot: Total of 1 processors activated (4799.86 BogoMIPS)
[    0.519439] devtmpfs: initialized
[    0.525298] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, ms
[    0.525649] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.528185] PM: RTC time: 03:45:01, date: 2022-04-04
[    0.531577] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.534021] audit: initializing netlink subsys (disabled)
[    0.537788] audit: type=2000 audit(1649043900.396:1): state=initialized audi1
[    0.539110] thermal_sys: Registered thermal governor 'step_wise'
[    0.539144] thermal_sys: Registered thermal governor 'user_space'
[    0.540997] cpuidle: using governor menu
[    0.543735] PCI: Using configuration type 1 for base access
[    0.562804] kprobes: kprobe jump-optimization is enabled. All kprobes are op.
[    0.564777] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.568948] ACPI: Added _OSI(Module Device)
[    0.569084] ACPI: Added _OSI(Processor Device)
[    0.569184] ACPI: Added _OSI(3.0 _SCP Extensions)
[    0.569269] ACPI: Added _OSI(Processor Aggregator Device)
[    0.569397] ACPI: Added _OSI(Linux-Dell-Video)
[    0.569484] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
[    0.569558] ACPI: Added _OSI(Linux-HPI-Hybrid-Graphics)
[    0.580444] ACPI: 1 ACPI AML tables successfully acquired and loaded
[    0.592508] ACPI: Interpreter enabled
[    0.593343] ACPI: PM: (supports S0 S3 S4 S5)
[    0.593444] ACPI: Using IOAPIC for interrupt routing
[    0.593871] PCI: Using host bridge windows from ACPI; if necessary, use "pcig
[    0.595122] ACPI: Enabled 2 GPEs in block 00 to 0F
[    0.619771] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
[    0.620427] acpi PNP0A03:00: _OSC: OS supports [ASPM ClockPM Segments MSI HP]
[    0.620769] acpi PNP0A03:00: _OSC: not requesting OS control; OS requires [E]
[    0.621461] acpi PNP0A03:00: fail to add MMCONFIG information, can't access .
[    0.623621] PCI host bridge to bus 0000:00
[    0.623832] pci_bus 0000:00: root bus resource [io  0x0000-0x0cf7 window]
[    0.624028] pci_bus 0000:00: root bus resource [io  0x0d00-0xffff window]
[    0.624129] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff wi]
[    0.624309] pci_bus 0000:00: root bus resource [mem 0x08000000-0xfebfffff wi]
[    0.624445] pci_bus 0000:00: root bus resource [mem 0x100000000-0x17fffffff ]
[    0.624687] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.625886] pci 0000:00:00.0: [8086:1237] type 00 class 0x060000
[    0.631334] pci 0000:00:01.0: [8086:7000] type 00 class 0x060100
[    0.631952] pci 0000:00:01.1: [8086:7010] type 00 class 0x010180
[    0.633414] pci 0000:00:01.1: reg 0x20: [io  0xc040-0xc04f]
[    0.634080] pci 0000:00:01.1: legacy IDE quirk: reg 0x10: [io  0x01f0-0x01f7]
[    0.634257] pci 0000:00:01.1: legacy IDE quirk: reg 0x14: [io  0x03f6]
[    0.634414] pci 0000:00:01.1: legacy IDE quirk: reg 0x18: [io  0x0170-0x0177]
[    0.634579] pci 0000:00:01.1: legacy IDE quirk: reg 0x1c: [io  0x0376]
[    0.635044] pci 0000:00:01.3: [8086:7113] type 00 class 0x068000
[    0.635601] pci 0000:00:01.3: quirk: [io  0x0600-0x063f] claimed by PIIX4 ACI
[    0.635766] pci 0000:00:01.3: quirk: [io  0x0700-0x070f] claimed by PIIX4 SMB
[    0.636141] pci 0000:00:02.0: [1234:1111] type 00 class 0x030000
[    0.636569] pci 0000:00:02.0: reg 0x10: [mem 0xfd000000-0xfdffffff pref]
[    0.637764] pci 0000:00:02.0: reg 0x18: [mem 0xfebb0000-0xfebb0fff]
[    0.639559] pci 0000:00:02.0: reg 0x30: [mem 0xfeba0000-0xfebaffff pref]
[    0.639863] pci 0000:00:02.0: Video device with shadowed ROM at [mem 0x000c0]
[    0.642389] pci 0000:00:03.0: [8086:100e] type 00 class 0x020000
[    0.642882] pci 0000:00:03.0: reg 0x10: [mem 0xfeb80000-0xfeb9ffff]
[    0.643714] pci 0000:00:03.0: reg 0x14: [io  0xc000-0xc03f]
[    0.645347] pci 0000:00:03.0: reg 0x30: [mem 0xfeb00000-0xfeb7ffff pref]
[    0.651488] ACPI: PCI: Interrupt link LNKA configured for IRQ 10
[    0.652042] ACPI: PCI: Interrupt link LNKB configured for IRQ 10
[    0.652666] ACPI: PCI: Interrupt link LNKC configured for IRQ 11
[    0.653143] ACPI: PCI: Interrupt link LNKD configured for IRQ 11
[    0.653445] ACPI: PCI: Interrupt link LNKS configured for IRQ 9
[    0.655859] iommu: Default domain type: Translated 
[    0.655992] iommu: DMA domain TLB invalidation policy: lazy mode 
[    0.658945] pci 0000:00:02.0: vgaarb: setting as boot VGA device
[    0.659148] pci 0000:00:02.0: vgaarb: VGA device added: decodes=io+mem,owns=e
[    0.659359] pci 0000:00:02.0: vgaarb: bridge control possible
[    0.659583] vgaarb: loaded
[    0.660554] SCSI subsystem initialized
[    0.661813] ACPI: bus type USB registered
[    0.662205] usbcore: registered new interface driver usbfs
[    0.662570] usbcore: registered new interface driver hub
[    0.662798] usbcore: registered new device driver usb
[    0.663189] pps_core: LinuxPPS API ver. 1 registered
[    0.663305] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giom>
[    0.663554] PTP clock support registered
[    0.665450] Advanced Linux Sound Architecture Driver Initialized.
[    0.672423] NetLabel: Initializing
[    0.672511] NetLabel:  domain hash size = 128
[    0.672561] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    0.673373] NetLabel:  unlabeled traffic allowed by default
[    0.674136] PCI: Using ACPI for IRQ routing
[    0.675307] hpet: 3 channels of 0 reserved for per-cpu timers
[    0.675650] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0
[    0.675822] hpet0: 3 comparators, 64-bit 100.000000 MHz counter
[    0.680013] clocksource: Switched to clocksource tsc-early
[    0.743179] VFS: Disk quotas dquot_6.6.0
[    0.743514] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.745117] pnp: PnP ACPI init
[    1.034180] pnp: PnP ACPI: found 6 devices
[    1.050520] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_is
[    1.051124] NET: Registered PF_INET protocol family
[    1.052037] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linea)
[    1.056661] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096)
[    1.056893] TCP established hash table entries: 1024 (order: 1, 8192 bytes, )
[    1.057157] TCP bind hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    1.057421] TCP: Hash tables configured (established 1024 bind 1024)
[    1.058329] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.058801] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.059953] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    1.061632] RPC: Registered named UNIX socket transport module.
[    1.061803] RPC: Registered udp transport module.
[    1.061906] RPC: Registered tcp transport module.
[    1.062005] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.064009] pci_bus 0000:00: resource 4 [io  0x0000-0x0cf7 window]
[    1.064162] pci_bus 0000:00: resource 5 [io  0x0d00-0xffff window]
[    1.064325] pci_bus 0000:00: resource 6 [mem 0x000a0000-0x000bffff window]
[    1.064460] pci_bus 0000:00: resource 7 [mem 0x08000000-0xfebfffff window]
[    1.064595] pci_bus 0000:00: resource 8 [mem 0x100000000-0x17fffffff window]
[    1.065172] pci 0000:00:01.0: PIIX3: Enabling Passive Release
[    1.065390] pci 0000:00:00.0: Limiting direct PCI/PCI transfers
[    1.065559] pci 0000:00:01.0: Activating ISA DMA hang workarounds
[    1.065757] PCI: CLS 0 bytes, default 64
[    1.074015] Initialise system trusted keyrings
[    1.075697] workingset: timestamp_bits=56 max_order=15 bucket_order=0
[    1.086478] NFS: Registering the id_resolver key type
[    1.086813] Key type id_resolver registered
[    1.086925] Key type id_legacy registered
[    1.113045] Key type asymmetric registered
[    1.113234] Asymmetric key parser 'x509' registered
[    1.113610] Block layer SCSI generic (bsg) driver version 0.4 loaded (major )
[    1.113863] io scheduler mq-deadline registered
[    1.114008] io scheduler kyber registered
[    1.116744] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/in0
[    1.119454] ACPI: button: Power Button [PWRF]
[    1.121568] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    1.123377] 00:04: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 165A
[    1.127178] Non-volatile memory driver v1.3
[    1.127522] Linux agpgart interface v0.103
[    1.128877] ACPI: bus type drm_connector registered
[    1.143909] loop: module loaded
[    1.150986] scsi host0: ata_piix
[    1.153002] scsi host1: ata_piix
[    1.153594] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc040 irq 14
[    1.153791] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc048 irq 15
[    1.160433] e100: Intel(R) PRO/100 Network Driver
[    1.160526] e100: Copyright(c) 1999-2006 Intel Corporation
[    1.160757] e1000: Intel(R) PRO/1000 Network Driver
[    1.160865] e1000: Copyright (c) 1999-2006 Intel Corporation.
[    1.302689] ACPI: \_SB_.LNKC: Enabled at IRQ 11
[    1.323023] ata2: found unknown device (class 0)
[    1.332168] ata2.00: ATAPI: QEMU DVD-ROM, 2.5+, max UDMA/100
[    1.345826] scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     2.5+ P5
[    1.378711] sr 1:0:0:0: [sr0] scsi3-mmc drive: 4x/4x cd/rw xa/form2 tray
[    1.379030] cdrom: Uniform CD-ROM driver Revision: 3.20
[    1.406665] sr 1:0:0:0: Attached scsi generic sg0 type 5
[    1.610759] e1000 0000:00:03.0 eth0: (PCI:33MHz:32-bit) 52:54:00:12:34:56
[    1.611489] e1000 0000:00:03.0 eth0: Intel(R) PRO/1000 Network Connection
[    1.612316] e1000e: Intel(R) PRO/1000 Network Driver
[    1.612505] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    1.612893] sky2: driver version 1.30
[    1.614412] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.614742] ehci-pci: EHCI PCI platform driver
[    1.615076] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.615339] ohci-pci: OHCI PCI platform driver
[    1.615718] uhci_hcd: USB Universal Host Controller Interface driver
[    1.616400] usbcore: registered new interface driver usblp
[    1.616771] usbcore: registered new interface driver usb-storage
[    1.617797] i8042: PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x2
[    1.620753] serio: i8042 KBD port at 0x60,0x64 irq 1
[    1.621082] serio: i8042 AUX port at 0x60,0x64 irq 12
[    1.624733] input: AT Translated Set 2 keyboard as /devices/platform/i8042/s1
[    1.626763] rtc_cmos 00:05: RTC can wake from S4
[    1.631607] rtc_cmos 00:05: registered as rtc0
[    1.632172] rtc_cmos 00:05: alarms up to one day, y3k, 242 bytes nvram, hpets
[    1.633218] device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: dm-m
[    1.634010] hid: raw HID events driver (C) Jiri Kosina
[    1.635296] usbcore: registered new interface driver usbhid
[    1.635429] usbhid: USB HID core driver
[    1.641748] Initializing XFRM netlink socket
[    1.642514] NET: Registered PF_INET6 protocol family
[    1.648139] Segment Routing with IPv6
[    1.648342] In-situ OAM (IOAM) with IPv6
[    1.649252] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.651404] NET: Registered PF_PACKET protocol family
[    1.652011] Key type dns_resolver registered
[    1.653209] IPI shorthand broadcast: enabled
[    1.653484] sched_clock: Marking stable (1622782585, 29788401)->(1652158611,)
[    1.654792] registered taskstats version 1
[    1.654906] Loading compiled-in X.509 certificates
[    1.660128] cryptomgr_test (42) used greatest stack depth: 15648 bytes left
[    1.660830] cryptomgr_test (43) used greatest stack depth: 15624 bytes left
[    1.666338] PM:   Magic number: 2:837:764
[    1.666640] event_source breakpoint: hash matches
[    1.667091] printk: console [netcon0] enabled
[    1.667220] netconsole: network logging started
[    1.669794] cfg80211: Loading compiled-in X.509 certificates for regulatory e
[    1.680743] kworker/u2:1 (64) used greatest stack depth: 14576 bytes left
[    1.687766] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.689082] platform regulatory.0: Direct firmware load for regulatory.db fa2
[    1.689433] cfg80211: failed to load regulatory.db
[    1.690646] ALSA device list:
[    1.690888]   No soundcards found.
[    2.091482] tsc: Refined TSC clocksource calibration: 2399.908 MHz
[    2.092729] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x2297e06s
[    2.093919] clocksource: Switched to clocksource tsc
[    2.254989] input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8043
[    2.255854] md: Waiting for all devices to be available before autodetect
[    2.255998] md: If you don't use raid, use raid=noautodetect
[    2.256142] md: Autodetecting RAID arrays.
[    2.256247] md: autorun ...
[    2.256318] md: ... autorun DONE.
[    2.257990] /dev/root: Can't open blockdev
[    2.258200] VFS: Cannot open root device "(null)" or unknown-block(0,0): err6
[    2.258395] Please append a correct "root=" boot option; here are the availa:
[    2.258753] 0b00         1048575 sr0 
[    2.258828]  driver: sr
[    2.259090] Kernel panic - not syncing: VFS: Unable to mount root fs on unkn)
[    2.259406] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.17.1 #3
[    2.259585] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.144
[    2.259859] Call Trace:
[    2.260390]  <TASK>
[    2.260582]  dump_stack_lvl+0x34/0x44
[    2.260748]  panic+0xef/0x2a6
[    2.260840]  mount_block_root+0x15e/0x1f4
[    2.260960]  prepare_namespace+0x136/0x165
[    2.261048]  kernel_init_freeable+0x202/0x20d
[    2.261140]  ? rest_init+0xc0/0xc0
[    2.261217]  kernel_init+0x11/0x110
[    2.261293]  ret_from_fork+0x22/0x30
[    2.261415]  </TASK>
[    2.261832] Kernel Offset: 0x23c00000 from 0xffffffff81000000 (relocation ra)
[    2.262264] ---[ end Kernel panic - not syncing: VFS: Unable to mount root f-

已通过运行dpkg --print-architecture确定系统是AMD64架构。
除此之外,使用上一个稳定版本5.16.18进行默认配置编译运行,出现同样结果。

taoky commented 2 years ago

这是正常的,没有 initramfs 也没有在参数中指定 rootfs 所在设备的时候 kernel 不知道下一步要做什么,就 kernel panic 了。