Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Nov 1998 21:08:52 +0100 (CET)
From:      Oliver Fromme <olli@dorifer.heim3.tu-clausthal.de>
To:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Changing the load address of the kernel?
Message-ID:  <199811232008.VAA08069@dorifer.heim3.tu-clausthal.de>

next in thread | raw e-mail | index | archive | help
Julian Elischer wrote in list.freebsd-hackers:
 > when I got the original bootblocks working,
 > I experimented with loading the kernel all over the place..
 > 
 > you SHOULD just need to to LINK it to a different address

As Mike Smith pointed out, it does not work.  At least not with
a -current kernel.  Seems like the address is hardcoded in many
places.

 > the old bootblocks would and the link address (in the aout header)
 > with 0xff0000 (or something similar) (0xf00000 ?)

0x00ffffff

 > and load there.
 > so you would link for 0xf0200000 to load at 2MB.

That's what I tried (I think I explained that in the first
posting).  I linked the kernel for 0xf0400000, the bootloader
loaded it to 0x00400000 (4 Mb, because 2 Mb would still be too
low), and it did not work.  I checked the kernel startup code
in locore, KERNBASE and all that stuff, and I wasn't able to
find the problem.

I gave up when I found out that a different load address would
not solve the problem anyway, so I wrote the modified rawboot
loader which works.

 > (the link address was in the Makefile at the time.)

It still is.  And it's hardcoded in kern/link_aout.c, and
probably in other files.

Regards
   Oliver

-- 
Oliver Fromme, Leibnizstr. 18/61, 38678 Clausthal, Germany
(Info: finger userinfo:olli@dorifer.heim3.tu-clausthal.de)

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811232008.VAA08069>