Subject: Re: PowerMac booting...not yet.
To: Bill Studenmund <skippy@macro.stanford.edu>
From: SUNAGAWA Keiki <kei_sun@ba2.so-net.or.jp>
List: port-powerpc
Date: 12/13/1997 14:35:36
Hi,
Bill Studenmund <skippy@macro.stanford.edu> wrote:
Bill> What fixes were needed?
Some prototypes and casting. I sended PRs for lib/ and
arch/powerpc/stand/ofwboot.
Here are what I sent.
--- ./libc/arch/powerpc/gen/flt_rounds.c.orig Sun Mar 30 10:42:59 1997
+++ ./libc/arch/powerpc/gen/flt_rounds.c Fri Dec 12 00:34:45 1997
@@ -1,11 +1,15 @@
/* $NetBSD: flt_rounds.c,v 1.1 1997/03/29 20:55:55 thorpej Exp $ */
+#include <sys/types.h>
+
static const int map[] = {
1, /* round to nearest */
0, /* round to zero */
2, /* round to positive infinity */
3 /* round to negative infinity */
};
+
+int __flt_rounds __P((void));
int
__flt_rounds()
--- ./libkvm/kvm_powerpc.c.orig Fri Sep 19 20:13:08 1997
+++ ./libkvm/kvm_powerpc.c Fri Dec 12 00:39:58 1997
@@ -35,6 +35,7 @@
* PowerPC machine dependent routines for kvm.
*/
+#include <stdlib.h>
#include <sys/param.h>
#include <vm/vm.h>
--- boot.c.orig Mon Oct 6 20:24:21 1997
+++ boot.c Sat Dec 13 14:00:43 1997
@@ -375,7 +375,7 @@
if (phdr.p_filesz < phdr.p_memsz) {
printf("+%lu@0x%lx", phdr.p_memsz - phdr.p_filesz,
(u_long)(phdr.p_vaddr + phdr.p_filesz));
- bzero(phdr.p_vaddr + phdr.p_filesz,
+ bzero((void *)phdr.p_vaddr + phdr.p_filesz,
phdr.p_memsz - phdr.p_filesz);
}
first = 0;
The following diffs are needed for compilng the ofwboot.xcf,
but I didn't send a PR for that. I think xcoff-powermac is
more suitable for PowerMacs rather than aixcoff-rs6000, but
I couldn't configured binutils/gcc for the latter.
--- Makefile.orig Thu Apr 17 20:20:07 1997
+++ Makefile Sat Dec 13 14:26:24 1997
@@ -51,6 +51,6 @@
${OBJS} vers.o ${LIBSA} ${LIBZ} ${LIBKERN}
mv ${PROG} ${PROG}.elf
${OBJCOPY} --input-target=elf32-powerpc \
- --output-target=xcoff-powermac ${PROG}.elf ${PROG}.xcf
+ --output-target=aixcoff-rs6000 ${PROG}.elf ${PROG}.xcf
.include <bsd.prog.mk>
Bill> Did you try the installer or the booter? I've run the
Bill> installer before on a Powermac w/o problem.
I tryed Installer. It seems that the problem is My inner
hard drive has two Root partitions (one for linuxppc and the
other for NetBSD). I'll format another external drive and
try.
--
SUNAGAWA Keiki <kei_sun@ba2.so-net.or.jp>