This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4AL-Q1: TDA4AL-Q1: How to increase DFU receiver buffer

Part Number: TDA4AL-Q1


Tool/software:

Hi Sir,

When we download SW 800MB by using DFU mode, we can't complete the download, SW downloading always be interrupted randomly 30% or 70%.

 

Can we increase DFU receiver buffer to avoid the issue?

 

Or do you have other method to avoid the issue? Reducing USB performance?

Thanks.

  • HI 

    The issue is on the host side , can you upgrade your dfu tool to the latest and see if the issue persists.

    dfu-util.sourceforge.net/.../

    Regards
    Diwakar

  • I have used dfu 0.11. I can download 11GB rootfs to eMMC  at TI j721s2-evm and boot from eMMC OK.

    our modified HW is 8GB DDR

    I tried to change the DFU buffer size, there is no use

    configs/j721s2_evm_a72_defconfig | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    diff --git a/configs/j721s2_evm_a72_defconfig b/configs/j721s2_evm_a72_defconfig
    index 8dbb6c38e46..afdd8346375 100755
    --- a/configs/j721s2_evm_a72_defconfig
    +++ b/configs/j721s2_evm_a72_defconfig
    @@ -111,8 +111,8 @@ CONFIG_CLK_TI_SCI=y
    CONFIG_DFU_MMC=y
    CONFIG_DFU_RAM=y
    CONFIG_DFU_SF=y
    -CONFIG_SYS_DFU_DATA_BUF_SIZE=0x40000
    -CONFIG_SYS_DFU_MAX_FILE_SIZE=0x800000
    +CONFIG_SYS_DFU_DATA_BUF_SIZE=0x400000
    +CONFIG_SYS_DFU_MAX_FILE_SIZE=0x8000000
    CONFIG_DMA_CHANNELS=y
    CONFIG_TI_K3_NAVSS_UDMA=y
    CONFIG_USB_FUNCTION_FASTBOOT=y
    --
    2.34.1

  • It is strange I can download tiny rootfs(150MB) to eMMC OK, but fail at base rootfs(850MB). Both base rootfs(850MB) and ti adas rootfs(11GB) can be downloaded to eMMC ok at j721s2-evm at the same PC and same codebase. 

  • HI 

    Do you have logs from the target side, also do can you share the changes which you dif to reduce the size of the DDR to 8GB?

    Regards
    Diwakar

  • It is the HW issue, after rework of 2 HW boards USB type C related circuit. We can download 850MB now.

    But I still need to improve speed of DFU download of rootfs about tisdk-base-image-j721s2-evm.rootfs.ext4(850MB). 

    Can you give us some guides about how to improve DFU speed ?(like  uboot DFU)

  • HI 

    How much time it is taking right now to flash roots?

    Regards
    Diwakar

  • for tisdk-tiny rootfs ext4 image 165MB, the USB 2.0 speed is about 160second

  • HI 

    USB DFU work in HS mode and HS mode the max speed is 480 Mb/s  , whereas this speed is considering the full bandwidth utilisation where we are using all the endpoints.

    But in DFU boot mode we only use control end point which is end point 0 , the speed limitation is due to DFU protocol it is nothing related to TI .

    as DFU it self explain Device Firmware Upgrade where the size of the firmware would be small.

    if you see the USB DFU spec only control pipe is getting used no other endpoints 

    Regards
    Diwakar