]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
configs: am62x_evm_*: Set DFU buffer size to 256k
authorJonathan Humphreys <j-humphreys@ti.com>
Fri, 20 Dec 2024 21:53:34 +0000 (15:53 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 21 Jan 2025 15:27:41 +0000 (09:27 -0600)
OSPI flash writing was broken on am62x SKs as the OSPI flash device has a
256k sector size but was set to 20k. This breaks OSPI flash writes because
the current implementation of the SF DFU backend requires that the DFU data
buffer size be the same as the sector erase size, and the USB DFU config
fragment (for both A53 and R5) reduced the size of the DFU data buffer,
presumably so that it can fit into SPL's much smaller heap.

Change the SYS_DFU_DATA_BUF_SIZE to the erase sector size, which still fits
within the post-relocation heap size in SPL.

Fixes: dfc2dff5a844 ("configs: am62x_evm_*: Enable USB and DFU support")
Signed-off-by: Jonathan Humphreys <j-humphreys@ti.com>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
configs/am62x_a53_usbdfu.config
configs/am62x_r5_usbdfu.config

index 0d3c6df1e739a5b41b293dc3c9780d765c3ab020..812f99ee70bf517d0591fd3083f92ef9bbbd716f 100644 (file)
@@ -10,7 +10,7 @@ CONFIG_SYSCON=y
 CONFIG_SPL_SYSCON=y
 CONFIG_DFU_MMC=y
 CONFIG_DFU_RAM=y
-CONFIG_SYS_DFU_DATA_BUF_SIZE=0x5000
+CONFIG_SYS_DFU_DATA_BUF_SIZE=0x40000
 CONFIG_SYS_DFU_MAX_FILE_SIZE=0x800000
 CONFIG_USB=y
 CONFIG_DM_USB_GADGET=y
index 772bb2ab935d2c71ef77c7bfd3cf51d1284e20b4..efaae504c1a514b21a173251464f5fd8b1acc64d 100644 (file)
@@ -1,7 +1,7 @@
 CONFIG_SPL_ENV_SUPPORT=y
 CONFIG_SYSCON=y
 CONFIG_SPL_SYSCON=y
-CONFIG_SYS_DFU_DATA_BUF_SIZE=0x5000
+CONFIG_SYS_DFU_DATA_BUF_SIZE=0x40000
 CONFIG_MISC=y
 CONFIG_USB=y
 CONFIG_DM_USB_GADGET=y