cirosantilli / linux-kernel-module-cheat

The perfect emulation setup to study and develop the Linux kernel v5.4.3, kernel modules, QEMU, gem5 and x86_64, ARMv7 and ARMv8 userland and baremetal assembly, ANSI C, C++ and POSIX. GDB step debug and KGDB just work. Powered by Buildroot and crosstool-NG. Highly automated. Thoroughly documented. Automated tests. "Tested" in an Ubuntu 24.04 host.
https://cirosantilli.com/linux-kernel-module-cheat
GNU General Public License v3.0
4.21k stars 605 forks source link

gem5 fs.py X86 multicore TimingSimpleCPU Linux kernel boot hangs #76

Open cirosantilli opened 5 years ago

cirosantilli commented 5 years ago

Original report: https://stackoverflow.com/questions/56642695/a-working-linux-kernel-gem5-config-for-fs-boot-up-in-x86-smp/56644363#56644363

At lkmc 99180e6616331b7385b09147f11f67962f9facc4 gem5 08c79a194d1a3430801c04f37d13216cc9ec1da3 May 2019:

./run --cpus 2 --emulator gem5 -- --cpu-type TimingSimpleCPU --caches --l2cache

Boot hangs, the last terminal message is:

pci 0000:00:04.0: legacy IDE quirk: reg 0x1c: [io  0x0376]

and a bit above we can see the suspicious message:

[Firmware Bug]: CPU1: APIC id mismatch. Firmware: 1 APIC: 0