小编Ben*_*Fun的帖子

在 Pi4 Ubuntu 20.04 上启用 UART 通信

我在 RPI4 (4GB) 上安装了 Ubuntu 20.04(32 位)。我在引脚 8,10 上安装了环回线。

我需要使用蓝牙以及通过引脚 8,10 的基本串行通信来与 Roboclaw 电机控制器进行通信。

是否使用https://github.com/EmilGus/install_raspi-config上的脚本在 Ubuntu 上安装了 RASPI-CONFIG ,但即使安装成功,它也会加载不正确的启动配置错误。这引导我到/boot/firmware我找到的目录config.txtcmdline.txt等等。我删除了console=...

$ dmesg | grep tty
[    0.001061] printk: console [tty0] enabled
[    1.919367] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 29, base_baud = 0) is a PL011 rev2
[    1.924677] fe215040.serial: ttyS0 at MMIO 0x0 (irq = 31, base_baud = 62500000) is a 16550
Run Code Online (Sandbox Code Playgroud)

所以看起来我没有禁用控制台。我怎么做?

$ ls -l /dev/ttyS[0123]
crw-rw---- 1 root dialout …
Run Code Online (Sandbox Code Playgroud)

command-line serial-port raspberrypi 20.04

4
推荐指数
1
解决办法
2万
查看次数

标签 统计

20.04 ×1

command-line ×1

raspberrypi ×1

serial-port ×1