SPRACY5 July 2021 AM67 , AM67 , AM67A , AM67A , AM68 , AM68 , AM68A , AM68A , AM69 , AM69 , AM69A , AM69A , DRA821U , DRA821U , DRA821U-Q1 , DRA821U-Q1 , DRA829J , DRA829J , DRA829J-Q1 , DRA829J-Q1 , DRA829V , DRA829V , DRA829V-Q1 , DRA829V-Q1 , TDA4AEN-Q1 , TDA4AEN-Q1 , TDA4AH-Q1 , TDA4AH-Q1 , TDA4AL-Q1 , TDA4AL-Q1 , TDA4AP-Q1 , TDA4AP-Q1 , TDA4VE-Q1 , TDA4VE-Q1 , TDA4VEN-Q1 , TDA4VEN-Q1 , TDA4VH-Q1 , TDA4VH-Q1 , TDA4VL-Q1 , TDA4VL-Q1 , TDA4VM , TDA4VM , TDA4VM-Q1 , TDA4VM-Q1 , TDA4VP-Q1 , TDA4VP-Q1
# This will download the images to the board but not flash them to eMMC
# These first set of steps are optional if you have u-boot running on the board already
HOST $ sudo dfu-util -l
HOST $ sudo dfu-util -R -a bootloader -D <PATH_TO_BIN>/tiboot3.bin
HOST $ sudo dfu-util -R -a sysfw.itb -D <PATH_TO_BIN>/sysfw.itb
HOST $ sudo dfu-util -R -a tispl.bin -D <PATH_TO_BIN>/tispl.bin
HOST $ sudo dfu-util -R -a u-boot.img -D <PATH_TO_BIN>/u-boot.img
# At this point, the u-boot will start executing. Halt at the u-boot prompt (u-boot logs will appear on the MAIN UART 1st instance)
TARGET => env default -f -a
TARGET => setenv mmcdev 0
TARGET => setenv bootpart 0
TARGET => saveenv
TARGET => setenv dfu_alt_info ${dfu_alt_info_emmc}
# one time only per board
TARGET => gpt write mmc 0 ${partitions}
TARGET => dfu 0 mmc 0
# This does the actual flashing to the eMMC boot0 partition
HOST $ sudo dfu-util -l
HOST $ sudo dfu-util -a tiboot3.bin.raw -D <PATH_TO_BIN>/tiboot3.bin
HOST $ sudo dfu-util -a tispl.bin.raw -D <PATH_TO_BIN>/tispl.bin
HOST $ sudo dfu-util -a u-boot.img.raw -D <PATH_TO_BIN>/u-boot.img
HOST $ sudo dfu-util -a sysfw.itb.raw -D <PATH_TO_BIN>/sysfw.itb
# Flashing a tiny file system to eMMC User partition
HOST $ sudo dfu-util -a rootfs -D <PATH_TO_CREATED_TINYFS>/tinyrootfs.img
#one time only per board, to give ROM access to the boot partition, the following commands must be used for the first time
TARGET => mmc partconf 0 1 1 1
TARGET => mmc bootbus 0 2 0 0