From: "Amitayu Das" Subject: Re: Serial console problem with Xen 3.0 Date: Fri, 7 Apr 2006 10:47:56 -0400 Message-ID: <5f74ce410604070747tbb86397kb2b63b6834356b4f@mail.gmail.com> References: <5f74ce410604042140y3f9c2154pc2410cc73654d500@mail.gmail.com> <1144416460.3405.2.camel@orbit.scot.redhat.com> <02de01c65a4b$6d03a400$d801a8c0@zaphod> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0364578407==" Return-path: In-Reply-To: <02de01c65a4b$6d03a400$d801a8c0@zaphod> 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: Michael Paesold Cc: xen-devel List-Id: xen-devel@lists.xenproject.org --===============0364578407== Content-Type: multipart/alternative; boundary="----=_Part_6930_13292098.1144421276316" ------=_Part_6930_13292098.1144421276316 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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=3Dxen 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=3D0 --speed=3D9600 --word=3D8 --parity=3Dno --stop=3D1 terminal --timeout=3D10 serial console title Ourxen (Mar 17-xen0) root (hd0,0) kernel /xen.gz dom0_mem=3D131072 module /vmlinuz-2.6.12.6-xen0 ro root=3DLABEL=3D/ rhgb quiet console=3Dtty0 console=3DttyS0,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 d= o the things, that'd be great !! Amitayu On 4/7/06, Michael Paesold 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=3D... 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=3D131072 com1=3D9600,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=3D0 --speed=3D38400 --word=3D8 --parity=3Dno --stop=3D1 > terminal --timeout=3D10 serial console > title CentOS (2.6.16-2.EL4xen0) > root (hd0,0) > kernel /xen.gz-2.6.16-2.EL4 com1=3D38400,8n1 conswitch=3Ds > sync_console > module /vmlinuz-2.6.16-2.EL4xen0 ro root=3DLABEL=3D/1 console=3Dt= ty0 > console=3DttyS0,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 (fro= m > 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 > > > ------=_Part_6930_13292098.1144421276316 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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=3Dxen 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=3D0 --speed=3D9600 --word=3D8 --parity=3Dno --stop=3D1
terminal --timeout=3D10 serial console

title Ourxen (Mar 17-xen0)
        root (hd0,0)
        kernel /xen.gz dom0_mem=3D131072=
        module /vmlinuz-2.6.12.6-xen0 ro root=3DLABEL=3D/ rhgb quiet console=3Dtty0  console=3DttyS0,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 d= o the things, that'd be great !!

Amitayu

On 4/7/06, Michael Paesold <mp= aesold@gmx.at> wrote:
Stephen C. Tweedie wrote:
> On Wed, 2006-04-05 at 00:40 -0400, Amitay= u 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.
>>   &n= bsp; 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 monit= or.
>
> Right, because you commented out the xen.gz com1=3D... lin= e, so there's no
> HV serial console.  You need that enable= d.
>
>> 2. If I uncomment the third line in the following:>> #       kernel /xen.gz dom0_mem=3D= 131072 com1=3D9600,8n1
>
>> then Xen even does not boot up.
>
> I've s= een this a lot --- for me, adding "sync_console" to that xen.gz> line cures it.  Does that help for you?

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

serial --unit=3D0 --speed=3D38400 --wor= d=3D8 --parity=3Dno --stop=3D1
terminal --timeout=3D10 serial consoletitle CentOS ( 2.6.16-2.EL4xen0)
        root (= hd0,0)
        kernel /xen.gz-2.= 6.16-2.EL4 com1=3D38400,8n1 conswitch=3Ds sync_console
   = ;     module /vmlinuz-2.6.16-2.EL4xen0 ro root=3DL= ABEL=3D/1 console=3Dtty0
console=3DttyS0,38400n8
        module /initrd-2.6.16-2.EL4= xen0.img

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

Add= itionally, pressing CTRL-A (or CTRL-S after changing the key) three timesdoes *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



------=_Part_6930_13292098.1144421276316-- --===============0364578407== 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 --===============0364578407==--