* [PATCH osstest] Debian: correct ARM u-boot boot runes
@ 2013-09-12 15:18 Ian Campbell
2013-09-12 17:13 ` Ian Jackson
0 siblings, 1 reply; 2+ messages in thread
From: Ian Campbell @ 2013-09-12 15:18 UTC (permalink / raw)
To: xen-devel; +Cc: ian.jackson, Ian Campbell
We currently need a comptible node of "xen,multiboot-module" as well as the
specific type. Also make sure the /chosen node specifies the number of address
and size-cells we will be using in the modules, otherwise Xen cannot parse
them.
Load Xen a bit higher up and use a variable so we don't need to update two
places.
Log some stuff as we go as well, so we can tell what was going on more easily.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
---
Osstest/Debian.pm | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm
index 79e6f5d..3a26571 100644
--- a/Osstest/Debian.pm
+++ b/Osstest/Debian.pm
@@ -150,21 +150,28 @@ scsi scan
fdt addr \\\${fdt_addr}
fdt resize
-ext2load scsi 0 0x600000 \$xen
-setenv bootargs $xenhopt
+fdt set /chosen \\\#address-cells <1>
+fdt set /chosen \\\#size-cells <1>
+
+setenv xen_addr_r 0x01000000
+# kernel_addr_r=0x02000000
+# ramdisk_addr_r=0x04000000
+
+ext2load scsi 0 \\\${xen_addr_r} \$xen
+setenv bootargs "$xenhopt"
ext2load scsi 0 \\\${kernel_addr_r} $kern
fdt mknod /chosen module\@0
-fdt set /chosen/module\@0 compatible "xen,linux-zimage"
+fdt set /chosen/module\@0 compatible "xen,linux-zimage" "xen,multiboot-module"
fdt set /chosen/module\@0 reg <\\\${kernel_addr_r} \\\${filesize}>
fdt set /chosen/module\@0 bootargs "$xenkopt ro root=$root"
ext2load scsi 0 \\\${ramdisk_addr_r} $initrd
fdt mknod /chosen module\@1
-fdt set /chosen/module\@1 compatible "xen,linux-initrd"
+fdt set /chosen/module\@1 compatible "xen,linux-initrd" "xen,multiboot-module"
fdt set /chosen/module\@1 reg < \\\${ramdisk_addr_r} \\\${filesize} >
-bootz 0x600000 - 0x1000
+bootz \\\${xen_addr_r} \\\${ramdisk_addr_r} \\\${fdt_addr_r}
EOF
mkimage -A arm -T script -d /boot/boot /boot/boot.scr
END
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH osstest] Debian: correct ARM u-boot boot runes
2013-09-12 15:18 [PATCH osstest] Debian: correct ARM u-boot boot runes Ian Campbell
@ 2013-09-12 17:13 ` Ian Jackson
0 siblings, 0 replies; 2+ messages in thread
From: Ian Jackson @ 2013-09-12 17:13 UTC (permalink / raw)
To: Ian Campbell; +Cc: xen-devel
Ian Campbell writes ("[PATCH osstest] Debian: correct ARM u-boot boot runes"):
> We currently need a comptible node of "xen,multiboot-module" as well as the
> specific type. Also make sure the /chosen node specifies the number of address
> and size-cells we will be using in the modules, otherwise Xen cannot parse
> them.
>
> Load Xen a bit higher up and use a variable so we don't need to update two
> places.
>
> Log some stuff as we go as well, so we can tell what was going on more easily.
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-09-12 17:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-12 15:18 [PATCH osstest] Debian: correct ARM u-boot boot runes Ian Campbell
2013-09-12 17:13 ` Ian Jackson
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.