riscv: dts: starfive: generate u-boot-spl.bin.normal.out

The StarFive VisionFive 2 board cannot load spl/u-boot-spl.bin but needs a
prefixed header. We have referring to a vendor tool (spl_tool) for this
task. 'mkimage -T sfspl' can generate the prefixed file.

Use binman to invoke mkimage for the generation of file
spl/u-boot-spl.bin.normal.out.

Update the documentation.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tested-by: Milan P. Stanić <mps@arvanta.net>
This commit is contained in:
Heinrich Schuchardt 2023-09-17 13:47:31 +02:00 committed by Leo Yu-Chi Liang
parent 64fd30d367
commit 90602e779d
2 changed files with 13 additions and 12 deletions

View file

@ -103,4 +103,15 @@
};
};
};
spl-img {
filename = "spl/u-boot-spl.bin.normal.out";
mkimage {
args = "-T sfspl";
u-boot-spl {
};
};
};
};

View file

@ -65,18 +65,8 @@ Now build the U-Boot SPL and U-Boot proper
make starfive_visionfive2_defconfig
make OPENSBI=$(opensbi_dir)/opensbi/build/platform/generic/firmware/fw_dynamic.bin
This will generate spl/u-boot-spl.bin and FIT image (u-boot.itb)
u-boot-spl.bin cannot be used directly on StarFive VisionFive2,we need
to convert the u-boot-spl.bin to u-boot-spl.bin.normal.out with
the below command:
./spl_tool -c -f $(Uboot_PATH)/spl/u-boot-spl.bin
More detailed description of spl_tool,please refer spl_tool documenation.
(Note: spl_tool git repo is at https://github.com/starfive-tech/Tools/tree/master/spl_tool)
This will generate u-boot-spl.bin.normal.out file.
This will generate the U-Boot SPL image (spl/u-boot-spl.bin.normal.out) as well
as the FIT image (u-boot.itb) with OpenSBI and U-Boot.
Flashing
~~~~~~~~