mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-01-28 03:37:17 +01:00
airoha: adjust and default the loadaddr
Similar toe92b153e99("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 <hzyitc@outlook.com> [ fix spelling mistake ] Link: https://github.com/openwrt/openwrt/pull/20470 (cherry picked from commitfed2d31343) [ fix conflict error ] Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
parent
e905c45b05
commit
9d218f0853
3 changed files with 5 additions and 3 deletions
|
|
@ -1,6 +1,10 @@
|
|||
include $(TOPDIR)/rules.mk
|
||||
include $(INCLUDE_DIR)/image.mk
|
||||
|
||||
loadaddr-$(CONFIG_TARGET_airoha_an7581) := 0x80200000
|
||||
loadaddr-$(CONFIG_TARGET_airoha_an7583) := 0x80200000
|
||||
loadaddr-$(CONFIG_TARGET_airoha_en7523) := 0x80200000
|
||||
|
||||
# default all platform image(fit) build
|
||||
define Device/Default
|
||||
PROFILES = Default $$(DEVICE_NAME)
|
||||
|
|
@ -9,6 +13,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 = $$(SOC)-$(lastword $(subst _, ,$(1)))
|
||||
DEVICE_DTS_DIR := ../dts
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@ define Device/airoha_an7581-evb
|
|||
DEVICE_PACKAGES := kmod-leds-pwm kmod-i2c-an7581 kmod-pwm-airoha kmod-input-gpio-keys-polled
|
||||
DEVICE_DTS := an7581-evb
|
||||
DEVICE_DTS_CONFIG := config@1
|
||||
KERNEL_LOADADDR := 0x80088000
|
||||
IMAGE/sysupgrade.bin := append-kernel | pad-to 128k | append-rootfs | pad-rootfs | append-metadata
|
||||
ARTIFACT/preloader.bin := an7581-preloader rfb
|
||||
ARTIFACT/bl31-uboot.fip := an7581-bl31-uboot rfb
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
KERNEL_LOADADDR := 0x80208000
|
||||
|
||||
define Target/Description
|
||||
Build firmware images for Airoha EN7523 ARM based boards.
|
||||
endef
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue