Subject: Re: new ldscript and Xen
To: None <pavel.cahyna@st.mff.cuni.cz, port-i386@netbsd.org>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: port-i386
Date: 05/28/2006 13:55:33
On Sun, May 28, 2006 at 01:36:47PM +0200, Pavel Cahyna wrote:
> On Sun, May 28, 2006 at 12:15:24PM +0200, Manuel Bouyer wrote:
> > An Xen3 domU kernel also fails to load with the new script. Reverting to
> > the old one makes things working again.
> 
> Please try the attached patch. Don't forget to rerun config before make.
> 

It doesn't work either:
(XEN) *** LOADING DOMAIN 0 ***
(XEN) PHYSICAL MEMORY ARRANGEMENT:
(XEN)  Dom0 alloc.:   0e000000->0f000000 (12288 pages to be allocated)
(XEN) VIRTUAL MEMORY ARRANGEMENT:
(XEN)  Loaded kernel: 00100000->0093d538
(XEN)  Init. ramdisk: 009f1000->009f1000
(XEN)  Phys-Mach map: 009f1000->00a01000
(XEN)  Start info:    00a01000->00a02000
(XEN)  Page tables:   00a02000->00a06000
(XEN)  Boot stack:    00a06000->00a07000
(XEN)  TOTAL:         00000000->00c00000
(XEN)  ENTRY ADDRESS: 00100000
(XEN) Initial loading isn't allowed to lowest 1GB of memory.

In Xen, the system is already in virtual mode when the kernel is loaded,
so the entry address has to stay at c0100000, it's the physical addresses that
have to be moved (Xen seems to use this as virtual addresses)

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--