Yuehai Xu
2010-Sep-21 15:23 UTC
[Xen-devel] Can anyone successfully use serial console to debug XEN-4.0.1-rc6?
Hi, I set my grub to use serial console: ... kernel /boot/xen.gz dom0_mem=1024m console=com1 com1=115200,8n1 ... But I failed to get anything output from XEN. On the other hand, I can get the output from kernel of Dom0 by this way: ... module /boot/vmlinuz-2.6.31.13 ro root=LABEL=/1 maxcpus=1 console=ttyS0,115200n8 ... So, should anything special parameters be configured in order to get the output of XEN? Thanks, Yuehai _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Konrad Rzeszutek Wilk
2010-Sep-21 15:37 UTC
Re: [Xen-devel] Can anyone successfully use serial console to debug XEN-4.0.1-rc6?
On Tue, Sep 21, 2010 at 11:23:01AM -0400, Yuehai Xu wrote:> Hi, > > I set my grub to use serial console: > > ... > kernel /boot/xen.gz dom0_mem=1024m console=com1 com1=115200,8n1That should work. It works for me.> ... > > But I failed to get anything output from XEN. On the other hand, I canWhat is your serial device? Is it a PCI card or is it built in?> get the output from kernel of Dom0 by this way: > > ... > module /boot/vmlinuz-2.6.31.13 ro root=LABEL=/1 maxcpus=1 console=ttyS0,115200n8 > ... > > So, should anything special parameters be configured in order to get > the output of XEN?Not if it is a normal built-in serial device. If it is a PCI(or PCI-e or Mini PCI-e) then you have to fiddle a bit to find its ioport. It is discussed in detail on the Wiki - search PVOPS Wiki and then for the Serial Xen troubleshooting one - Mr. Pasi made sure to include a wealth of details on how to work this out. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Yuehai Xu
2010-Sep-21 15:57 UTC
Re: [Xen-devel] Can anyone successfully use serial console to debug XEN-4.0.1-rc6?
On Tue, Sep 21, 2010 at 11:37 AM, Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> wrote:> On Tue, Sep 21, 2010 at 11:23:01AM -0400, Yuehai Xu wrote: >> Hi, >> >> I set my grub to use serial console: >> >> ... >> kernel /boot/xen.gz dom0_mem=1024m console=com1 com1=115200,8n1 > > That should work. It works for me. >> ... >> >> But I failed to get anything output from XEN. On the other hand, I can > > What is your serial device? Is it a PCI card or is it built in?It is a PCI card, as you said, after adding corresponding IRQ and IOPORT, it works.> >> get the output from kernel of Dom0 by this way: >> >> ... >> module /boot/vmlinuz-2.6.31.13 ro root=LABEL=/1 maxcpus=1 console=ttyS0,115200n8 >> ... >> >> So, should anything special parameters be configured in order to get >> the output of XEN? > > Not if it is a normal built-in serial device. If it is a PCI(or PCI-e or Mini PCI-e) > then you have to fiddle a bit to find its ioport. It is discussed in detail on the Wiki - > search PVOPS Wiki and then for the Serial Xen troubleshooting one - Mr. Pasi made sure > to include a wealth of details on how to work this out. >Yeah, I''m afraid I don''t read carefully about this wiki, ignoring the hints about IRQ and IOPORT, sorry for making noise. Thanks very much, Yuehai _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Pasi Kärkkäinen
2010-Sep-21 16:09 UTC
Re: [Xen-devel] Can anyone successfully use serial console to debug XEN-4.0.1-rc6?
On Tue, Sep 21, 2010 at 11:37:39AM -0400, Konrad Rzeszutek Wilk wrote:> On Tue, Sep 21, 2010 at 11:23:01AM -0400, Yuehai Xu wrote: > > Hi, > > > > I set my grub to use serial console: > > > > ... > > kernel /boot/xen.gz dom0_mem=1024m console=com1 com1=115200,8n1 > > That should work. It works for me. > > ... > > > > But I failed to get anything output from XEN. On the other hand, I can > > What is your serial device? Is it a PCI card or is it built in? > > > get the output from kernel of Dom0 by this way: > > > > ... > > module /boot/vmlinuz-2.6.31.13 ro root=LABEL=/1 maxcpus=1 console=ttyS0,115200n8 > > ... > > > > So, should anything special parameters be configured in order to get > > the output of XEN? > > Not if it is a normal built-in serial device. If it is a PCI(or PCI-e or Mini PCI-e) > then you have to fiddle a bit to find its ioport. It is discussed in detail on the Wiki - > search PVOPS Wiki and then for the Serial Xen troubleshooting one - Mr. Pasi made sure > to include a wealth of details on how to work this out. >It''s here: http://wiki.xensource.com/xenwiki/XenSerialConsole -- Pasi _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel