From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: Re: Re: Xen-4.0.x doesn't start on 32bit / pvops 2.6.32.19 Date: Mon, 16 Aug 2010 14:20:04 +0300 Message-ID: <20100816112004.GH2804@reaktio.net> References: <4C690FCD.70905@access.denied> <20100816104413.GD2804@reaktio.net> <4C6918CD.2020405@access.denied> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <4C6918CD.2020405@access.denied> 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 List-Id: xen-devel@lists.xenproject.org On Mon, Aug 16, 2010 at 12:54:05PM +0200, Stefan Kuhne wrote: > Am 16.08.2010 12:44, schrieb Pasi K=E4rkk=E4inen: > > On Mon, Aug 16, 2010 at 12:15:41PM +0200, Stefan Kuhne wrote: >=20 > Hello Pasi, >=20 > >> On 64bit system boots until mount of rootfs. > >> > >=20 > > So does 64bit kernel boot/work OK? > >=20 > I think so. > But command line forgot "root=3D..." and I don't know why. >=20 Sounds like you're using GRUB2. See: http://wiki.xensource.com/xenwiki/XenCommonProblems It's a known issue. Xen 4.0.1-rc6 has that fixed.=20 If you use Xen 4.0.1-rc5 or older version you need to add "dummy=3Ddummy"= =20 as the first parameter to grub config. It's explained in the wiki page ab= ove. > >> But 32bit boots until: > >> (XEN) d0:v0: unhandled page fault (ec=3D0009) > >> (XEN) Pagetable walk from c009fc00: > >> (XEN) L3[0x003] =3D 0000000039820001 00001820 > >> (XEN) L2[0x000] =3D 0000000039fdd067 00001fdd > >> (XEN) L1[0x09f] =3D 000007fffffff063 ffffffff > >> (XEN) d0:v0: reserved bit in page table (ec=3D0009) > >> > >> Is anybody running an 32bit System? > >> I need 32bit because of my destination Distro is only in 32bit avail= able. > >> > >=20 > > Based on the full bootlog the problem is in the dom0 kernel, not in X= en hypervisor. > > Did you try earlier versions of the dom0 kernel? Which version introd= uces this problem? > >=20 > Only 2.6.13.14 from xen-4.0.1-rc5. >=20 > > I think 2.6.32.10 booted/worked for me on 32bit.. > >=20 > How can I get this version? >=20 You should be able to use something like this: git clone git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git li= nux-2.6-xen cd linux-2.6-xen git checkout -b xen/stable-2.6.32.x origin/xen/stable-2.6.32.x git checkout fe6e0879f323b2352aae9dddbb2b253334e10d6c That should give you 2.6.32.10 .. just before 2.6.32.11 merge. I haven't tested/tried that exact version myself, so choose some other version from some other date if it doesn't work. Use the online changelog browser to browse through the changelog, and then open some 'commit' message to get the commit id for "git checkou= t": http://git.kernel.org/?p=3Dlinux/kernel/git/jeremy/xen.git;a=3Dshortlog;h= =3Dxen/stable-2.6.32.x > >=20 > > > >=20 > >> [ 0.000000] NX (Execute Disable) protection: active > >=20 > >=20 > > Did you try without NX? (ie. turn it off in the BIOS).=20 > >=20 > I've tested a lot. > I'll try it again. >=20 Ok. > >> [ 0.000000] 302MB HIGHMEM available. > >> [ 0.000000] 721MB LOWMEM available. > >=20 > > Does dom0_mem=3D512M help?=20 > >=20 > I'll test it. >=20 Yep. > >> (XEN) d0:v0: unhandled page fault (ec=3D0009) > >> (XEN) Pagetable walk from c009fc00: > >> (XEN) L3[0x003] =3D 0000000039820001 00001820 > >> (XEN) L2[0x000] =3D 0000000039fdd067 00001fdd > >> (XEN) L1[0x09f] =3D 000007fffffff063 ffffffff > >> (XEN) d0:v0: reserved bit in page table (ec=3D0009) > >> (XEN) Pagetable walk from c009fc00: > >> (XEN) L3[0x003] =3D 0000000039820001 00001820 > >> (XEN) L2[0x000] =3D 0000000039fdd067 00001fdd > >> (XEN) L1[0x09f] =3D 000007fffffff063 ffffffff > >> (XEN) ----[ Xen-4.0.1-rc6 x86_32p debug=3Dn Tainted: C ]---- > >> (XEN) CPU: 0 > >> (XEN) EIP: e019:[] > >=20 > > You'd have to use gdb on the kernel vmlinux file to resolve which > > funtion this address points to.. to see why/where it crashes. > >=20 > I never has debugged a Kernel. >=20 Go to the source tree directory where the dom0 kernel was compiled=20 (it needs to be the exact source tree for the kernel you boot). And run: gdb vmlinux Then execute the following commands: (gdb) x/i 0xc17a56a1 (gdb) list *0xc17a56a1 (c17a56a1 is the EIP value from the crashlog). And paste the output here. -- Pasi