#!/usr/bin/bash set -u # ------------------------------------------------------------------------------ # READ FIRMWARE LIST # ------------------------------------------------------------------------------ source ndrun_fwlist # ------------------------------------------------------------------------------ # SET FIRMWARE # ------------------------------------------------------------------------------ if [ $# -eq 0 ] then echo "usage: setfirmware " echo " Sets the firmware for local or network." echo " * for network : ${FW_FOR_EXTENSION}.x.x" echo " * for local : ${FW_FOR_STANDARD}.x.x" exit 0 fi # if [ $1 != "net" -a $1 != "not_net" ] # then # echo "Illegal argument. Do nothing and exit." # exit 1 # fi if [ "$NDEV" = "" ] then echo "NDEV is not found. Do nothing and exit." exit 0 fi if [ "$NDEV" != "" ] then echo "NDEV detected" # # change NDEV configuration # if cp -pf $REVOLUTION_SDK_ROOT/x86/bin/rvl.no.${1}.bin $REVOLUTION_SDK_ROOT/x86/bin/rvl.bin && cp -pf $REVOLUTION_SDK_ROOT/RVL/boot/apploader${1}.img $REVOLUTION_SDK_ROOT/RVL/boot/apploader.img then case $1 in ${FW_FOR_EXTENSION}) echo "Successfully done. Set the firmware for EXTENSION." ;; ${FW_FOR_STANDARD}) echo "Successfully done. Set the firmware for STANDARD." ;; *) echo "Successfully done. Set the unexpected firmware." ;; esac else echo "Failed to set the firmware version." exit 1 fi fi echo echo "**********************************************************************" echo "* If you make master data, you must execute ndrun before you do so!! *" echo "**********************************************************************" echo