Select text from qemu
I found it difficult to copy/paste boot messages from qemu. THat is because qemu is using SDL for display.
I tried adding "console=/dev/ttyS0" in the -append section, which should output messages from the guest kernel though serial connection onto the host console. For working (Debian) kernel, this starts booting in quemu window, but whe a kernel is uncompressed, then starts writing on the host console the rest of the boot process. If -nographic switch to qemu is added, than it will not even start booting in separate window, but go to the console right away. The -nographic switch actually gives -serial stdio switch internaly to qemu in ordet to send everything to host stdio.
But - for my vanilla compiled kernel this does not work, it just stucks, probablybecause I did not enable this support in menuconfig.
My help was to use -curses switch, which boots qemu in ncurses environment, where we can copy/paste in the usual way.
Also, to switch to the monitor console in -curses use Alt+2, or ESC and then press 2. There you can write quit to quit qemu.
To go back to guest main console press Alt+1.
This is different from the SDL qemu environment, where you tooggle this with Ctl+Alt+1 or Ctl+Alt+2.
I tried adding "console=/dev/ttyS0" in the -append section, which should output messages from the guest kernel though serial connection onto the host console. For working (Debian) kernel, this starts booting in quemu window, but whe a kernel is uncompressed, then starts writing on the host console the rest of the boot process. If -nographic switch to qemu is added, than it will not even start booting in separate window, but go to the console right away. The -nographic switch actually gives -serial stdio switch internaly to qemu in ordet to send everything to host stdio.
But - for my vanilla compiled kernel this does not work, it just stucks, probablybecause I did not enable this support in menuconfig.
My help was to use -curses switch, which boots qemu in ncurses environment, where we can copy/paste in the usual way.
Also, to switch to the monitor console in -curses use Alt+2, or ESC and then press 2. There you can write quit to quit qemu.
To go back to guest main console press Alt+1.
This is different from the SDL qemu environment, where you tooggle this with Ctl+Alt+1 or Ctl+Alt+2.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home