How to enable UART on a Raspberry Pi 5?

Dear OpenWrt folks,

I have issues enabling a debug UART at a Raspberry Pi 5.

I have a recent self build OpenWrt snapshot version which is booting successfully (verified via HDMI). Because Ethernet is not working on my custom board, I want to connect to the root shell via UART to debug the Ethernet issue. Of course, I connected to the special Pi 5 UART port. My config.txt is here

# OpenWrt config
include distroconfig.txt

[all]
# Place your custom settings here.

enable_uart=1
dtoverlay=
dtparam=uart0
dtparam=uart0_console

But the UART is still silent. Has anybody a hint what I'm missing?

hello I have a raspberry 5. you need a keyboard and a screen that’s all.
you branches and start everything
After loading openwrt opkg install nano.
Make cd/etc/config.
root@OpenWrt:~# cd /etc/config
root@OpenWrt:/etc/config# nano network

interface de configuration « loopback »
option dispositif 'lo'
option proto 'statique'
option ipaddr '127.0.0.1’
option netmask '255.0.0.0’

config globals 'global'
option ula_prefix 'fdfd:773c:xxxx::/48’
option packet_steering '1'

périphérique de configuration
nom de l’option « br-lan »
type d’option « bridge »
liste les ports 'eth0'

config interface 'lan'
dispositif d’option « br-lan »
option proto 'statique'
option ipaddr '192.168.1.2’
option netmask '255.255.255.0'
option ip6assign '60’
option passerelle '192.168.1.254'
liste dns '1.1.1.1'
liste dns '1.0.0.1’
option métrique '1'

interface de configuration 'wwan’
option proto 'dhcp'
ctrl-X and Y
this is an exemple who works on mi pi5

I do not understand why you want in that way but I won't try to stop you; because you cannot brick it.
https://forums.raspberrypi.com/viewtopic.php?t=359132

there is no need to go through uart to set up pi5

"There's no need to go through the UART to set up the Pi5"

Please use English.
It is the language OpenWrt's forums work best with as it is searchable.

error of paste

1 Like

OpenWrt

Rafraîchissement

État

Système

Nom d'hĂ´te (hostname) OpenWrt
Modèle Raspberry Pi 5 Model B Rev 1.0
Architecture ARMv8 Processor rev 1
Plate-forme cible bcm27xx/bcm2712
Version du micrologiciel OpenWrt 24.10.0 r28427-6df0e3d02a / LuCI openwrt-24.10 branch 25.042.63409~4408340
Version du noyau 6.6.73
Heure locale 2025-02-12 20:36:01
Durée de fonctionnement 1h 11m 6s
Charge moyenne 0.04, 0.06, 0.03
it is shure it do not work

Fine.

Wait for an admin to tell you.

That's one long-ass "error of paste"....

2 Likes

my browser automatically translates the language but sometimes it does not translate and this results in an error.But I do not need mom and dad to tell me. : -)

Hi guys,

Thanks for your answers. But it doesn't help me yet.

One question was why I need an UART interface. It's pretty simple: For debugging, it is much more convenient to use only one monitor and keyboard instead of two. Furthermore, I'm a copy and past power user - with physical separated keyboards, copy and paste is not possible.

I also don't want help to fix my Ethernet issues because these are coming from my custom Pi Ethernet Hat which the stock OpenWrt doesn't know.

So, let's ask again: How to enable the UART interface on a Pi 5 with OpenWrt (including boot messages)?

If they would, we wouldn't be having this conversation...

1 Like

It's complicated, as the thread I linked shows.

It is fragmented and I've never done this (nor seen it). I suggest you follow the thread.

I created an issue for this topi. See https://github.com/openwrt/openwrt/issues/18016.

Let see how it goes.

I got it working on the 40 pin header with the following config.txt entries!

enable_rp1_uart=1
dtparam=uart0
dtparam=uart0_console

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.