]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
starfive: jh7110: update bootscript to use addresses in bootloader
authorZoltan HERPAI <wigyori@uid0.hu>
Sun, 1 Jun 2025 21:30:42 +0000 (21:30 +0000)
committerZoltan HERPAI <wigyori@uid0.hu>
Thu, 5 Jun 2025 14:39:15 +0000 (16:39 +0200)
Rather than hardcoding the kernel/fdt addresses in the boot.scr script,
use the addresses provided by the bootloader.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
target/linux/starfive/image/mmc.bootscript.jh7110

index aeb2e8227500da118171c13c59227165ff9719e2..292cae661330bb55a1c25e79fdf5df4572ca1578 100644 (file)
@@ -1,5 +1,5 @@
-fatload mmc 1:3 0xa0000000 Image
-fatload mmc 1:3 0x46000000 dtb
+fatload mmc 1:3 ${kernel_addr_r} Image
+fatload mmc 1:3 ${fdt_addr_r} dtb
 run chipa_set_linux
 setenv bootargs "earlyprintk console=ttyS0,115200 debug rootwait earlycon=sbi root=/dev/mmcblk1p4"
-booti 0xa0000000 - 0x46000000
+booti ${kernel_addr_r} - ${fdt_addr_r}