0

I am trying to figure out how to edit my /boot/config.txt with the same functionality implicit in raspi-config. For example, I'd like to know how to enable/disable for "P6 Serial" in this screenshot from a Pi Zero W:

enter image description here

I have reviewed the "README" in /boot/overlays, although it is hard to discern exactly which settings correlate to which commands in raspi-config.

1
  • 2
    Be aware that a few commands (serial being one) will also change the command line file /boot/cmdline.txt Also, some options (USB device / networking) are not available in raspi-config and have to be manually entered.
    – user115418
    Jul 8, 2020 at 23:16

2 Answers 2

2

You can have a look at the script itself on your system. raspi-config is a bash script and you can look at it with any text / code editor. The file is at /usr/bin/raspi-config

Or have a look at it in the Raspberry Pu github repo: https://github.com/RPi-Distro/raspi-config/blob/master/raspi-config

1

The Foundation documentation is @ config.txt

This is quite comprehensive, and more up-to-date than some references.

Most of the documentation in /boot/overlays has no counterpart in raspi-config and is more related to Device Tree options.

As Androo has mentioned some raspi-config options e.g. serial console are changed in cmdline.txt.

If you are interested in serial How do I make serial work on the Raspberry Pi3 or later may help, although raspi-config is the easiest.
The Foundation serial documentation is @ UART

PS If you really want to know what raspi-config does it is a "simple" bash script - if somewhat long and convoluted. There is no need to go to github - just look at /usr/bin/raspi-config

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.