Subject: Re: ofwboot.xcf issues
To: None <wrstuden@netbsd.org>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: port-macppc
Date: 12/07/2003 03:26:55
In article <20031130221629.GA13699@netbsd.org>
wrstuden@netbsd.org wrote:

> Oh, have you tried boot floppies? We should make sure they are happy with 
> this change.
 :
> Ok, then I like your patch. Let's move it to e00000. We won't have to move
> it after that for QUITE a while. :-)

Both loading GENERIC kernel from wd0a by bootxx/ofwboot and
loading INSTALL kernel from boot floppies work fine
with RELOC=0xe00000:
---
Open Firmware, 2.0
To continue booting the MacOS type:
BYE<return>
To continue booting from the default boot device type:
BOOT<return>
 ok
0 > boot fd:0 -
OF_open bootpath=fd
read stage 2 blocks: 0123456. done!
starting stage 2...

>> NetBSD/macppc OpenFirmware Boot, Revision 1.7
>> (tsutsui@lancer, Sat Dec  6 22:51:51 JST 2003)
4024328-
Please remove disk 1, insert disk 2, and press return...
+188048=0x4048fc
 start=0x800000
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.6ZF (INSTALL) #0: Sun Dec  7 01:36:10 JST 2003
	tsutsui@lancer:/usr/obj/sys/arch/macppc/compile/INSTALL
total memory = 65536 KB
avail memory = 54624 KB
 :
---
But now I notice both GENERIC_MD and INSTALL have the following lines:

>> # Change base address to 0x800000 to use large memory disk.
>> makeoptions     TEXTADDR=0x800000

so I wonder which address we should set RELOC...
(current GENERIC_MD is ~7MB, so it would fail with RELOC=0xe00000
 if TEXTADDR is 0x800000.)
---
Izumi Tsutsui
tsutsui@ceres.dti.ne.jp