diff mbox

Blank screen while booting xen

Message ID CAPtdW140ECgKXJzV-TYCMfk+q8j68aJHOYeAFtzi77QE6y7=FQ@mail.gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Harmandeep Kaur Jan. 10, 2016, 7:27 p.m. UTC
Hi,

I tried to modify and compile some of Xen 4.7's code
(cloned from git clone git://xenbits.xen.org/xen.git)
and even with a very minor change (patch included at last)
my xen failed to boot. It stucks at black blank screen after
showing some xen logs.

By adding "vga=text-80x80,keep" to the grub before booting
xen., infinite loop of text
"(XEN) traps.c:3290: GPF (0000): ffff82d0801af4d5 -> ffff82d080240e5a"
appears.

I tried to compile and boot xen reverting the change, but
same issue still exists.

Also I tried to setup serial console but my output is garbled.
More info on it here,
http://lists.xenproject.org/archives/html/xen-devel/2015-12/msg02045.html

I tried different software (cu, gtkterm), different baud rates,
different serial-USB cable and stopping modemmanager,
but no luck.

I am using i3-6100 processor, if that info is needed.I will
appreciate any help.

Regards,
Harmandeep Kaur
Outreachy Intern

-----------------------------------------------PATCH---------------------------------------------
From c814c4ac0028bdef0082561ad6cd69570502c3ba Mon Sep 17 00:00:00 2001
From: Harmandeep Kaur <write.harmandeep@gmail.com>
Date: Tue, 29 Dec 2015 22:23:21 +0530
Subject: [PATCH] First mod

Signed-off-by: Harmandeep Kaur <write.harmandeep@gmail.com>
---
 xen/common/sched_credit.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Konrad Rzeszutek Wilk Jan. 11, 2016, 2:53 p.m. UTC | #1
On Mon, Jan 11, 2016 at 12:57:27AM +0530, Harmandeep Kaur wrote:
> Hi,
> 
> I tried to modify and compile some of Xen 4.7's code
> (cloned from git clone git://xenbits.xen.org/xen.git)
> and even with a very minor change (patch included at last)
> my xen failed to boot. It stucks at black blank screen after
> showing some xen logs.

What is on your Linux command line? Do you have 'console=hvc0' ?

> 
> By adding "vga=text-80x80,keep" to the grub before booting
> xen., infinite loop of text
> "(XEN) traps.c:3290: GPF (0000): ffff82d0801af4d5 -> ffff82d080240e5a"
> appears.
> 
> I tried to compile and boot xen reverting the change, but
> same issue still exists.
> 
> Also I tried to setup serial console but my output is garbled.
> More info on it here,
> http://lists.xenproject.org/archives/html/xen-devel/2015-12/msg02045.html
> 
> I tried different software (cu, gtkterm), different baud rates,
> different serial-USB cable and stopping modemmanager,
> but no luck.

How did you set the baudrate? I usually do 'screen /dev/ttyUSB0 115200 cs8'
?

> 
> I am using i3-6100 processor, if that info is needed.I will
> appreciate any help.

dmesg | grep tty

and lspci

could also help?

> 
> Regards,
> Harmandeep Kaur
> Outreachy Intern
> 
> -----------------------------------------------PATCH---------------------------------------------
> >From c814c4ac0028bdef0082561ad6cd69570502c3ba Mon Sep 17 00:00:00 2001
> From: Harmandeep Kaur <write.harmandeep@gmail.com>
> Date: Tue, 29 Dec 2015 22:23:21 +0530
> Subject: [PATCH] First mod
> 
> Signed-off-by: Harmandeep Kaur <write.harmandeep@gmail.com>
> ---
>  xen/common/sched_credit.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/xen/common/sched_credit.c b/xen/common/sched_credit.c
> index 0dce790..b395501 100644
> --- a/xen/common/sched_credit.c
> +++ b/xen/common/sched_credit.c
> @@ -1148,6 +1148,8 @@ csched_dom_init(const struct scheduler *ops,
> struct domain *dom)
>  {
>      struct csched_dom *sdom;
> 
> +printk("XXX Hello, this is my first mod :) \n");
> +
>      if ( is_idle_domain(dom) )
>          return 0;
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
Harmandeep Kaur Jan. 11, 2016, 5:26 p.m. UTC | #2
On Mon, Jan 11, 2016 at 8:23 PM, Konrad Rzeszutek Wilk
<konrad.wilk@oracle.com> wrote:
> On Mon, Jan 11, 2016 at 12:57:27AM +0530, Harmandeep Kaur wrote:
>> Hi,
>>
>> I tried to modify and compile some of Xen 4.7's code
>> (cloned from git clone git://xenbits.xen.org/xen.git)
>> and even with a very minor change (patch included at last)
>> my xen failed to boot. It stucks at black blank screen after
>> showing some xen logs.
>
> What is on your Linux command line? Do you have 'console=hvc0' ?
my /etc/defaults/grub   http://paste2.org/BkOOOskh
my /boot/grub/grub.cfg http://paste2.org/Ks49MZEh
>
>>
>> By adding "vga=text-80x80,keep" to the grub before booting
>> xen., infinite loop of text
>> "(XEN) traps.c:3290: GPF (0000): ffff82d0801af4d5 -> ffff82d080240e5a"
>> appears.
>>
>> I tried to compile and boot xen reverting the change, but
>> same issue still exists.
>>
>> Also I tried to setup serial console but my output is garbled.
>> More info on it here,
>> http://lists.xenproject.org/archives/html/xen-devel/2015-12/msg02045.html
>>
>> I tried different software (cu, gtkterm), different baud rates,
>> different serial-USB cable and stopping modemmanager,
>> but no luck.
>
> How did you set the baudrate? I usually do 'screen /dev/ttyUSB0 115200 cs8'
> ?

I also tried the same with screen just without the cs8 keyword.

>>
>> I am using i3-6100 processor, if that info is needed.I will
>> appreciate any help.
>
> dmesg | grep tty

$ dmesg | grep tty
[       0.000000] console [tty0] enabled
[       4.537790] systemd[1]: Created slice system-getty.slice.
[11542.458553] usb 1-4: pl2303 converter now attache

> and lspci

$ lspci
00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM
Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core
processor PCI Express Root Port (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core
processor Graphics Controller (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset
Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C210
Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset
Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset
Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset
Family PCI Express Root Port 1 (rev c4)
00:1c.3 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset
Family PCI Express Root Port 4 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset
Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation HM76 Express Chipset LPC
Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family
6-port SATA Controller [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 7 Series/C210 Series Chipset Family
SMBus Controller (rev 04)
01:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI]
Mars [Radeon HD 8670A/8670M/8750M] (rev ff)
02:00.0 Network controller: Qualcomm Atheros AR9485 Wireless Network
Adapter (rev 01)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)


> could also help?
>
>>
>> Regards,
>> Harmandeep Kaur
>> Outreachy Intern
>>
>> -----------------------------------------------PATCH---------------------------------------------
>> >From c814c4ac0028bdef0082561ad6cd69570502c3ba Mon Sep 17 00:00:00 2001
>> From: Harmandeep Kaur <write.harmandeep@gmail.com>
>> Date: Tue, 29 Dec 2015 22:23:21 +0530
>> Subject: [PATCH] First mod
>>
>> Signed-off-by: Harmandeep Kaur <write.harmandeep@gmail.com>
>> ---
>>  xen/common/sched_credit.c | 2 ++
>>  1 file changed, 2 insertions(+)
>>
>> diff --git a/xen/common/sched_credit.c b/xen/common/sched_credit.c
>> index 0dce790..b395501 100644
>> --- a/xen/common/sched_credit.c
>> +++ b/xen/common/sched_credit.c
>> @@ -1148,6 +1148,8 @@ csched_dom_init(const struct scheduler *ops,
>> struct domain *dom)
>>  {
>>      struct csched_dom *sdom;
>>
>> +printk("XXX Hello, this is my first mod :) \n");
>> +
>>      if ( is_idle_domain(dom) )
>>          return 0;
>>
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@lists.xen.org
>> http://lists.xen.org/xen-devel
Konrad Rzeszutek Wilk Jan. 11, 2016, 5:30 p.m. UTC | #3
On Mon, Jan 11, 2016 at 10:56:07PM +0530, Harmandeep Kaur wrote:
> On Mon, Jan 11, 2016 at 8:23 PM, Konrad Rzeszutek Wilk
> <konrad.wilk@oracle.com> wrote:
> > On Mon, Jan 11, 2016 at 12:57:27AM +0530, Harmandeep Kaur wrote:
> >> Hi,
> >>
> >> I tried to modify and compile some of Xen 4.7's code
> >> (cloned from git clone git://xenbits.xen.org/xen.git)
> >> and even with a very minor change (patch included at last)
> >> my xen failed to boot. It stucks at black blank screen after
> >> showing some xen logs.
> >
> > What is on your Linux command line? Do you have 'console=hvc0' ?
> my /etc/defaults/grub   http://paste2.org/BkOOOskh
> my /boot/grub/grub.cfg http://paste2.org/Ks49MZEh
> >
> >>
> >> By adding "vga=text-80x80,keep" to the grub before booting
> >> xen., infinite loop of text
> >> "(XEN) traps.c:3290: GPF (0000): ffff82d0801af4d5 -> ffff82d080240e5a"
> >> appears.
> >>
> >> I tried to compile and boot xen reverting the change, but
> >> same issue still exists.
> >>
> >> Also I tried to setup serial console but my output is garbled.
> >> More info on it here,
> >> http://lists.xenproject.org/archives/html/xen-devel/2015-12/msg02045.html
> >>
> >> I tried different software (cu, gtkterm), different baud rates,
> >> different serial-USB cable and stopping modemmanager,
> >> but no luck.
> >
> > How did you set the baudrate? I usually do 'screen /dev/ttyUSB0 115200 cs8'
> > ?
> 
> I also tried the same with screen just without the cs8 keyword.
> 
> >>
> >> I am using i3-6100 processor, if that info is needed.I will
> >> appreciate any help.
> >
> > dmesg | grep tty
> 
> $ dmesg | grep tty
> [       0.000000] console [tty0] enabled
> [       4.537790] systemd[1]: Created slice system-getty.slice.
> [11542.458553] usb 1-4: pl2303 converter now attache


This is on your box with the USB dongle. I meant the other one.

Maybe we should step back a bit. On the machine on which you
want to install Xen - does it work if you install say
Fedora Core 23 and after installing, you do 'yum install xen' ?
Can you boot with that? Then at least we will know whether an
packaged version of Xen works on your machine.
Harmandeep Kaur Jan. 11, 2016, 5:45 p.m. UTC | #4
On Mon, Jan 11, 2016 at 11:00 PM, Konrad Rzeszutek Wilk
<konrad.wilk@oracle.com> wrote:
> On Mon, Jan 11, 2016 at 10:56:07PM +0530, Harmandeep Kaur wrote:
>> On Mon, Jan 11, 2016 at 8:23 PM, Konrad Rzeszutek Wilk
>> <konrad.wilk@oracle.com> wrote:
>> > On Mon, Jan 11, 2016 at 12:57:27AM +0530, Harmandeep Kaur wrote:
>> >> Hi,
>> >>
>> >> I tried to modify and compile some of Xen 4.7's code
>> >> (cloned from git clone git://xenbits.xen.org/xen.git)
>> >> and even with a very minor change (patch included at last)
>> >> my xen failed to boot. It stucks at black blank screen after
>> >> showing some xen logs.
>> >
>> > What is on your Linux command line? Do you have 'console=hvc0' ?
>> my /etc/defaults/grub   http://paste2.org/BkOOOskh
>> my /boot/grub/grub.cfg http://paste2.org/Ks49MZEh
>> >
>> >>
>> >> By adding "vga=text-80x80,keep" to the grub before booting
>> >> xen., infinite loop of text
>> >> "(XEN) traps.c:3290: GPF (0000): ffff82d0801af4d5 -> ffff82d080240e5a"
>> >> appears.
>> >>
>> >> I tried to compile and boot xen reverting the change, but
>> >> same issue still exists.
>> >>
>> >> Also I tried to setup serial console but my output is garbled.
>> >> More info on it here,
>> >> http://lists.xenproject.org/archives/html/xen-devel/2015-12/msg02045.html
>> >>
>> >> I tried different software (cu, gtkterm), different baud rates,
>> >> different serial-USB cable and stopping modemmanager,
>> >> but no luck.
>> >
>> > How did you set the baudrate? I usually do 'screen /dev/ttyUSB0 115200 cs8'
>> > ?
>>
>> I also tried the same with screen just without the cs8 keyword.
>>
>> >>
>> >> I am using i3-6100 processor, if that info is needed.I will
>> >> appreciate any help.
>> >
>> > dmesg | grep tty
>>
>> $ dmesg | grep tty
>> [       0.000000] console [tty0] enabled
>> [       4.537790] systemd[1]: Created slice system-getty.slice.
>> [11542.458553] usb 1-4: pl2303 converter now attache
>
>
> This is on your box with the USB dongle. I meant the other one.
>
here it is
$ dmesg | grep tty
[    0.000000] console [tty0] enabled
[    0.786850] 00:04: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200)
is a 16550A

> Maybe we should step back a bit. On the machine on which you
> want to install Xen - does it work if you install say
> Fedora Core 23 and after installing, you do 'yum install xen' ?
> Can you boot with that? Then at least we will know whether an
> packaged version of Xen works on your machine.

Yes, it works. I tried that with xen 4.5 on Ubuntu 15.10.
Also, even my compiled version(4.7) used to run before
my modification.
Konrad Rzeszutek Wilk Jan. 11, 2016, 6:06 p.m. UTC | #5
On Mon, Jan 11, 2016 at 11:15:43PM +0530, Harmandeep Kaur wrote:
> On Mon, Jan 11, 2016 at 11:00 PM, Konrad Rzeszutek Wilk
> <konrad.wilk@oracle.com> wrote:
> > On Mon, Jan 11, 2016 at 10:56:07PM +0530, Harmandeep Kaur wrote:
> >> On Mon, Jan 11, 2016 at 8:23 PM, Konrad Rzeszutek Wilk
> >> <konrad.wilk@oracle.com> wrote:
> >> > On Mon, Jan 11, 2016 at 12:57:27AM +0530, Harmandeep Kaur wrote:
> >> >> Hi,
> >> >>
> >> >> I tried to modify and compile some of Xen 4.7's code
> >> >> (cloned from git clone git://xenbits.xen.org/xen.git)
> >> >> and even with a very minor change (patch included at last)
> >> >> my xen failed to boot. It stucks at black blank screen after
> >> >> showing some xen logs.
> >> >
> >> > What is on your Linux command line? Do you have 'console=hvc0' ?
> >> my /etc/defaults/grub   http://paste2.org/BkOOOskh
> >> my /boot/grub/grub.cfg http://paste2.org/Ks49MZEh
> >> >
> >> >>
> >> >> By adding "vga=text-80x80,keep" to the grub before booting
> >> >> xen., infinite loop of text
> >> >> "(XEN) traps.c:3290: GPF (0000): ffff82d0801af4d5 -> ffff82d080240e5a"
> >> >> appears.
> >> >>
> >> >> I tried to compile and boot xen reverting the change, but
> >> >> same issue still exists.
> >> >>
> >> >> Also I tried to setup serial console but my output is garbled.
> >> >> More info on it here,
> >> >> http://lists.xenproject.org/archives/html/xen-devel/2015-12/msg02045.html
> >> >>
> >> >> I tried different software (cu, gtkterm), different baud rates,
> >> >> different serial-USB cable and stopping modemmanager,
> >> >> but no luck.
> >> >
> >> > How did you set the baudrate? I usually do 'screen /dev/ttyUSB0 115200 cs8'
> >> > ?
> >>
> >> I also tried the same with screen just without the cs8 keyword.
> >>
> >> >>
> >> >> I am using i3-6100 processor, if that info is needed.I will
> >> >> appreciate any help.
> >> >
> >> > dmesg | grep tty
> >>
> >> $ dmesg | grep tty
> >> [       0.000000] console [tty0] enabled
> >> [       4.537790] systemd[1]: Created slice system-getty.slice.
> >> [11542.458553] usb 1-4: pl2303 converter now attache
> >
> >
> > This is on your box with the USB dongle. I meant the other one.
> >
> here it is
> $ dmesg | grep tty
> [    0.000000] console [tty0] enabled
> [    0.786850] 00:04: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200)
> is a 16550A
> 
> > Maybe we should step back a bit. On the machine on which you
> > want to install Xen - does it work if you install say
> > Fedora Core 23 and after installing, you do 'yum install xen' ?
> > Can you boot with that? Then at least we will know whether an
> > packaged version of Xen works on your machine.
> 
> Yes, it works. I tried that with xen 4.5 on Ubuntu 15.10.
> Also, even my compiled version(4.7) used to run before
> my modification.

OK, so I would suggest you try again with the serial console but
using the non-modified hypervisor version. See if you can get the serial to work.

I would suggest you use screen as the other (cu, minicons) - I had issues
with them with USB devices. While screen also allows you to log them.

And do please check that you have 'console=com1 com1=115200,8n1 loglvl=all' on
your Xen command line. And on Linux 'console=hvc0'.

Once you have the serial working with the un-modified version I would
try the modified and see where it gets stuck.
Harmandeep Kaur Jan. 14, 2016, 2:03 p.m. UTC | #6
On Mon, Jan 11, 2016 at 11:36 PM, Konrad Rzeszutek Wilk
<konrad.wilk@oracle.com> wrote:
> On Mon, Jan 11, 2016 at 11:15:43PM +0530, Harmandeep Kaur wrote:
>> On Mon, Jan 11, 2016 at 11:00 PM, Konrad Rzeszutek Wilk
>> <konrad.wilk@oracle.com> wrote:
>> > On Mon, Jan 11, 2016 at 10:56:07PM +0530, Harmandeep Kaur wrote:
>> >> On Mon, Jan 11, 2016 at 8:23 PM, Konrad Rzeszutek Wilk
>> >> <konrad.wilk@oracle.com> wrote:
>> >> > On Mon, Jan 11, 2016 at 12:57:27AM +0530, Harmandeep Kaur wrote:
>> >> >> Hi,
>> >> >>
>> >> >> I tried to modify and compile some of Xen 4.7's code
>> >> >> (cloned from git clone git://xenbits.xen.org/xen.git)
>> >> >> and even with a very minor change (patch included at last)
>> >> >> my xen failed to boot. It stucks at black blank screen after
>> >> >> showing some xen logs.
>> >> >
>> >> > What is on your Linux command line? Do you have 'console=hvc0' ?
>> >> my /etc/defaults/grub   http://paste2.org/BkOOOskh
>> >> my /boot/grub/grub.cfg http://paste2.org/Ks49MZEh
>> >> >
>> >> >>
>> >> >> By adding "vga=text-80x80,keep" to the grub before booting
>> >> >> xen., infinite loop of text
>> >> >> "(XEN) traps.c:3290: GPF (0000): ffff82d0801af4d5 -> ffff82d080240e5a"
>> >> >> appears.
>> >> >>
>> >> >> I tried to compile and boot xen reverting the change, but
>> >> >> same issue still exists.
>> >> >>
>> >> >> Also I tried to setup serial console but my output is garbled.
>> >> >> More info on it here,
>> >> >> http://lists.xenproject.org/archives/html/xen-devel/2015-12/msg02045.html
>> >> >>
>> >> >> I tried different software (cu, gtkterm), different baud rates,
>> >> >> different serial-USB cable and stopping modemmanager,
>> >> >> but no luck.
>> >> >
>> >> > How did you set the baudrate? I usually do 'screen /dev/ttyUSB0 115200 cs8'
>> >> > ?
>> >>
>> >> I also tried the same with screen just without the cs8 keyword.
>> >>
>> >> >>
>> >> >> I am using i3-6100 processor, if that info is needed.I will
>> >> >> appreciate any help.
>> >> >
>> >> > dmesg | grep tty
>> >>
>> >> $ dmesg | grep tty
>> >> [       0.000000] console [tty0] enabled
>> >> [       4.537790] systemd[1]: Created slice system-getty.slice.
>> >> [11542.458553] usb 1-4: pl2303 converter now attache
>> >
>> >
>> > This is on your box with the USB dongle. I meant the other one.
>> >
>> here it is
>> $ dmesg | grep tty
>> [    0.000000] console [tty0] enabled
>> [    0.786850] 00:04: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200)
>> is a 16550A
>>
>> > Maybe we should step back a bit. On the machine on which you
>> > want to install Xen - does it work if you install say
>> > Fedora Core 23 and after installing, you do 'yum install xen' ?
>> > Can you boot with that? Then at least we will know whether an
>> > packaged version of Xen works on your machine.
>>
>> Yes, it works. I tried that with xen 4.5 on Ubuntu 15.10.
>> Also, even my compiled version(4.7) used to run before
>> my modification.
>
> OK, so I would suggest you try again with the serial console but
> using the non-modified hypervisor version. See if you can get the serial to work.

Tried that. Still same issue. Maybe hardware is malfunctioning.

> I would suggest you use screen as the other (cu, minicons) - I had issues
> with them with USB devices. While screen also allows you to log them.

Tried cu and gtkterm

> And do please check that you have 'console=com1 com1=115200,8n1 loglvl=all' on
> your Xen command line. And on Linux 'console=hvc0'.

Checked. All set.

> Once you have the serial working with the un-modified version I would
> try the modified and see where it gets stuck.

I will get getting new cables. See if new ones solve the issue.

Thanks for the help.

Regards,
Harmandeep Kaur
diff mbox

Patch

diff --git a/xen/common/sched_credit.c b/xen/common/sched_credit.c
index 0dce790..b395501 100644
--- a/xen/common/sched_credit.c
+++ b/xen/common/sched_credit.c
@@ -1148,6 +1148,8 @@  csched_dom_init(const struct scheduler *ops,
struct domain *dom)
 {
     struct csched_dom *sdom;

+printk("XXX Hello, this is my first mod :) \n");
+
     if ( is_idle_domain(dom) )
         return 0;