Subject: PowerMac booting...not yet.
To: None <port-powerpc@NetBSD.ORG>
From: SUNAGAWA Keiki <email@example.com>
Date: 12/12/1997 02:12:34
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.
I heard the PowerMac's OFW only knows xcoff format, I made
such format executable.
% 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
To continue booting the MacOS type;
To continue booting from the default boot device type:
0 > boot fd:netbsd.coff loading XCOFFbad o_magic
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
.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
0 > _
* I have an scsi hdd contains two root partitions in it. It
might be the problem. I'll pick up another drive and try
* 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.
Any suggestions are appriciated.
SUNAGAWA Keiki <firstname.lastname@example.org>