From: "Yung Giang" Subject: Re: Dumping Xen dom0 kernel output to serial console Date: Mon, 14 May 2007 14:53:59 -0400 Message-ID: <80eeb900705141153g17892493pb9dfbfcdc00e548d@mail.gmail.com> References: <80eeb900705021352q3662b27fg8a98827969be34c3@mail.gmail.com> <80eeb900705021545h62cbedc3m4aa8cd4a94f670a2@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1432670624==" Return-path: In-Reply-To: <80eeb900705021545h62cbedc3m4aa8cd4a94f670a2@mail.gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============1432670624== Content-Type: multipart/alternative; boundary="----=_Part_225078_12840072.1179168839939" ------=_Part_225078_12840072.1179168839939 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi- This problem seems to exist on certain dell 1950 with high serial console baud rate. I have tested serial console baud rate of 19200 bps and lower and it seems to work fine with grub.conf setting below with or with/out these two lines >serial --unit=0 --speed=19200 --word=8 --parity=no --stop=1 >terminal --timeout=10 serial console -Yung Giang # $Id: 20grub 13972 2007-05-07 20:55:35Z ygiang $ # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You do not have a /boot partition. This means that # all kernel and initrd paths are relative to /, eg. # root (hd0,0) # kernel /boot/vmlinuz-version ro root=/dev/md0 # initrd /boot/initrd-version.img #boot=/dev/sda1 fallback 1 serial --unit=0 --speed=19200 --word=8 --parity=no --stop=1 terminal --timeout=10 serial console default=0 timeout=5 title Xen 3 / XenLinux 2.6 root (hd0,0) kernel /boot/xen.gz dom0_mem=768M console=com1 com1=19200,8n1 module /boot/vmlinuz-2.6-xen ro root=/dev/md0 console=/dev/tty0 console=ttyS0,19200 module /boot/initrd-2.6-xen.img title Xen 3 / XenLinux 2.6 root (hd1,0) kernel /boot/xen.gz dom0_mem=768M console=com1 com1=19200,8n1 module /boot/vmlinuz-2.6-xen ro root=/dev/md0 console=/dev/tty0 console=ttyS0,19200 module /boot/initrd-2.6-xen.img title Red Hat Enterprise Linux AS (2.6.9-22.ELsmp) root (hd0,0) kernel /boot/vmlinuz-2.6.9-22.ELsmp ro root=/dev/md0 initrd /boot/initrd-2.6.9-22.ELsmp.img title Red Hat Enterprise Linux AS-up (2.6.9-22.EL) root (hd0,0) kernel /boot/vmlinuz-2.6.9-22.EL ro root=/dev/md0 initrd /boot/initrd-2.6.9-22.EL.img [root@chokp ~]# On 5/2/07, Yung Giang wrote: > > Hi Keir- > The serial fails to work if I press a key over the serial line and > make use of the GRUB menu over serial. > > -Yung Giang > > > > On 5/2/07, Keir Fraser wrote: > > > > > > > > > > On 2/5/07 21:52, "Yung Giang" < yung.giang@gmail.com> wrote: > > > > I am having a weird problem with setting dom0 kernel output to > > the serial console with Xen 3.0.4-1, below is my grub setting. With this > > setting if I don't enter the grub menu and have the default boot to the > > first image, everything works fine and I can get output/input to the serial > > console. The problem is when I enter the grub menu and select the image to > > boot from, if I select the same one the first image it will not show any > > serial output and when the machine is up I can't get any serial output or > > input. Has anyone else seen this problem or have any suggestions on how it > > can be fix? > > > > > > So serial fails to work if you press a key over the serial line and make > > use of the GRUB menu over serial? Or are you using the GRUB menu via VGA? > > > > -- Keir > > > > ------=_Part_225078_12840072.1179168839939 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi-
     This problem seems to exist on certain dell 1950 with high serial console baud rate. I have tested serial console baud rate of 19200 bps and lower and it seems to work fine with grub.conf setting below with or with/out these two lines

>serial --unit=0 --speed=19200 --word=8 --parity=no --stop=1
>terminal --timeout=10 serial console


-Yung Giang

# $Id: 20grub 13972 2007-05-07 20:55:35Z ygiang $
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/md0
#          initrd /boot/initrd-version.img
#boot=/dev/sda1
fallback 1
serial --unit=0 --speed=19200 --word=8 --parity=no --stop=1
terminal --timeout=10 serial console

default=0
timeout=5
title Xen 3 / XenLinux 2.6
        root (hd0,0)
        kernel /boot/xen.gz  dom0_mem=768M console=com1 com1=19200,8n1
        module /boot/vmlinuz- 2.6-xen ro root=/dev/md0 console=/dev/tty0 console=ttyS0,19200
        module /boot/initrd-2.6-xen.img
title Xen 3 / XenLinux 2.6
        root (hd1,0)
        kernel /boot/xen.gz dom0_mem=768M console=com1 com1=19200,8n1
        module /boot/vmlinuz-2.6-xen ro root=/dev/md0 console=/dev/tty0 console=ttyS0,19200
        module /boot/initrd-2.6-xen.img
title Red Hat Enterprise Linux AS (2.6.9-22.ELsmp)
        root (hd0,0)
        kernel /boot/vmlinuz- 2.6.9-22.ELsmp ro root=/dev/md0
        initrd /boot/initrd-2.6.9-22.ELsmp.img
title Red Hat Enterprise Linux AS-up (2.6.9-22.EL)
        root (hd0,0)
        kernel /boot/vmlinuz-2.6.9-22.EL ro root=/dev/md0
        initrd /boot/initrd-2.6.9-22.EL.img
[root@chokp ~]#





On 5/2/07, Yung Giang <yung.giang@gmail.com > wrote:
Hi Keir-
       The serial fails to work if I press a key over the serial line and make use of the GRUB menu over serial.

-Yung Giang



 
On 5/2/07, Keir Fraser <Keir.Fraser@cl.cam.ac.uk > wrote:



On 2/5/07 21:52, "Yung Giang" < yung.giang@gmail.com> wrote:

         I am having a weird problem with setting dom0 kernel output to the serial console with Xen 3.0.4-1, below is my grub setting. With this setting if I don't enter the grub menu and have the default boot to the first image, everything works fine and I can get output/input to the serial console. The problem is when I enter the grub menu and select the image to boot from, if I select the same one the first image it will not show any serial output and when the machine is up I can't get any serial output or input. Has anyone else seen this problem or have any suggestions on how it can be fix?

So serial fails to work if you press a key over the serial line and make use of the GRUB menu over serial? Or are you using the GRUB menu via VGA?

 -- Keir


------=_Part_225078_12840072.1179168839939-- --===============1432670624== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1432670624==--