redirect QEMU window output to terminal running qemu

后端 未结 3 1369

Im trying to debug the boot sequence of a linux kernel with qemu, the command i\'m running is:

  qemu -serial stdio -kernel  -hda 

相关标签:
3条回答
  • 2020-12-29 22:03

    refer this Redirect Qemu console to a file or the host terminal? to get the log on both qemu and your terminal .use "console=ttyAMA0,115200 console=tty highres=off console=ttyS0"

    0 讨论(0)
  • 2020-12-29 22:14
    1. remove -serial stdio parameter
    2. add -nographic parameter
    3. and change the kernel parameter terminal = ttyS0 to console=ttyS0. This should do the trick.

    qemu -nographic -kernel ./bzImage -hda ./image.hda -append root=/dev/sda console=ttyS0

    You may want to check the script I use for kernel development: https://github.com/arapov/wrap-qemukvm (it's not very "production", but you can find useful qemu cli parameters there)

    0 讨论(0)
  • 2020-12-29 22:14

    Redirecting Qemu output to terminal might cause some problem (personally i don't like it). You can using options like -noframe (this will create new window but won't any window frame) or -curses to experience qemu output on terminal.

    0 讨论(0)
提交回复
热议问题