diff options
author | Aswath Govindraju <a-govindraju@ti.com> | 2021-08-26 21:28:59 +0530 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-09-10 20:10:20 -0400 |
commit | cab1306a0990474032a7523e73ff185507488e3b (patch) | |
tree | 12e1c396ad1f7e61351036f6d4b3b01618da318b /include/configs/j721e_evm.h | |
parent | 7026b88844f3b3313c390cd57a119164319377a4 (diff) | |
download | u-boot-cab1306a0990474032a7523e73ff185507488e3b.zip u-boot-cab1306a0990474032a7523e73ff185507488e3b.tar.gz u-boot-cab1306a0990474032a7523e73ff185507488e3b.tar.bz2 |
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>
Diffstat (limited to 'include/configs/j721e_evm.h')
-rw-r--r-- | include/configs/j721e_evm.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/configs/j721e_evm.h b/include/configs/j721e_evm.h index 18b80ef..10555d1 100644 --- a/include/configs/j721e_evm.h +++ b/include/configs/j721e_evm.h @@ -155,9 +155,7 @@ #define EXTRA_ENV_CONFIG_MAIN_CPSW0_QSGMII_PHY #endif -/* set default dfu_bufsiz to 128KB (sector size of OSPI) */ #define EXTRA_ENV_DFUARGS \ - "dfu_bufsiz=0x20000\0" \ DFU_ALT_INFO_MMC \ DFU_ALT_INFO_EMMC \ DFU_ALT_INFO_RAM \ |