hbent | 5 Nov 2008 08:35
Picon
Favicon

Re: 601s and Open Firmware

>> Burning my own ISO9660 CD of -current was successful.  I was able to
>> "boot scsi/sd <at> 3:0,\OFWBOOT.XCF;1 NETBSD.MACPPC" and it loads the
>> bootloader, prints the "no default partition" message and then dies
>> with "DEFAULT CATCH! code=FFF00300".
>
> So, no kernel output at all? That's bad.

Indeed.

I set CPUFLAGS+="-mcpu=601" and built a release from scratch in an attempt
to avoid any instructions that might not exist on the 601, but to no
avail.  I also turned on -DDEBUG for ofwboot with a similar lack of
success.  The same error happened at the same point.  Pointers to some
good places to put printf() in ofwboot would be appreciated.

>> What debugging output can/should I turn on that will be of use on
>> the 7200?
>
> Do you have
> options PPC_OEA601
> in your kernel config?

Yes, as Marco suggested I did that when I rebuilt the world for a 601, but
I'm pretty sure that ofwboot isn't getting as far as trying to boot a
kernel.

> Btw. you can easily netboot pretty much any PCI mac with an onboard NIC.

I have considered this.  At the moment the 7200 and the 9500 are at a
storage facility that provides a work space but no internet connectivity. 
(Continue reading)

Marco Trillo | 5 Nov 2008 10:03
Picon

Re: 601s and Open Firmware

Hi,

On Wed, Nov 5, 2008 at 8:35 AM,  <hbent <at> cs.oberlin.edu> wrote:
>> Do you have
>> options PPC_OEA601
>> in your kernel config?
>
> Yes, as Marco suggested I did that when I rebuilt the world for a 601, but
> I'm pretty sure that ofwboot isn't getting as far as trying to boot a
> kernel.
>

You may find this message of interest:
<http://mail-index.netbsd.org/port-macppc/2008/09/28/msg000422.html>

it contains a patch to make the "ofwboot.xcf" work.

Regards
Marco

hbent | 6 Nov 2008 07:58
Picon
Favicon

Re: 601s and Open Firmware


> You may find this message of interest:
> <http://mail-index.netbsd.org/port-macppc/2008/09/28/msg000422.html>
>
> it contains a patch to make the "ofwboot.xcf" work.

I patched src/sys/arch/macppc/stand/ofwboot/Locore.c as included below,
based on the patch from the link above.  No matter what I do now, I can't
get a kernel to actually start booting.  I've tried various options with
and without -mcpu=601, PPC_OEA601, debugging, diagnostic, OFWOEA_DEBUG and
more.  All I can ever seem to get is:

0 > boot enet:,nfwboot.xcf file: 192.168.2.63,nfwboot.xcfloading XCOFF
tsize=E110 dsize=268 bsize=2A30 entry=E00000
SECTIONS:
.text    00E00000 00E00000 0000E110 000000E0
.data    00E0F000 00E0F000 00000268 0000E1F0
.bss     00E0F268 00E0F268 00002A30 00000000
loading .text, done..
loading .data, done..
clearing .bss, done..

>> NetBSD/macppc OpenFirmware Boot, Revision 1.10
>> (hbent <at> sinclair.cs.oberlin.edu, Thu Nov  6 00:41:02 EST 2008)
file: 192.168.2.63,nfwboot.xcfUsing IP address: 192.168.2.195
root addr=192.168.2.63 path=/export/macppc/root/
2309812+265600 [179104+167245]=0x2c98f0
 start=0x100000
entry is being called with 0, 0, ff8099b8, enet/netbsd, 18

(Continue reading)

hbent | 5 Nov 2008 18:26
Picon
Favicon

Re: 601s and Open Firmware

> Hi,
>
> On Wed, Nov 5, 2008 at 8:35 AM,  <hbent <at> cs.oberlin.edu> wrote:
>>> Do you have
>>> options PPC_OEA601
>>> in your kernel config?
>>
>> Yes, as Marco suggested I did that when I rebuilt the world for a 601,
>> but
>> I'm pretty sure that ofwboot isn't getting as far as trying to boot a
>> kernel.
>>
>
> You may find this message of interest:
> <http://mail-index.netbsd.org/port-macppc/2008/09/28/msg000422.html>
>
> it contains a patch to make the "ofwboot.xcf" work.

Wow, I don't know how I managed to miss that one in my searches.  Thank
you for bringing it to my attention.

-Henry Bent


Gmane