From owner-freebsd-hackers Mon Nov 23 12:09:17 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA10318 for freebsd-hackers-outgoing; Mon, 23 Nov 1998 12:09:17 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from dorifer.heim3.tu-clausthal.de (dorifer.heim3.tu-clausthal.de [139.174.243.252]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA10286 for ; Mon, 23 Nov 1998 12:09:04 -0800 (PST) (envelope-from olli@dorifer.heim3.tu-clausthal.de) Received: (from olli@localhost) by dorifer.heim3.tu-clausthal.de (8.8.8/8.8.8) id VAA08069 for freebsd-hackers@FreeBSD.ORG; Mon, 23 Nov 1998 21:08:52 +0100 (CET) (envelope-from olli) Date: Mon, 23 Nov 1998 21:08:52 +0100 (CET) From: Oliver Fromme Message-Id: <199811232008.VAA08069@dorifer.heim3.tu-clausthal.de> To: freebsd-hackers@FreeBSD.ORG Subject: Re: Changing the load address of the kernel? Newsgroups: list.freebsd-hackers Organization: Administration Heim 3 Reply-To: freebsd-hackers@FreeBSD.ORG MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: TIN [version 1.2 RZTUC(3) PL2] Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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