星期一, 11月 17, 2003

YABOOT

Yaboot
 
         First of all, ofboot.b _is_ necessary for booting and it has
         to have the proper type/creator code. It is a (text) file
         containing an open firmware script. It is this file that tells
         OpenFirmware to load yaboot for the boot process to continue.
 
         I'm unfortunately still not able to create a bootable CD and I
         don't know why.
 
         Here is what I am using (and I would appreciate any help other
         people can give) to create the cd:
 
         mkisofs -hfs -map src/hfs.map -part -hfs-bless ./ppc/ -r -o cd.iso ./ppc/
 
         The hfs.map is taken from the debian-cd project. The ppc
         directory is the contents of the cd and here is what it looks
         like:
 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
dumont:/tmp> ls -lAF ppc/
total 5100
-rw-rw-r--    1 rbrito   rbrito    3573285 Apr 20 21:11 linux.bin
-rw-r--r--    1 rbrito   rbrito        219 Apr 20 21:14 ofboot.b
-rw-rw-r--    1 rbrito   rbrito    1474560 Apr 20 21:11 root.bin
-rw-rw-r--    1 rbrito   rbrito     150020 Apr 20 21:13 yaboot
-rw-rw-r--    1 rbrito   rbrito        235 Apr 20 21:15 yaboot.conf
dumont:/tmp>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 
         All binary files were taken from the current boot-floppies, to
         make my proof-of-concept CD.  The only files that I changed
         were ofboot.b and yaboot.conf:
 
ofboot.b:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MacRISC
Rescue CD, based on Debian's debian-cd
" screen" output
load-base release-load-area
boot cd:,\yaboot
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 
yaboot.conf:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
## This yaboot.conf is for CD booting only, do not use as reference.
 
# It is important not to have a comma after cd:
device=cd:
default=install
timeout=100
 
image=/linux.bin
        label=linux
        initrd=/root.bin
        initrd-size=8192
        read-only

沒有留言: