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>
This commit is contained in:
Christopher Clark 2021-04-24 01:31:00 -07:00 committed by Bruce Ashfield
parent 337ae20576
commit a2664f884c

View File

@ -30,10 +30,13 @@ echo Delay to allow the MMC card to be ready
sleep 1 sleep 1
echo Load Xen into memory 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 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 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 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}> fdt set /chosen/dom0 reg <${kernel_loadaddr} ${kernel_size}>