Notes for enabling GPU
authorJoseph Coffland <joseph@cauldrondevelopment.com>
Fri, 30 Nov 2018 21:42:48 +0000 (13:42 -0800)
committerJoseph Coffland <joseph@cauldrondevelopment.com>
Fri, 30 Nov 2018 21:42:48 +0000 (13:42 -0800)
scripts/install.sh

index fb21aa2f962fa99e11b0a13808ac8dbefcc5b475..874835179d94ce9e65b1d0e61f31fd82797d35ed 100755 (executable)
@@ -32,6 +32,22 @@ if [ $? -ne 0 ]; then
 fi
 
 
+# TODO Enable GPU
+#grep ^dtoverlay=vc4-kms-v3d /boot/config.txt >/dev/null
+#if [ $? -ne 0 ]; then
+#    mount -o remount,rw /boot &&
+#    (
+#        echo
+#        echo dtoverlay=vc4-kms-v3d
+#        echo gpu_mem=16
+#    ) >> /boot/config.txt
+#    mount -o remount,ro /boot
+#fi
+#grep "plymouth quit" /etc/rc.local
+#if [ $? -ne 0 ]; then
+#    sed -i 's/cd \/home\/pi/cd \/home\/pi; plymouth quit/' /etc/rc.local
+#fi
+
 # Fix camera
 grep dwc_otg.fiq_fsm_mask /boot/cmdline.txt >/dev/null
 if [ $? -ne 0 ]; then