diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2022-03-27 20:57:01 +0200 |
---|---|---|
committer | David Bauer <mail@david-bauer.net> | 2022-10-14 23:15:12 +0200 |
commit | f7a43e46065609910bdd2fa6f97ffa1deeda222b (patch) | |
tree | 33730b5a09fee04e3d66b03917c40c5f2699258c /target/linux/mpc85xx/image/spi-loader/loader.lds | |
parent | c1fcca50ba924fcb2b51a03a8dbf68c2fe7ae60c (diff) | |
download | upstream-f7a43e46065609910bdd2fa6f97ffa1deeda222b.tar.gz upstream-f7a43e46065609910bdd2fa6f97ffa1deeda222b.tar.bz2 upstream-f7a43e46065609910bdd2fa6f97ffa1deeda222b.zip |
mpc85xx: add SPI kernel loader for TP-Link TL-WDR4900 v1
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>
(cherry picked from commit a296055b82fbb20457273492069ce9d62009e2a1)
Diffstat (limited to 'target/linux/mpc85xx/image/spi-loader/loader.lds')
-rw-r--r-- | target/linux/mpc85xx/image/spi-loader/loader.lds | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/target/linux/mpc85xx/image/spi-loader/loader.lds b/target/linux/mpc85xx/image/spi-loader/loader.lds new file mode 100644 index 0000000000..3af24a162e --- /dev/null +++ b/target/linux/mpc85xx/image/spi-loader/loader.lds @@ -0,0 +1,31 @@ +OUTPUT_ARCH(powerpc:common) +ENTRY(_start) +EXTERN(_start) +SECTIONS { + .text : + { + _text_start = .; + *(.text*) + _text_len = ABSOLUTE(. - _text_start); + } + .data : + { + _data_start = .; + *(.rodata*) + *(.data*) + *(.sdata*) + _data_len = ABSOLUTE(. - _data_start); + } + . = ALIGN(4096); + .bss : + { + _bss_start = .; + . += 4K; + _stack_top = .; + *(.bss*) + *(.sbss*) + _bss_len = ABSOLUTE(. - _bss_start); + } + . = ALIGN(4096); + _end = .; +} |