Skip to contentSkip to conversation

xen hg tree from yesterday hangs, when kernel console is directed to ttyS0

DISCUSSION Hans-Christian Armingeon 3 participants 4 messages Mar 16, 2006 – Mar 20, 2006

lore
Share & tools
lore
#0 lore raw

Hi,

I am having the following setup:

the kernel displays its messages to vga and to ttyS0. This works without xen.

When I reboot my system with xen with the following options to xen and vmlinuz,

xen.gz com1=115200,8n1 console=com1,vga
vmlinuz console=ttyS0,115200 console=tty0

the system hangs up while booting the dom0 kernel.

Has anyone such a setup working? The thin is, I want a console on VGA and one on a serial line. And both should display all messages.

Johnny

#1 lore raw
Quoted 8 lines · Hans-Christian Armingeon

When I reboot my system with xen with the following options to xen and vmlinuz,

xen.gz com1=115200,8n1 console=com1,vga
vmlinuz console=ttyS0,115200 console=tty0

the system hangs up while booting the dom0 kernel.

Has anyone such a setup working? The thin is, I want a console on VGA and one on a serial line. And both should display all messages.

How does it 'hang'? You should be able to get initial boot messages out on both, although when user space starts I think one will end up being preferred over the other.

-- Keir

#2 lore raw
In reply to Hans-Christian Armingeon
Quoted 7 lines · Hans-Christian Armingeon

When I reboot my system with xen with the following options to xen and vmlinuz,

xen.gz com1=115200,8n1 console=com1,vga
vmlinuz console=ttyS0,115200 console=tty0

the system hangs up while booting the dom0 kernel.

I think Xen has a major buffering/blocking IO issue with serial console. It works for a while but when loads of lines get flooded onto the console, the system freezes up. Adding a "sync_console" to your Xen parameters might solve the problem, or at least it worked for me.

Signature · 3 lines
Jussi Hämäläinen         +358 3 3551 8086   University of Tampere
System administrator     +358 50  5900641   Computer Centre
[email protected]            TietoPinni  4166   http://www.uta.fi/laitokset/tkk
#3 lore raw
Quoted 6 lines · Jussi Hamalainen
Quoted 6 lines

When I reboot my system with xen with the following options to xen and vmlinuz,

xen.gz com1=115200,8n1 console=com1,vga
vmlinuz console=ttyS0,115200 console=tty0

Quoted 7 lines
Quoted 1 line

the system hangs up while booting the dom0 kernel.

I think Xen has a major buffering/blocking IO issue with serial console. It works for a while but when loads of lines get flooded onto the console, the system freezes up. Adding a "sync_console" to your Xen parameters might solve the problem, or at least it worked for me.

Maybe it's hardware specific. I can echo a long string to the serial console in a tight loop from dom0 shell and I see no problems. My setup is similar to the OP's (115200 baud).

-- Keir