@@ -207,6 +207,7 The following static networking parameters are only supported if `ENABLE_WIFI_DH | |||
|
207 | 207 | |ENABLE_UBOOT|boolean|false|`true`\|`false`|Replace the default RPi 0/1/2/3 second stage bootloader (bootcode.bin) with [U-Boot bootloader](https://git.denx.de/?p=u-boot.git;a=summary). U-Boot can boot images via the network using the BOOTP/TFTP protocol. RPI4 needs tbd| |
|
208 | 208 | |UBOOTSRC_DIR|string||`FullPathToUBootFolder`|Full path to a directory named `u-boot` of [U-Boot bootloader sources](https://git.denx.de/?p=u-boot.git;a=summary) that will be copied, configured, build and installed inside the chroot| |
|
209 | 209 | |ENABLE_FBTURBO|boolean|false|`true`\|`false`|Install and enable the [hardware accelerated Xorg video driver](https://github.com/ssvb/xf86-video-fbturbo) `fbturbo`. Please note that this driver is currently limited to hardware accelerated window moving and scrolling| |
|
210 | |ENABLE_GR_ACCEL|boolean|false|`true`\|`false`|Install and enable [one of the 3D graphics accelerators for Raspi4](https://www.raspberrypi.org/documentation/configuration/config-txt/video.md) `vc4-fkms-v3d`. Not compatible with `fbturbo` mutually excluded and installed for Raspberry4 only| | |
|
210 | 211 | |FBTURBOSRC_DIR|string||`FullPathToFbTurboFolder`|Full path to a directory named `xf86-video-fbturbo` of [hardware accelerated Xorg video driver sources](https://github.com/ssvb/xf86-video-fbturbo) that will be copied, configured, build and installed inside the chroot| |
|
211 | 212 | |ENABLE_VIDEOCORE|boolean|false|`true`\|`false`|Install and enable the [ARM side libraries for interfacing to Raspberry Pi GPU](https://github.com/raspberrypi/userland) `vcgencmd`. Please note that this driver is currently limited to hardware accelerated window moving and scrolling| |
|
212 | 213 | |VIDEOCORESRC_DIR|string||`FullPathToVideoSrcFolder`|Full path to a directory named `userland` of [ARM side libraries for interfacing to Raspberry Pi GPU](https://github.com/raspberrypi/userland) that will be copied, configured, build and installed inside the chroot| |
@@ -266,7 +266,12 echo "${CMDLINE}" > "${BOOT_DIR}/cmdline.txt" | |||
|
266 | 266 | |
|
267 | 267 | # Setup minimal GPU memory allocation size: 16MB (no X) |
|
268 | 268 | if [ "$ENABLE_MINGPU" = true ] ; then |
|
269 | if [ "$ENABLE_GR_ACCEL" = false ] ; then | |
|
269 | 270 | echo "gpu_mem=16" >> "${BOOT_DIR}/config.txt" |
|
271 | else | |
|
272 | ### Cannot reduce memory if graphics acceleration is requested | |
|
273 | echo "gpu_mem=128" >> "${BOOT_DIR}/config.txt" | |
|
274 | fi | |
|
270 | 275 | fi |
|
271 | 276 | |
|
272 | 277 | # Setup boot with initramfs |
@@ -315,6 +320,19 if [ -n "$DISABLE_UNDERVOLT_WARNINGS" ] ; then | |||
|
315 | 320 | echo "avoid_warnings=${DISABLE_UNDERVOLT_WARNINGS}" >> "${BOOT_DIR}/config.txt" |
|
316 | 321 | fi |
|
317 | 322 | |
|
323 | #Enable graphics acceleration for Model 4 | |
|
324 | if [ "$RPI_MODEL" = 4 ] && [ "$ENABLE_GR_ACCEL" = true ] ; then | |
|
325 | echo "max_framebuffers=2" >> "${BOOT_DIR}/config.txt" | |
|
326 | echo "arm_64bit=1" >> "${BOOT_DIR}/config.txt" | |
|
327 | echo "cmdline=cmdline.txt" >> "${BOOT_DIR}/config.txt" | |
|
328 | echo "dtparam=audio=on" >> "${BOOT_DIR}/config.txt" | |
|
329 | if [ "$ENABLE_MINGPU" = false ] ; then | |
|
330 | echo "gpu_mem=128" >> "${BOOT_DIR}/config.txt" | |
|
331 | fi | |
|
332 | echo "dtoverlay=vc4-fkms-v3d, cma-128" >> "${BOOT_DIR}/config.txt" | |
|
333 | fi | |
|
334 | ||
|
335 | ||
|
318 | 336 | # Install kernel modules blacklist |
|
319 | 337 | mkdir -p "${ETC_DIR}/modprobe.d/" |
|
320 | 338 | install_readonly files/modules/raspi-blacklist.conf "${ETC_DIR}/modprobe.d/raspi-blacklist.conf" |
@@ -5,7 +5,7 | |||
|
5 | 5 | # Load utility functions |
|
6 | 6 | . ./functions.sh |
|
7 | 7 | |
|
8 | if [ "$ENABLE_FBTURBO" = true ] ; then | |
|
8 | if [ "$ENABLE_FBTURBO" = true ] && [ "$ENABLE_GR_ACCEL" = false ] ; then | |
|
9 | 9 | # Install c/c++ build environment inside the chroot |
|
10 | 10 | chroot_install_cc |
|
11 | 11 |
@@ -191,6 +191,7 CHROOT_SCRIPTS=${CHROOT_SCRIPTS:=""} | |||
|
191 | 191 | ENABLE_UBOOT=${ENABLE_UBOOT:=false} |
|
192 | 192 | UBOOTSRC_DIR=${UBOOTSRC_DIR:=""} |
|
193 | 193 | ENABLE_FBTURBO=${ENABLE_FBTURBO:=false} |
|
194 | ENABLE_GR_ACCEL=${ENABLE_GR_ACCEL:=true} | |
|
194 | 195 | FBTURBOSRC_DIR=${FBTURBOSRC_DIR:=""} |
|
195 | 196 | ENABLE_VIDEOCORE=${ENABLE_VIDEOCORE:=false} |
|
196 | 197 | VIDEOCORESRC_DIR=${VIDEOCORESRC_DIR:=""} |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant