Set the bootcmd in u-boot

In QEMU the kernel is loaded at the ${kernel_addr_r} address and we need
to use booti instead of bootm.
This commit is contained in:
Rodrigo Arias 2024-01-19 14:29:23 +01:00
parent bd80b0fefb
commit 1fda5d7710

View File

@ -22,8 +22,9 @@ final: prev:
qemu = prev.qemu.override { rutabagaSupport = false; };
uboot-custom = prev.ubootQemuRiscv64Smode.override {
# Override preboot to set 'bootcmd' directly to the kernel address in RAM
extraConfig = ''
CONFIG_CMD_QFW=y
CONFIG_PREBOOT="setenv fdt_addr ''${fdtcontroladdr}; fdt addr ''${fdtcontroladdr}; setenv bootcmd booti ''${kernel_addr_r} - ''${fdtcontroladdr};"
'';
};