# Connect OTG to PC and put the unit into fastboot mode
sudo apt install -y fastboot
fastboot devices -l
????????????           DFU download
 usb:3-3

# Stage Boot (Wait a few seconds between each STAGE)
fastboot stage FSBL.bin
fastboot continue

fastboot stage u-boot.itb
fastboot continue

# Flash to SPI
fastboot flash mtd partition_4M.json
sleep .75
fastboot flash bootinfo bootinfo_spinor.bin
sleep .75
fastboot flash fsbl FSBL.bin
sleep .75
fastboot flash env u-boot-env-default.bin
sleep .75
fastboot flash esos esos.itb
sleep .75
fastboot flash opensbi fw_dynamic.itb
sleep .75
fastboot flash uboot u-boot.itb
sleep .75
fastboot reboot
