[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 08/10] Debian: New host flag need-uboot-bootstr
At the moment this only generates the necessary script for a Calxeda Midway system. It will no doubt need to be made cleverer in the future... u-boot-tools are installed unconditionally, they are harmless unless you explicitly invoke one of them --- Osstest/Debian.pm | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm index 92d97a9..91a300d 100644 --- a/Osstest/Debian.pm +++ b/Osstest/Debian.pm @@ -470,6 +470,35 @@ in-target apt-get install -f -y END } + if ( $ho->{Flags}{'need-uboot-bootscr'} ) { + my $vg = "$ho->{Name}-p0"; # host name is p0 + + $vg =~ s/-/--/g; # Escape the dashes + my $root="/dev/mapper/$vg-root"; + + preseed_hook_command($ho, 'late_command', $sfx, <<END); +#!/bin/sh +set -ex + +r=/target + + +kernel=`readlink \$r/vmlinuz | sed -e 's|boot/||'` +initrd=`readlink \$r/initrd.img | sed -e 's|boot/||'` + +cat >\$r/boot/boot <<EOF +setenv bootargs console=ttyAMA0 root=$root +mw.l 800000 0 10000 +scsi scan +ext2load scsi 0 0x800000 \$kernel +ext2load scsi 0 0x1000000 \$initrd +bootz 0x800000 0x1000000:\\\${filesize} 0x1000 +EOF + +in-target mkimage -A arm -T script -d /boot/boot /boot/boot.scr +END + } + my $preseed_file= (<<END); d-i mirror/suite string $suite @@ -551,7 +580,7 @@ console-data console-data/keymap/template/layout select British popularity-contest popularity-contest/participate boolean false tasksel tasksel/first multiselect standard, web-server -d-i pkgsel/include string openssh-server +d-i pkgsel/include string openssh-server, u-boot-tools d-i grub-installer/only_debian boolean true -- 1.7.10.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |