WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Serial console on non-legacy PCI serial card?

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Serial console on non-legacy PCI serial card?
From: Yu Zhao <yu.zhao@xxxxxxxxx>
Date: Tue, 5 May 2009 17:02:47 +0800
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Nigel Gamble <nigel@xxxxxxx>
Delivery-date: Tue, 05 May 2009 02:01:21 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C625A8AD.A0A9%keir.fraser@xxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20090505013134.GA30419@xxxxxxxxxxxxxxxxxxxxxx> <C625A8AD.A0A9%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.18 (2008-05-17)
I guess the garbage is because the device is not properly initialized
by the BIOS. For native Linux, the card begins to work after the driver
reinitializes it. For dom0, the seiral driver is usually disabled and
Xen doesn't scan the PCI serial card either.

Thanks,
Yu

On Tue, May 05, 2009 at 03:26:21PM +0800, Keir Fraser wrote:
> Isn't the UART already enabled, since he was seeing garbage on the wire
> rather than nothing?
> 
>  -- Keir
> 
> On 05/05/2009 02:31, "Yu Zhao" <yu.zhao@xxxxxxxxx> wrote:
> 
> > Please apply the attached patch to the grub-0.97, reinstall the grub
> > and use the UART boot parameter you have figured out for Xen.
> > 
> >   kernel /boot/xen.gz com1=115200,8n1,0x1060,0 ...
> > 
> > Then you should get a workable serial console for Xen.
> > 
> > Good luck,
> > Yu
> > 
> > On Wed, Apr 29, 2009 at 03:35:59AM +0800, Nigel Gamble wrote:
> >> I have an Intel DX50SO motherboard for a Core i7 CPU which has no
> >> legacy ports whatsoever, so no COM1 serial port.  I added a "SIIG
> >> CyberPro PCI 1S" single serial port PCI card.
> >> 
> >> Linux dmesg shows it as:
> >> 
> >> [   30.244790] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
> >> [   30.244984] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a NS16550A
> >> [   30.245287] serial 0000:06:02.0: PCI INT A -> GSI 18 (level, low) -
> >>> IRQ 18
> >> [   30.245459] ttyS0: detected caps 00000700 should be 00000100
> >> [   30.245518] 0000:06:02.0: ttyS0 at I/O 0x1060 (irq = 18) is a
> >> 16C950/954
> >> [   30.245583] console [ttyS0] enabled
> >> [   32.448682] ttyS2: detected caps 00000700 should be 00000100
> >> [   32.454929] 0000:06:02.0: ttyS2 at I/O 0x1068 (irq = 18) is a
> >> 16C950/954
> >> 
> >> Note that the only port actually connected to the single connecter is
> >> ttyS0 at 0x1060.  I can successfully use this as the Linux serial
> >> console by adding the Linux boot parameters:
> >> 
> >> console=uart,io,0x1060,115200n8
> >> 
> >> However, I'm having problems trying to get it to work as a Xen
> >> console.  If I add:
> >> 
> >> com1=115200,8n1,0x1060,0 console=vga,com1
> >> 
> >> to Xen, I do get some output to the port, but all the characters look
> >> like this:
> >> 
> >> .<.....~.o....¼..4.|.a.½¬o.§¼4.#.ÿ.......ö4..¬.... 4.  .
> >> 4Ä...T.Ä ..¼.Ä ....<.
> >> 
> >> Can anyone help me to get this to work?
> >> 
> >> Thanks,
> >> Nigel
> >> _______________________________________________
> >> Xen-devel mailing list
> >> Xen-devel@xxxxxxxxxxxxxxxxxxx
> >> http://lists.xensource.com/xen-devel
> 
> 

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>