Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Yaboot (as installed with YDL) goes further...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Yaboot (as installed with YDL) goes further...
Authored by: tz on Apr 15, '02 03:05:45PM

The following is the complete script with the current version. It is set for my partitions, so YMMV. Mainly the hd:, and you can even add netboot by host with enet: sections. This one can change colors and will timeout with a default.

(This is part of YellowDogLinux and/or Yaboot/Ybin who holds the GPL copyright thereto).

The main thing for it to be recognized is that it must be of type tbxi (use resedit or similar to set the type).

<CHRP-BOOT>
<COMPATIBLE>
MacRISC
</COMPATIBLE>
<DESCRIPTION>
PowerPC GNU/Linux First Stage Bootstrap
</DESCRIPTION>
<BOOT-SCRIPT>
: .printf fb8-write drop ;
: bootyaboot " Loading second stage bootstrap..." .printf 100 ms load-base release-load-area " hd:12,\yaboot" $boot ;
: bootmacos " Booting MacOS..." .printf 100 ms load-base release-load-area " hd:10,\:tbxi" $boot ;
: bootmacosx " Booting MacOSX..." .printf 100 ms load-base release-load-area " hd:9,\:tbxi" $boot ;
" screen" output
variable interactive
1 interactive !

0 interactive @ = if
bootyaboot
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 GNU/Linux Bootstrap"(0d 0a)" .printf
" "(0d 0a)" .printf
" Press l for GNU/Linux,"(0d 0a)" .printf
" m for MacOS,"(0d 0a)" .printf
" x for MacOSX."(0d 0a)" .printf
" "(0d 0a)" .printf
" Boot: " .printf
get-msecs d# 10 3E8 * +
begin
key? if
key case
ascii l of " l "(0d 0a)" .printf bootyaboot endof
ascii m of " m "(0d 0a)" .printf bootmacos endof
ascii x of " x "(0d 0a)" .printf bootmacosx endof
endcase
then
dup get-msecs &lt;
until
drop
" "(0d 0a)" .printf bootmacosx
</BOOT-SCRIPT>
</CHRP-BOOT>

You can also have nearly anything for the OS image (the badge icon) if you know how to enter it.



[ Reply to This | # ]