From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: [PATCH OSSTEST v4 13/13] Debian: create boot.scr.nat when installing Xen on u-boot. Date: Wed, 21 Jan 2015 11:18:14 +0000 Message-ID: <1421839094-10857-13-git-send-email-ian.campbell@citrix.com> References: <1421839070.4899.8.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1421839070.4899.8.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: ian.jackson@eu.citrix.com Cc: Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org This boots the kernel we've build natively, where boot.xen boots Xen and boot.deb boots the original Debian kernel. Sometimes convenient when debugging issues. Signed-off-by: Ian Campbell --- v4: New patch --- Osstest/Debian.pm | 40 ++++++++++++++++++++++++++++++++++------ 1 file changed, 34 insertions(+), 6 deletions(-) diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm index 8169c01..20485e2 100644 --- a/Osstest/Debian.pm +++ b/Osstest/Debian.pm @@ -136,18 +136,32 @@ sub setupboot_uboot ($$$) { my $root= target_guest_lv_name($ho,"root"); my $rootdelay=get_host_property($ho, "rootdelay"); + my $natcons=get_host_native_linux_console($ho); - my @xenkopt; + logm("Xen options: $xenhopt"); + + # Common kernel options + my @kopt; + + push @kopt, "ro"; + push @kopt, "root=$root"; + push @kopt, "rootdelay=$rootdelay" if $rootdelay; + + # Dom0 specific kernel options + my @xenkopt = @kopt; push @xenkopt, $xenkopt; - push @xenkopt, "ro"; - push @xenkopt, "root=$root"; push @xenkopt, "clk_ignore_unused"; # http://bugs.xenproject.org/xen/bug/45 - push @xenkopt, "rootdelay=$rootdelay" if $rootdelay; $xenkopt = join ' ', @xenkopt; + logm("Dom0 Linux options: $xenkopt"); - logm("Xen options: $xenhopt"); - logm("Linux options: $xenkopt"); + # Native specific kernel options + + my @natkopt = @kopt; + push @natkopt, "console=$natcons" unless $natcons eq "NONE"; + + my $natkopt = join ' ', @natkopt; + logm("Native linux options: $natkopt"); my $early_commands = get_host_property($ho, 'UBootScriptEarlyCommands', ''); my $xen_addr_r = get_host_property($ho, 'UBootSetXenAddrR', undef); @@ -205,6 +219,20 @@ bootz \\\${xen_addr_r} - \\\${fdt_addr} EOF mkimage -A arm -T script -d /boot/boot.xen /boot/boot.scr.xen cp /boot/boot.scr.xen /boot/boot.scr + +# Create boot.scr.nat for convenience too +cat >/boot/boot.nat <