##// END OF EJS Templates
enble to add graphics acceleration for Pi4
vidal -
r758:cbd6423e90b0
parent child
Show More
@@ -265,7 +265,7 fi
265 echo "${CMDLINE}" > "${BOOT_DIR}/cmdline.txt"
265 echo "${CMDLINE}" > "${BOOT_DIR}/cmdline.txt"
266
266
267 # Setup minimal GPU memory allocation size: 16MB (no X)
267 # Setup minimal GPU memory allocation size: 16MB (no X)
268 if [ "$ENABLE_MINGPU" = true ] ; then
268 if [ "$ENABLE_MINGPU" = true ] && [ "$ENABLE_GR_ACCEL" = false ] ; then
269 echo "gpu_mem=16" >> "${BOOT_DIR}/config.txt"
269 echo "gpu_mem=16" >> "${BOOT_DIR}/config.txt"
270 fi
270 fi
271
271
@@ -310,6 +310,17 if [ "$ENABLE_SPI" = true ] ; then
310 fi
310 fi
311 fi
311 fi
312
312
313 #Enable graphics acceleration for Model 4
314 if [ "$RPI_MODEL" = 4 ] && [ "$ENABLE_GR_ACCEL" = true ] ; then
315 echo "max_framebuffers=2" >> "${BOOT_DIR}/config.txt"
316 echo "arm_64bit=1" >> "${BOOT_DIR}/config.txt"
317 echo "cmdline=cmdline.txt" >> "${BOOT_DIR}/config.txt"
318 echo "dtparam=audio=on" >> "${BOOT_DIR}/config.txt"
319 echo "gpu_mem=128" >> "${BOOT_DIR}/config.txt"
320 echo "dtoverlay=vc4-fkms-v3d, cma-128" >> "${BOOT_DIR}/config.txt"
321 fi
322
323
313 # Disable RPi2/3 under-voltage warnings
324 # Disable RPi2/3 under-voltage warnings
314 if [ -n "$DISABLE_UNDERVOLT_WARNINGS" ] ; then
325 if [ -n "$DISABLE_UNDERVOLT_WARNINGS" ] ; then
315 echo "avoid_warnings=${DISABLE_UNDERVOLT_WARNINGS}" >> "${BOOT_DIR}/config.txt"
326 echo "avoid_warnings=${DISABLE_UNDERVOLT_WARNINGS}" >> "${BOOT_DIR}/config.txt"
@@ -191,6 +191,7 CHROOT_SCRIPTS=${CHROOT_SCRIPTS:=""}
191 ENABLE_UBOOT=${ENABLE_UBOOT:=false}
191 ENABLE_UBOOT=${ENABLE_UBOOT:=false}
192 UBOOTSRC_DIR=${UBOOTSRC_DIR:=""}
192 UBOOTSRC_DIR=${UBOOTSRC_DIR:=""}
193 ENABLE_FBTURBO=${ENABLE_FBTURBO:=false}
193 ENABLE_FBTURBO=${ENABLE_FBTURBO:=false}
194 ENABLE_GR_ACCEL=$ENABLE_GR_ACCEL:=true}
194 FBTURBOSRC_DIR=${FBTURBOSRC_DIR:=""}
195 FBTURBOSRC_DIR=${FBTURBOSRC_DIR:=""}
195 ENABLE_VIDEOCORE=${ENABLE_VIDEOCORE:=false}
196 ENABLE_VIDEOCORE=${ENABLE_VIDEOCORE:=false}
196 VIDEOCORESRC_DIR=${VIDEOCORESRC_DIR:=""}
197 VIDEOCORESRC_DIR=${VIDEOCORESRC_DIR:=""}
General Comments 0
Vous devez vous connecter pour laisser un commentaire. Se connecter maintenant