u-boot-brain/drivers/mtd
Masahiro Yamada 2bc1f2b592 mtd: denali_spl: do not allocate page_buffer in .bss section
Since commit 2580a2a7e7 ("mtd: nand: Increase max sizes of OOB and
Page size"), three boards (ph1_ld4, ph1_pro4, ph1_sld8) fail to build
with the following error message:
  arm-linux-gnueabi-ld.bfd: SPL image plus BSS too big

They compile drivers/mtd/nand/denali_spl.c and it has a page_buffer
as static data:

    static uint8_t page_buffer[NAND_MAX_PAGESIZE];

This buffer required 8KB in .bss section before that commit and now
it has been increased to 16KB.  Given limited code/memory size for SPL,
it is not a good idea to allocate a page buffer statically.  In the
first place, the load address 'dst' can be used as a page buffer.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
2015-08-30 22:18:00 +09:00
..
nand mtd: denali_spl: do not allocate page_buffer in .bss section 2015-08-30 22:18:00 +09:00
onenand
spi of: clean up OF_CONTROL ifdef conditionals 2015-08-18 13:46:05 -04:00
ubi
at45.c
cfi_flash.c
cfi_mtd.c
dataflash.c
ftsmc020.c
jedec_flash.c
Kconfig
Makefile mtd, nand: Move common functions from cmd_nand.c to common place 2015-06-30 00:40:11 +05:30
mtd_uboot.c mtd: fix false positive "Offset exceeds device limit" error 2015-07-10 09:38:50 -04:00
mtdconcat.c
mtdcore.c mtd: Introduce mtd_block_isreserved() 2015-08-25 22:53:57 -05:00
mtdcore.h
mtdpart.c mtd: Introduce mtd_block_isreserved() 2015-08-25 22:53:57 -05:00
mw_eeprom.c
st_smi.c