tech_log: Capturing output of qemu

Saturday, November 22, 2008

Capturing output of qemu

In order to capture output of qemu, it is needed to issue command like this:

qemu -hda rootfs.img -kernel bzImage -append "root=/dev/hda console=ttyS0" -serial stdio

This way boot messages will be redirected to host vga console, and can be copy/pasted fot googleing and debugging.

For thia to work, virtual console in kernel must be enebled (which by default is the case). Look under device drivers -> charcter devices -> virtual terminal, or grep .config for CONSOLE.

One more note, from Remote Serial Console HOWTO:

----------------------------

The Linux kernel is
configured to select the console by passing it the
console parameter. The
console parameter can be given repeatedly, but
the parameter can only be given once for each console technology.
So console=tty0 console=lp0 console=ttyS0 is
acceptable but console=ttyS0 console=ttyS1 will
not work.

When multiple consoles are listed output is sent to all
consoles and input is taken from the last listed console. The last
console is the one Linux uses as the /dev/console device.

The syntax of the console parameter is
given in Figure 5-1.


1 Comments:

At September 4, 2018 at 8:30 AM , Blogger charlos john said...

Very informative post! There is a lot of information here that can help any business get started with a successful social networking campaign. business document software

 

Post a Comment

Subscribe to Post Comments [Atom]

<< Home