QEMU 中的滚动选项

Scrolling option in QEMU

我已经成功编译内核并使用qemu-system-x86_64 -kernel arch/x86/boot/bzImage -initrd /boot/initrd.img-4.14.41+ -m 512M启动它。不幸的是,出现了一些错误,我想对其进行调试。打印了很多消息,但我无法向上滚动查看它们。那么,我怎样才能收到消息呢?

找到了替代方案。使用命令 qemu-system-x86_64 -nographic -kernel arch/x86/boot/bzImage -initrd /boot/initrd.img-4.14.41+ -m 512M -append console=ttyS0 并在终端上获得所有错误消息。