No /dev/serial0 with LE 11.0.3 and later

  • Hello,

    after update from LE 11.0.1 to 11.0.3 the /dev/serial0 and /dev/serial1 have vanished. Access with pyserial does not work any more.

    With miniuart-bt in config.txt, there is /dev/ttyAMA and no /dev/ttys0. Without miniuart-bt, vice versa.

    Unfortunately, from recent 11.0.5 the downgrade to 11.0.1 is no longer possible. Same occurs with a fresh clean install of LE 12 nightly.


    config.txt:

    Output of dmesg | grep tty:

    Code
    [    0.000338] printk: console [tty0] enabled
    [    1.649286] fe215040.serial: ttyS0 at MMIO 0xfe215040 (irq = 38, base_baud = 62500000) is a 16550
    [    1.649386] serial serial0: tty port ttyS0 registered
    [    1.684558] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 53, base_baud = 0) is a PL011 rev2
    [    1.684808] printk: console [ttyAMA0] enabled

    Any help? is it a bug? Thanks - Helmut

  • On LE 11.0.5...

    Please provide a full debug log.

    How to post a log (wiki)

    1. Enable debugging in Settings>System Settings>Logging
    2. Restart Kodi
    3. Replicate the problem
    4. Generate a log URL (do not post/upload logs to the forum)

    use "Settings > LibreELEC > System > Paste system logs" or run "pastekodi" over SSH, then post the URL link

    You can still downgrade from SSH:

    Code
    cd /storage/.update
    wget <URL_OF_YOUR_LE_11.0.1_DOWNLOAD>
    reboot
  • Just use /dev/ttyS0 or /dev/ttyAMA0 in your script.

    The (downstream RPi) script and udev rule to create the alias symlinks have been removed a while ago when the RPi kernel finally switched to upstream kernel BT configuration.

    brcmfmac_sdio-firmware-rpi: drop rpi-btuart script and service · LibreELEC/LibreELEC.tv@690a4fb
    Bluetooth is finally initialized by the kernel Signed-off-by: Matthias Reichl <[email protected]>
    github.com

    so long,

    Hias

  • It depends on what you want.

    By default the RPi uses the (better) ttyAMA0 for bluetooth and you can enable the (less capable) ttyS0 for use in your script with enable_uart=1 in config.txt.

    With the miniuart-bt overlay bluetooth uses ttyS0 and you can use ttyAMA0 in your script.

    so long,

    Hias

  • Hi,

    I found a backup of LE11.0.1 and with this the symlinks /dev/serial0 and /dev/serial1 are created already, with date 02-16-2023. I am using the Joy-It Multimediacase, and seems, that the firmware of the built-in extension board needs this to shut down and reboot properly after LE was shut down.

    Would be nice, if the symlinks will be created again in future LE releases, to keep compatibility

    Regards - Helmut