Skip to content

Commit

Permalink
layerscape: armv8_64b: fix KERNEL_LOADADDR for linux >= 5.8
Browse files Browse the repository at this point in the history
In kernel versions newer than 5.8 the arm64 TEXT_OFFSET (0x80000) has
been set to 0x0 (and later removed). This will break Uimages with kernel
load addresses that aren't 2MiB aligned any longer. Resulting in the
kernel silently fail to boot. For layerscape armv8_64b targets this
needs to be changed to 0x80000000 (start of RAM).

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
  • Loading branch information
sch-m authored and hauke committed Dec 13, 2021
1 parent 68b4e9f commit 82ce460
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions target/linux/layerscape/image/armv8_64b.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ define Device/Default
FILESYSTEMS := squashfs
KERNEL := kernel-bin | gzip | uImage gzip
KERNEL_INITRAMFS = kernel-bin | gzip | fit gzip $$(DTS_DIR)/$$(DEVICE_DTS).dtb
ifdef CONFIG_LINUX_5_4
KERNEL_LOADADDR := 0x80080000
else
KERNEL_LOADADDR := 0x80000000
endif
DEVICE_DTS = freescale/$(subst _,-,$(1))
IMAGE_SIZE := 64m
IMAGE/sysupgrade.bin = \
Expand Down

0 comments on commit 82ce460

Please sign in to comment.