Add support for sarge bootable mipsel cds (delo based).

This is the first time we use delo for this, and it still have some
issues that won't be worked out before sarge, so we must workaround
them. There is work to be done in mipsel support, see the mipsel
installation reports in the lists and comment on how we can solve
this issues.
This commit is contained in:
Santiago Garcia Mantinan 2004-06-07 09:07:49 +00:00
parent 8ed401c8f3
commit 0b02488a7c
4 changed files with 131 additions and 0 deletions

19
data/sarge/delo.conf Normal file
View File

@ -0,0 +1,19 @@
# DECstations with R4000 CPU
label=linux-kn04
append="initrd=/boot/initrd.gz ramdisk_size=8192"
image=/boot/vmlinux-r4k-kn04
# DECstations with R4000 CPU, expert mode
label=expert-kn04
append="DEBCONF_PRIORITY=low initrd=/boot/initrd.gz ramdisk_size=8192"
image=/boot/vmlinux-r4k-kn04
# DECstations with R3000 CPU
label=linux-kn02
append="initrd=/boot/initrd.gz ramdisk_size=8192"
image=/boot/vmlinux-r3k-kn02
# DECstations with R3000 CPU, expert mode
label=expert-kn02
append="DEBCONF_PRIORITY=low initrd=/boot/initrd.gz ramdisk_size=8192"
image=/boot/vmlinux-r3k-kn02

1
debian/changelog vendored
View File

@ -71,6 +71,7 @@ debian-cd (2.2.18) UNRELEASED; urgency=low
This should be fixed in a proper way when time permits.
- Make fast_sums ignore md5sums of files not in the pool directory.
Closes: #247889
- Add support for sarge bootable mipsel cds (delo based), needs work.
* Bdale Garbee
- shorten the command line in post-boot-hppa for sarge, as palo can't
handle a command line longer than 127 chars right now

65
tools/boot/sarge/boot-mipsel Executable file
View File

@ -0,0 +1,65 @@
#!/bin/bash
#
# boot-mipsel - (C) 2002 by Karsten Merker <merker@debian.org>
#
# You may copy, modify and distribute this under the terms of the GNU
# General Public License as published by the Free Software Foundation;
# either version 2 of the License, or (at your option) any later version.
#
# Using this script on any architecture other than mipsel requires
# having binutils-multiarch installed, as it uses objcopy (a part
# of binutils) which is platform dependent. The binutils-multiarch
# package contains an objcopy which is capable of dealing with other
# arches' binary formats.
#
# $1 is the CD number
# $2 is the temporary CD build dir
. $BASEDIR/tools/boot/$CODENAME/common.sh
set -e
N=$1
CDROOT=$2
if [ "$DI_WWW_HOME" = "default" ];then
DI_WWW_HOME="http://people.debian.org/~tbm/d-i/images/mipsel/daily/"
fi
if [ ! "$DI_DIST" ]; then
DI_DIST="$DI_CODENAME"
fi
# Strip NONUS part of disk number
# NN will be 1...N so it can be used as an index
#
NN=`echo $N | sed -e 's/_NONUS//'`
cd $CDROOT/..
echo -J > $1.mkisofs_opts
# Only disks 1 bootable
if [ $NN != 1 ]; then
exit 0
fi
install -m 644 -D $BASEDIR/data/sarge/delo.conf "$CDROOT"/etc/delo.conf
install -m 644 -D "$DELOROOT"/boot/delo.2nd "$CDROOT"/boot/delo.2nd
if [ ! "$DI_WWW_HOME" ];then
DI_DIR="$MIRROR/dists/$DI_DIST/main/installer-$ARCH/current/images/cdrom/"
else
DI_DIR="."
wget "$DI_WWW_HOME" -O di.dir
r3k=$(sed -n 's/.*a href="\(vmlinux-.*-r3k-kn02\)".*/\1/p' di.dir)
r4k=$(sed -n 's/.*a href="\(vmlinux-.*-r4k-kn04\)".*/\1/p' di.dir)
wget "$DI_WWW_HOME/$r3k" -O vmlinux-x-r3k-kn02
wget "$DI_WWW_HOME/$r4k" -O vmlinux-x-r4k-kn04
wget "$DI_WWW_HOME/initrd.gz"
fi
cp "$DI_DIR"/initrd.gz "$CDROOT/boot/initrd.gz"
cp "$DI_DIR"/vmlinux-*-r3k-kn02 "$CDROOT/boot/vmlinux-r3k-kn02"
cp "$DI_DIR"/vmlinux-*-r4k-kn04 "$CDROOT/boot/vmlinux-r4k-kn04"
install_languages $CDROOT
exit 0

View File

@ -0,0 +1,46 @@
#!/bin/bash
#
# post-boot-mipsel - (C) 2002 by Karsten Merker <merker@debian.org>
#
# Do post-image-building tasks for mipsel, to make CDs bootable.
# requires delo >= 0.8
#
# You may copy, modify and distribute this under the terms of the GNU
# General Public License as published by the Free Software Foundation;
# either version 2 of the License, or (at your option) any later version.
#
# Using this script on any architecture other than mipsel requires
# having binutils-multiarch installed, as it uses objdump (a part
# of binutils) which is platform dependent. The binutils-multiarch
# package contains an objdump which is capable of dealing with other
# arches' binary formats.
#
# $1 is the CD number
# $2 is the temporary CD build dir
# $3 is the image file
set -e
N=$1
CDROOT=$2
CDIMAGE=$3
echo "post-boot-mipsel called"
echo "pwd=${PWD}, N=$N, CDROOT=${CDROOT}, CDIMAGE=${CDIMAGE}"
# Strip NONUS part of disk number
# NN will be 1...N so it can be used as an index
#
NN=`echo $N | sed -e 's/_NONUS//'`
cd $CDROOT/..
# Only disk 1 bootable
if [ $NN != 1 ]; then
exit 0
fi
"$DELOROOT"/sbin/delo -r "$CDIMAGE" -d
exit 0