-
Notifications
You must be signed in to change notification settings - Fork 262
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorganize macppc_installboot to make macppccd.iso image actually boo…
…table on (some) OpenFirmware 2.x machines. Current macppccd.iso image doesn't boot on Openfirmware 2.x (and probably 1.0.5) machines because it uses pre-compiled binary which is based on old (and customized) bootxx. It causes version mismatch against newer ofwboot whose load address has been changed from 0x600000 to 0xe00000, as mentioned in the following post: http://mail-index.netbsd.org/port-macppc/2004/12/14/0020.html There was also an raw binary which was passed to mkisofs as -boot-hfs-file. To fix these issue, prepare a simple mkhfsboot program which creates a boothfs file with the Apple partition map info for mkisofs, and modify macppc_installboot to search the secondary ofwboot from isofs and to put and modify the primary bootxx accordingly. See PR toolchain/30245 for more details. There are still some machines which don't boot from an iso image created by this method (G3 machines with OF 2.0f1 etc.), but it's still better than to keep ugly and obsolete hacks. Ok'ed by macallan, and there is no other particular comment about this PR.
- Loading branch information
Showing
15 changed files
with
1,028 additions
and
293 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,10 @@ | ||
# $NetBSD: Makefile,v 1.5 2004/03/19 08:07:28 jmc Exp $ | ||
# $NetBSD: Makefile,v 1.6 2006/09/17 03:56:03 tsutsui Exp $ | ||
|
||
HOSTPROG= macppc_installboot | ||
SRCS= installboot.c cd9660.c cd9660_util.c | ||
NOMAN= # defined | ||
|
||
.include <bsd.own.mk> | ||
HOST_CPPFLAGS+= -I${.CURDIR} -I${NETBSDSRCDIR}/sys | ||
#HOST_CPPFLAGS+= -DDEBUG | ||
|
||
HOSTPROG= macppc_installboot | ||
HOST_CPPFLAGS+= -I${NETBSDSRCDIR}/sys/arch | ||
UUDECODE_FILES= bootxx.raw macppcboot.raw | ||
|
||
CLEANFILES+= mkmacppcboot | ||
|
||
all: macppcboot.raw | ||
|
||
.include <bsd.files.mk> | ||
.include <bsd.hostprog.mk> | ||
|
||
mkmacppcboot: mkmacppcboot.c | ||
${LINK.c} -o ${.TARGET} ${.ALLSRC} | ||
|
||
regen: mkmacppcboot bootxx.raw.uue | ||
./mkmacppcboot <${.CURDIR}/bootxx.raw | \ | ||
uuencode macppcboot.raw > macppcboot.raw.uue |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.