diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2017-10-08 16:52:28 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2017-10-11 21:36:24 +0200 |
commit | d5cf4a5aa4a3211012967748569d9a631ee19466 (patch) | |
tree | dd0012a3c73e105290a67a5607487233c1bd7d4a /target/linux/brcm47xx/image/lzma-loader | |
parent | f98f83eadaf6fc84fb33eaff50b9efd37c2cc5ed (diff) | |
download | upstream-d5cf4a5aa4a3211012967748569d9a631ee19466.tar.gz upstream-d5cf4a5aa4a3211012967748569d9a631ee19466.tar.bz2 upstream-d5cf4a5aa4a3211012967748569d9a631ee19466.zip |
brcm47xx: relocate loader to higher address
The boot process on a WRT54GL works the following way:
1. CFE gets loaded by the boot rom from flash
2. CFE loads the loader from the flash and gzip uncompresses it
3. CFE starts the loader
4. The loader stores the FW arguments and relocates itself to
BZ_TEXT_START (now 0x80600000)
5. The loader reads the Linux image from flash
6. The loader lzma decompresses the Linux image to LOADADDR (0x80001000)
7. The loader executes the uncompress Linux image at LOADADDR
The BZ_TEXT_START was set to 0x80400000 before. When the kernel gets
uncompressed and is bigger than BZ_TEXT_START - LOADADDR it overwrote
the loader which was currently uncompressing it and made the board
crash. Increase the BZ_TEXT_START my 2 MB to have more space for the
kernel. Even on 16MB RAM devices the memory goes till 0x80FFFFFF so this
should not be a problem.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'target/linux/brcm47xx/image/lzma-loader')
-rw-r--r-- | target/linux/brcm47xx/image/lzma-loader/src/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/brcm47xx/image/lzma-loader/src/Makefile b/target/linux/brcm47xx/image/lzma-loader/src/Makefile index 3320e565d0..444039c558 100644 --- a/target/linux/brcm47xx/image/lzma-loader/src/Makefile +++ b/target/linux/brcm47xx/image/lzma-loader/src/Makefile @@ -18,7 +18,7 @@ # TEXT_START := 0x80001000 -BZ_TEXT_START := 0x80400000 +BZ_TEXT_START := 0x80600000 OBJCOPY := $(CROSS_COMPILE)objcopy -O binary -R .reginfo -R .note -R .comment -R .mdebug -S |