From 67b2c0fee38f3c657ff7fa81fdb5ef27235e30c2 Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Wed, 5 Jun 2013 03:24:42 -0500 Subject: [PATCH] PowerPC: Transition back to CHRP script. * After examining MacOS toolbox roms, I think i've got this nailed down. The MacOS Toolbox rom contains chrp code at the top and binary code at the bottom. * The Raw format for the chrp seemed to cause issues with the OpenFirmware boot process on some systems. NetBSD uses a '-' file type. * The format of the chrp seems a lot more sensitive across machines than described. Ensure our returns and spaces are even. * Booting with the 'c' key is still working on my older OpenFirmware machine with the chrp script. The bitmap logo is a half black, half white box. * I removed the &device; alias for now for troubleshooing. It also may of been causing compatibility issues. More testing is needed. --- build/jam/ImageRules | 13 ++++++------- data/boot_cd/hfs.map | 6 +++--- data/boot_cd/ofboot.chrp | 21 ++++++++++++++++----- 3 files changed, 25 insertions(+), 15 deletions(-) diff --git a/build/jam/ImageRules b/build/jam/ImageRules index e1a395f135..dea629be2f 100644 --- a/build/jam/ImageRules +++ b/build/jam/ImageRules @@ -1480,21 +1480,20 @@ actions BuildCDBootPPCImage1 bind MAPS mkdir -p $(HAIKU_OUTPUT_DIR)/cd/boot # CHRP Boot script cp $(>[3]) $(HAIKU_OUTPUT_DIR)/cd/ppc/bootinfo.txt - # Haiku Bootloaders (Old World Mac + PReP partition) - cp $(>[2]) $(HAIKU_OUTPUT_DIR)/cd/ofwboot.xcf - # Haiku Bootloader (New World) - cp $(>[1]) $(HAIKU_OUTPUT_DIR)/cd/ofwboot.elf - cp $(>[1]) $(HAIKU_OUTPUT_DIR)/cd/boot/bootloader.b + cp $(>[3]) $(HAIKU_OUTPUT_DIR)/cd/boot/boot.chrp + # Haiku Bootloaders + cp $(>[2]) $(HAIKU_OUTPUT_DIR)/cd/boot/haikuloader.xcf + cp $(>[1]) $(HAIKU_OUTPUT_DIR)/cd/boot/haikuloader.elf # Extras (readme files, etc) cp $(>[4]) $(HAIKU_OUTPUT_DIR)/cd/ mkisofs -v -hfs -part -map $(MAPS) -no-desktop -hfs-volid bootimg \ -V bootimg -hfs-bless $(HAIKU_OUTPUT_DIR)/cd/boot -prep-boot \ - ofwboot.xcf -r -o $(<) $(HAIKU_OUTPUT_DIR)/cd \ + boot/haikuloader.xcf -r -o $(<) $(HAIKU_OUTPUT_DIR)/cd \ || \ genisoimage -v -hfs -part -map $(MAPS) -no-desktop -hfs-volid bootimg \ -V bootimg -hfs-bless $(HAIKU_OUTPUT_DIR)/cd/boot -prep-boot \ - ofwboot.xcf -r -o $(<) $(HAIKU_OUTPUT_DIR)/cd + boot/haikuloader.xcf -r -o $(<) $(HAIKU_OUTPUT_DIR)/cd $(RM) -R $(HAIKU_OUTPUT_DIR)/cd } diff --git a/data/boot_cd/hfs.map b/data/boot_cd/hfs.map index 6d6305c01b..826a2d2df2 100644 --- a/data/boot_cd/hfs.map +++ b/data/boot_cd/hfs.map @@ -2,9 +2,9 @@ # from treating everything like a text file (ugly!) # # EXTN XLate CREATOR TYPE Comment -.b Raw 'UNIX' 'tbxi' "Macintosh Toolbox ROM file" -.chrp Raw 'chrp' 'tbxi' "Macintosh CHRP script" -.elf Raw 'UNIX' 'boot' "Bootstrap" +.chrp - 'chrp' 'tbxi' "Macintosh Toolbox ROM file" +.elf Raw 'UNIX' 'boot' "ELF Binary" +.xcf Raw 'UNIX' 'boot' "XCOFF Binary" .htm Ascii 'MOSS' 'TEXT' "HTML File" .html Ascii 'MOSS' 'TEXT' "HTML File" .txt Ascii 'ttxt' 'TEXT' "Text File" diff --git a/data/boot_cd/ofboot.chrp b/data/boot_cd/ofboot.chrp index ec0f4beeba..81ed84019c 100644 --- a/data/boot_cd/ofboot.chrp +++ b/data/boot_cd/ofboot.chrp @@ -1,8 +1,16 @@ - Haiku -Haiku -boot &device;:\\bootloader.b + + +MacRISC + + +Haiku for PowerPC + + +boot cd:,\\haikuloader.elf + - FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF + +FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF @@ -166,4 +174,7 @@ FF FF FF FF FF FF FF FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 -00 00 00 00 00 00 +00 00 00 00 00 00 + + +