gpt4 book ai didi

linux - 使用 CP2102 的 TTL 串行 USB 转换器时出现问题

转载 作者:太空宇宙 更新时间:2023-11-04 09:25:43 24 4
gpt4 key购买 nike

我买了一个串行 TTL 转 USB 转换器来监控我的树莓派,但在启动时卡住了。我的操作系统是 Ubuntu 14.04,内核为 4.4.6

http://www.amazon.de/USB-TTL-Konverter-Modul-mit-eingebautem-CP2102/dp/B00AFRXKFU?ie=UTF8&psc=1&redirect=true&ref_=oh_aui_detailpage_o02_s00

(带有树莓派的树莓派)

nano /boot/cmdline.txt
dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootflags=commit=120 elevator=deadline noatime nodiratime fsck.repair=yes data=writeback rootwait

驱动程序工作正常。

lsusb
Bus 002 Device 006: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light

记录:

dmsg
[19265.407597] usb 2-1.2: New USB device found, idVendor=10c4, idProduct=ea60
[19265.407603] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19265.407606] usb 2-1.2: Product: CP2102 USB to UART Bridge Controller
[19265.407609] usb 2-1.2: Manufacturer: Silicon Labs
[19265.407612] usb 2-1.2: SerialNumber: 0001
[19265.408610] cp210x 2-1.2:1.0: cp210x converter detected
[19265.408791] usb 2-1.2: cp210x converter now attached to ttyUSB1

连接线:

  • 发送 <-> 接收
  • 接收 <-> 发送
  • GRD <-> GRD

启动腻子:sudo putty设置:

  • 连接到/dev/ttyUSB1 的串行线
  • 速度(波特)115200
  • 数据位 8
  • 停止位 1
  • 无奇偶校验
  • 流量控制无

串口终端只显示一行,get停止工作:

Uncompressing Linux... done, booting the kernel.

没有更多文字..而且我无法按任何键。

任何建议,如何解决这个问题?

最佳答案

尝试使用 console=ttyAMA0,115200 代替。假设您的串行适配器连接正确(从早期的线路来看,它是正确的),您刚刚错误地配置了 console bootarg。

详细来说,你得到这一行的原因是因为早期的引导代码不关心 console bootarg,它会使用嵌入在解压缩例程中的小型 UART 驱动程序来编写该行.

关于linux - 使用 CP2102 的 TTL 串行 USB 转换器时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36680260/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com