[PATCH] bcm47xx: relocate LZMA loader

Rafał Miłecki zajec5 at gmail.com
Sun Nov 7 01:37:43 PST 2021


From: Rafał Miłecki <rafal at milecki.pl>

This allows loader to handle kernel 5.10 that grew bigger than 5.4.

Variations tested on BCM4706:

BAD:
BZ_TEXT_START  := 0x80600000
BZ_STACK_START := 0x80700000

GOOD:
BZ_TEXT_START	:= 0x80700000
BZ_STACK_START	:= 0x80700000

BAD:
BZ_TEXT_START	:= 0x80600000
BZ_STACK_START	:= 0x80800000

GOOD:
BZ_TEXT_START	:= 0x80700000
BZ_STACK_START	:= 0x80800000

Cc: Hauke Mehrtens <hauke at hauke-m.de>
Signed-off-by: Rafał Miłecki <rafal at milecki.pl>
---
 target/linux/bcm47xx/image/lzma-loader/src/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/bcm47xx/image/lzma-loader/src/Makefile b/target/linux/bcm47xx/image/lzma-loader/src/Makefile
index a08fc05b9f..94b78254b8 100644
--- a/target/linux/bcm47xx/image/lzma-loader/src/Makefile
+++ b/target/linux/bcm47xx/image/lzma-loader/src/Makefile
@@ -18,7 +18,7 @@
 #
 
 TEXT_START	:= 0x80001000
-BZ_TEXT_START	:= 0x80600000
+BZ_TEXT_START	:= 0x80700000
 BZ_STACK_START	:= 0x80700000
 
 OBJCOPY		:= $(CROSS_COMPILE)objcopy -O binary -R .reginfo -R .note -R .comment -R .mdebug -S
-- 
2.31.1




More information about the openwrt-devel mailing list