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

Re: Why it's so difficult to fix PowerMac booting for good



Hello,

It turns out that adding &device; alone is not enough since it refers to only the drive and not the partition along with it. &device;:&partition; is what was actually needed. Fixed script is attached.

--
Ben Westover
<CHRP-BOOT>
<COMPATIBLE>
MacRISC MacRISC3 MacRISC4
</COMPATIBLE>
<DESCRIPTION>
PowerPC GNU/Linux First Stage Bootstrap
</DESCRIPTION>
<BOOT-SCRIPT>
: .printf fb8-write drop ;
: bootgrub " Loading GRUB..." .printf 100 ms load-base release-load-area " &device;:&partition;,\grub" $boot ;
: bootmacosx " Booting Mac OS X..." .printf 100 ms load-base release-load-area " &device;:3,\\:tbxi" $boot ;
: bootcd " Booting CDROM..." .printf 100 ms load-base release-load-area " cd:,\\:tbxi" $boot ;
" screen" output
variable interactive
1 interactive !

0 interactive @ = if
  bootgrub
then

dev screen
" "(0000000000aa00aa0000aaaaaa0000aa00aaaa5500aaaaaa)" drop 0 7 set-colors
" "(5555555555ff55ff5555ffffff5555ff55ffffff55ffffff)" drop 8 15 set-colors
device-end
f to foreground-color
0 to background-color
" "(0C)" .printf

" First Stage Debian GNU/Linux Bootstrap"(0d 0a)" .printf
"  "(0d 0a)" .printf
" Press l for GNU/Linux,"(0d 0a)" .printf
"       x for Mac OS X,"(0d 0a)" .printf
"       c for CDROM."(0d 0a)" .printf
"  "(0d 0a)" .printf
" Stage 1 Boot: " .printf
get-msecs d# 10 3E8 * +
begin
  key? if
    key case
      ascii l of " l "(0d 0a)" .printf bootgrub endof
      ascii x of " x "(0d 0a)" .printf bootmacosx endof
      ascii c of " c "(0d 0a)" .printf bootcd endof
    endcase
  then
  dup get-msecs &lt;
until
drop
"  "(0d 0a)" .printf bootgrub
</BOOT-SCRIPT>
<OS-BADGE-ICONS>
1010
00000000003E3E3E3A3E3A1100000000
000000003E3E3E3E3E3E3E3E3E000000
0000003E3E3E3E0000003A3E3E3E0000
00003E3E3E3E00000000003E3E3E0000
00003A3E3E00003E3E3E3E003E3E0000
00003E3E0000003A000036003E3A0000
00003E3A00003E3E00003A003E3E0000
00003E0000003E3E000036003E3A0000
00003E3E00003A3E003A003E3A000000
00003E3A0000363A3E3E3E3E3E000000
00003E3E1100003E3E3E3E0000000000
00003E3E3E0000000000000000000000
0000003E3E0000000000000000000000
000000003E3E00000000000000000000
000000003E3E3A000000000000000000
0000000000003E3E3E00000000000000
0000000000C1C1C1C5C1C5EE00000000
00000000C1C1C1C1C1C1C1C1C1000000
000000C1C1C1C1000000C5C1C1C10000
0000C1C1C1C10000000000C1C1C10000
0000C5C1C10000C1C1C1C100C1C10000
0000C1C1000000C50000C900C1C50000
0000C1C50000C1C10000C500C1C10000
0000C1000000C1C10000C900C1C50000
0000C1C10000C5C100C500C1C5000000
0000C1C50000C9C5C1C1C1C1C1000000
0000C1C1EE0000C1C1C1C10000000000
0000C1C1C10000000000000000000000
000000C1C10000000000000000000000
00000000C1C100000000000000000000
00000000C1C1C5000000000000000000
000000000000C1C1C100000000000000
0000000000FFFFFFFFFFFFFF00000000
00000000FFFFFFFFFFFFFFFFFF000000
000000FFFFFFFF000000FFFFFFFF0000
0000FFFFFFFF0000000000FFFFFF0000
0000FFFFFF0000FFFFFFFF00FFFF0000
0000FFFF000000FF0000FF00FFFF0000
0000FFFF0000FFFF0000FF00FFFF0000
0000FF000000FFFF0000FF00FFFF0000
0000FFFF0000FFFF00FF00FFFF000000
0000FFFF0000FFFFFFFFFFFFFF000000
0000FFFFFF0000FFFFFFFF0000000000
0000FFFFFF0000000000000000000000
000000FFFF0000000000000000000000
00000000FFFF00000000000000000000
00000000FFFFFF000000000000000000
000000000000FFFFFF00000000000000
</OS-BADGE-ICONS>
</CHRP-BOOT>

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


Reply to: