-
Notifications
You must be signed in to change notification settings - Fork 2k
Need to update UART documentation for Pi5 #3239
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
Comments
You can expect the documentation to be updated to cover Pi 5 over the next few months. If you're interested you can keep track of what's going on by looking at the project milestone. |
It's unfortunate that Bookworm launched with a bug in the serial port alias handling, but it should be fixed now - there is no need to document it. As to the main questions:
|
Hi, sorry to bump this but there is no trace of these directives on the documentation as of today and I found the documentation to be confusing as pointed out by other users. I recently bought a Raspberry Pi 5 and had to install RPi OS and to run Finally I had to modify the From reading the documentation I thought it was only needed I don't often install Raspberry Pi OS and had to rely heavily on documentation, which took me hours to figure out the correct directive for Thank you. |
You're partially correct in that, if you want to use the UART on the 40-pin GPIO header (pins 8 & 10) on a Pi 5 then you do need to add Where you're not quite correct is that cmdline.txt should really have |
Added the baudrate. If anyone requires additional changes to the UART docs for Pi 5, please open a separate issue with your request. |
Hello, I have bought a Raspberry Pi 5 recently and I had exactly the same issue mentioned by @pfrankw. I only got it resolved when I put "console=ttyAMA0,115200" in cmdline.txt. The same configuration did not work with "console=serial0,115200" |
@hnamtran I think that if you upgrade your Pi 5 to the latest rpi-eeprom firmware, then The way I understand it (and I'm sure that @pelwell will correct me if I'm wrong) is that on "older" versions of the Pi 5 firmware, |
No - that's only with |
The existing documentation makes no mention of Pi5 or how it differs in terms of UART usage and we've reported at least one new bug (affecting older models but introduced by code changes to support Pi5). While we get the big picture apropos the new connector (all good!) it appears the logical meaning or intended usage of the alias names (serial0 and serial1) and the confounding bluetooth complexities of the past may be changed in Pi5, or there are unresolved bugs, or both?
For example, on Pi4 with bullseye, specifying console=serial0,115200 in cmdline.txt when uart_enable=1 and/or dtoverlay=disable-bt is asserted in config.txt results in serial0 being linked as primary (i.e. ttyAMA0) and the console being enabled on pins 14/15 on J8 enabling firmware boot and kernel messages on boot and the system console via the J8 pins. In terms of aliases we have /dev/serial0 -> ttyAMA0 and /dev/serial1 -> ttyS0. All good.
Not so on Pi5.
Instead on Pi5 with bookworm this configuration seems to enable all this on new UART connector. A different setup is needed to replicate backward compatible behaviour which setup seems to be: specify console=ttyAMA0,115200 in cmdline.txt when dtparam=uart0=on is asserted in config.txt. All good, but confusing as now /dev/serial0 -> ttyAMA10 where (I'm guessing ttyAMA10 is the new port) and /dev/serial1 is not assigned at all? If we also assert dtoverlay=disable-bt in config.txt we get aliases /dev/serial0 -> ttyAMA10 and /dev/serial1 -> ttyS0.
So there are changes and bugs here and we're having difficulty disambiguating between them.
Bottom line: updated documentation so we know what the intended behaviour is, even if bugs may get in the way :)
The text was updated successfully, but these errors were encountered: