Hi,
I am able load tiboot3.bin -> sysfw.itb -> tispl.bin -> u-boot.img >> rootfs.ext4(3GB) using dfu-util.
dfu is enabled over USB0(Type C) instance using u-boot cmd `dfu 0 mmc 1`.
Q1: cmd `sudo dfu-util -c 1 -i 0 -a rootfs -D rootfs.ext4` takes 2hrs to complete. can we reduce flash time here?? can we write updates only to rootfs.ext4(~few MBs) and then to sd card using dfu and rest other files in rootfs partition of sd card shall not change.
Q2: above rootfs flash cmd writes to boot partition of sd card. how do we change partition here to write rootfs.ext4 to rootfs partition of sd card only ??
uboot logs
root@j7-evm:~# reboot
Stopping Session c2 of user root.
[ OK ] Removed slice system-weston.slice.
[ OK ] Stopped target Multi-User System.
...
[ 4994.681986] reboot: Restarting system
U-Boot SPL 2021.01-g53e79d0e89 (Aug 04 2021 - 23:32:00 +0000)
...
Detected: J7X-INFOTAN-EXP rev E3
Detected: J7X-VSC8514-ETH rev E2
Net: am65_cpsw_nuss_slave ethernet@46000000: K3 CPSW: nuss_ver: 0x6BA00101 cpsw_ver: 0x6BA80100 ale_ver: 0x00293904 Ports:1 mdio_freq:1000000
eth0: ethernet@46000000
Hit any key to stop autoboot: 0
=>
=> setenv dfu_alt_info ${dfu_alt_info_emmc}
=> dfu 0 mmc 1
cdns-usb3-peripheral usb@6000000: Unable to get USB2 phy (ret -61)
cdns,sierra serdes@5030000: sierra probed
cdns-usb3-peripheral usb@6000000: DRD version v1 (ID: 0004024e, rev: 00000200)
cdns-usb3-peripheral usb@6000000: Initialized ep0 support:
cdns-usb3-peripheral usb@6000000: Initialized ep1out support: BULK, INT ISO
...
cdns-usb3-peripheral usb@6000000: Initialized ep15in support: BULK, INT ISO
########################################################################################################################################################################
...
################################################DOWNLOAD ... OK
Ctrl+C to exit ...
=>
=>
linux pc logs
user@ubuntu:~$ sudo dfu-util -l
[sudo] password for user:
dfu-util 0.11
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2021 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to sourceforge.net/.../
Found DFU: [0451:6163] ver=0224, devnum=4, cfg=1, intf=0, path="1-2", alt=6, name="sysfw.itb.raw", serial="0000000000000144"
Found DFU: [0451:6163] ver=0224, devnum=4, cfg=1, intf=0, path="1-2", alt=5, name="u-env.raw", serial="0000000000000144"
Found DFU: [0451:6163] ver=0224, devnum=4, cfg=1, intf=0, path="1-2", alt=4, name="u-boot.img.raw", serial="0000000000000144"
Found DFU: [0451:6163] ver=0224, devnum=4, cfg=1, intf=0, path="1-2", alt=3, name="tispl.bin.raw", serial="0000000000000144"
Found DFU: [0451:6163] ver=0224, devnum=4, cfg=1, intf=0, path="1-2", alt=2, name="tiboot3.bin.raw", serial="0000000000000144"
Found DFU: [0451:6163] ver=0224, devnum=4, cfg=1, intf=0, path="1-2", alt=1, name="rootfs", serial="0000000000000144"
Found DFU: [0451:6163] ver=0224, devnum=4, cfg=1, intf=0, path="1-2", alt=0, name="rawemmc", serial="0000000000000144"
user@ubuntu:~$ sudo dfu-util -c 1 -i 0 -a 1 -D rootfs.ext4
dfu-util 0.11
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2021 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to sourceforge.net/.../
dfu-util: Warning: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release
Opening DFU capable USB device...
Device ID 0451:6163
Device DFU version 0110
Claiming USB DFU Interface...
Setting Alternate Interface #1 ...
Determining device status...
DFU state(2) = dfuIDLE, status(0) = No error condition is present
DFU mode device DFU version 0110
Device returned transfer size 4096
Copying data from PC to DFU device
Download [=========================] 100% 3221225472 bytes
Download done.
DFU state(7) = dfuMANIFEST, status(0) = No error condition is present
DFU state(2) = dfuIDLE, status(0) = No error condition is present
Done!
user@ubuntu:~$