gem5-users@gem5.org

The gem5 Users mailing list

View all threads

Using own kernel binary for FS simulation

RG
reverent.green@web.de
Mon, Nov 20, 2023 10:20 PM

Hello everyone,

I am currently using "x86-ubuntu-18.04.img" and "x86-linux-kernel-5.4.49" from gem5 resources for my full-system simulation in gem5.

For my next experiment, I need a custom kernel module, which I already inserted into and built in the ubuntu image. The problem is, that the image uses a kernel version (4.15.0-45-generic), which is not available in the list of prebuilt x86 linux kernels (https://resources.gem5.org/resources?q=architecture%3AX86+kernel&page=1&sort=relevance&limit=10)

I tried to extract the kernel executable binary from the ubuntu image in order to have the same version for the simulation, but gem5 won't start using this kernel. There is only an "Kernel panic - not syncing: Attempted to kill the idle task!" error and after that, the simulation halts/aborts.

Does anyone have a solution for this problem? My goal is to use a custom kernel module inside the simulation and I need the same kernel version in the image and the gem5 simulation. Thank you in advance.

Best regards

Robin