From: Ian Campbell <Ian.Campbell@citrix.com>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: xen-devel@lists.xen.org
Subject: Re: [PATCH OSSTEST v4 06/13] Osstest/Debian: support adding a rootdelay property to bootargs
Date: Wed, 21 Jan 2015 13:07:54 +0000 [thread overview]
Message-ID: <1421845674.13271.46.camel@citrix.com> (raw)
In-Reply-To: <21695.38004.760052.883970@mariner.uk.xensource.com>
On Wed, 2015-01-21 at 11:58 +0000, Ian Jackson wrote:
> Ian Campbell writes ("[PATCH OSSTEST v4 06/13] Osstest/Debian: support adding a rootdelay property to bootargs"):
> > arndale appears to be quite slow (and asynchronous) at finding it's
> > scsi controller. rootdelay=3 seems to do the trick.
> >
> > For the dom0 case this involved refactoring the existing provision of
> > the commandline to be less open-coded in the boot script here doc.
>
> The two hunks in this patch are starting to be rather similar.
> Perhaps it would be worth combining them ?
Yes it would. Below is the incremental patch to the end of the series,
which I will fold appropriately back into a precursor to do the refactor
and then this patch adding the rootdelay (nb I fixed the spacing you
complained about elsewhere while I was here).
Are you OK with me keeping your ack on this one once updated? It would
be essentially either of the two current hunks applied to the new
function instead.
BTW, another side effect is adding "ro" in the Xen case, which I think
was a bug to omit until now, I'll find an appropriate place to fix that.
Ian.
diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm
index 20485e2..a94f847 100644
--- a/Osstest/Debian.pm
+++ b/Osstest/Debian.pm
@@ -114,6 +114,21 @@ sub bl_getmenu_open ($$$) {
return $f;
}
+sub uboot_common_kernel_bootargs ($)
+{
+ my ( $ho ) = @_;
+
+ my $root= target_guest_lv_name($ho,"root");
+ my $rootdelay= get_host_property($ho, "rootdelay");
+
+ my @bootargs;
+ push @bootargs, "ro";
+ push @bootargs, "root=$root";
+ push @bootargs, "rootdelay=$rootdelay" if $rootdelay;
+
+ return @bootargs;
+}
+
sub uboot_scr_load_dtb () {
return <<'END';
if test -z "\${fdt_addr}" && test -n "\${fdtfile}" ; then
@@ -134,18 +149,12 @@ sub setupboot_uboot ($$$) {
my $kern = "vmlinuz-$want_kernver";
my $initrd = "initrd.img-$want_kernver";
- my $root= target_guest_lv_name($ho,"root");
- my $rootdelay=get_host_property($ho, "rootdelay");
my $natcons=get_host_native_linux_console($ho);
logm("Xen options: $xenhopt");
# Common kernel options
- my @kopt;
-
- push @kopt, "ro";
- push @kopt, "root=$root";
- push @kopt, "rootdelay=$rootdelay" if $rootdelay;
+ my @kopt = uboot_common_kernel_bootargs($ho);
# Dom0 specific kernel options
my @xenkopt = @kopt;
@@ -731,14 +740,10 @@ END
}
if ( $ho->{Flags}{'need-uboot-bootscr'} ) {
- my @bootargs;
+ my @bootargs = uboot_common_kernel_bootargs($ho);
- my $root=target_guest_lv_name($ho,"root");
- my $rootdelay=get_host_property($ho, "rootdelay");
my $console=get_host_native_linux_console($ho);
- push @bootargs, "root=$root";
- push @bootargs, "rootdelay=$rootdelay" if $rootdelay;
push @bootargs, "console=$console" unless $console eq "NONE";
my $bootargs = join ' ', @bootargs;
next prev parent reply other threads:[~2015-01-21 13:07 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-21 11:17 [PATCH OSSTEST v4 00/13] support for ARM32 arndale and cubietruck platforms Ian Campbell
2015-01-21 11:18 ` [PATCH OSSTEST v4 01/13] make-flight: Run a basic test on each arm platform Ian Campbell
2015-01-21 11:18 ` [PATCH OSSTEST v4 02/13] Osstest/PDU: Add eth008.pm method to control the ARM rack PDU Ian Campbell
2015-01-21 11:43 ` Ian Jackson
2015-01-21 11:18 ` [PATCH OSSTEST v4 03/13] Osstest/Debian: Install dtbs into target filesystem in /boot/dtbs Ian Campbell
2015-01-21 11:44 ` Ian Jackson
2015-01-21 11:18 ` [PATCH OSSTEST v4 04/13] Osstest/Debian: Support for loading an FDT from u-boot script Ian Campbell
2015-01-21 11:18 ` [PATCH OSSTEST v4 05/13] Osstest/Debian: Refactor setting of dom0 kernel command line Ian Campbell
2015-01-21 11:47 ` Ian Jackson
2015-01-21 11:18 ` [PATCH OSSTEST v4 06/13] Osstest/Debian: support adding a rootdelay property to bootargs Ian Campbell
2015-01-21 11:58 ` Ian Jackson
2015-01-21 13:07 ` Ian Campbell [this message]
2015-01-21 16:18 ` Ian Jackson
2015-01-21 11:18 ` [PATCH OSSTEST v4 07/13] Osstest/Debian: Remove hardcoded addresses from boot.scr Ian Campbell
2015-01-21 12:00 ` Ian Jackson
2015-01-21 12:25 ` Ian Campbell
2015-01-21 11:18 ` [PATCH OSSTEST v4 08/13] Osstest/Debian: Add "clk_ignore_unused" to default command line Ian Campbell
2015-01-21 12:01 ` Ian Jackson
2015-01-21 12:02 ` Ian Jackson
2015-01-21 13:12 ` Ian Campbell
2015-01-21 16:18 ` Ian Jackson
2015-01-21 11:18 ` [PATCH OSSTEST v4 09/13] Osstest/Debian: Add 0x prefix to $filesize Ian Campbell
2015-01-21 12:04 ` Ian Jackson
2015-01-21 12:22 ` Ian Campbell
2015-01-21 15:08 ` Ian Jackson
2015-01-21 11:18 ` [PATCH OSSTEST v4 10/13] ts-kernel-build: Adjust kernel .config to work on the arndale boards Ian Campbell
2015-01-21 12:05 ` Ian Jackson
2015-01-21 13:20 ` Ian Campbell
2015-01-21 14:04 ` Ian Campbell
2015-01-21 16:20 ` Ian Jackson
2015-01-21 16:31 ` Ian Campbell
2015-01-21 16:36 ` Ian Jackson
2015-01-21 16:50 ` Ian Campbell
2015-01-21 17:01 ` Ian Jackson
2015-01-21 11:18 ` [PATCH OSSTEST v4 11/13] Debian: Create boot.scr with a suffix and copy to boot.scr Ian Campbell
2015-01-21 12:08 ` Ian Jackson
2015-01-21 12:27 ` Ian Campbell
2015-01-21 11:18 ` [PATCH OSSTEST v4 12/13] TestSupport: replace power_cycle_timeout with power_cycle_sleep Ian Campbell
2015-01-21 12:09 ` Ian Jackson
2015-01-21 11:18 ` [PATCH OSSTEST v4 13/13] Debian: create boot.scr.nat when installing Xen on u-boot Ian Campbell
2015-01-21 12:12 ` Ian Jackson
2015-01-29 9:54 ` [PATCH OSSTEST v4 00/13] support for ARM32 arndale and cubietruck platforms Ian Campbell
2015-01-29 11:25 ` Ian Jackson
2015-01-29 11:44 ` Ian Campbell
2015-01-29 11:54 ` 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=1421845674.13271.46.camel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.