Skip to content
Snippets Groups Projects
Commit 4599ff4b authored by Bastindo's avatar Bastindo
Browse files

dongshanpi-nezhastu: change board to dongshanpi-nezhastu in update-uboot script

parent 7b2d2845
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ usage: $0 [-n,--dry-run] [-i,--imagedir <imagedir>] [-b|--board <board-type>] [-
options:
-b,--board <board> Specify the board type: mangopi-mq-pro
-b,--board <board> Specify the board type: dongshanpi-nezhastu
(current default: ${board:-none})
-d,--device <device> Specify the device where to install u-boot
......@@ -40,7 +40,7 @@ while [ $# -gt 0 ]; do
case "$opt" in
-b|--board)
case "$1" in
mangopi-mq-pro) board="mangopi-mq-pro" ;;
dongshanpi-nezhastu) board="dongshan_nezha_stu" ;;
*) usage; exit 1;;
esac
shift
......@@ -79,9 +79,9 @@ fi
(
set -e
case "$board" in
mangopi_mq_pro)
[ -e "$imagedir/mangopi_mq_pro" ] || die "mangopi-mq-pro images not installed, apk add u-boot-mangopi-mq-pro"
$dryrun dd if=$imagedir/mangopi_mq_pro/u-boot-sunxi-with-spl.bin of=$device bs=8192 seek=16 status=none
dongshan_nezha_stu)
[ -e "$imagedir/dongshan_nezha_stu" ] || die "dongshanpi-nezhastu images not installed, apk add u-boot-dongshanpi-nezhastu"
$dryrun dd if=$imagedir/dongshan_nezha_stu/u-boot-sunxi-with-spl.bin of=$device bs=8192 seek=16 status=none
;;
esac
$dryrun sync
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment