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

Fix do_serial_cons function for Raspberry Pi 5 #263

Open
wants to merge 1 commit into
base: bookworm
Choose a base branch
from

Conversation

thsvkd
Copy link

@thsvkd thsvkd commented Dec 20, 2024

I found a bug in the do_serial_cons function in raspi-config at Raspberry Pi 5. On previous Raspberry Pi devices under Raspberry Pi 4, console=serial0 in cmdline.txt allows the login shell via UART works correctly. However, on Raspberry Pi 5 devices, console=ttyAMA0 makes login shell via UART to work.

I considered just posting the issue, but I want to contribute to the open-source project, so I decided to submit a pull request.

  • Tested on Raspberry Pi 5 & 4 (latest as of 2024-12-21)

    [neofetch output of Pi 5]

    • OS: Debian GNU/Linux 12 (bookworm) aarch64
    • Host: Raspberry Pi 5 Model B Rev 1.0
    • Kernel: 6.6.51+rpt-rpi-2712
    • raspi-config Version: 20211221

    [neofetch output of Pi 4]

    • OS: Debian GNU/Linux 12 (bookworm) aarch64
    • Host: Raspberry Pi 4 Model B Rev 1.4
    • Kernel: 16.6.51+rpt-rpi-v8
    • raspi-config Version: 20211221

I found a bug in the `do_serial_cons` function in `raspi-config` at Raspberry Pi 5. On previous
Raspberry Pi devices under Raspberry Pi 4, `console=serial0` in cmdline.txt allows the login shell
via UART works correctly. However, on Raspberry Pi 5 devices, `console=ttyAMA0` makes login shell
via UART to work.

I considered just posting the issue, but I want to contribute to the open-source project, so I
decided to submit a pull request.

- Tested on Raspberry Pi 5 & 4 (latest as of 2024-12-21)

  [neofetch output of Pi 5]
  - OS: `Debian GNU/Linux 12 (bookworm) aarch64`
  - Host: `Raspberry Pi 5 Model B Rev 1.0`
  - Kernel: `6.6.51+rpt-rpi-2712`
  - `raspi-config` Version: `20211221`

  [neofetch output of Pi 4]
  - OS: Debian GNU/Linux 12 (bookworm) aarch64
  - Host: Raspberry Pi 4 Model B Rev 1.4
  - Kernel: 6.6.51+rpt-rpi-v8
  - `raspi-config` Version: `20211221`

Signed-off-by: thsvkd <[email protected]>
@thsvkd thsvkd changed the title Fix do_serial_cons function for Raspberry Pi 5 Fix do_serial_cons function for Raspberry Pi 5 Dec 20, 2024
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

Successfully merging this pull request may close these issues.

1 participant