From 7016b8ce0e44764d0a947a461cfa0f6ca3decc02 Mon Sep 17 00:00:00 2001 From: Diederik de Haas Date: Fri, 16 Jul 2021 12:18:32 +0200 Subject: [PATCH 2/2] Specify alternative gpu_mem options for 256/512MB models. The (new?) default seems to be 'gpu_mem=64', but that's a big chunck for especially 256MB models, so use special config settings for those models. The installer itself doesn't do anything graphically hard, it only displays text on a console, so it could be set for all. https://www.raspberrypi.org/documentation/configuration/config-txt/memory.md is the source for these configuration settings. Signed-off-by: Diederik de Haas --- build.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.sh b/build.sh index aad59f4..d9382c2 100755 --- a/build.sh +++ b/build.sh @@ -704,6 +704,8 @@ cp installer-rpi.cpio.gz bootfs/ echo "initramfs installer-rpi.cpio.gz" # reset filter echo "[all]" + echo "gpu_mem_256=16" + echo "gpu_mem_512=32" } >> bootfs/config.txt # clean up -- 2.32.0