Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4878

Troubleshooting • failure to use UART on pin8/10 (GPIO14/15) on Raspberry Pi 5

$
0
0
Hello,

I am trying to use UART on pin8/10 (GPIO14/15) on Raspberry Pi 5 as the console to display Linux log information.

I did these on a customized Linux image:
1. add uart dt overlays to Linux kernel
ls -l /media/crane/boot/overlays/uart*.dtbo
-rw-r--r-- 1 crane crane 936 Oct 22 16:49 /media/crane/boot/overlays/uart0.dtbo
-rw-r--r-- 1 crane crane 627 Oct 22 16:49 /media/crane/boot/overlays/uart0-pi5.dtbo
-rw-r--r-- 1 crane crane 988 Oct 22 16:49 /media/crane/boot/overlays/uart1.dtbo
-rw-r--r-- 1 crane crane 627 Oct 22 16:49 /media/crane/boot/overlays/uart1-pi5.dtbo
-rw-r--r-- 1 crane crane 493 Oct 22 16:49 /media/crane/boot/overlays/uart2.dtbo
-rw-r--r-- 1 crane crane 627 Oct 22 16:49 /media/crane/boot/overlays/uart2-pi5.dtbo
-rw-r--r-- 1 crane crane 493 Oct 22 16:49 /media/crane/boot/overlays/uart3.dtbo
-rw-r--r-- 1 crane crane 627 Oct 22 16:49 /media/crane/boot/overlays/uart3-pi5.dtbo
-rw-r--r-- 1 crane crane 493 Oct 22 16:49 /media/crane/boot/overlays/uart4.dtbo
-rw-r--r-- 1 crane crane 627 Oct 22 16:49 /media/crane/boot/overlays/uart4-pi5.dtbo
2. add below in config.txt
enable_uart=1
dtoverlay=uart3-pi5
3. add "console=serial3,115200" in cmdline.txt
dwc_otg.lpm_enable=0 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait net.ifnames=0 console=serial3,115200
From the documents I found, most likely it is UART3 on pin8/10(GPIO14/15).
Also tried to use UART1 dt overlay and "console=serial1".
From the device tree, UART0 is using GPIO26/27.

But I got no display on the console. The UART console connection and Tera Term configuration work fine as I tried it on another Raspberry Pi 2B board.

What might be missing? Any inputs will be appreciated.

Regards,
Crane

Statistics: Posted by crane — Wed Oct 23, 2024 3:10 pm



Viewing all articles
Browse latest Browse all 4878

Trending Articles