configs: j72*_evm: Define the buffer sizes for dfu
authorAswath Govindraju <a-govindraju@ti.com>
Thu, 26 Aug 2021 15:58:59 +0000 (21:28 +0530)
committerTom Rini <trini@konsulko.com>
Sat, 11 Sep 2021 00:10:20 +0000 (20:10 -0400)
commitcab1306a0990474032a7523e73ff185507488e3b
tree12e1c396ad1f7e61351036f6d4b3b01618da318b
parent7026b88844f3b3313c390cd57a119164319377a4
configs: j72*_evm: Define the buffer sizes for dfu

On J721e R5 SPL, dfu buffer for loading sysfw.itb image gets allocated
before DRAM gets initialized. So, the buffer gets allocated in MCU L3
RAM. The current buffer size to be allocated is 256KB  and the available
total heap memory is 0x70000 (448KB). This leads to NOMEM errors during
allocation.

In other cases when constraints such as above are not present fix the size
of buffers to the sector size in OSPI for proper functioning.

Also, if CONFIG_SYS_DFU_DATA_BUF_SIZE is defined and
CONFIG_SYS_DFU_MAX_FILE_SIZE is not defined then the max file size for dfu
transfer is defined as CONFIG_SYS_DFU_DATA_BUF_SIZE.

Fix these by setting appropriate buffer sizes in their respective defconfig
files and defining the max file size as 8 MB which is the default dfu
buffer size.

Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>
configs/j7200_evm_a72_defconfig
configs/j7200_evm_r5_defconfig
configs/j721e_evm_a72_defconfig
configs/j721e_evm_r5_defconfig
include/configs/j721e_evm.h