From 357c85c5fbc2025e13a6434c3f60f31fe6e9313a Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Thu, 16 Nov 2023 19:25:21 +0200 Subject: [PATCH] rpi-config: Reduce config.txt size Remove some comments to reduce config.txt file size to avoid file corruption and make sure Raspberry Pi 5 will boot successfully. The issue with large config.txt has been reported to related projects: https://github.com/raspberrypi/firmware/issues/1848 https://github.com/Evilpaul/RPi-config/issues/9 This work was sponsored by GOVCERT.LU. Signed-off-by: Leon Anavi --- recipes-bsp/bootfiles/rpi-config_git.bb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/recipes-bsp/bootfiles/rpi-config_git.bb b/recipes-bsp/bootfiles/rpi-config_git.bb index ee0f407..7378159 100644 --- a/recipes-bsp/bootfiles/rpi-config_git.bb +++ b/recipes-bsp/bootfiles/rpi-config_git.bb @@ -317,6 +317,13 @@ do_deploy() { echo "# Enable One-Wire Interface" >> $CONFIG echo "dtoverlay=w1-gpio" >> $CONFIG fi + + # Reduce config.txt file size to avoid corruption and + # to boot successfully Raspberry Pi 5. The issue has + # been reported to related projects: + # https://github.com/raspberrypi/firmware/issues/1848 + # https://github.com/Evilpaul/RPi-config/issues/9 + sed -i '/^##/d' $CONFIG } do_deploy:append:raspberrypi3-64() {