Skip to content

Commit

Permalink
Specify alternative gpu_mem options for 256/512MB models.
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
diederikdehaas committed Jul 16, 2021
1 parent dab5fc9 commit 7016b8c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7016b8c

Please sign in to comment.