Skip to content

vclog: Report when gpu_mem is too low for logs - #215

Merged
popcornmix merged 1 commit into
raspberrypi:masterfrom
popcornmix:gpumem_lo
Oct 2, 2026
Merged

popcornmix merged 1 commit into
raspberrypi:masterfrom
popcornmix:gpumem_lo

Conversation

@popcornmix

Copy link
Copy Markdown
Contributor

With gpu_mem=16 on Pi 0-4 the cut-down firmware provides no log buffer, so /proc/device-tree/chosen/log is absent and vclog failed with an unhelpful "Could not determine logs location" error.

When the logs can't be found, query the VC memory size via the mailbox and, if it is 16MB or less, report that gpu_mem must be increased.

Also make die() accept printf-style arguments.

With gpu_mem=16 on Pi 0-4 the cut-down firmware provides no log buffer,
so /proc/device-tree/chosen/log is absent and vclog failed with an
unhelpful "Could not determine logs location" error.

When the logs can't be found, query the VC memory size via the mailbox
and, if it is 16MB or less, report that gpu_mem must be increased.

Also make die() accept printf-style arguments.
@popcornmix

Copy link
Copy Markdown
Contributor Author

See #158

@popcornmix
popcornmix merged commit 67b2a9f into raspberrypi:master Oct 2, 2026
4 checks passed
@popcornmix
popcornmix deleted the gpumem_lo branch October 2, 2026 14:06
@macmpi

macmpi commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants