* [PATCH OSSTEST 0/8] Use the DTB provided by the kernel we are trying to boot
@ 2015-10-02 9:25 Ian Campbell
2015-10-02 9:26 ` [PATCH OSSTEST 1/8] Osstest: Add %arch_debian2linux (and inverse) Ian Campbell
` (7 more replies)
0 siblings, 8 replies; 24+ messages in thread
From: Ian Campbell @ 2015-10-02 9:25 UTC (permalink / raw)
To: ian.jackson, xen-devel
On ARM we have been booting using the DTBS provided by the host Debian
kernel package (i.e. the ones from 3.16) even when we are booting a
Xen+kernel which we have built ourselves.
Recent Linux kernels (at least linux-next and linux-linus, perhaps mingo
-tip too) have changes which are incompatible with these older kernels
which stop the kernel from booting on Cubietruck (even natively).
Despite what I thought there is apparently[0] no ABI here. In any case
testing the newer DTBs is desirable so here is a series to switch to doing
so.
Ian.
[0] http://lists.infradead.org/pipermail/linux-arm-kernel/2015-October/3739
22.html
^ permalink raw reply [flat|nested] 24+ messages in thread
* [PATCH OSSTEST 1/8] Osstest: Add %arch_debian2linux (and inverse)
2015-10-02 9:25 [PATCH OSSTEST 0/8] Use the DTB provided by the kernel we are trying to boot Ian Campbell
@ 2015-10-02 9:26 ` Ian Campbell
2015-10-05 16:18 ` Ian Jackson
2015-10-02 9:26 ` [PATCH OSSTEST 2/8] ts-kernel-build: Introduce global $parms Ian Campbell
` (6 subsequent siblings)
7 siblings, 1 reply; 24+ messages in thread
From: Ian Campbell @ 2015-10-02 9:26 UTC (permalink / raw)
To: ian.jackson, xen-devel; +Cc: Ian Campbell
Modelled after %arch_debian2xen.
Will be used in ts-kernel-build.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
---
Osstest.pm | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/Osstest.pm b/Osstest.pm
index fc8334d..118b7d9 100644
--- a/Osstest.pm
+++ b/Osstest.pm
@@ -40,7 +40,9 @@ BEGIN {
db_begin_work db_prepare
ensuredir get_filecontents_core_quiet system_checked
nonempty visible_undef show_abs_time
- %arch_debian2xen %arch_xen2debian $cfgvar_re
+ %arch_debian2xen %arch_xen2debian
+ %arch_debian2linux %arch_linux2debian
+ $cfgvar_re
);
%EXPORT_TAGS = ( );
@@ -62,6 +64,12 @@ our %arch_debian2xen = qw(i386 x86_32
our %arch_xen2debian;
$arch_xen2debian{$arch_debian2xen{$_}} = $_ foreach keys %arch_debian2xen;
+our %arch_debian2linux = qw(i386 x86
+ amd64 x86
+ armhf arm);
+our %arch_linux2debian;
+$arch_linux2debian{$arch_debian2linux{$_}} = $_ foreach keys %arch_debian2linux;
+
our $cfgvar_re = '[A-Z][0-9a-zA-Z-_]*';
#---------- static default config settings ----------
--
2.5.3
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH OSSTEST 2/8] ts-kernel-build: Introduce global $parms
2015-10-02 9:25 [PATCH OSSTEST 0/8] Use the DTB provided by the kernel we are trying to boot Ian Campbell
2015-10-02 9:26 ` [PATCH OSSTEST 1/8] Osstest: Add %arch_debian2linux (and inverse) Ian Campbell
@ 2015-10-02 9:26 ` Ian Campbell
2015-10-05 16:18 ` Ian Jackson
2015-10-02 9:26 ` [PATCH OSSTEST 3/8] ts-kernel-build: Refactor $archparams::DefConfig selection Ian Campbell
` (5 subsequent siblings)
7 siblings, 1 reply; 24+ messages in thread
From: Ian Campbell @ 2015-10-02 9:26 UTC (permalink / raw)
To: ian.jackson, xen-devel; +Cc: Ian Campbell
Which contains the relevant details from %archparms, making the use
sites simpler.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
---
ts-kernel-build | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/ts-kernel-build b/ts-kernel-build
index 33d770c..9d6cd9e 100755
--- a/ts-kernel-build
+++ b/ts-kernel-build
@@ -46,6 +46,7 @@ my $archparms = {
'i386' => { DefConfig => 'defconfig', KernelImage => 'arch/x86/boot/bzImage' },
'amd64' => { DefConfig => 'defconfig', KernelImage => 'arch/x86/boot/bzImage' }
};
+my $parms = $archparms->{ $r{arch} };
sub enable_xen_config ();
@@ -333,7 +334,7 @@ END
ed <$edscript enable-xen-config
chmod +x enable-xen-config
cd linux
- make $archparms->{ $r{arch} }->{DefConfig}
+ make $parms->{DefConfig}
# ARM defconfig omits modules for some reason...
sed -e "s/^# CONFIG_MODULES is not set\$/CONFIG_MODULES=y/g" -i .config
../enable-xen-config .config
@@ -376,7 +377,7 @@ END
sub kinstall () {
my $kernfile= $r{kimagefile};
- $kernfile= $archparms->{$r{arch}}->{KernelImage} if !defined $kernfile;
+ $kernfile= $parms->{KernelImage} if !defined $kernfile;
target_cmd_build($ho, 300, $builddir, <<END);
mkdir -p dist/boot dist/lib/modules
--
2.5.3
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH OSSTEST 3/8] ts-kernel-build: Refactor $archparams::DefConfig selection
2015-10-02 9:25 [PATCH OSSTEST 0/8] Use the DTB provided by the kernel we are trying to boot Ian Campbell
2015-10-02 9:26 ` [PATCH OSSTEST 1/8] Osstest: Add %arch_debian2linux (and inverse) Ian Campbell
2015-10-02 9:26 ` [PATCH OSSTEST 2/8] ts-kernel-build: Introduce global $parms Ian Campbell
@ 2015-10-02 9:26 ` Ian Campbell
2015-10-05 16:19 ` Ian Jackson
2015-10-02 9:26 ` [PATCH OSSTEST 4/8] ts-kernel-build: Refactor $archparams KernelImage handling Ian Campbell
` (4 subsequent siblings)
7 siblings, 1 reply; 24+ messages in thread
From: Ian Campbell @ 2015-10-02 9:26 UTC (permalink / raw)
To: ian.jackson, xen-devel; +Cc: Ian Campbell
This is always either "foo_defconfig" or "defconfig". Record only
"foo" or undef and construct the name.
This makes the $archparams less verbose.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
---
ts-kernel-build | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/ts-kernel-build b/ts-kernel-build
index 9d6cd9e..8443754 100755
--- a/ts-kernel-build
+++ b/ts-kernel-build
@@ -42,9 +42,9 @@ selectbuildhost(\@ARGV);
builddirsprops();
my $archparms = {
- 'armhf' => { DefConfig => 'multi_v7_defconfig', KernelImage => 'arch/arm/boot/zImage' },
- 'i386' => { DefConfig => 'defconfig', KernelImage => 'arch/x86/boot/bzImage' },
- 'amd64' => { DefConfig => 'defconfig', KernelImage => 'arch/x86/boot/bzImage' }
+ 'armhf' => { DefConfig => 'multi_v7', KernelImage => 'arch/arm/boot/zImage' },
+ 'i386' => { KernelImage => 'arch/x86/boot/bzImage' },
+ 'amd64' => { KernelImage => 'arch/x86/boot/bzImage' }
};
my $parms = $archparms->{ $r{arch} };
@@ -330,11 +330,13 @@ END
target_putfilecontents_stash($ho,100,enable_xen_config(),
"$builddir/enable-xen-config");
+ my $defconfig = $parms->{DefConfig} ?
+ $parms->{DefConfig}."_defconfig" : "defconfig";
target_cmd_build($ho, 1000, $builddir, <<END);
ed <$edscript enable-xen-config
chmod +x enable-xen-config
cd linux
- make $parms->{DefConfig}
+ make $defconfig
# ARM defconfig omits modules for some reason...
sed -e "s/^# CONFIG_MODULES is not set\$/CONFIG_MODULES=y/g" -i .config
../enable-xen-config .config
--
2.5.3
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH OSSTEST 4/8] ts-kernel-build: Refactor $archparams KernelImage handling
2015-10-02 9:25 [PATCH OSSTEST 0/8] Use the DTB provided by the kernel we are trying to boot Ian Campbell
` (2 preceding siblings ...)
2015-10-02 9:26 ` [PATCH OSSTEST 3/8] ts-kernel-build: Refactor $archparams::DefConfig selection Ian Campbell
@ 2015-10-02 9:26 ` Ian Campbell
2015-10-05 16:19 ` Ian Jackson
2015-10-02 9:26 ` [PATCH OSSTEST 5/8] ts-kernel-build: Add arm64 support Ian Campbell
` (3 subsequent siblings)
7 siblings, 1 reply; 24+ messages in thread
From: Ian Campbell @ 2015-10-02 9:26 UTC (permalink / raw)
To: ian.jackson, xen-devel; +Cc: Ian Campbell
This is always arch/$karch/boot/$img. Store $img in %archparms and use
%arch_debian2linux to construct the full path as needed.
This makes the $archparams less verbose.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
---
ts-kernel-build | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/ts-kernel-build b/ts-kernel-build
index 8443754..7240b5e 100755
--- a/ts-kernel-build
+++ b/ts-kernel-build
@@ -42,9 +42,9 @@ selectbuildhost(\@ARGV);
builddirsprops();
my $archparms = {
- 'armhf' => { DefConfig => 'multi_v7', KernelImage => 'arch/arm/boot/zImage' },
- 'i386' => { KernelImage => 'arch/x86/boot/bzImage' },
- 'amd64' => { KernelImage => 'arch/x86/boot/bzImage' }
+ 'armhf' => { DefConfig => 'multi_v7', Image => 'zImage' },
+ 'i386' => { Image => 'bzImage' },
+ 'amd64' => { Image => 'bzImage' }
};
my $parms = $archparms->{ $r{arch} };
@@ -379,7 +379,9 @@ END
sub kinstall () {
my $kernfile= $r{kimagefile};
- $kernfile= $parms->{KernelImage} if !defined $kernfile;
+ my $karch = $arch_debian2linux{$r{arch}};
+ $kernfile = "arch/$karch/boot/$parms->{Image}"
+ if !defined $kernfile;
target_cmd_build($ho, 300, $builddir, <<END);
mkdir -p dist/boot dist/lib/modules
--
2.5.3
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH OSSTEST 5/8] ts-kernel-build: Add arm64 support
2015-10-02 9:25 [PATCH OSSTEST 0/8] Use the DTB provided by the kernel we are trying to boot Ian Campbell
` (3 preceding siblings ...)
2015-10-02 9:26 ` [PATCH OSSTEST 4/8] ts-kernel-build: Refactor $archparams KernelImage handling Ian Campbell
@ 2015-10-02 9:26 ` Ian Campbell
2015-10-05 16:20 ` Ian Jackson
2015-10-02 9:26 ` [PATCH OSSTEST 6/8] ts-kernel-build: Include dtbs in dist file Ian Campbell
` (2 subsequent siblings)
7 siblings, 1 reply; 24+ messages in thread
From: Ian Campbell @ 2015-10-02 9:26 UTC (permalink / raw)
To: ian.jackson, xen-devel; +Cc: Ian Campbell
And to Osstest::%arch_debian2*.
Untested (but hopefully pretty obvious).
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
---
Note that this replaces a hunk in "Add arm64 build and test jobs"
---
Osstest.pm | 6 ++++--
ts-kernel-build | 1 +
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/Osstest.pm b/Osstest.pm
index 118b7d9..e8b8d88 100644
--- a/Osstest.pm
+++ b/Osstest.pm
@@ -60,13 +60,15 @@ scalar *main::DEBUG;
our %arch_debian2xen = qw(i386 x86_32
amd64 x86_64
- armhf armhf);
+ armhf armhf
+ arm64 arm64);
our %arch_xen2debian;
$arch_xen2debian{$arch_debian2xen{$_}} = $_ foreach keys %arch_debian2xen;
our %arch_debian2linux = qw(i386 x86
amd64 x86
- armhf arm);
+ armhf arm
+ arm64 arm64);
our %arch_linux2debian;
$arch_linux2debian{$arch_debian2linux{$_}} = $_ foreach keys %arch_debian2linux;
diff --git a/ts-kernel-build b/ts-kernel-build
index 7240b5e..e30b1c9 100755
--- a/ts-kernel-build
+++ b/ts-kernel-build
@@ -42,6 +42,7 @@ selectbuildhost(\@ARGV);
builddirsprops();
my $archparms = {
+ 'arm64' => { Image => 'Image' },
'armhf' => { DefConfig => 'multi_v7', Image => 'zImage' },
'i386' => { Image => 'bzImage' },
'amd64' => { Image => 'bzImage' }
--
2.5.3
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH OSSTEST 6/8] ts-kernel-build: Include dtbs in dist file
2015-10-02 9:25 [PATCH OSSTEST 0/8] Use the DTB provided by the kernel we are trying to boot Ian Campbell
` (4 preceding siblings ...)
2015-10-02 9:26 ` [PATCH OSSTEST 5/8] ts-kernel-build: Add arm64 support Ian Campbell
@ 2015-10-02 9:26 ` Ian Campbell
2015-10-05 16:22 ` Ian Jackson
2015-10-02 9:26 ` [PATCH OSSTEST 7/8] Debian: Enable interpolation in uboot_scr_load_dtb here doc Ian Campbell
2015-10-02 9:26 ` [PATCH OSSTEST 8/8] Debian: Use dtbs from kernel dist when booting that kernel Ian Campbell
7 siblings, 1 reply; 24+ messages in thread
From: Ian Campbell @ 2015-10-02 9:26 UTC (permalink / raw)
To: ian.jackson, xen-devel; +Cc: Ian Campbell
These are installed to $(INSTALL_PATH)/dtbs/$(KERNEL_RELEASE) where
$(INSTALL_PATH) defaults to /boot but we override it to our staging
/boot.
Note that ts-host-install will install the OS dtbs directly into
/boot/dtbs without the subdirectory, so this won't clash and could be
considered a fallback hence I don't propose to move those ones.
The install_dtbs target has been available since v3.14, wherease we
only test v3.16 onwards on ARM, hence no arrangements are needed to
conditionalise this installation over and above the per-arch
arrangements made here.
Having now set $(INSTALL_PATH) I think the "install" target could now
take over the installation of System.map, vmlinux and .config into
/boot but I've not checked this with all historical kernel versions
and don't intend to make this change now.
Remove any previous dist dir on install, otherwise the kernel tends to
create dist/boot/dtbs.old with the previous contents on repeated use.
Seems like good hygiene anyway.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
---
ts-kernel-build | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git a/ts-kernel-build b/ts-kernel-build
index e30b1c9..8d906a5 100755
--- a/ts-kernel-build
+++ b/ts-kernel-build
@@ -42,10 +42,10 @@ selectbuildhost(\@ARGV);
builddirsprops();
my $archparms = {
- 'arm64' => { Image => 'Image' },
- 'armhf' => { DefConfig => 'multi_v7', Image => 'zImage' },
- 'i386' => { Image => 'bzImage' },
- 'amd64' => { Image => 'bzImage' }
+ 'arm64' => { Image => 'Image', Dtbs => 1 },
+ 'armhf' => { DefConfig => 'multi_v7', Image => 'zImage', Dtbs => 1 },
+ 'i386' => { Image => 'bzImage' },
+ 'amd64' => { Image => 'bzImage' }
};
my $parms = $archparms->{ $r{arch} };
@@ -384,10 +384,17 @@ sub kinstall () {
$kernfile = "arch/$karch/boot/$parms->{Image}"
if !defined $kernfile;
+ my $dtbs_install = '';
+ $dtbs_install = 'dtbs_install' if $parms->{Dtbs};
+
target_cmd_build($ho, 300, $builddir, <<END);
+ rm -rf dist
mkdir -p dist/boot dist/lib/modules
cd linux
- make $makeflags INSTALL_MOD_PATH=$builddir/dist modules_install
+ make $makeflags \\
+ INSTALL_PATH=$builddir/dist/boot \\
+ INSTALL_MOD_PATH=$builddir/dist modules_install \\
+ $dtbs_install
cp System.map $builddir/dist/boot/
cp $kernfile $builddir/dist/boot/vmlinuz
cp .config $builddir/dist/boot/config
--
2.5.3
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH OSSTEST 7/8] Debian: Enable interpolation in uboot_scr_load_dtb here doc
2015-10-02 9:25 [PATCH OSSTEST 0/8] Use the DTB provided by the kernel we are trying to boot Ian Campbell
` (5 preceding siblings ...)
2015-10-02 9:26 ` [PATCH OSSTEST 6/8] ts-kernel-build: Include dtbs in dist file Ian Campbell
@ 2015-10-02 9:26 ` Ian Campbell
2015-10-05 16:24 ` Ian Jackson
2015-10-02 9:26 ` [PATCH OSSTEST 8/8] Debian: Use dtbs from kernel dist when booting that kernel Ian Campbell
7 siblings, 1 reply; 24+ messages in thread
From: Ian Campbell @ 2015-10-02 9:26 UTC (permalink / raw)
To: ian.jackson, xen-devel; +Cc: Ian Campbell
By switching <<'END' to <<END. A future patch is going to want to put
a variable here which requires interpretation by the Perl.
Unfortunately this means lots of extra backticks to escape things such
that they pass through Perl and Shell and end up as ${foo} in the
resulting u-boot script.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
---
Osstest/Debian.pm | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm
index f7a599c..75fd7bf 100644
--- a/Osstest/Debian.pm
+++ b/Osstest/Debian.pm
@@ -142,11 +142,11 @@ sub uboot_common_kernel_bootargs ($)
}
sub uboot_scr_load_dtb () {
- return <<'END';
-if test -z "\${fdt_addr}" && test -n "\${fdtfile}" ; then
- echo Loading dtbs/\${fdtfile}
- ext2load scsi 0 \${fdt_addr_r} dtbs/\${fdtfile}
- setenv fdt_addr \${fdt_addr_r}
+ return <<END;
+if test -z "\\\${fdt_addr}" && test -n "\\\${fdtfile}" ; then
+ echo Loading dtbs/\\\${fdtfile}
+ ext2load scsi 0 \\\${fdt_addr_r} dtbs/\\\${fdtfile}
+ setenv fdt_addr \\\${fdt_addr_r}
fi
END
}
--
2.5.3
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH OSSTEST 8/8] Debian: Use dtbs from kernel dist when booting that kernel
2015-10-02 9:25 [PATCH OSSTEST 0/8] Use the DTB provided by the kernel we are trying to boot Ian Campbell
` (6 preceding siblings ...)
2015-10-02 9:26 ` [PATCH OSSTEST 7/8] Debian: Enable interpolation in uboot_scr_load_dtb here doc Ian Campbell
@ 2015-10-02 9:26 ` Ian Campbell
2015-10-05 16:29 ` Ian Jackson
7 siblings, 1 reply; 24+ messages in thread
From: Ian Campbell @ 2015-10-02 9:26 UTC (permalink / raw)
To: ian.jackson, xen-devel; +Cc: Ian Campbell
The kernel dist built by ts-kernel-build puts the corresponding dtbs
into /boot/dtbs/$kvers.
The host installers dtbs remain in /boot/dtbs and are used when
booting the native kernel.
It's possible that this change will expose bugs which exist in the
DTBs in previous kernel branches (3.18 and 4.1). I've not
investigated, I think we should accept this possibility and deal with
it via backport requests (and maybe some force pushes if appropriate)
as necessary.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
---
Osstest/Debian.pm | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm
index 75fd7bf..4df1b74 100644
--- a/Osstest/Debian.pm
+++ b/Osstest/Debian.pm
@@ -141,11 +141,14 @@ sub uboot_common_kernel_bootargs ($)
return @bootargs;
}
-sub uboot_scr_load_dtb () {
+sub uboot_scr_load_dtb (;$) {
+ my ($kvers) = @_;
+ $kvers ||= '';
+ $kvers .= '/' if $kvers;
return <<END;
if test -z "\\\${fdt_addr}" && test -n "\\\${fdtfile}" ; then
- echo Loading dtbs/\\\${fdtfile}
- ext2load scsi 0 \\\${fdt_addr_r} dtbs/\\\${fdtfile}
+ echo Loading dtbs/$kvers\\\${fdtfile}
+ ext2load scsi 0 \\\${fdt_addr_r} dtbs/$kvers\\\${fdtfile}
setenv fdt_addr \\\${fdt_addr_r}
fi
END
@@ -228,7 +231,7 @@ END
my $early_commands = get_host_property($ho, 'UBootScriptEarlyCommands', '');
my $xen_addr_r = get_host_property($ho, 'UBootSetXenAddrR', undef);
- my $load_dtb = uboot_scr_load_dtb();
+ my $load_dtb = uboot_scr_load_dtb($want_kernver);
my $set_xen_addr_r =
$xen_addr_r ? "setenv xen_addr_r $xen_addr_r" : "";
--
2.5.3
^ permalink raw reply related [flat|nested] 24+ messages in thread
* Re: [PATCH OSSTEST 1/8] Osstest: Add %arch_debian2linux (and inverse)
2015-10-02 9:26 ` [PATCH OSSTEST 1/8] Osstest: Add %arch_debian2linux (and inverse) Ian Campbell
@ 2015-10-05 16:18 ` Ian Jackson
0 siblings, 0 replies; 24+ messages in thread
From: Ian Jackson @ 2015-10-05 16:18 UTC (permalink / raw)
To: Ian Campbell; +Cc: ian.jackson, xen-devel
Ian Campbell writes ("[PATCH OSSTEST 1/8] Osstest: Add %arch_debian2linux (and inverse)"):
> Modelled after %arch_debian2xen.
>
> Will be used in ts-kernel-build.
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
> +our %arch_linux2debian;
> +$arch_linux2debian{$arch_debian2linux{$_}} = $_ foreach keys %arch_debia\
n2linux;
It would be nice to wrap that line, though.
Ian.
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH OSSTEST 2/8] ts-kernel-build: Introduce global $parms
2015-10-02 9:26 ` [PATCH OSSTEST 2/8] ts-kernel-build: Introduce global $parms Ian Campbell
@ 2015-10-05 16:18 ` Ian Jackson
0 siblings, 0 replies; 24+ messages in thread
From: Ian Jackson @ 2015-10-05 16:18 UTC (permalink / raw)
To: Ian Campbell; +Cc: xen-devel
Ian Campbell writes ("[PATCH OSSTEST 2/8] ts-kernel-build: Introduce global $parms"):
> Which contains the relevant details from %archparms, making the use
> sites simpler.
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH OSSTEST 3/8] ts-kernel-build: Refactor $archparams::DefConfig selection
2015-10-02 9:26 ` [PATCH OSSTEST 3/8] ts-kernel-build: Refactor $archparams::DefConfig selection Ian Campbell
@ 2015-10-05 16:19 ` Ian Jackson
0 siblings, 0 replies; 24+ messages in thread
From: Ian Jackson @ 2015-10-05 16:19 UTC (permalink / raw)
To: Ian Campbell; +Cc: xen-devel
Ian Campbell writes ("[PATCH OSSTEST 3/8] ts-kernel-build: Refactor $archparams::DefConfig selection"):
> This is always either "foo_defconfig" or "defconfig". Record only
> "foo" or undef and construct the name.
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH OSSTEST 4/8] ts-kernel-build: Refactor $archparams KernelImage handling
2015-10-02 9:26 ` [PATCH OSSTEST 4/8] ts-kernel-build: Refactor $archparams KernelImage handling Ian Campbell
@ 2015-10-05 16:19 ` Ian Jackson
0 siblings, 0 replies; 24+ messages in thread
From: Ian Jackson @ 2015-10-05 16:19 UTC (permalink / raw)
To: Ian Campbell; +Cc: xen-devel
Ian Campbell writes ("[PATCH OSSTEST 4/8] ts-kernel-build: Refactor $archparams KernelImage handling"):
> This is always arch/$karch/boot/$img. Store $img in %archparms and use
> %arch_debian2linux to construct the full path as needed.
>
> This makes the $archparams less verbose.
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH OSSTEST 5/8] ts-kernel-build: Add arm64 support
2015-10-02 9:26 ` [PATCH OSSTEST 5/8] ts-kernel-build: Add arm64 support Ian Campbell
@ 2015-10-05 16:20 ` Ian Jackson
2015-10-05 16:28 ` Ian Campbell
0 siblings, 1 reply; 24+ messages in thread
From: Ian Jackson @ 2015-10-05 16:20 UTC (permalink / raw)
To: Ian Campbell; +Cc: xen-devel
Ian Campbell writes ("[PATCH OSSTEST 5/8] ts-kernel-build: Add arm64 support"):
> And to Osstest::%arch_debian2*.
>
> Untested (but hopefully pretty obvious).
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
> my $archparms = {
> + 'arm64' => { Image => 'Image' },
IWBN to double-check that the generated filename is correct before we
try to push this.
Ian.
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH OSSTEST 6/8] ts-kernel-build: Include dtbs in dist file
2015-10-02 9:26 ` [PATCH OSSTEST 6/8] ts-kernel-build: Include dtbs in dist file Ian Campbell
@ 2015-10-05 16:22 ` Ian Jackson
2015-10-05 16:29 ` Ian Campbell
0 siblings, 1 reply; 24+ messages in thread
From: Ian Jackson @ 2015-10-05 16:22 UTC (permalink / raw)
To: Ian Campbell; +Cc: xen-devel
Ian Campbell writes ("[PATCH OSSTEST 6/8] ts-kernel-build: Include dtbs in dist file"):
> These are installed to $(INSTALL_PATH)/dtbs/$(KERNEL_RELEASE) where
> $(INSTALL_PATH) defaults to /boot but we override it to our staging
> /boot.
Thanks for the detailed explanation.
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
> - make $makeflags INSTALL_MOD_PATH=$builddir/dist modules_install
> + make $makeflags \\
> + INSTALL_PATH=$builddir/dist/boot \\
> + INSTALL_MOD_PATH=$builddir/dist modules_install \\
> + $dtbs_install
I tripped over the formatting here. It would be nicer to put
`modules_install' on the next line, to avoid hiding it in
INSTALL_BLAH=.
Thanks,
Ian.
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH OSSTEST 7/8] Debian: Enable interpolation in uboot_scr_load_dtb here doc
2015-10-02 9:26 ` [PATCH OSSTEST 7/8] Debian: Enable interpolation in uboot_scr_load_dtb here doc Ian Campbell
@ 2015-10-05 16:24 ` Ian Jackson
2015-10-05 16:30 ` Ian Campbell
0 siblings, 1 reply; 24+ messages in thread
From: Ian Jackson @ 2015-10-05 16:24 UTC (permalink / raw)
To: Ian Campbell; +Cc: ian.jackson, xen-devel
Ian Campbell writes ("[PATCH OSSTEST 7/8] Debian: Enable interpolation in uboot_scr_load_dtb here doc"):
> By switching <<'END' to <<END. A future patch is going to want to put
> a variable here which requires interpretation by the Perl.
>
> Unfortunately this means lots of extra backticks to escape things such
> that they pass through Perl and Shell and end up as ${foo} in the
> resulting u-boot script.
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
(I think a backtick is ASCII 0x60 ` not ASCII 0x5C \. I would call \
a backslash and ` a backquote or open single quote.)
Ian.
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH OSSTEST 5/8] ts-kernel-build: Add arm64 support
2015-10-05 16:20 ` Ian Jackson
@ 2015-10-05 16:28 ` Ian Campbell
2015-10-06 13:35 ` Ian Jackson
0 siblings, 1 reply; 24+ messages in thread
From: Ian Campbell @ 2015-10-05 16:28 UTC (permalink / raw)
To: Ian Jackson; +Cc: xen-devel
On Mon, 2015-10-05 at 17:20 +0100, Ian Jackson wrote:
> Ian Campbell writes ("[PATCH OSSTEST 5/8] ts-kernel-build: Add arm64
> support"):
> > And to Osstest::%arch_debian2*.
> >
> > Untested (but hopefully pretty obvious).
>
> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
>
> > my $archparms = {
> > + 'arm64' => { Image => 'Image' },
>
> IWBN to double-check that the generated filename is correct before we
> try to push this.
For arm64 specifically or for all arches?
FWIW I know that Image is correct for arm64.
Ian.
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH OSSTEST 8/8] Debian: Use dtbs from kernel dist when booting that kernel
2015-10-02 9:26 ` [PATCH OSSTEST 8/8] Debian: Use dtbs from kernel dist when booting that kernel Ian Campbell
@ 2015-10-05 16:29 ` Ian Jackson
0 siblings, 0 replies; 24+ messages in thread
From: Ian Jackson @ 2015-10-05 16:29 UTC (permalink / raw)
To: Ian Campbell; +Cc: xen-devel
Ian Campbell writes ("[PATCH OSSTEST 8/8] Debian: Use dtbs from kernel dist when booting that kernel"):
> The kernel dist built by ts-kernel-build puts the corresponding dtbs
> into /boot/dtbs/$kvers.
>
> The host installers dtbs remain in /boot/dtbs and are used when
^
Missing apostrophe "installer's".
> It's possible that this change will expose bugs which exist in the
> DTBs in previous kernel branches (3.18 and 4.1). I've not
> investigated, I think we should accept this possibility and deal with
> it via backport requests (and maybe some force pushes if appropriate)
> as necessary.
OK.
> -sub uboot_scr_load_dtb () {
> +sub uboot_scr_load_dtb (;$) {
Some of the information about host installer dtbs being in /boot
etc. (particularly that from "ts-kernel-build: Include dtbs in dist
file"'s commit message) might benefit from being in a comment here.
Anyway, all of this is (like my other comments) cosmetic and minor,
so:
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Ian.
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH OSSTEST 6/8] ts-kernel-build: Include dtbs in dist file
2015-10-05 16:22 ` Ian Jackson
@ 2015-10-05 16:29 ` Ian Campbell
2015-10-06 13:24 ` Ian Campbell
2015-10-06 13:36 ` Ian Jackson
0 siblings, 2 replies; 24+ messages in thread
From: Ian Campbell @ 2015-10-05 16:29 UTC (permalink / raw)
To: Ian Jackson; +Cc: xen-devel
On Mon, 2015-10-05 at 17:22 +0100, Ian Jackson wrote:
> Ian Campbell writes ("[PATCH OSSTEST 6/8] ts-kernel-build: Include dtbs
> in dist file"):
> > These are installed to $(INSTALL_PATH)/dtbs/$(KERNEL_RELEASE) where
> > $(INSTALL_PATH) defaults to /boot but we override it to our staging
> > /boot.
>
> Thanks for the detailed explanation.
>
> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
>
> > - make $makeflags INSTALL_MOD_PATH=$builddir/dist
> > modules_install
> > + make $makeflags \\
> > + INSTALL_PATH=$builddir/dist/boot \\
> > + INSTALL_MOD_PATH=$builddir/dist modules_install \\
> > + $dtbs_install
>
> I tripped over the formatting here. It would be nicer to put
> `modules_install' on the next line, to avoid hiding it in
> INSTALL_BLAH=.
I did it that way because INSTALL_MOD_PATH is the variable which controls
where modules_install puts things, so they are in some sense related.
Next line is fine too, or I could move it to first on the line it is on
now?
Ian.
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH OSSTEST 7/8] Debian: Enable interpolation in uboot_scr_load_dtb here doc
2015-10-05 16:24 ` Ian Jackson
@ 2015-10-05 16:30 ` Ian Campbell
0 siblings, 0 replies; 24+ messages in thread
From: Ian Campbell @ 2015-10-05 16:30 UTC (permalink / raw)
To: Ian Jackson; +Cc: xen-devel
On Mon, 2015-10-05 at 17:24 +0100, Ian Jackson wrote:
> Ian Campbell writes ("[PATCH OSSTEST 7/8] Debian: Enable interpolation in
> uboot_scr_load_dtb here doc"):
> > By switching <<'END' to <<END. A future patch is going to want to put
> > a variable here which requires interpretation by the Perl.
> >
> > Unfortunately this means lots of extra backticks to escape things such
> > that they pass through Perl and Shell and end up as ${foo} in the
> > resulting u-boot script.
>
> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
>
> (I think a backtick is ASCII 0x60 ` not ASCII 0x5C \. I would call \
> a backslash and ` a backquote or open single quote.)
So would I, I don't know what I was on about there...
Ian.
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH OSSTEST 6/8] ts-kernel-build: Include dtbs in dist file
2015-10-05 16:29 ` Ian Campbell
@ 2015-10-06 13:24 ` Ian Campbell
2015-10-06 13:36 ` Ian Jackson
2015-10-06 13:36 ` Ian Jackson
1 sibling, 1 reply; 24+ messages in thread
From: Ian Campbell @ 2015-10-06 13:24 UTC (permalink / raw)
To: Ian Jackson; +Cc: xen-devel
On Mon, 2015-10-05 at 17:29 +0100, Ian Campbell wrote:
> On Mon, 2015-10-05 at 17:22 +0100, Ian Jackson wrote:
> > Ian Campbell writes ("[PATCH OSSTEST 6/8] ts-kernel-build: Include dtbs
> > in dist file"):
> > > These are installed to $(INSTALL_PATH)/dtbs/$(KERNEL_RELEASE) where
> > > $(INSTALL_PATH) defaults to /boot but we override it to our staging
> > > /boot.
> >
> > Thanks for the detailed explanation.
> >
> > Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
> >
> > > - make $makeflags INSTALL_MOD_PATH=$builddir/dist
> > > modules_install
> > > + make $makeflags \\
> > > + INSTALL_PATH=$builddir/dist/boot \\
> > > + INSTALL_MOD_PATH=$builddir/dist modules_install \\
> > > + $dtbs_install
> >
> > I tripped over the formatting here. It would be nicer to put
> > `modules_install' on the next line, to avoid hiding it in
> > INSTALL_BLAH=.
>
> I did it that way because INSTALL_MOD_PATH is the variable which controls
> where modules_install puts things, so they are in some sense related.
>
> Next line is fine too, or I could move it to first on the line it is on
> now?
I went with:
+ make $makeflags \\
+ INSTALL_PATH=$builddir/dist/boot \\
+ INSTALL_MOD_PATH=$builddir/dist \\
+ modules_install $dtbs_install
which did seem clearer.
Ian.
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH OSSTEST 5/8] ts-kernel-build: Add arm64 support
2015-10-05 16:28 ` Ian Campbell
@ 2015-10-06 13:35 ` Ian Jackson
0 siblings, 0 replies; 24+ messages in thread
From: Ian Jackson @ 2015-10-06 13:35 UTC (permalink / raw)
To: Ian Campbell; +Cc: xen-devel
Ian Campbell writes ("Re: [PATCH OSSTEST 5/8] ts-kernel-build: Add arm64 support"):
> On Mon, 2015-10-05 at 17:20 +0100, Ian Jackson wrote:
> > IWBN to double-check that the generated filename is correct before we
> > try to push this.
>
> For arm64 specifically or for all arches?
Just for arm64. The other nfc changes in earlier patches looked
`obviously correct' to me :-).
> FWIW I know that Image is correct for arm64.
Good, thanks.
Ian.
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH OSSTEST 6/8] ts-kernel-build: Include dtbs in dist file
2015-10-05 16:29 ` Ian Campbell
2015-10-06 13:24 ` Ian Campbell
@ 2015-10-06 13:36 ` Ian Jackson
1 sibling, 0 replies; 24+ messages in thread
From: Ian Jackson @ 2015-10-06 13:36 UTC (permalink / raw)
To: Ian Campbell; +Cc: xen-devel
Ian Campbell writes ("Re: [PATCH OSSTEST 6/8] ts-kernel-build: Include dtbs in dist file"):
> On Mon, 2015-10-05 at 17:22 +0100, Ian Jackson wrote:
> > `modules_install' on the next line, to avoid hiding it in
> > INSTALL_BLAH=.
>
> I did it that way because INSTALL_MOD_PATH is the variable which controls
> where modules_install puts things, so they are in some sense related.
Aha.
> Next line is fine too, or I could move it to first on the line it is on
> now?
Whatever you like. You can keep it how it is if you prefer...
Ian.
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH OSSTEST 6/8] ts-kernel-build: Include dtbs in dist file
2015-10-06 13:24 ` Ian Campbell
@ 2015-10-06 13:36 ` Ian Jackson
0 siblings, 0 replies; 24+ messages in thread
From: Ian Jackson @ 2015-10-06 13:36 UTC (permalink / raw)
To: Ian Campbell; +Cc: xen-devel
Ian Campbell writes ("Re: [Xen-devel] [PATCH OSSTEST 6/8] ts-kernel-build: Include dtbs in dist file"):
> I went with:
>
> + make $makeflags \\
> + INSTALL_PATH=$builddir/dist/boot \\
> + INSTALL_MOD_PATH=$builddir/dist \\
> + modules_install $dtbs_install
>
> which did seem clearer.
Thanks,
Ian.
^ permalink raw reply [flat|nested] 24+ messages in thread
end of thread, other threads:[~2015-10-06 13:36 UTC | newest]
Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-02 9:25 [PATCH OSSTEST 0/8] Use the DTB provided by the kernel we are trying to boot Ian Campbell
2015-10-02 9:26 ` [PATCH OSSTEST 1/8] Osstest: Add %arch_debian2linux (and inverse) Ian Campbell
2015-10-05 16:18 ` Ian Jackson
2015-10-02 9:26 ` [PATCH OSSTEST 2/8] ts-kernel-build: Introduce global $parms Ian Campbell
2015-10-05 16:18 ` Ian Jackson
2015-10-02 9:26 ` [PATCH OSSTEST 3/8] ts-kernel-build: Refactor $archparams::DefConfig selection Ian Campbell
2015-10-05 16:19 ` Ian Jackson
2015-10-02 9:26 ` [PATCH OSSTEST 4/8] ts-kernel-build: Refactor $archparams KernelImage handling Ian Campbell
2015-10-05 16:19 ` Ian Jackson
2015-10-02 9:26 ` [PATCH OSSTEST 5/8] ts-kernel-build: Add arm64 support Ian Campbell
2015-10-05 16:20 ` Ian Jackson
2015-10-05 16:28 ` Ian Campbell
2015-10-06 13:35 ` Ian Jackson
2015-10-02 9:26 ` [PATCH OSSTEST 6/8] ts-kernel-build: Include dtbs in dist file Ian Campbell
2015-10-05 16:22 ` Ian Jackson
2015-10-05 16:29 ` Ian Campbell
2015-10-06 13:24 ` Ian Campbell
2015-10-06 13:36 ` Ian Jackson
2015-10-06 13:36 ` Ian Jackson
2015-10-02 9:26 ` [PATCH OSSTEST 7/8] Debian: Enable interpolation in uboot_scr_load_dtb here doc Ian Campbell
2015-10-05 16:24 ` Ian Jackson
2015-10-05 16:30 ` Ian Campbell
2015-10-02 9:26 ` [PATCH OSSTEST 8/8] Debian: Use dtbs from kernel dist when booting that kernel Ian Campbell
2015-10-05 16:29 ` Ian Jackson
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).