Skip to content
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

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

Open
sunefred opened this issue Jun 16, 2024 · 2 comments
Open

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

sunefred opened this issue Jun 16, 2024 · 2 comments

Comments

@sunefred
Copy link

sunefred commented Jun 16, 2024

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:

  • common.sh
  • base
  • gui
  • raspicam
  • usbconsole

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
Copy link
Owner

guysoft commented Jun 16, 2024

Thanks for reporting, will fix that.

@sunefred
Copy link
Author

sunefred commented Oct 4, 2024

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

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

No branches or pull requests

2 participants