* [PATCH OSSTEST] arm boot fixes and improvements
@ 2013-10-25 10:40 Ian Campbell
2013-10-28 15:47 ` Ian Jackson
0 siblings, 1 reply; 5+ messages in thread
From: Ian Campbell @ 2013-10-25 10:40 UTC (permalink / raw)
To: ian.jackson; +Cc: Ian Campbell, xen-devel
Correct prototype for setupboot_uboot.
Add some additional logging to the u-boot script creation process as well as
the resulting script, to aid debugging
---
Osstest/Debian.pm | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm
index 517fa61..c675e0d 100644
--- a/Osstest/Debian.pm
+++ b/Osstest/Debian.pm
@@ -120,11 +120,12 @@ sub lvm_lv_name($$) {
return "/dev/mapper/$vg-$lv";
}
-sub setupboot_uboot ($$$$) {
+sub setupboot_uboot ($$$) {
my ($ho,$want_kernver,$xenhopt,$xenkopt) = @_;
my $bl= { };
$bl->{UpdateConfig}= sub {
+ my ( $ho ) = @_;
my $xen = "xen";
my $kern = "vmlinuz-$want_kernver";
@@ -132,6 +133,9 @@ sub setupboot_uboot ($$$$) {
my $root= lvm_lv_name($ho,"root");
+ logm("Xen options: $xenhopt");
+ logm("Linux options: $xenkopt");
+
target_cmd_root($ho, <<END);
if test ! -f /boot/$kern ; then
exit 1
@@ -160,7 +164,7 @@ setenv xen_addr_r 0x01000000
ext2load scsi 0 \\\${xen_addr_r} \$xen
setenv bootargs "$xenhopt"
echo Loaded \$xen to \\\${xen_addr_r} (\\\${filesize})
-echo command line: $xenhopt
+echo command line: \\\${bootargs}
ext2load scsi 0 \\\${kernel_addr_r} $kern
fdt mknod /chosen module\@0
@@ -176,6 +180,8 @@ fdt set /chosen/module\@1 compatible "xen,linux-initrd" "xen,multiboot-module"
fdt set /chosen/module\@1 reg <\\\${ramdisk_addr_r} \\\${filesize}>
echo Loaded $initrd to \\\${ramdisk_addr_r} (\\\${filesize})
+fdt print /chosen
+
echo Booting \\\${xen_addr_r} - \\\${fdt_addr}
bootz \\\${xen_addr_r} - \\\${fdt_addr}
EOF
--
1.7.10.4
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH OSSTEST] arm boot fixes and improvements
2013-10-25 10:40 [PATCH OSSTEST] arm boot fixes and improvements Ian Campbell
@ 2013-10-28 15:47 ` Ian Jackson
2013-10-31 17:53 ` Ian Campbell
0 siblings, 1 reply; 5+ messages in thread
From: Ian Jackson @ 2013-10-28 15:47 UTC (permalink / raw)
To: Ian Campbell; +Cc: xen-devel
Ian Campbell writes ("[PATCH OSSTEST] arm boot fixes and improvements"):
> Correct prototype for setupboot_uboot.
>
> Add some additional logging to the u-boot script creation process as well as
> the resulting script, to aid debugging
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
(I'm not qualified to review the u-boot config generation changes but
they clearly affect arm only so that's fine.)
Ian.
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH OSSTEST] arm boot fixes and improvements
2013-10-28 15:47 ` Ian Jackson
@ 2013-10-31 17:53 ` Ian Campbell
2013-10-31 18:38 ` Ian Jackson
0 siblings, 1 reply; 5+ messages in thread
From: Ian Campbell @ 2013-10-31 17:53 UTC (permalink / raw)
To: Ian Jackson; +Cc: xen-devel
On Mon, 2013-10-28 at 15:47 +0000, Ian Jackson wrote:
> Ian Campbell writes ("[PATCH OSSTEST] arm boot fixes and improvements"):
> > Correct prototype for setupboot_uboot.
> >
> > Add some additional logging to the u-boot script creation process as well as
> > the resulting script, to aid debugging
>
> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Thanks, I added my S-o-b and pushed to preflight.
(Should I be doing the S-o-b thing for osstest changes? I suppose so but
I seem to keep forgetting)
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH OSSTEST] arm boot fixes and improvements
2013-10-31 17:53 ` Ian Campbell
@ 2013-10-31 18:38 ` Ian Jackson
2013-10-31 18:50 ` Ian Campbell
0 siblings, 1 reply; 5+ messages in thread
From: Ian Jackson @ 2013-10-31 18:38 UTC (permalink / raw)
To: Ian Campbell; +Cc: xen-devel
Ian Campbell writes ("Re: [PATCH OSSTEST] arm boot fixes and improvements"):
> On Mon, 2013-10-28 at 15:47 +0000, Ian Jackson wrote:
> > Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
>
> Thanks, I added my S-o-b and pushed to preflight.
>
> (Should I be doing the S-o-b thing for osstest changes? I suppose so but
> I seem to keep forgetting)
I guess we both should.
Ian.
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH OSSTEST] arm boot fixes and improvements
2013-10-31 18:38 ` Ian Jackson
@ 2013-10-31 18:50 ` Ian Campbell
0 siblings, 0 replies; 5+ messages in thread
From: Ian Campbell @ 2013-10-31 18:50 UTC (permalink / raw)
To: Ian Jackson; +Cc: xen-devel
On Thu, 2013-10-31 at 18:38 +0000, Ian Jackson wrote:
> Ian Campbell writes ("Re: [PATCH OSSTEST] arm boot fixes and improvements"):
> > On Mon, 2013-10-28 at 15:47 +0000, Ian Jackson wrote:
> > > Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
> >
> > Thanks, I added my S-o-b and pushed to preflight.
> >
> > (Should I be doing the S-o-b thing for osstest changes? I suppose so but
> > I seem to keep forgetting)
>
> I guess we both should.
s/both/all/ ;-) But Ack, I'll try and remember.
Ian.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-10-31 18:50 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-25 10:40 [PATCH OSSTEST] arm boot fixes and improvements Ian Campbell
2013-10-28 15:47 ` Ian Jackson
2013-10-31 17:53 ` Ian Campbell
2013-10-31 18:38 ` Ian Jackson
2013-10-31 18:50 ` Ian Campbell
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).