• Siarhei Siamashka's avatar
    fel: Move backup area to higher addresses in SRAM on A10/A13/A20 · 9a80504e
    Siarhei Siamashka authored
    
    
    Previously the backup area was allocated at the address 0x8000.
    This is not very good because it means that the U-Boot SPL can
    only safely use memory at addresses 0x0000-0x7FFF (32 KiB). But
    if we move the backup area to the end of the SRAM A4, this can
    allow U-Boot SPL to use memory 0x0000-0x9FFF (40 KiB). The BROM
    can't load such large SPLs from the SD card. But the SPL still
    can move its stack up to the 40 KiB boundary or do UCL or LZO
    decompression at runtime to squeeze more code into it.
    
    This patch makes the sunxi-fel tool compatible with 40 KiB SPLs,
    even though the current U-Boot releases do not use them yet.
    Signed-off-by: default avatarSiarhei Siamashka <siarhei.siamashka@gmail.com>
    Acked-by: default avatarBernhard Nortmann <bernhard.nortmann@web.de>
    9a80504e
fel.c 53.5 KB