Fix for injecting "gpio set PG11" in boot.cmd

This commit is contained in:
Thomas Kaiser 2016-02-19 17:48:40 +01:00
parent 80247916c6
commit 7dbcfecddc

View File

@ -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"