I have compiled a kernel successfully and used qemu-system-x86_64 -kernel arch/x86/boot/bzImage -initrd /boot/initrd.img-4.14.41+ -m 512M
to boot it. Unfortunately some error throws up and I want to debug it. There are many messages printing but I cannot scroll up to see them. So, how can I get the messages?
Found out an Alternative for this. Used the command qemu-system-x86_64 -nographic -kernel arch/x86/boot/bzImage -initrd /boot/initrd.img-4.14.41+ -m 512M -append console=ttyS0
and got all the error messages right on the terminal.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With