Skip to content

Instantly share code, notes, and snippets.

@GuiltyDoggy
Created October 8, 2021 17:36
Show Gist options
  • Save GuiltyDoggy/811f263ecd2a491e1f3c50660b969cb2 to your computer and use it in GitHub Desktop.
Save GuiltyDoggy/811f263ecd2a491e1f3c50660b969cb2 to your computer and use it in GitHub Desktop.
Raspberry Pi 4 config.txt
[pi4]
max_framebuffers=2
[all]
kernel=vmlinuz
cmdline=cmdline.txt
initramfs initrd.img followkernel
# Enable the audio output, I2C and SPI interfaces on the GPIO header
dtparam=audio=on
dtparam=i2c_arm=on
dtparam=spi=on
# Enable the serial pins
enable_uart=1
# Comment out the following line if the edges of the desktop appear outside
# the edges of your display
disable_overscan=1
# If you have issues with audio, you may try uncommenting the following line
# which forces the HDMI output into HDMI mode instead of DVI (which doesn't
# support audio output)
hdmi_force_mode=1
hdmi_drive=2
hdmi_mode=2
hdmi_mode=82
# If you have a CM4, uncomment the following line to enable the USB2 outputs
# on the IO board (assuming your CM4 is plugged into such a board)
#dtoverlay=dwc2,dr_mode=host
# Config settings specific to arm64
arm_64bit=1
dtoverlay=dwc2
over_voltage=6
arm_freq=2000
gpu_freq=600
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment