agherzan / meta-raspberrypi

Yocto/OE BSP layer for the Raspberry Pi boards
https://www.yoctoproject.org/
MIT License
505 stars 396 forks source link

Rpi config add rpi config strip #1255

Open gportay opened 6 months ago

gportay commented 6 months ago

Hello maintainers,

The config.txt is taken from repository and it is big.

The firmware has a size limit in handling that file which is not documented yet and some say it is 16k.

This PR adds the variable RPI_CONFIG_STRIP which strips the comments, empty lines and leading space (due to ${RPI_EXTRA_CONFIG}) if set to "1".

The second adds a warning if the deployed config.txt exceeds 16k.

Note: The worst part is that it prevent from the pi 5 to boot.

Regards, Gaël