From b5918577bca74df4089eeb7c65a2fa259a0625ee Mon Sep 17 00:00:00 2001
From: j1nx
Date: Sun, 11 Oct 2020 16:23:02 +0200
Subject: [PATCH] Lower the GPU/cmu memory to 64M as we hardly use more then a
few MB's This leaves more over for the normal stuff. Especially for the rpi3
---
buildroot-external/board/raspberrypi/cmdline.txt | 2 +-
buildroot-external/board/raspberrypi/config.txt | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/buildroot-external/board/raspberrypi/cmdline.txt b/buildroot-external/board/raspberrypi/cmdline.txt
index 4c78a28b..658df72c 100644
--- a/buildroot-external/board/raspberrypi/cmdline.txt
+++ b/buildroot-external/board/raspberrypi/cmdline.txt
@@ -1 +1 @@
-dwc_otg.lpm_enable=0 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes console=ttyAMA0,115200 consoleblank=0 loglevel=0 vt.global_cursor_default=0 logo.nologo systemd.show_status=0 rootwait quiet splash
+cma=64M@64M dwc_otg.lpm_enable=0 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes console=ttyAMA0,115200 consoleblank=0 loglevel=0 vt.global_cursor_default=0 logo.nologo systemd.show_status=0 rootwait quiet splash
diff --git a/buildroot-external/board/raspberrypi/config.txt b/buildroot-external/board/raspberrypi/config.txt
index d342cc7b..ff22b816 100644
--- a/buildroot-external/board/raspberrypi/config.txt
+++ b/buildroot-external/board/raspberrypi/config.txt
@@ -26,10 +26,10 @@ max_framebuffers=2
# How much memory in MB to assign to the GPU on Pi models having
# 256, 512 or 1024 MB total memory
-gpu_mem=256
-gpu_mem_256=100
-gpu_mem_512=100
-gpu_mem_1024=100
+gpu_mem=64
+gpu_mem_256=64
+gpu_mem_512=64
+gpu_mem_1024=64
# Enable the onboard soundcard
dtparam=audio=on