Vim4 ubuntu22.04 /dev/ttyS1发送和接收都有问题

Which system do you use? Android, Ubuntu, OOWOW or others?

ubuntu22.04

Which version of system do you use? Khadas official images, self built images, or others?

ubuntu22.04

Please describe your issue below:

在40针中第15和第16,分别为uart_e_rx 和uart_e_tx,在ubuntu中对应的是设备/dev/ttyS1,使用comtool,和cutecom,以115200,8位数据位,1位停止位,打开/dev/ttyS1,没有报错,但是接收不到数据,发送出去的数据别的板子也接收不到;调换第15和第16,uart_e_rx 和uart_e_tx,线序,依然没有数据。是不是/dev/ttyS1在linux中就没有初始化?导致无法使用

Post a console log of your issue below:

Delete this line and post your log here.

Hello @loopolike

PIN15和PIN16对应的串口并不是/dev/ttyS1,这个是蓝牙用的。目前的固件默认是没有使能PIN15和PIN16这个串口的,如果你想用这个串口,你可以参考如下设置打开uart_e。

配置overlay使能uart_e,编辑文件/boot/dtb/amlogic/kvim4.dtb.overlay.env,在节点fdt_overlays=中添加uart_e,然后保存。添加后的文件内容如下:

$ cat /boot/dtb/amlogic/kvim4.dtb.overlay.env 
fdt_overlays=uart_e

重启后可以看到uart_e对应的节点/dev/ttyS4

多谢,目前的项目用不到蓝牙,已经按照你的方法,把uart用起来了