summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Clark <christopher.w.clark@gmail.com>2021-04-24 01:31:00 -0700
committerBruce Ashfield <bruce.ashfield@gmail.com>2021-04-29 23:05:11 -0400
commita2664f884c2f6ac6d853d3e1ff9e34761ed7ca0a (patch)
tree4686e75bbf4564417e4b61ba160632a4354d26b7
parent337ae20576d4447a06eb7bca77c7b89fb6c7b2e1 (diff)
downloadmeta-virtualization-a2664f884c2f6ac6d853d3e1ff9e34761ed7ca0a.tar.gz
xen, rpi4: fix u-boot script to load binaries from boot partition
fatload needs to read from mmc 1:1 to find the Xen hypervisor and Linux kernel binaries with the current Yocto Linux 5.10 kernel. Add boot messages to to the u-boot script to indicate the size of files loaded for easier confirmation of load success. Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r--dynamic-layers/raspberrypi/recipes-bsp/rpi-u-boot-scr/files/boot.cmd.xen.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/dynamic-layers/raspberrypi/recipes-bsp/rpi-u-boot-scr/files/boot.cmd.xen.in b/dynamic-layers/raspberrypi/recipes-bsp/rpi-u-boot-scr/files/boot.cmd.xen.in
index 9cba41f1..dfcff2de 100644
--- a/dynamic-layers/raspberrypi/recipes-bsp/rpi-u-boot-scr/files/boot.cmd.xen.in
+++ b/dynamic-layers/raspberrypi/recipes-bsp/rpi-u-boot-scr/files/boot.cmd.xen.in
@@ -30,10 +30,13 @@ echo Delay to allow the MMC card to be ready
30sleep 1 30sleep 1
31 31
32echo Load Xen into memory 32echo Load Xen into memory
33fatload mmc 0:1 ${xen_loadaddr} xen 33fatload mmc 1:1 ${xen_loadaddr} xen
34echo Xen loaded, size: 0x$filesize
35
34echo Load Linux kernel into memory 36echo Load Linux kernel into memory
35fatload mmc 0:1 ${kernel_loadaddr} Image 37fatload mmc 1:1 ${kernel_loadaddr} Image
36setenv kernel_size 0x$filesize 38setenv kernel_size 0x$filesize
39echo Linux loaded, size: 0x$filesize
37 40
38echo Set the address and size for the Linux kernel so Xen can pick it up 41echo Set the address and size for the Linux kernel so Xen can pick it up
39fdt set /chosen/dom0 reg <${kernel_loadaddr} ${kernel_size}> 42fdt set /chosen/dom0 reg <${kernel_loadaddr} ${kernel_size}>