#!/bin/bash # # Do this only once, to clear out the entire SPI chip and install rk2aw # This will erase the entire flash chip # set -e ./rk2aw/rk2aw-spi-flasher --erase-all --rk2aw rk2aw/debug.img.spi if [[ -d foss ]] ; then ./spinor-flash-fallback-uboot.sh foss else ./spinor-flash-fallback-uboot.sh rkbin fi ./spinor-flash-primary-uboot.sh rkbin