mirror of
https://github.com/brain-hackers/brain-config.git
synced 2025-01-03 10:00:07 +09:00
Do not allow GL driver to be enabled on 2835-based Pis - it needs at least 1GB of RAM.
This commit is contained in:
parent
31bc453040
commit
32191d23d5
@ -23,6 +23,11 @@ is_pitwo() {
|
|||||||
return $?
|
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() {
|
get_pi_type() {
|
||||||
if is_pione; then
|
if is_pione; then
|
||||||
echo 1
|
echo 1
|
||||||
@ -990,6 +995,10 @@ EOF
|
|||||||
}
|
}
|
||||||
|
|
||||||
do_gldriver() {
|
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
|
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
|
whiptail --msgbox "Driver and kernel not present on your system. Please update" 20 60 2
|
||||||
return 1
|
return 1
|
||||||
|
Loading…
Reference in New Issue
Block a user