range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn
81
www.xunlong.tv
5.19. Method of outputting kernel print information to 13pin
serial port
The kernel console outputs to ttyS2 by default, which is the 3pin debug serial port on
the development board. We can also set the kernel console output to be redirected to
UART1 in the 13pin interface, as follows:
1) For the linux5.8 OS, you need to open the configuration of uart1 first. For the detailed
configuration method, see 13pin UART test
2) Then modify console=ttyS2 in /boot/boot.cmd to console=ttyS1
root@orangepir1plus:~# vim /boot/boot.cmd
3) Then recompile /boot/boot.cmd to /boot/boot.scr (operate in the linux OS of the
development board)
root@orangepir1plus:~# mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr
Image Name:
Created: Tue Dec 8 02:35:43 2020
Image Type: ARM Linux Script (uncompressed)
Data Size: 2448 Bytes = 2.39 KiB = 0.00 MiB
Load Address: 00000000
Entry Point: 00000000
Contents:
Image 0: 2440 Bytes = 2.38 KiB = 0.00 MiB
4) Then connect the USB to TTL module to the UART1 pin of the 13pin interface
through the Dupont line
a. Connect the GND of the USB to TTL module to the GND of the 13pin interface
of the development board
b. Connect the RX of the USB to TTL module to the TX of the development board
UART1
c. The TX of the USB to TTL module is connected to the RX of the development
board UART1