Nigel Gamble
2009-Apr-28 19:35 UTC
[Xen-devel] Serial console on non-legacy PCI serial card?
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@lists.xensource.com http://lists.xensource.com/xen-devel
Ross Philipson
2009-Apr-28 20:28 UTC
RE: [Xen-devel] Serial console on non-legacy PCI serial card?
Perhaps you need to specify the crystal frequency of the device. The parameter would look like: com1=115200/<frequency>,8n1,0x1060,0 console=vga,com1 Of course I don''t know what it might be for this card. Thanks Ross -----Original Message----- From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Nigel Gamble Sent: Tuesday, April 28, 2009 3:36 PM To: xen-devel@lists.xensource.com Subject: [Xen-devel] Serial console on non-legacy PCI serial card? 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@lists.xensource.com http://lists.xensource.com/xen-devel _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Nigel Gamble
2009-Apr-28 22:17 UTC
Re: [Xen-devel] Serial console on non-legacy PCI serial card?
Thanks for the suggestion. I''ve tried all frequencies of the form 115200 * 2^n, for n = 0 to 8 but none of them seemed to work. It looks like the Linux early_uart driver has a bit more functionality when dealing with non-legacy ports that the current Xen driver. Nigel On Apr 28, 2009, at 1:28 PM, Ross Philipson wrote:> Perhaps you need to specify the crystal frequency of the device. The > parameter would look like: > > com1=115200/<frequency>,8n1,0x1060,0 console=vga,com1 > > Of course I don''t know what it might be for this card. > > Thanks > Ross > > > > -----Original Message----- > From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com > ] On Behalf Of Nigel Gamble > Sent: Tuesday, April 28, 2009 3:36 PM > To: xen-devel@lists.xensource.com > Subject: [Xen-devel] Serial console on non-legacy PCI serial card? > > 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@lists.xensource.com > http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2009-Apr-29 07:17 UTC
Re: [Xen-devel] Serial console on non-legacy PCI serial card?
On 28/04/2009 23:17, "Nigel Gamble" <nigel@nrg.org> wrote:> but none of them seemed to work. It looks like the Linux early_uart > driver has a bit more functionality when dealing with non-legacy ports > that the current Xen driver.Linux reports ttyS1 as ns16550a, so it can''t be very non-legacy. You might have to add tracing to the Linux driver to find out how it sets up the uart registers, and work out a patch from that. -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Yu Zhao
2009-May-05 01:31 UTC
Re: [Xen-devel] Serial console on non-legacy PCI serial card?
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@lists.xensource.com > http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2009-May-05 07:26 UTC
Re: [Xen-devel] Serial console on non-legacy PCI serial card?
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@intel.com> 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@lists.xensource.com >> http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Yu Zhao
2009-May-05 09:02 UTC
Re: [Xen-devel] Serial console on non-legacy PCI serial card?
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@intel.com> 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@lists.xensource.com > >> http://lists.xensource.com/xen-devel > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel