diff options
| author | Christopher Clark <christopher.w.clark@gmail.com> | 2021-04-24 01:31:00 -0700 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2021-04-29 23:05:11 -0400 |
| commit | a2664f884c2f6ac6d853d3e1ff9e34761ed7ca0a (patch) | |
| tree | 4686e75bbf4564417e4b61ba160632a4354d26b7 | |
| parent | 337ae20576d4447a06eb7bca77c7b89fb6c7b2e1 (diff) | |
| download | meta-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.in | 7 |
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 | |||
| 30 | sleep 1 | 30 | sleep 1 |
| 31 | 31 | ||
| 32 | echo Load Xen into memory | 32 | echo Load Xen into memory |
| 33 | fatload mmc 0:1 ${xen_loadaddr} xen | 33 | fatload mmc 1:1 ${xen_loadaddr} xen |
| 34 | echo Xen loaded, size: 0x$filesize | ||
| 35 | |||
| 34 | echo Load Linux kernel into memory | 36 | echo Load Linux kernel into memory |
| 35 | fatload mmc 0:1 ${kernel_loadaddr} Image | 37 | fatload mmc 1:1 ${kernel_loadaddr} Image |
| 36 | setenv kernel_size 0x$filesize | 38 | setenv kernel_size 0x$filesize |
| 39 | echo Linux loaded, size: 0x$filesize | ||
| 37 | 40 | ||
| 38 | echo Set the address and size for the Linux kernel so Xen can pick it up | 41 | echo Set the address and size for the Linux kernel so Xen can pick it up |
| 39 | fdt set /chosen/dom0 reg <${kernel_loadaddr} ${kernel_size}> | 42 | fdt set /chosen/dom0 reg <${kernel_loadaddr} ${kernel_size}> |
