diff --git a/target/livecd/config.in b/target/livecd/config.in index 437ad35c7..e61098fd2 100644 --- a/target/livecd/config.in +++ b/target/livecd/config.in @@ -37,7 +37,6 @@ ROCKCFGSET_DIETLIBC_module_init_tools=1 ROCKCFGSET_DIETLIBC_kiss=1 ROCKCFGSET_DIETLIBC_gawk=1 -ROCKCFGSET_PKG_TERMCAP_USEIT=1 ROCKCFGSET_PKG_GCC2_NO_CHILL=1 ROCKCFGSET_PKG_GCC32_NO_JAVA=1 ROCKCFGSET_PKG_GCC33_NO_JAVA=1 diff --git a/target/livecd/powerpc/boot.msg b/target/livecd/powerpc/boot.msg new file mode 100644 index 000000000..3a12df2b6 --- /dev/null +++ b/target/livecd/powerpc/boot.msg @@ -0,0 +1,17 @@ + ____ ___ ___ _ __ _ + | _ \ / _ \ / __| |/ / | | _ _ __ _ _ _ _ + | . _/| | | | | | '_/ | | |_| '_ \| | | | \/ | + | |\ \| |_| | |__| . \ | |__| | | | | `_' |> < + |_| \_\ ___/ \___|_|\_\ |____|_|_| |_|\___/|_/\_| + [============> http://www.rocklinux.org/ <============] + | L I V E CD | + +-------------+ + +Actions: +------- + + Start live cd system + livecd-text Start live cd system in text mode + livecd options Start with the given options + +. diff --git a/target/livecd/powerpc/build.sh b/target/livecd/powerpc/build.sh new file mode 100644 index 000000000..da2bf6c1f --- /dev/null +++ b/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 + diff --git a/target/livecd/powerpc/mapping b/target/livecd/powerpc/mapping new file mode 100644 index 000000000..34c898f43 --- /dev/null +++ b/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" + diff --git a/target/livecd/powerpc/ofboot.b b/target/livecd/powerpc/ofboot.b new file mode 100644 index 000000000..3b6187718 --- /dev/null +++ b/target/livecd/powerpc/ofboot.b @@ -0,0 +1,64 @@ + + +MacRISC MacRISC3 + + +GNU/Linux PPC bootloader + + +" screen" output +load-base release-load-area +boot cd:,\\yaboot + + +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 + + diff --git a/target/livecd/powerpc/yaboot.conf b/target/livecd/powerpc/yaboot.conf new file mode 100644 index 000000000..24d79bace --- /dev/null +++ b/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" + diff --git a/target/livecd/sparc/boot.msg b/target/livecd/sparc/boot.msg new file mode 100644 index 000000000..da6b6ef62 --- /dev/null +++ b/target/livecd/sparc/boot.msg @@ -0,0 +1,14 @@ + ____ ___ ___ _ __ _ + | _ \ / _ \ / __| |/ / | | _ _ __ _ _ _ _ + | . _/| | | | | | '_/ | | |_| '_ \| | | | \/ | + | |\ \| |_| | |__| . \ | |__| | | | | `_' |> < + |_| \_\ ___/ \___|_|\_\ |____|_|_| |_|\___/|_/\_| + [============> http://www.rocklinux.org/ <============] + | L I V E CD | + +-------------+ + +Actions: +-------- + + Start live cd system + diff --git a/target/livecd/sparc/build.sh b/target/livecd/sparc/build.sh new file mode 100644 index 000000000..d5933f455 --- /dev/null +++ b/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 diff --git a/target/livecd/sparc/silo.conf b/target/livecd/sparc/silo.conf new file mode 100644 index 000000000..1f143faea --- /dev/null +++ b/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" +