1
1
mirror of https://github.com/OpenVoiceOS/OpenVoiceOS synced 2025-06-05 22:19:21 +02:00

[RPI] move cma configuration to config.txt (resolve issue 1)

This commit is contained in:
Bohdan Buinich
2024-01-29 03:24:32 +02:00
parent 4595359c6c
commit 321c263fb5
4 changed files with 34 additions and 24 deletions

View File

@ -1 +1 @@
cma=384M mitigations=off snd_bcm2835.enable_headphones=1 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_compat_alsa=0 dwc_otg.lpm_enable=0 acpi=off cgroup_enable=memory psi=1 usb-storage.quirks=174c:55aa:u,2109:0715:u,152d:0578:u,152d:0579:u,152d:1561:u,174c:0829:u,14b0:0206:u mitigations=off snd_bcm2835.enable_headphones=1 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_compat_alsa=0 dwc_otg.lpm_enable=0 acpi=off cgroup_enable=memory psi=1 usb-storage.quirks=174c:55aa:u,2109:0715:u,152d:0578:u,152d:0579:u,152d:1561:u,174c:0829:u,14b0:0206:u,0bda:9210:u

View File

@ -1,5 +1,8 @@
# Raspberry Pi 3 Configuration # Raspberry Pi 3 Configuration
# Basic setting
arm_64bit=1
# Disable command line tags. # Disable command line tags.
disable_commandline_tags=2 disable_commandline_tags=2
@ -8,6 +11,7 @@ armstub=RPI_EFI.fd
# Enable UART for serial communication. # Enable UART for serial communication.
enable_uart=1 enable_uart=1
uart_2ndstage=1
# Set device tree memory address range. # Set device tree memory address range.
device_tree_address=0x1f0000 device_tree_address=0x1f0000
@ -23,8 +27,8 @@ disable_overscan=1
# Auto-detect DSI displays and load overlays. # Auto-detect DSI displays and load overlays.
display_auto_detect=1 display_auto_detect=1
# Enable DRM VC4 V3D driver for graphics acceleration. # Graphics acceleration with VC4 V3D driver, uses 384MB CMA limited to 2 framebuffer.
dtoverlay=vc4-fkms-v3d dtoverlay=vc4-fkms-v3d,cma-384
max_framebuffers=2 max_framebuffers=2
# Uncomment for HDMI safe mode. # Uncomment for HDMI safe mode.
@ -34,9 +38,6 @@ max_framebuffers=2
# 256, 512 or 1024 MB total memory # 256, 512 or 1024 MB total memory
gpu_mem=256 gpu_mem=256
# Fixes for serial console on certain Pi models.
dtoverlay=miniuart-bt
# Enable Bluetooth driver autoprobing. # Enable Bluetooth driver autoprobing.
dtparam=krnbt=on dtparam=krnbt=on
@ -54,8 +55,11 @@ dtparam=random=on
# Disable rainbow splash screen on boot. # Disable rainbow splash screen on boot.
disable_splash=1 disable_splash=1
# Enable I2C, I2S and SPI for peripheral communication. # Enable I2C, I2S, and SPI interfaces for peripheral communication.
dtparam=i2c=on,i2s=on,spi=on dtparam=i2c=on
dtparam=i2c_arm=on
dtparam=spi=on
dtparam=i2s=on
# Use DWC2 instead of XHCI on the rpi3 to prevent issues with te RealTime kernel # Use DWC2 instead of XHCI on the rpi3 to prevent issues with te RealTime kernel
dtoverlay=dwc2 dtoverlay=dwc2

View File

@ -1,10 +1,14 @@
# Raspberry Pi 4 Configuration # Raspberry Pi 4 Configuration
# Basic setting
arm_64bit=1
# Specify UEFI firmware file. # Specify UEFI firmware file.
armstub=RPI_EFI.fd armstub=RPI_EFI.fd
# Enable UART for serial communication. # Enable UART for serial communication.
enable_uart=1 enable_uart=1
uart_2ndstage=1
# Enable GIC (Generic Interrupt Controller). # Enable GIC (Generic Interrupt Controller).
enable_gic=1 enable_gic=1
@ -26,10 +30,8 @@ disable_overscan=1
# Auto-detect DSI displays and load overlays. # Auto-detect DSI displays and load overlays.
display_auto_detect=1 display_auto_detect=1
# Enable DRM VC4 V3D driver for graphics acceleration. # Graphics acceleration with VC4 V3D driver, uses 384MB CMA limited to 2 framebuffer.
dtoverlay=vc4-fkms-v3d dtoverlay=vc4-fkms-v3d,cma-384
# Optional: Uncomment for Pi 4 specific settings
# dtoverlay=vc4-kms-v3d-pi4
max_framebuffers=2 max_framebuffers=2
# Uncomment for HDMI safe mode. # Uncomment for HDMI safe mode.
@ -39,9 +41,6 @@ max_framebuffers=2
# 256, 512 or 1024 MB total memory # 256, 512 or 1024 MB total memory
gpu_mem=256 gpu_mem=256
# Fixes for serial console on certain Pi models.
dtoverlay=miniuart-bt
# Enable Bluetooth driver autoprobing. # Enable Bluetooth driver autoprobing.
dtparam=krnbt=on dtparam=krnbt=on
@ -59,8 +58,11 @@ dtparam=random=on
# Disable rainbow splash screen on boot. # Disable rainbow splash screen on boot.
disable_splash=1 disable_splash=1
# Enable I2C, I2S and SPI for peripheral communication. # Enable I2C, I2S, and SPI interfaces for peripheral communication.
dtparam=i2c=on,i2s=on,spi=on dtparam=i2c=on
dtparam=i2c_arm=on
dtparam=spi=on
dtparam=i2s=on
# Enable CPU frequency boost on compatible models. # Enable CPU frequency boost on compatible models.
arm_boost=1 arm_boost=1

View File

@ -1,10 +1,14 @@
# Raspberry Pi 5 Configuration # Raspberry Pi 5 Configuration
# Basic setting
arm_64bit=1
# Specify UEFI firmware file for booting in UEFI mode. # Specify UEFI firmware file for booting in UEFI mode.
armstub=RPI_EFI.fd armstub=RPI_EFI.fd
# Enable UART for serial communication. # Enable UART for serial communication.
enable_uart=1 enable_uart=1
uart_2ndstage=1
# Enable ttyAMA0 serial console. # Enable ttyAMA0 serial console.
dtoverlay=uart0-pi5 dtoverlay=uart0-pi5
@ -47,15 +51,15 @@ disable_overscan=1
# Automatic display detection for optimal settings. # Automatic display detection for optimal settings.
display_auto_detect=1 display_auto_detect=1
# Graphics acceleration with VC4 V3D driver, limited to 2 framebuffer. # Graphics acceleration with VC4 V3D driver, uses 512MB CMA limited to 2 framebuffer.
dtoverlay=vc4-fkms-v3d dtoverlay=vc4-fkms-v3d,cma-512
max_framebuffers=2 max_framebuffers=2
# Enable I2C, I2S and SPI for peripheral communication. # Enable I2C, I2S, and SPI interfaces for peripheral communication.
dtparam=i2c=on,i2s=on,spi=on dtparam=i2c=on
dtparam=i2c_arm=on
# Bluetooth over mini UART, balancing UART use. dtparam=spi=on
dtoverlay=miniuart-bt dtparam=i2s=on
# Uncomment to disable Bluetooth. # Uncomment to disable Bluetooth.
#dtoverlay=disable-bt #dtoverlay=disable-bt