Subject: Re: PowerMac booting...not yet.
To: None <port-powerpc@NetBSD.ORG>
From: Dan Jacobowitz <youngdrow@geocities.com>
List: port-powerpc
Date: 12/11/1997 20:02:57
>With some minor fixes of library and kernel source, I
>managed to make the cross-compiler work and could compile
>the kernel of the NetBSD/powerpc port successfull.
Congratulations...what is the architecture from which you are compiling?
>I heard the PowerMac's OFW only knows xcoff format, I made
>such format executable.
Right...
Although, how does one produce a xcoff file?
>% powerpc-elf-netbsd-objcopy -O aixcoff-rs6000 netbsd netbsd.coff
>% ls -lg netbsd*
>-rwxr-xr-x 1 kei staff 978271 Dec 11 07:48 netbsd
>-rwxr-xr-x 1 kei staff 980800 Dec 12 10:49 netbsd.coff
>-rwxr-xr-x 1 kei staff 15473059 Dec 11 07:48 netbsd.gdb
>
>I copied the netbsd.coff file into HFS-formatted floppy
>disk, then rebooted machine.
>
>Open Firmware, 2.0.2
I envy you. My Mac has the dear old broken 1.x Open Firmware.
>To continue booting the MacOS type;
>BYE<return>
>To continue booting from the default boot device type:
>BOOT<return>
> ok
>0 > boot fd:netbsd.coff loading XCOFFbad o_magic
> ok
>0 > _
>
>Same result on ofwboot.coff. I looked at the file
>hack-coff.c distributed with the linuxppc kernel source,
>compiled the program and `hacked' the netbsd.coff file with
>it, and retried booting.
>
>0 > boot fd:netbsd.coff loading XCOFF
>tsize=C5F14 dsize=7790 bsize=1B2B4 entry=100000
>SECTIONS:
>.text <I omitted here>
> :
>.note <I omitted here>
>loading .text, done..
>loading .data, done..
>clearing .bss, done..
>DEFAULT CATCH!, code=FFF00400 at %SRR0: 7C0000A4 %SRR1: 40003070
> ok
>0 > _
>
>notes:
>
>* I have an scsi hdd contains two root partitions in it. It
>might be the problem. I'll pick up another drive and try
>again.
Kind of doubt it...
>* The NetBSD Installer for mac68k hangs this machine(maybe
>same problem above or not). Because of it, I haven't tried
>booting from ffs partition.
The mac68k installer does a fair amount of 68k assembly - not just the
emulatable kind, either. It will pretty much crash any ppc.
>Any suggestions are appriciated.
If you could put that netbsd.coff (hacked) file up on the net somewhere, I
would be willing to try booting it on my machine (7300 604e).
Dan.