mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 06:08:08 +00:00
e92b153e99
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>
25 lines
814 B
Makefile
25 lines
814 B
Makefile
define Device/mediatek_mt7629-rfb
|
|
DEVICE_VENDOR := MediaTek
|
|
DEVICE_MODEL := MT7629 rfb AP
|
|
DEVICE_DTS := mt7629-rfb
|
|
DEVICE_PACKAGES := swconfig
|
|
endef
|
|
TARGET_DEVICES += mediatek_mt7629-rfb
|
|
|
|
define Device/iptime_a6004mx
|
|
DEVICE_VENDOR := ipTIME
|
|
DEVICE_MODEL := A6004MX
|
|
DEVICE_DTS := mt7629-iptime-a6004mx
|
|
DEVICE_DTS_DIR := ../dts
|
|
DEVICE_PACKAGES := kmod-usb3 uboot-envtools
|
|
UBINIZE_OPTS := -E 5
|
|
BLOCKSIZE := 128k
|
|
PAGESIZE := 2048
|
|
KERNEL := $$(KERNEL) | pad-offset 128k 2048 | iptime-crc32 a6004mx
|
|
KERNEL_INITRAMFS := $$(KERNEL_INITRAMFS) | pad-offset 128k 2048 | iptime-crc32 a6004mx
|
|
IMAGES += recovery.bin
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
IMAGE/recovery.bin := append-kernel | pad-to 128k | append-ubi | append-metadata
|
|
endef
|
|
TARGET_DEVICES += iptime_a6004mx
|