guysoft / CustomPiOS

A Raspberry Pi and other ARM devices distribution builder
GNU General Public License v3.0
515 stars 149 forks source link

The file `/boot/config.txt` has moved to `/boot/firmware/config.txt` #220

Open sunefred opened 5 months ago

sunefred commented 5 months ago

The "config.txt" has moved from /boot/config.txt to /boot/firmware/config.txt for bookworm based releases. The old file has been updated to reflect this:

cat /boot/config.txt

DO NOT EDIT THIS FILE

The file you are looking for has moved to /boot/firmware/config.txt

Other than the updated location, the content looks the same to me. More info here: https://www.raspberrypi.com/documentation/computers/config_txt.html.

This affects quite a few modules. A quick search through the repository found these:

I propose that these modules are updated such that the location of "config.txt" is stored in a variable that can be set or resolved based on the Raspberry PI OS release.

guysoft commented 5 months ago

Thanks for reporting, will fix that.

sunefred commented 1 month ago

config.txt

Here is an update regarding the new bookworm releases. You can still use and modify boot/config.txt during chroot for device tree overlays. The file will get moved into its final position /boot/firmware/config.txt, at some point during first boot.

cmdline.txt

Some settings have moved out of config.txt however. Raspberry PI OS (bookworm) now uses KMS (Kernel Model Setting) for display settings so in order to set screen resolution, for instance, you must modify the cmdline.txt file. During chroot this file is found in /boot/cmdline.txt and it is then moved to /boot/firmware/cmdline.txt during first boot.

https://www.raspberrypi.com/documentation/computers/configuration.html#set-the-kms-display-mode