From c64be6fcb209dd89ba96aa3c80605c5c257ddff7 Mon Sep 17 00:00:00 2001 From: Thomas Kaiser Date: Mon, 15 Feb 2016 13:35:07 +0100 Subject: [PATCH] Add 2nd script.bin for H3 boards to be used with HDMI-to-DVI adapters --- configuration.sh | 2 +- makeboarddeb.sh | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/configuration.sh b/configuration.sh index 3aee5c2cb6..0adfd8b5e0 100644 --- a/configuration.sh +++ b/configuration.sh @@ -211,7 +211,7 @@ ;; orangepiplus)#enabled - #description H3 quad core 1Gb SoC Wifi USB hub + #description H3 quad core 1Gb SoC Wifi GbE USB hub #build 3wip LINUXFAMILY="sun8i" BOOTCONFIG="orangepi_plus_defconfig" diff --git a/makeboarddeb.sh b/makeboarddeb.sh index eb1bbf188b..5873a60376 100644 --- a/makeboarddeb.sh +++ b/makeboarddeb.sh @@ -115,6 +115,17 @@ create_board_package (){ mkdir -p $destination/boot/bin for i in $(ls -w1 $SRC/lib/config/*.fex | xargs -n1 basename); do fex2bin $SRC/lib/config/${i%*.fex}.fex $destination/boot/bin/${i%*.fex}.bin; + case ${i%*.fex} in + orangepiplus|orangepi2|orangepipc|orangepione|orangepilite) + # H3 based devices need a fix when used with DVI displays + # so we provide a 2nd script.bin to be replaced manually + # when using kernel 3.4.x + sed '/\[hdmi_para\]/a \ +hdcp_enable = 0\ +hdmi_cts_compatibility = 1\ +' <"${SRC}/lib/config/${i%*.fex}.fex" | fex2bin - "${destination}/boot/bin/${i%*.fex}_hdmi2dvi.bin" + ;; + esac done # bluetooth device enabler - for cubietruck