From: Ian Campbell <ian.campbell@citrix.com>
To: ian.jackson@eu.citrix.com
Cc: Ian Campbell <ian.campbell@citrix.com>, xen-devel@lists.xen.org
Subject: [PATCH 08/10] Debian: New host flag need-uboot-bootstr
Date: Wed, 4 Sep 2013 17:58:21 +0100 [thread overview]
Message-ID: <1378313903-10539-8-git-send-email-ian.campbell@citrix.com> (raw)
In-Reply-To: <1378313870.17510.172.camel@kazak.uk.xensource.com>
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
next prev parent reply other threads:[~2013-09-04 16:58 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-04 16:57 [PATCH osstest 00/10] Add initial support for testing arm32 on arm servers (Calxeda Midway) Ian Campbell
2013-09-04 16:58 ` [PATCH 01/10] README: Point to current test report mail Ian Campbell
2013-09-04 16:58 ` [PATCH 02/10] Allow hyphen in host names when parsing properties Ian Campbell
2013-09-04 16:58 ` [PATCH 03/10] standalone-reset: configure for armhf too Ian Campbell
2013-09-04 16:58 ` [PATCH 04/10] mg-debian-installer-update: support armhf Ian Campbell
2013-09-04 16:58 ` [PATCH 05/10] ts-host-install: Support for different console devices Ian Campbell
2013-09-04 16:58 ` [PATCH 06/10] ts-host-install: Add need-kernel-deb host flag Ian Campbell
2013-09-04 16:58 ` [PATCH 07/10] Debian: Honour need-kernel-deb- flag in the installed system too Ian Campbell
2013-09-04 16:58 ` Ian Campbell [this message]
2013-09-04 16:58 ` [PATCH 09/10] Debian: New host flag "no-di-kernel" Ian Campbell
2013-09-04 16:58 ` [PATCH 10/10] make-flight: make an armhf flight Ian Campbell
2013-09-04 17:42 ` [PATCH osstest 00/10] Add initial support for testing arm32 on arm servers (Calxeda Midway) Ian Campbell
2013-09-05 11:27 ` Ian Campbell
2013-09-05 11:31 ` Ian Jackson
2013-09-05 11:36 ` Ian Campbell
2013-09-06 15:12 ` Ian Campbell
2013-09-06 16:13 ` Ian Jackson
2013-09-09 9:51 ` Ian Campbell
2013-09-10 16:54 ` Ian Jackson
2013-09-11 9:24 ` Ian Campbell
2013-09-11 16:17 ` Ian Jackson
2013-09-12 8:46 ` Ian Campbell
2013-09-12 11:00 ` Ian Jackson
2013-09-12 11:19 ` Ian Campbell
2013-09-12 14:22 ` Ian Jackson
2013-09-12 14:27 ` Ian Campbell
2013-09-12 11:28 ` Ian Campbell
2013-09-12 14:46 ` Ian Jackson
2013-09-10 16:54 ` Ian Jackson
2013-09-09 10:01 ` Ian Campbell
2013-09-09 10:34 ` Ian Campbell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1378313903-10539-8-git-send-email-ian.campbell@citrix.com \
--to=ian.campbell@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).