Skip to content

Commit

Permalink
raspberrypi3: Remove override for fkms driver, use kms driver on Pi3
Browse files Browse the repository at this point in the history
- kms driver works on Pi3, and provides a significantly smoother/faster
  user experience, and allows for much lower gpu_mem split
- Increase default gpu_mem, as LuneOS vkb does not work at 1080p display
  modes, without increasing gpu_mem split to 160mb (with either fkms or
  kms)
- Allow overriding of GPU_MEM by user, as gpu_mem settings as low as 16mb
  work if you are not using 1080p display modes.  This allows someone
  targetting lower resolutions explicitly to gain a significant amount of
  resources back.
- Untested on other Pi models, but I would expect it would work, as all
  Pi models share the kms driver.
  • Loading branch information
ericblade committed Mar 2, 2024
1 parent a1738d8 commit e2138c8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
13 changes: 6 additions & 7 deletions conf/machine/include/webos-rpi.inc
Expand Up @@ -8,10 +8,12 @@ WEBOS_TARGET_MACHINE_IMPL = "hardware"

MACHINE_FEATURES += "armnn auto-acceleration edgetpu gpu-delegate gl-backend"

# Set gpu memory to "128M"
# Wen use default setting (64M), we got the below error
# [EXIT]: EGL Error : Could not create the egl surface: error = 0x3003
GPU_MEM = "128"
# On Raspberry Pi 3B, at least 160MB gpu_mem setting is required for VKB to
# reliably function at 1920x1080. At 1280x720 or lower, setting it as low
# as the minimum, 16, seems to work. Override in your local.conf if you do
# not intend to use 1080 resolution. At 1080, all other video features seem
# to work, except for VKB, with the lower settings.
GPU_MEM ??= "160"

PREFERRED_PROVIDER_aval-impl = "avoutput-adaptation-layer-rpi"
VIRTUAL-RUNTIME_aval-impl = "avoutput-adaptation-layer-rpi"
Expand Down Expand Up @@ -95,6 +97,3 @@ WEBOS_BLUETOOTH_ENABLED_SERVICE_CLASSES = "SPP GATT FTP OPP A2DP"
# Use ext4 as a uSD rootfs type and don't build ext3
SDIMG_ROOTFS_TYPE = "ext4"
IMAGE_FSTYPES:remove = "ext3"

# Use Fake KMS until surface-manager is fixed to support Full KMS, see WRP-5
VC4DTBO = "vc4-fkms-v3d"
1 change: 0 additions & 1 deletion conf/machine/raspberrypi3-64.conf
Expand Up @@ -33,7 +33,6 @@ KERNEL_BOOTCMD ?= "booti"
UBOOT_MACHINE = "rpi_arm64_config"
SERIAL_CONSOLES ?= "115200;ttyS0"

VC4DTBO ?= "vc4-fkms-v3d"
ARMSTUB ?= "armstub8.bin"

require conf/machine/include/webos-rpi.inc
1 change: 0 additions & 1 deletion conf/machine/raspberrypi3.conf
Expand Up @@ -19,7 +19,6 @@ SDIMG_KERNELIMAGE ?= "kernel7.img"
UBOOT_MACHINE = "rpi_3_32b_config"
SERIAL_CONSOLES ?= "115200;ttyS0"

VC4DTBO ?= "vc4-fkms-v3d"
ARMSTUB ?= "armstub7.bin"

require conf/machine/include/webos-rpi.inc

0 comments on commit e2138c8

Please sign in to comment.