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 problem with Xen 3.0

To: "Michael Paesold" <mpaesold@xxxxxx>
Subject: Re: [Xen-devel] Serial console problem with Xen 3.0
From: "Amitayu Das" <amitayudas@xxxxxxxxx>
Date: Fri, 7 Apr 2006 10:47:56 -0400
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 07 Apr 2006 07:49:11 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=PWYCu2JqK85aPwLvxiNjYAcXiBrkV08AwryYPVBQqu8WUG3PazRAhq52zMN/WBSrvYAAmHGwYePrQPHydUbfMw4gX0d6K/Y0QUM39dLhw85p2VM6eBoQnRjY+f8qTuNfa7l/rb2DHNgY/1SLqtlulbTXaFWqA8l1tSdFcjxWV8w=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <02de01c65a4b$6d03a400$d801a8c0@zaphod>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <5f74ce410604042140y3f9c2154pc2410cc73654d500@xxxxxxxxxxxxxx> <1144416460.3405.2.camel@xxxxxxxxxxxxxxxxxxxxx> <02de01c65a4b$6d03a400$d801a8c0@zaphod>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

I finally got it working. Let me mention the steps below. Please point out if I'm doing something wrong or weird:

1. We need to config the kernel to support this functionality and recompile krenel for this. In order to do that, follow these steps:

a. go to xen root directory
b. go to linux-2.6.12-xen0
c. make ARCH=xen menuconfig
d. enable options for
   Device Driver --> Character Device -->Serial Drivers

Enable appropriate options and save the new configrations.
e. recompile the kernel and install the new kernel.
f. Put the following entries into the /etc/grub.conf:

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

title Ourxen (Mar 17-xen0)
        root (hd0,0)
        kernel /xen.gz dom0_mem=131072
        module /vmlinuz-2.6.12.6-xen0 ro root=LABEL=/ rhgb quiet console=tty0  console=ttyS0,9600n8
        module /initrd-2.6.12.6-xen0.img
g. reboot the machine with the new image

Currently, this is working for me. If someone can tell me a better way to do the things, that'd be great !!

Amitayu

On 4/7/06, Michael Paesold <mpaesold@xxxxxx> wrote:
Stephen C. Tweedie wrote:
> On Wed, 2006-04-05 at 00:40 -0400, Amitayu Das wrote:
>
>> 1. I can boot normal Linux FC4 kernel and direct its output to serial
>> console (and see the messages in a separate monitor) using the options
>> as mentioned in the grub.conf.
>>     If I do the exactly the same (meaning, whatever you can see as
>> uncommeted lines in the xen-related portion of the grub.conf),
>>     I can't see the messages in the separate monitor.
>
> Right, because you commented out the xen.gz com1=... line, so there's no
> HV serial console.  You need that enabled.
>
>> 2. If I uncomment the third line in the following:
>> #       kernel /xen.gz dom0_mem=131072 com1=9600,8n1
>
>> then Xen even does not boot up.
>
> I've seen this a lot --- for me, adding "sync_console" to that xen.gz
> line cures it.  Does that help for you?

Me too. Adding "sync_console" at least repaired the console *output*. I
still have the problem that keyboard input does not reach linux, as it
seems. Here is my config:

serial --unit=0 --speed=38400 --word=8 --parity=no --stop=1
terminal --timeout=10 serial console
title CentOS ( 2.6.16-2.EL4xen0)
        root (hd0,0)
        kernel /xen.gz-2.6.16-2.EL4 com1=38400,8n1 conswitch=s sync_console
        module /vmlinuz-2.6.16-2.EL4xen0 ro root=LABEL=/1 console=tty0
console=ttyS0,38400n8
        module /initrd-2.6.16-2.EL4xen0.img

Using the same config for native linux gives me a working console access
(NB. I have agetty in inittab). In Xen/Linux I get all boot messages (from
linux and Xen), but when I hit the login prompt, no keyboard input is
excepted. I am using minicom on the other side of the cable.

Additionally, pressing CTRL-A (or CTRL-S after changing the key) three times
does *not* give me access to the Xen console.

Any additional hints how I could get this working? (NB. this is
xen-unstable, just a two days old, on x86 with an Intel 7210 board).

Best Regards,
Michael Paesold



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