-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Raspberry Pi 5 fails to boot with a large config.txt #1848
Comments
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: raspberrypi/firmware#1848 Evilpaul/RPi-config#9 This work was sponsored by GOVCERT.LU. Signed-off-by: Leon Anavi <[email protected]>
Edit: The limit for a single config.txt file or include is 16K. There's no need to support arbitrarily large config.txt files. |
@timg236 thank you for the quick feedback and the shared technical details. Noted down. In the particular case
Regarding these circumstances in short term at Yocto/OpenEmbedded BSP layer meta-raspbebrrypi we will just remove various comments from |
For larger config.txt files using include statements may be helpful. I think there's possibly room for improvement with error messages in future bootloader updates so we can add that to the backlog. |
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: raspberrypi/firmware#1848 Evilpaul/RPi-config#9 This work was sponsored by GOVCERT.LU. Signed-off-by: Leon Anavi <[email protected]>
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: raspberrypi/firmware#1848 Evilpaul/RPi-config#9 This work was sponsored by GOVCERT.LU. Signed-off-by: Leon Anavi <[email protected]>
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: raspberrypi/firmware#1848 Evilpaul/RPi-config#9 This work was sponsored by GOVCERT.LU. Signed-off-by: Leon Anavi <[email protected]>
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: raspberrypi/firmware#1848 Evilpaul/RPi-config#9 This work was sponsored by GOVCERT.LU. Signed-off-by: Leon Anavi <[email protected]>
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: raspberrypi/firmware#1848 Evilpaul/RPi-config#9 This work was sponsored by GOVCERT.LU. Signed-off-by: Leon Anavi <[email protected]>
The firmware has a size limit in handling config.txt depending the hardware and it may prevent the hardware from booting if file exceeds it. That limit is not documented yet[1] but the links[2][3] mention about 16k. This warns if the config.txt is larger than 16k. [1]: https://www.raspberrypi.com/documentation/computers/config_txt.html [2]: https://forums.raspberrypi.com/viewtopic.php?p=2159238 [3]: raspberrypi/firmware#1848 Signed-off-by: Gaël PORTAY <[email protected]>
The firmware has a size limit in handling config.txt depending the hardware and it may prevent the hardware from booting if file exceeds it. That limit is not documented yet[1] but the links[2][3] mention about 16k. This warns if the config.txt is larger than 16k. [1]: https://www.raspberrypi.com/documentation/computers/config_txt.html [2]: https://forums.raspberrypi.com/viewtopic.php?p=2159238 [3]: raspberrypi/firmware#1848 Signed-off-by: Gaël PORTAY <[email protected]>
The firmware has a size limit in handling config.txt depending the hardware and it may prevent the hardware from booting if file exceeds it. That limit is not documented yet[1] but the links[2][3] mention about 16k. This warns if the config.txt is larger than 16k. [1]: https://www.raspberrypi.com/documentation/computers/config_txt.html [2]: https://forums.raspberrypi.com/viewtopic.php?p=2159238 [3]: raspberrypi/firmware#1848 Signed-off-by: Gaël PORTAY <[email protected]>
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: raspberrypi/firmware#1848 Evilpaul/RPi-config#9 This work was sponsored by GOVCERT.LU. Signed-off-by: Leon Anavi <[email protected]>
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: raspberrypi/firmware#1848 Evilpaul/RPi-config#9 This work was sponsored by GOVCERT.LU. Signed-off-by: Leon Anavi <[email protected]>
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: raspberrypi/firmware#1848 Evilpaul/RPi-config#9 This work was sponsored by GOVCERT.LU. Signed-off-by: Leon Anavi <[email protected]>
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: raspberrypi/firmware#1848 Evilpaul/RPi-config#9 This work was sponsored by GOVCERT.LU. Signed-off-by: Leon Anavi <[email protected]>
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: raspberrypi/firmware#1848 Evilpaul/RPi-config#9 This work was sponsored by GOVCERT.LU. Signed-off-by: Leon Anavi <[email protected]>
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: raspberrypi/firmware#1848 Evilpaul/RPi-config#9 This work was sponsored by GOVCERT.LU. Signed-off-by: Leon Anavi <[email protected]>
Is this the right place for my bug report?
Yes, because it is related to the boot process and config.txt size.
Describe the bug
While adding Raspberry Pi 5 support in Yocto/OpenEmbedded BSP meta-raspberrypi we noticed that the board doesn't boot with a large
config.txt
file: agherzan/meta-raspberrypi#1237I haven't seen this issue before on previous Raspberry Pi models and versions. @floion started a discussion in the Raspberry Pi forum. jamesh, Raspberry Pi Engineer & Forum Moderator, recommended to get rid of the comments and reduce the file size. In meta-raspberrypi we can do this easily with
sed -i '/^##/d' $CONFIG
(at least temporary until we have a better solution) but let's also report the issue here too.To reproduce
Try booting Raspberry Pi 5 with a large config.txt: https://raw.githubusercontent.com/Evilpaul/RPi-config/master/config.txt
Expected behaviour
The expected behavior is Raspberry Pi 5 to boot.
Actual behaviour
Raspberry Pi 5 doesn't boot.
System
Copy and paste the results of the raspinfo command in to this section. Alternatively, copy and paste a pastebin link, or add answers to the following questions:
Raspberry Pi 5
cat /etc/rpi-issue
)?Raspberry Pi OS or image built with agherzan/meta-raspberrypi#1237
vcgencmd version
)?uname -a
)?Logs
If applicable, add the relevant output from
dmesg
or similar.raspberrypi5-large-config-20231124.txt
Additional context
The text was updated successfully, but these errors were encountered: