sunxi-fel uboot images/uboot_fb.bin
fastboot flash boot images/uboot-with-spl-spinand.bin
fastboot flash logo images/logo3.bin
fastboot flash dtb images/suniv-f1c100s-licheepi-nano.dtb
fastboot flash kernel images/uImage


fastboot flash rootfssize images/rootfs.size
rem fastboot flash rootfs images/rootfs.ubifs
fastboot -S 20M flash rootfsa images/rootfs.ubifsaa
fastboot -S 20M flash rootfsb images/rootfs.ubifsab

fastboot flash cache images/cache.ubifs
fastboot flash data images/data.ubifs
fastboot reboot

@echo off
setlocal enabledelayedexpansion
for /f "delims=" %%i in ("images/rootfs.ubi") do (
 set size=%%~zi
)


pause