Browse Source

fake:


			
			
				rocklinux
			
			
		
fake 20 years ago
parent
commit
3b6b1c7892
9 changed files with 217 additions and 1 deletions
  1. +0
    -1
      target/livecd/config.in
  2. +17
    -0
      target/livecd/powerpc/boot.msg
  3. +46
    -0
      target/livecd/powerpc/build.sh
  4. +10
    -0
      target/livecd/powerpc/mapping
  5. +64
    -0
      target/livecd/powerpc/ofboot.b
  6. +18
    -0
      target/livecd/powerpc/yaboot.conf
  7. +14
    -0
      target/livecd/sparc/boot.msg
  8. +27
    -0
      target/livecd/sparc/build.sh
  9. +21
    -0
      target/livecd/sparc/silo.conf

+ 0
- 1
target/livecd/config.in

@ -37,7 +37,6 @@ ROCKCFGSET_DIETLIBC_module_init_tools=1
ROCKCFGSET_DIETLIBC_kiss=1 ROCKCFGSET_DIETLIBC_kiss=1
ROCKCFGSET_DIETLIBC_gawk=1 ROCKCFGSET_DIETLIBC_gawk=1
ROCKCFGSET_PKG_TERMCAP_USEIT=1
ROCKCFGSET_PKG_GCC2_NO_CHILL=1 ROCKCFGSET_PKG_GCC2_NO_CHILL=1
ROCKCFGSET_PKG_GCC32_NO_JAVA=1 ROCKCFGSET_PKG_GCC32_NO_JAVA=1
ROCKCFGSET_PKG_GCC33_NO_JAVA=1 ROCKCFGSET_PKG_GCC33_NO_JAVA=1

+ 17
- 0
target/livecd/powerpc/boot.msg

@ -0,0 +1,17 @@
____ ___ ___ _ __ _
| _ \ / _ \ / __| |/ / | | _ _ __ _ _ _ _
| . _/| | | | | | '_/ | | |_| '_ \| | | | \/ |
| |\ \| |_| | |__| . \ | |__| | | | | `_' |> <
|_| \_\ ___/ \___|_|\_\ |____|_|_| |_|\___/|_/\_|
[============> http://www.rocklinux.org/ <============]
| L I V E CD |
+-------------+
Actions:
-------
<ENTER> Start live cd system
livecd-text <Enter> Start live cd system in text mode
livecd options <Enter> Start with the given options
.

+ 46
- 0
target/livecd/powerpc/build.sh

@ -0,0 +1,46 @@
cd $disksdir
echo_header "Creating cleaning boot directory:"
rm -rfv boot/*-rock boot/System.map boot/kconfig*
echo_header "Creating yaboot setup:"
#
echo_status "Extracting yaboot boot loader images."
mkdir -p boot etc
tar --use-compress-program=bzip2 \
-xf $base/build/${ROCKCFG_ID}/ROCK/pkgs/yaboot.tar.bz2 \
usr/lib/yaboot/yaboot -O > boot/yaboot
tar --use-compress-program=bzip2 \
-xf $base/build/${ROCKCFG_ID}/ROCK/pkgs/yaboot.tar.bz2 \
usr/lib/yaboot/yaboot.rs6k -O > boot/yaboot.rs6k
cp boot/yaboot.rs6k install.bin
#
echo_status "Creating yaboot config files."
cp -v $base/target/$target/powerpc/{boot.msg,ofboot.b} \
boot
(
echo "device=cdrom:"
cat $base/target/$target/powerpc/yaboot.conf
) > etc/yaboot.conf
(
echo "device=cd:"
cat $base/target/$target/powerpc/yaboot.conf
) > boot/yaboot.conf
#
echo_status "Moving image (initrd) to boot directory."
mv -v initrd.gz boot/
#
echo_status "Copy more config files."
cp -v $base/target/$target/powerpc/mapping .
#
datadir="build/${ROCKCFG_ID}/ROCK/bootdisk"
cat > ../isofs_arch.txt <<- EOT
BOOT -hfs -part -map $datadir/mapping -hfs-volid "ROCK_Linux_CD"
BOOTx -hfs-bless boot -sysid PPC -l -L -r -T -chrp-boot
BOOTx --prep-boot install.bin
DISK1 $datadir/boot/ boot/
DISK1 $datadir/etc/ etc/
DISK1 $datadir/install.bin install.bin
EOT

+ 10
- 0
target/livecd/powerpc/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
- 0
target/livecd/powerpc/ofboot.b

@ -0,0 +1,64 @@
<CHRP-BOOT>
<COMPATIBLE>
MacRISC MacRISC3
</COMPATIBLE>
<DESCRIPTION>
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>

+ 18
- 0
target/livecd/powerpc/yaboot.conf

@ -0,0 +1,18 @@
message=/boot/boot.msg
timeout = 120
default = livecd
## CD-ROM Installs ##
image=/boot/vmlinux
label=livecd
initrd=/boot/initrd.gz
initrd-size=8192
append="root=/dev/ram devfs=nocompat init=/linuxrc rw"
image=/boot/vmlinux
label=livecd-text
initrd=/boot/initrd.gz
initrd-size=8192
append="root=/dev/ram devfs=nocompat init=/linuxrc rw video=ofonly"

+ 14
- 0
target/livecd/sparc/boot.msg

@ -0,0 +1,14 @@
____ ___ ___ _ __ _
| _ \ / _ \ / __| |/ / | | _ _ __ _ _ _ _
| . _/| | | | | | '_/ | | |_| '_ \| | | | \/ |
| |\ \| |_| | |__| . \ | |__| | | | | `_' |> <
|_| \_\ ___/ \___|_|\_\ |____|_|_| |_|\___/|_/\_|
[============> http://www.rocklinux.org/ <============]
| L I V E CD |
+-------------+
Actions:
--------
<ENTER> Start live cd system

+ 27
- 0
target/livecd/sparc/build.sh

@ -0,0 +1,27 @@
cd $disksdir
echo_header "Creating cleaning boot directory:"
rm -rfv boot/*-rock boot/System.map boot/kconfig*
echo_header "Creating silo setup:"
#
echo_status "Extracting silo boot loader images."
mkdir -p boot
tar --use-compress-program=bzip2 \
-xf $base/build/${ROCKCFG_ID}/ROCK/pkgs/silo.tar.bz2 \
boot/second.b -O > boot/second.b
#
echo_status "Creating silo config file."
cp -v $base/target/$target/sparc/{silo.conf,boot.msg} \
boot
#
echo_status "Moving image (initrd) to boot directory."
mv -v initrd.gz boot/
#
buildroot="build/${ROCKCFG_ID}"
datadir="build/${ROCKCFG_ID}/ROCK/bootdisk"
cat > ../isofs_arch.txt <<- EOT
BOOT -G $buildroot/boot/isofs.b -B ...
DISK1 $datdir/boot/ boot/
EOT

+ 21
- 0
target/livecd/sparc/silo.conf

@ -0,0 +1,21 @@
partition=1
default=livecd
read-write
timeout=100
message=/boot/boot.msg
image[sun4u]=/boot/vmlinux64.gz
label=livecd
alias=linux
initrd=/boot/initrd.gz
ramdisk=8388608
append="root=/dev/ram devfs=nocompat init=/linuxrc rw"
image[sun4c,sun4d,sun4m]=/boot/vmlinux.gz
label=livecd
alias=linux
initrd=/boot/initrd.gz
ramdisk=8388608
append="root=/dev/ram devfs=nocompat init=/linuxrc rw"

Loading…
Cancel
Save