Re: [LEDE-DEV] [PATCH] brcm47xx: relocate loader to higher address

2017-10-08 Thread Hauke Mehrtens
On 10/08/2017 09:25 PM, p.wa...@gmx.at wrote: > Hi Hauke, > >> 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. > > Currently, BZ_TEXT_START - LOADADDR = 0x8040 - 0x80

Re: [LEDE-DEV] [PATCH] brcm47xx: relocate loader to higher address

2017-10-08 Thread Arjen de Korte
Citeren p.wa...@gmx.at: Hi Hauke, 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. Currently, BZ_TEXT_START - LOADADDR = 0x8040 - 0x80001000 = 3FF000 = 4190208 bytes T

Re: [LEDE-DEV] [PATCH] brcm47xx: relocate loader to higher address

2017-10-08 Thread p . wassi
Hi Hauke, > 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. Currently, BZ_TEXT_START - LOADADDR = 0x8040 - 0x80001000 = 3FF000 = 4190208 bytes Today's trunk brcm47xx ke

Re: [LEDE-DEV] [PATCH] brcm47xx: relocate loader to higher address

2017-10-08 Thread Florian Fainelli
On 10/08/2017 08:29 AM, Hauke Mehrtens wrote: > On 10/08/2017 05:06 PM, Hauke Mehrtens wrote: >> 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 >

Re: [LEDE-DEV] [PATCH] brcm47xx: relocate loader to higher address

2017-10-08 Thread Hauke Mehrtens
On 10/08/2017 05:06 PM, Hauke Mehrtens wrote: > 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 i

[LEDE-DEV] [PATCH] brcm47xx: relocate loader to higher address

2017-10-08 Thread Hauke Mehrtens
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 0x8060) 5. The loader