summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZoltan HERPAI2025-06-01 21:30:42 +0000
committerZoltan HERPAI2025-06-05 14:39:15 +0000
commitf97609a10ff934bc04be8f07bd9103d8dd317760 (patch)
tree347ce6be7119ec8a976b1551f7bf1e67d3b24e03
parent8f0f02d2977597246016fda3c387fbf7918e2ec0 (diff)
downloadopenwrt-f97609a10ff934bc04be8f07bd9103d8dd317760.tar.gz
starfive: jh7110: update bootscript to use addresses in bootloader
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>
-rw-r--r--target/linux/starfive/image/mmc.bootscript.jh71106
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/starfive/image/mmc.bootscript.jh7110 b/target/linux/starfive/image/mmc.bootscript.jh7110
index aeb2e82275..292cae6613 100644
--- a/target/linux/starfive/image/mmc.bootscript.jh7110
+++ b/target/linux/starfive/image/mmc.bootscript.jh7110
@@ -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}