[PATCH v2 3/3] configs: j72*_evm: Define the buffer sizes for dfu

Tom Rini trini at konsulko.com
Sat Sep 11 14:17:22 CEST 2021


On Thu, Aug 26, 2021 at 09:28:59PM +0530, Aswath Govindraju wrote:

> 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 at ti.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210911/3724c77a/attachment.sig>


More information about the U-Boot mailing list