From 7dbcfecddc15e4c564e90b577350f4cd185c37c4 Mon Sep 17 00:00:00 2001 From: Thomas Kaiser Date: Fri, 19 Feb 2016 17:48:40 +0100 Subject: [PATCH] Fix for injecting "gpio set PG11" in boot.cmd --- boards.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards.sh b/boards.sh index c5e3c47f5d..30d9e3c689 100644 --- a/boards.sh +++ b/boards.sh @@ -132,7 +132,7 @@ install_board_specific (){ cp $SRC/lib/config/boot.cmd $DEST/cache/sdcard/boot/boot.cmd # orangepi h3 temp exceptions [[ $LINUXFAMILY == "sun8i" ]] && sed -i '1s/^/gpio set PA15\nsetenv machid 1029\nsetenv bootm_boot_mode sec\n/' $DEST/cache/sdcard/boot/boot.cmd - [[ $BOARD == orangepip* ]] && sed -i '1s/^/gpio set PG11\n/' $DEST/cache/sdcard/boot/boot.cmd + [[ $BOARD == orangepip* ]] && sed -i '/^gpio set PA15/a gpio set PG11' $DEST/cache/sdcard/boot/boot.cmd # let's prepare for old kernel too chroot $DEST/cache/sdcard /bin/bash -c \ "ln -s /boot/bin/$BOARD.bin /boot/script.bin >/dev/null 2>&1 || cp /boot/bin/$BOARD.bin /boot/script.bin"