diff options
author | Daniel Golle <daniel@makrotopia.org> | 2023-04-05 16:56:54 +0100 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2023-04-05 17:12:55 +0100 |
commit | e92b153e99a8019752b08c6ab0f7c17d9f08063e (patch) | |
tree | f5ee696d2ae83e5d719b9c05251add60bd537f0c /target/linux/mediatek/image/Makefile | |
parent | 0dc5fc8fa53be55c3adc59055e7f6f150a5ab1ad (diff) | |
download | upstream-e92b153e99a8019752b08c6ab0f7c17d9f08063e.tar.gz upstream-e92b153e99a8019752b08c6ab0f7c17d9f08063e.tar.bz2 upstream-e92b153e99a8019752b08c6ab0f7c17d9f08063e.zip |
mediatek: introduce KERNEL_LOADADDR to Device/Default template
We need to reset KERNEL_LOADADDR if we use it on a per-device base.
Otherwise the previous value will be kept in case a device doesn't
define KERNEL_LOADADDR and relies on the default.
Move initializing KERNEL_LOADADDR to target/linux/mediatek/image/Makefile,
similar to how it's done also on the ramips target.
This fixes image size related breakage on devices which rely on the
default value of KERNEL_LOADADDR.
While at it use 0x48000000 which is more common than the previous default
0x44000000 for the filogic subtarget.
Fixed: e7c399bee6 ("filogic: add support for ASUS TUF-AX4200")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'target/linux/mediatek/image/Makefile')
-rw-r--r-- | target/linux/mediatek/image/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/target/linux/mediatek/image/Makefile b/target/linux/mediatek/image/Makefile index 4c17e5845a..97164428e0 100644 --- a/target/linux/mediatek/image/Makefile +++ b/target/linux/mediatek/image/Makefile @@ -6,6 +6,11 @@ include $(TOPDIR)/rules.mk include $(INCLUDE_DIR)/image.mk +loadaddr-$(CONFIG_TARGET_mediatek_mt7622) := 0x44000000 +loadaddr-$(CONFIG_TARGET_mediatek_mt7623) := 0x80008000 +loadaddr-$(CONFIG_TARGET_mediatek_mt7629) := 0x40008000 +loadaddr-$(CONFIG_TARGET_mediatek_filogic) := 0x48000000 + # default all platform image(fit) build define Device/Default PROFILES = Default $$(DEVICE_NAME) @@ -14,6 +19,7 @@ define Device/Default fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb KERNEL_INITRAMFS = kernel-bin | lzma | \ fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb with-initrd + KERNEL_LOADADDR = $(loadaddr-y) FILESYSTEMS := squashfs DEVICE_DTS_DIR := $(DTS_DIR) IMAGES := sysupgrade.bin |