Browse Source

Moved architecture/powerpc/boot/* to package/powerpc/yaboot/boot/

early
Alejandro Mery 17 years ago
parent
commit
73d7acb370
  1. 69
      powerpc/yaboot/boot/boot.in
  2. 12
      powerpc/yaboot/boot/boot.msg
  3. 10
      powerpc/yaboot/boot/mapping
  4. 64
      powerpc/yaboot/boot/ofboot.b

69
powerpc/yaboot/boot/boot.in

@ -0,0 +1,69 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../yaboot/boot/boot.in
# Copyright (C) 2008 The OpenSDE Project
# Copyright (C) 2006 The T2 SDE Project
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
arch_boot_cd_pre()
{
mkdir -p $isofsdir/{boot,etc}/
cp $build_root/usr/lib/yaboot/yaboot $isofsdir/boot/yaboot
cp $build_root/usr/lib/yaboot/yaboot.rs6k $isofsdir/boot/yaboot.rs6k
# rs6k b50, but does not work, yet:
cp $isofsdir/{boot/yaboot.rs6k,install.bin}
cp -v $base/architecture/powerpc/boot/{boot.msg,ofboot.b} \
$isofsdir/boot/
cp -v $base/architecture/powerpc/boot/mapping $isofsdir/
# IBM RS/6000
echo "device=cdrom:" > $isofsdir/etc/yaboot.conf
# Apple New World
echo "device=cd:" > $isofsdir/boot/yaboot.conf
echo -e "\nmessage=/boot/boot.msg\n" > $isofsdir/x
}
arch_boot_cd_add()
{
# unused $3, verbose name
cat >> $isofsdir/x <<-EOT
image=$4
label=$2
initrd=$5
initrd-size=8192
EOT
}
arch_boot_cd_post()
{
# footer
cat $isofsdir/x >> $isofsdir/boot/yaboot.conf
cat $isofsdir/x >> $isofsdir/etc/yaboot.conf
rm $isofsdir/x
echo_status "Creating isofs_arch.txt file .."
cat > $build_toolchain/isofs_arch.txt <<- EOT
BOOT -hfs -part -map $isofsdir/mapping -hfs-volid T2
BOOTx -hfs-bless boot -sysid PPC -l -L -r -T -chrp-boot -no-desktop
BOOTx --prep-boot install.bin
DISK1 $isofsdir/boot/ boot/
DISK1 $isofsdir/etc/ etc/
DISK1 $isofsdir/install.bin install.bin
DISK1 $isofsdir/2nd_stage.tar 2nd_stage.tar
DISK1 $isofsdir/2nd_stage_small.tar 2nd_stage_small.tar
EOT
}

12
powerpc/yaboot/boot/boot.msg

@ -0,0 +1,12 @@
T2 SDE - System Development Environment
http://www.t2-project.org/
T2 on Apple, PReP and IBM RS/6k PowerPC and PowerPC64 hardware was
primarily developed by Rene Rebe - ExactCODE.
If you don't know what to do now, just press enter and start
reading the documentation.
.

10
powerpc/yaboot/boot/mapping

@ -0,0 +1,10 @@
# Example filename mapping file
#
# EXTN XLate CREATOR TYPE Comment
.b Raw 'UNIX' 'tbxi' "bootstrap"
yaboot Raw 'UNIX' 'boot' "bootstrap"
*linux Raw 'UNIX' 'boot' "kernel"
*.conf Raw 'UNIX' 'conf' "bootstrap"
root.bin Raw 'UNIX' 'root' "root_image"
* Raw '????' '????' "Unknown"

64
powerpc/yaboot/boot/ofboot.b

@ -0,0 +1,64 @@
<CHRP-BOOT>
<COMPATIBLE>
MacRISC MacRISC3 MacRISC4
</COMPATIBLE>
<DESCRIPTION>
T2 GNU/Linux PPC bootloader
</DESCRIPTION>
<BOOT-SCRIPT>
" screen" output
load-base release-load-area
boot cd:,\\yaboot
</BOOT-SCRIPT>
<OS-BADGE-ICONS>
1010
000000000000F8FEACF6000000000000
0000000000F5FFFFFEFEF50000000000
00000000002BFAFEFAFCF70000000000
0000000000F65D5857812B0000000000
0000000000F5350B2F88560000000000
0000000000F6335708F8FE0000000000
00000000005600F600F5FD8100000000
00000000F9F8000000F5FAFFF8000000
000000008100F5F50000F6FEFE000000
000000F8F700F500F50000FCFFF70000
00000088F70000F50000F5FCFF2B0000
0000002F582A00F5000008ADE02C0000
00090B0A35A62B0000002D3B350A0000
000A0A0B0B3BF60000505E0B0A0B0A00
002E350B0B2F87FAFCF45F0B2E090000
00000007335FF82BF72B575907000000
000000000000ACFFFF81000000000000
000000000081FFFFFFFF810000000000
0000000000FBFFFFFFFFAC0000000000
000000000081DFDFDFFFFB0000000000
000000000081DD5F83FFFD0000000000
000000000081DDDF5EACFF0000000000
0000000000FDF981F981FFFF00000000
00000000FFACF9F9F981FFFFAC000000
00000000FFF98181F9F981FFFF000000
000000ACACF981F981F9F9FFFFAC0000
000000FFACF9F981F9F981FFFFFB0000
00000083DFFBF981F9F95EFFFFFC0000
005F5F5FDDFFFBF9F9F983DDDD5F0000
005F5F5F5FDD81F9F9E7DF5F5F5F5F00
0083DD5F5F83FFFFFFFFDF5F835F0000
000000FBDDDFACFBACFBDFDFFB000000
000000000000FFFFFFFF000000000000
0000000000FFFFFFFFFFFF0000000000
0000000000FFFFFFFFFFFF0000000000
0000000000FFFFFFFFFFFF0000000000
0000000000FFFFFFFFFFFF0000000000
0000000000FFFFFFFFFFFF0000000000
0000000000FFFFFFFFFFFFFF00000000
00000000FFFFFFFFFFFFFFFFFF000000
00000000FFFFFFFFFFFFFFFFFF000000
000000FFFFFFFFFFFFFFFFFFFFFF0000
000000FFFFFFFFFFFFFFFFFFFFFF0000
000000FFFFFFFFFFFFFFFFFFFFFF0000
00FFFFFFFFFFFFFFFFFFFFFFFFFF0000
00FFFFFFFFFFFFFFFFFFFFFFFFFFFF00
00FFFFFFFFFFFFFFFFFFFFFFFFFF0000
000000FFFFFFFFFFFFFFFFFFFF000000
</OS-BADGE-ICONS>
</CHRP-BOOT>
Loading…
Cancel
Save