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

Please Add To RPI Imager Configuration Settings Ability to Enable Serial Console! #646

Open
Jibun-no-Kage opened this issue Oct 6, 2023 · 5 comments

Comments

@Jibun-no-Kage
Copy link

Please Add To RPI Imager Configuration Settings Ability to Enable Serial Console! This would be a great addition to the imager settings options.

@maxnet
Copy link
Collaborator

maxnet commented Oct 6, 2023

Not sure if there's much demand for that. Would expect it to be on by default on Pi 5 now it has separate port.

@Jibun-no-Kage
Copy link
Author

Jibun-no-Kage commented Oct 6, 2023

If you look at all the embedded Pi devices, that alone would suggest that adding ability to enable serial console support via the imager is long over due. Every Pi I have, and I have about 20, only one is connected to HDMI, for HDMI-CEC, all are headless or serial connected. Even the remote sensor solutions I have via Pi devices I have a serial/USB IO board connected and I just walk up and connect to them via PuTTY via serial. I can use my phone, laptop, etc. to validate status and function as needed if network is down or not available. There are countless examples on the internet of Pi devices using serial. IMHO, the Pi 5 design acknowledges how often direct serial is used over HDMI, never mind embedded compute modules being all but serial oriented, via expansion boards.

@timg236
Copy link

timg236 commented Oct 7, 2023

On Pi5 BOOT_UART=1 in the EEPROM config but that will not automatically set enable_uart=1 on config.txt.

It might be nice to be able to append a user-defined chunk of text to config.txt via the imager.

[all]
[pi5]
enable_uart=1
usb_max_current_enable=1
dtparam=pciex1

N.B. It's possible to do something similar by adding a [config.txt] section the EEPROM config but I guess it depends on whether you are using multiple images on a single boards or flashing multiple images for multiple boards as to whether the EEPROM config settings extension is useful.

@maxnet
Copy link
Collaborator

maxnet commented Oct 7, 2023

On Pi5 BOOT_UART=1 in the EEPROM config but that will not automatically set enable_uart=1 on config.txt.

What is the logic behind that?

If it is because people could also use the port for something else than console, than I would expect boot firmware to stay quiet as well.
If it is meant to be used as console, than having it enabled in Linux as well would make sense to me...

N.B. It's possible to do something similar by adding a [config.txt] section the EEPROM config but I guess it depends on
whether you are using multiple images on a single boards or flashing multiple images for multiple boards as to whether
the EEPROM config settings extension is useful.

We could also make editing EEPROM settings more easy from Imager.
Would require a Pi 5 capable rpiboot first though (or at least the bootcode5.bin part. can do the libusb stuff easy enough in Imager as well)...

@timg236
Copy link

timg236 commented Oct 9, 2023

On Pi5 BOOT_UART=1 in the EEPROM config but that will not automatically set enable_uart=1 on config.txt.

What is the logic behind that?

BOOT_UART has the same behaviour as on previous models. Maybe in the future someone will add support for automatically enabling the OS console and plumbing through UART baud rate (which can be > 115200) from boot-onwards.

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

3 participants