J784S4XEVM: Crash after DFU transfer with auto-reset (dfu-util -R) in U-Boot 2025.01

Part Number: J784S4XEVM

Tool/software:

Hello Support Team,



We are facing a crash in U-Boot when transferring a compressed rootfs image (rootfs.img.gz) into RAM using DFU.

As soon as the transfer finishes, U-Boot crashes with a synchronous abort, before we can use the buffer (e.g. with gzwrite).

This happens consistently with the latest U-Boot build:

U-Boot 2025.01-00547-g3bcfad6cee95-dirty

Steps to Reproduce:

1. On the target board (J784S4 EVM):

run bootcmd_dfu

2. On the host PC:

dfu-util -R -a ram -D rootfs.img.gz


3. Right after the transfer completes, U-Boot throws a synchronous abort and resets.

Crash Log (excerpt):

"Synchronous Abort" handler, esr 0x96000006, far 0x9f3ffff8
Resetting CPU ...

Additional Notes:

  • The problem only occurs with DFU transfer of a gzip-compressed image (rootfs.img.gz).
  • If we run bootcmd_dfu interactively in U-Boot and load the same file, it does not crash.

Environment:

  • Board: J784S4 EVM
  • U-Boot version: U-Boot 2025.01-00547-g3bcfad6cee95-dirty
  • Load address: 0x80000000
  • File: rootfs.img.gz (gzip-compressed ext4 rootfs image)
  • Host tool: dfu-util 0.11

Expectation:

  • After DFU transfer with -R, the file should remain in memory at 0x80000000 and be usable, just like when bootcmd_dfu is executed manually inside U-Boot.