Hi,
I've been trying to implement the download feature from dfu-util into Python. I've run into an issue and I'm wondering if any of you have experienced anything similar. I'm trying to download the four required boot images (tiboot3.bin, sysfw.itb, tispl.bin and u-boot.img) into a J721e device.
Running all steps[1] with dfu-util works but in my Python implementation I run into issue when loading "sysfw.itb".
dfu-util -R -a 0 -D tiboot3.bin
sleep 1
dfu-util -R -D sysfw.itb
My pseudo code using pyusb[2] for downloading an image is as follows:
1. Claim interface.
2. Download image in chunks.
3. Get status and send next chunk when the device is available.
4. Send empty download request to signalize end.
5. Get status and wait if device is in manifest or manifest-sync state.
6. Release interface.
7. Reset device.
During the download of "sysfw.itb", after step 4, I get an error status with the message:
"Something went wrong, but the device does not know what it".
Does anyone know why the download works for the first boot image but not the second?
Thanks in advance!
References: