From: Boris Derzhavets Subject: Re: Cannot load latest 2.6.32.10 kernel on AMD quad-core Date: Fri, 23 Apr 2010 11:55:13 -0700 (PDT) Message-ID: <318534.36421.qm@web56107.mail.re3.yahoo.com> References: <487309.19195.qm@web56107.mail.re3.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1756788963==" Return-path: In-Reply-To: <487309.19195.qm@web56107.mail.re3.yahoo.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com, Gerry Reno List-Id: xen-devel@lists.xenproject.org --===============1756788963== Content-Type: multipart/alternative; boundary="0-402620498-1272048913=:36421" --0-402620498-1272048913=:36421 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable I skipped first instruction ( before kernel build ): # aptitude install build-essential libncurses5-dev dpkg-dev debhelper faker= oot Boris. --- On Fri, 4/23/10, Boris Derzhavets wrote: From: Boris Derzhavets Subject: Re: [Xen-devel] Cannot load latest 2.6.32.10 kernel on AMD quad-co= re To: xen-devel@lists.xensource.com, "Gerry Reno" Date: Friday, April 23, 2010, 2:27 PM I've just was able to reproduce=A0 Thiago's=A0 instruction on Lucid RC for = Xen 4.0 & 2.6.32.10 pvops kernel ( C2D E8400 , ASUS P5Q-E, 8 GB RAM) . ACPI= Processor has been disabled, what is particular MB issue Quote :- 1.Clone JF's Git Repo: =A0cd /usr/src =A0git clone git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git l= inux-2.6-xen =A0cd linux-2.6-xen =A0git checkout -b xen/stable origin/xen/stable 2. Configure, compile and install: =A0 =A0make menuconfig # Enabled the dom0 support and the Xen backend as usual = on U=A0=A0 9.10, F12 =A0make -j2 =A0chmod g-s /usr/src -R=A0=A0=A0=A0=20 =A0make deb-pkg =A0dpkg -i ../linux-image*2.6.32.10*.deb =A0depmod 2.6.32.10 =A0update-initramfs -c -k=0A 2.6.32.10 =A0update-grub =A0echo "xen-evtchn" >> /etc/modules 3- Download and install the latest Xen: =A0Preparing your environment: =A0apt-get build-dep xen-3.3 =A0aptitude install uuid-dev iasl texinfo =A0Download and compile: =A0cd /usr/src =A0Uncompress xen-4.0.0.tar.gz =A0cd xen-4.0.0 =A0make xen =A0make tools =A0make install-xen =A0make install-tools PYTHON_PREFIX_ARG=3D =A0update-rc.d xend defaults 20 21 =A0update-rc.d xendomains defaults 21 20 4. Add to /boot/grub/grub.cfg # This file provides an easy way to add custom menu entries.=A0 Simply type= the # menu entries you want to add after this comment.=A0 Be careful not to cha= nge # the 'exec tail' line above. menuentry "Xen 4.0 / Ubuntu 10.4 RC kernel 2.6.32.10 pvops" { insmod ext2 set root=3D(hd1,4) multiboot (hd1,4)/xen.gz=0A dummy=3Ddummy module (hd1,4)/vmlinuz-2.6.32.10 dummy=3Ddummy root=3D/dev/sdb5 ro console= =3Dtty0 module (hd1,4)/initrd.img-2.6.32.10 Quote ends. --- On Fri, 4/23/10, Gerry Reno wrote: From: Gerry Reno Subject: [Xen-devel] Cannot load latest 2.6.32.10 kernel on AMD quad-core To: xen-devel@lists.xensource.com Date: Friday, April 23, 2010, 1:50 PM I previously had the pv_ops dom0 2.6.31.6 kernel built and running on my ha= rdware (amd phenom ii x4 quad-core) just fine under karmic.=A0 But that ker= nel had issues with rxchecksumming.=A0 So I upgraded the server to lucid an= d am now trying to compile a new pv_ops dom0 kernel for it. Now, yesterday I carefully built the latest 2.6.32.10(xen/stable) pv_ops do= m0 kernel twice.=A0=0A Once from the config in the email Lucid pv_ops dom0 = howto and once from the lucid server config modified by adding all the XEN = configurations.=A0 I get the same result both ways.=A0 After building the k= ernel, I try to start the pv_ops dom0 kernel as domU just to make sure it r= uns and it crashes right at the start of boot complaining like this: __vmallic_node+0xa2/0xb0 ? alloc_large_system_hash+0x15/0x21 ? inet_init+0x0/0x209 __vmalloc+0x22/0x30 alloc_large_system_hash+0x15/0x21a ? inet_init+0x0/0x209 ? inet_init+0x0/0x209 tcp_init+0xa3//0x37e inet_init+0x14b/0x209 do_one_initcall+0x3c/0x10a kernel_init+0x159/0x1af child_rip+0xa/0x20 Code: d0 49 8b 04 24 48 85 c0 75 ec eb c5 55 48 89 e5 48 8.... 9 5d e8 4c 89 65 f0 4c 89 6d f8 0f 1f 44 00 00 48 89 e5 48 8.... RIP [] __free_pages+0x1f/0x90 ---[ end trace e93713a9d40cd06d ]--- Kernel panic - not syncing: Attempted to kill=0A init! Pid: 1, comm: swapper Tainted: G=A0 =A0 =A0 D=A0 W=A0 =A0 2.6.32.10 #4 panic+0x78/0x136 ? mm_release+0x60/0x130 do_exit+0x6ca/0x7f0 oops_end+0xaf/0xf0 die+0x5b/0x90 do_general_protection+0x152/0x160 general_protection+0x25/0x30 ? __free_pages+0x1f/0x90 __vunmap+0x7a/0x110 vfree+0x2a/0x30 __vmalloc_area_node+0x15c/0x190 ? alloc_large_system_hash+0x15a/0x21a __vmalloc_node+0xa2/0xb0 ? alloc_large_system_hash+0x15a/0x21a ? inet_init+0x0/0x209 ? inet_init+0x0/0x209 tcp_init+0xa3//0x37e inet_init+0x14b/0x209 do_one_initcall+0x3c/0x10a kernel_init+0x159/0x1af child_rip+0xa/0x20 ? kernel_init+0x10/0x1af ? child_rip+0x0/0x20 I fired up the old 2.6.31.6 kernel with lucid and it boots just fine as dom= U. Can anyone shed some light on what may be the problem here and how I can bu= ild a working 2.6.32.10 pv_ops dom0 kernel for this hardware?=A0=0A=20 -Gerry _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel =0A=0A =20 -----Inline Attachment Follows----- _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel =0A=0A=0A --0-402620498-1272048913=:36421 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
=0A=0A
-----Inline Attachment Follows-----

_______________________________________________
Xen= -devel mailing list
Xen-devel@lists.xen= source.com
http://lists.xensource.com/xen-devel
=
I skipped first instruction ( before kernel b= uild ):

# aptitude install build-essential libncurses5-dev dpkg-dev = debhelper fakeroot

Boris.

--- On Fri, 4/23/10, Boris Derzh= avets <bderzhavets@yahoo.com> wrote:

From: Boris Derzhavets <bderzhavets@yahoo.com>
Subject= : Re: [Xen-devel] Cannot load latest 2.6.32.10 kernel on AMD quad-core
T= o: xen-devel@lists.xensource.com, "Gerry Reno" <greno@verizon.net>Date: Friday, April 23, 2010, 2:27 PM

I've just was= able to reproduce  Thiago's  instruction on Lucid RC for Xen 4.0= & 2.6.32.10 pvops kernel ( C2D E8400 , ASUS P5Q-E, 8 GB RAM) . ACPI Pr= ocessor
has been disabled, what is particular MB issue

Quote :-
1.Clone JF's Git Repo:

 cd /usr/src
 git clone gi= t://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git linux-2.6-xen cd linux-2.6-xen
 git checkout -b xen/stable origin/xen/stab= le


2. Configure, compile and install:
 
 make me= nuconfig # Enabled the dom0 support and the Xen backend as usual on U =   9.10, F12

 make -j2
 chmod g-s /usr/src -R =    
 make deb-pkg
 dpkg -i ../linux-image*2= .6.32.10*.deb
 depmod 2.6.32.10
 update-initramfs -c -k=0A = 2.6.32.10
 update-grub
 echo "xen-evtchn" >> /etc/mod= ules

3- Download and install the latest Xen:

 Preparing = your environment:

 apt-get build-dep xen-3.3
 aptitude = install uuid-dev iasl texinfo

 Download and compile:

&nb= sp;cd /usr/src
 Uncompress xen-4.0.0.tar.gz
 cd xen-4.0.0 make xen
 make tools
 make install-xen
 mak= e install-tools PYTHON_PREFIX_ARG=3D

 update-rc.d xend defaults= 20 21
 update-rc.d xendomains defaults 21 20


4. Add to = /boot/grub/grub.cfg

# This file provides an easy way to add custom m= enu entries.  Simply type the
# menu entries you want to add after = this comment.  Be careful not to change
# the 'exec tail' line abov= e.
menuentry "Xen 4.0 / Ubuntu 10.4 RC kernel 2.6.32.10 pvops" {
insm= od ext2
set root=3D(hd1,4)
multiboot (hd1,4)/xen.gz=0A dummy=3Ddummy<= br>module (hd1,4)/vmlinuz-2.6.32.10 dummy=3Ddummy root=3D/dev/sdb5 ro conso= le=3Dtty0
module (hd1,4)/initrd.img-2.6.32.10

Quote ends.

=
--- On Fri, 4/23/10, Gerry Reno <greno@verizon.net>= wrote:

From: Gerry Reno <greno@verizon.= net>
Subject: [Xen-devel] Cannot load latest 2.6.32.10 kernel on AMD = quad-core
To: xen-devel@lists.xensource.com
Date: Friday, April 23, 2= 010, 1:50 PM

I previously had the pv_ops do= m0 2.6.31.6 kernel built and running on my hardware (amd phenom ii x4 quad-= core) just fine under karmic.  But that kernel had issues with rxcheck= summing.  So I upgraded the server to lucid and am now trying to compi= le a new pv_ops dom0 kernel for it.

Now, yesterday I carefully built= the latest 2.6.32.10(xen/stable) pv_ops dom0 kernel twice. =0A Once f= rom the config in the email Lucid pv_ops dom0 howto and once from the lucid= server config modified by adding all the XEN configurations.  I get t= he same result both ways.  After building the kernel, I try to start t= he pv_ops dom0 kernel as domU just to make sure it runs and it crashes righ= t at the start of boot complaining like this:

__vmallic_node+0xa2/0x= b0
? alloc_large_system_hash+0x15/0x21
? inet_init+0x0/0x209
__vma= lloc+0x22/0x30
alloc_large_system_hash+0x15/0x21a
? inet_init+0x0/0x2= 09
? inet_init+0x0/0x209
tcp_init+0xa3//0x37e
inet_init+0x14b/0x20= 9
do_one_initcall+0x3c/0x10a
kernel_init+0x159/0x1af
child_rip+0xa= /0x20
Code: d0 49 8b 04 24 48 85 c0 75 ec eb c5 55 48 89 e5 48 8....
= 9 5d e8 4c 89 65 f0 4c 89 6d f8 0f 1f 44 00 00 48 89 e5 48 8....
RIP [&l= t;ffffffff810f4f5f>] __free_pages+0x1f/0x90
---[ end trace e93713a9d4= 0cd06d ]---
Kernel panic - not syncing: Attempted to kill=0A init!
Pi= d: 1, comm: swapper Tainted: G      D  W    2= .6.32.10 #4
panic+0x78/0x136
? mm_release+0x60/0x130
do_exit+0x6ca= /0x7f0
oops_end+0xaf/0xf0
die+0x5b/0x90
do_general_protection+0x15= 2/0x160
general_protection+0x25/0x30
? __free_pages+0x1f/0x90
__vu= nmap+0x7a/0x110
vfree+0x2a/0x30
__vmalloc_area_node+0x15c/0x190
? = alloc_large_system_hash+0x15a/0x21a
__vmalloc_node+0xa2/0xb0
? alloc_= large_system_hash+0x15a/0x21a
? inet_init+0x0/0x209
? inet_init+0x0/0= x209
tcp_init+0xa3//0x37e
inet_init+0x14b/0x209
do_one_initcall+0x= 3c/0x10a
kernel_init+0x159/0x1af
child_rip+0xa/0x20
? kernel_init+= 0x10/0x1af
? child_rip+0x0/0x20

I fired up the old 2.6.31.6 kerne= l with lucid and it boots just fine as domU.

Can anyone shed some li= ght on what may be the problem here and how I can build a working 2.6.32.10= pv_ops dom0 kernel for this hardware? =0A

-Gerry

_____= __________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists= .xensource.com/xen-devel

=0A=0A --0-402620498-1272048913=:36421-- --===============1756788963== 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 --===============1756788963==--