Skip to content

Commit e630c6c

Browse files
hzyitcAnsuel
authored andcommitted
airoha: adjust and default the loadaddr
Similar to e92b153 ("mediatek: introduce KERNEL_LOADADDR to Device/Default template"), let's move the default loadaddr to Device/Default. What's more, use 0x80200000 instead of the SDK default value 0x80088000 to avoid the following error which may overwrite TZ memory and cause crash: [ 0.000000] [Firmware Bug]: Kernel image misaligned at boot, please fix your bootloader! [ 0.000000] OF: reserved mem: Reserved memory: failed to reserve memory for node 'atf@80000000': base 0x0000000080000000, size 2 MiB Signed-off-by: Ziyang Huang <[email protected]> [ fix spelling mistake ] Signed-off-by: Christian Marangi <[email protected]>
1 parent 13c30c2 commit e630c6c

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

target/linux/airoha/image/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
include $(TOPDIR)/rules.mk
22
include $(INCLUDE_DIR)/image.mk
33

4+
loadaddr-$(CONFIG_TARGET_airoha_an7581) := 0x80200000
5+
loadaddr-$(CONFIG_TARGET_airoha_an7583) := 0x80200000
6+
loadaddr-$(CONFIG_TARGET_airoha_en7523) := 0x80200000
7+
48
# default all platform image(fit) build
59
define Device/Default
610
PROFILES = Default $$(DEVICE_NAME)
@@ -9,6 +13,7 @@ define Device/Default
913
fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb
1014
KERNEL_INITRAMFS = kernel-bin | lzma | \
1115
fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb
16+
KERNEL_LOADADDR = $(loadaddr-y)
1217
FILESYSTEMS := squashfs
1318
DEVICE_DTS = $$(SOC)-$(lastword $(subst _, ,$(1)))
1419
DEVICE_DTS_DIR := ../dts

target/linux/airoha/image/an7581.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ define Device/airoha_an7581-evb
1111
DEVICE_PACKAGES := kmod-leds-pwm kmod-i2c-an7581 kmod-pwm-airoha kmod-input-gpio-keys-polled
1212
DEVICE_DTS := an7581-evb
1313
DEVICE_DTS_CONFIG := config@1
14-
KERNEL_LOADADDR := 0x80088000
1514
IMAGE/sysupgrade.bin := append-kernel | pad-to 128k | append-rootfs | pad-rootfs | append-metadata
1615
endef
1716
TARGET_DEVICES += airoha_an7581-evb

target/linux/airoha/image/en7523.mk

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
KERNEL_LOADADDR := 0x80208000
2-
31
define Target/Description
42
Build firmware images for Airoha EN7523 ARM based boards.
53
endef

0 commit comments

Comments
 (0)