mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 15:32:33 +00:00
a296055b82
Similar to the lzma-loader on our MIPS targets, the spi-loader acts as a second-stage loader that will then load and start the actual kernel. As the TL-WDR4900 uses SPI-NOR and the P1010 family does not have support for memory mapping of this type of flash, this loader needs to contain a basic driver for the FSL ESPI controller. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
14 lines
462 B
Makefile
14 lines
462 B
Makefile
TEXT_START := 0x800000
|
|
|
|
# It seems that the TP-Link TL-WDR4900 U-Boot does not flush the cache before
|
|
# jumping into the uImage. Padding the image to 32k seems make the boot work
|
|
# reliably.
|
|
#
|
|
# We leave 0x40 for the uImage header, which allows us to append the kernel
|
|
# uImage after the loader and read with an added offset 0x8000 from the
|
|
# SPI flash.
|
|
PAD_TO := 0x807fc0
|
|
|
|
# Kernel begins at 0x60200 in flash, loader adds 0x8000
|
|
IMAGE_OFFSET := 0x68200
|