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 <[email protected]>
---
 .../recipes-bsp/rpi-u-boot-scr/files/boot.cmd.xen.in       | 7 +++++--
 1 file 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 9cba41f..dfcff2d 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
 sleep 1
 
 echo Load Xen into memory
-fatload mmc 0:1 ${xen_loadaddr} xen
+fatload mmc 1:1 ${xen_loadaddr} xen
+echo Xen loaded, size: 0x$filesize
+
 echo Load Linux kernel into memory
-fatload mmc 0:1 ${kernel_loadaddr} Image
+fatload mmc 1:1 ${kernel_loadaddr} Image
 setenv kernel_size 0x$filesize
+echo Linux loaded, size: 0x$filesize
 
 echo Set the address and size for the Linux kernel so Xen can pick it up
 fdt set /chosen/dom0 reg <${kernel_loadaddr} ${kernel_size}>
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#6448): 
https://lists.yoctoproject.org/g/meta-virtualization/message/6448
Mute This Topic: https://lists.yoctoproject.org/mt/82330184/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to