Giter Club home page Giter Club logo

Comments (6)

XECDesign avatar XECDesign commented on May 29, 2024

I seem to have the same issue on my pi400, which only has tty[0-9]+ nodes.

What pi model are you using?

from pi-gen.

XECDesign avatar XECDesign commented on May 29, 2024

@pelwell

from pi-gen.

pelwell avatar pelwell commented on May 29, 2024

Have you enabled the UART in the usual way (enable_uart=1 in config.txt)?

Be careful with Bookworm - config.txt has moved to /boot/firmware/config.txt; there is a symbolic link from /boot/config.txt to /boot/firmware/config.txt, but it's quite easy (with the wrong editor) to end up overwriting the symbolic link with the new, modified config.txt and leaving /boot/firmware/config.txt untouched.

from pi-gen.

pelwell avatar pelwell commented on May 29, 2024

You will also not see /dev/ttyAMA0 (or whatever the Bluetooth UART is - ttyS0 if you're using the miniuart-bt overlay) because we are allowing the kernel to configure Bluetooth. The magic mechanism it is using effectively says "this is an HCI device, not a UART, so it shouldn't have a /dev/ttywhatever".

from pi-gen.

XECDesign avatar XECDesign commented on May 29, 2024

Using enable_uart=1 comes up with /dev/ttyS0 and then adding dtoverlay=miniuart-bt comes up with /dev/ttyAMA0 as expected.

I'll close it since it's not a pi-gen issue either way.

@RosiersRobin, if you're still having problems after setting up /boot/firmware/config.txt appropriately, let us know.

from pi-gen.

pelwell avatar pelwell commented on May 29, 2024

Confirmed working as expected on a Pi 400.

To explain a bit more, the UART is not enabled by default on most (*) Bluetooth-equipped Pis. This is because UART0 (normally ttyAMA0, when not being an HCI device) is reserved for Bluetooth, leaving UART1 (ttyS0). Unfortunately the clock rate (and hence baudrate) of UART1 varies with the core clock, so to get a stable baudrate you need to stop the core clock changing, which either uses a bit more power than usual or reduces your performance, depending on whether you peg it high or low - neither of which is ideal if you don't care about the UART. That's why it's opt-in.

(*) Pi 5 is different because there are many UARTs, none of which change speed with the VPU core, so it is safe and convenient to enable the debug UART (the one on the 3-pin header) by default. To enable UART0 on the 40-pin header use dtparam=uart0=on, and to also move the boot console there use dtparam=uart0_console instead.

from pi-gen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.