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
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
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
2. add below in config.txtls -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
3. add "console=serial3,115200" in cmdline.txtenable_uart=1
dtoverlay=uart3-pi5
From the documents I found, most likely it is UART3 on pin8/10(GPIO14/15).dwc_otg.lpm_enable=0 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait net.ifnames=0 console=serial3,115200
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