#!/bin/bash if [[ ! -d "$1" ]] ; then echo "ERROR: You need to pass u-boot artifacts directory as first argument" exit 1 fi exec ./rk2aw/rk2aw-spi-flasher --uboot-spl "$1/u-boot-spl.bin" \ --uboot-tpl "$1/u-boot-tpl.bin" \ --uboot-itb "$1/u-boot.itb" \ --replace-fallback