Do not allow GL driver to be enabled on 2835-based Pis - it needs at least 1GB of RAM.

This commit is contained in:
Simon Long 2016-01-23 09:48:28 +00:00 committed by Serge Schneider
parent 31bc453040
commit 32191d23d5

View File

@ -23,6 +23,11 @@ is_pitwo() {
return $?
}
is_pizero() {
grep -q "^Revision\s*:\s*[0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]09[0-9a-fA-F]" /proc/cpuinfo
return $?
}
get_pi_type() {
if is_pione; then
echo 1
@ -990,6 +995,10 @@ EOF
}
do_gldriver() {
if is_pione || is_pizero; then
whiptail --msgbox "GL driver cannot be used on Pi 1 or Pi 0" 20 60 2
return 1
fi
if [ ! -e /boot/overlays/vc4-kms-v3d-overlay.dtb ]; then
whiptail --msgbox "Driver and kernel not present on your system. Please update" 20 60 2
return 1