Port-powerpc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

PowerMac booting...not yet.



Hi,

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;
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.

* 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 <kei_sun%ba2.so-net.or.jp@localhost>



Home | Main Index | Thread Index | Old Index