本文介绍了在Beaglebone Black上启用UART的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法启用UART.从更新uEnv.txt文件到更新内核,我已经就如何启用和排除故障进行了许多不同的指导.我得出的结论是,使用与说明不同的内核可能是一个问题,但是我不确定吗?我对Beaglebone不太了解,我仍在学习.每当我尝试通过使用Python并键入以下命令来测试UART时:

I'm having trouble getting UART enabled. I've gone through many different directions on how to enable and troubleshoot from updating the uEnv.txt file to updating the kernel. I've come to conclude that it may be an issue with using a different kernel than the instructions, but I'm not sure?I don't know very much about the Beaglebone and I'm still learning. Whenever I try to test UART by using Python and typing the following:

UART.setup("UART1")

UART.setup("UART1")

我得到错误:模块中第1行的文件"stdin"

I get the error: File "stdin", line 1, in module

RuntimeError:无法导出UART通道.

RuntimeError: Unable to export UART channel.

我也开始担心我根本就没有capemgr.当我运行命令时:

I'm also starting to worry that I simply don't have capemgr. When I run the command :

我没有列出capemgr.

I don't have capemgr listed.

我正在使用最新的Debian映像:Jessie Debian 8.3(2016-01-24)

I'm using the latest Debian Image : Jessie Debian 8.3 (2016-01-24)

我正在运行的内核版本是4.1.17-ti-rt-r46.

the Kernel version I'm running is 4.1.17-ti-rt-r46.

我的DTC版本是1.4.1-g1e75ebc9

and my DTC version is 1.4.1-g1e75ebc9

我将非常感谢您的帮助.我已经为这个问题努力了几天.谢谢!

I would really appreciate any help. I've been wrestling with this issue for a few days now. Thank you!

推荐答案

很明显,更改文件的功能使我们始终保持警惕.

Apparently the powers that be like to change files to keep us on our toes.

TamusJRoyce在这里发表了评论: http://www.thing -printer.com/cape-manager-is-back-baby/对我有帮助:

TamusJRoyce left a comment here: http://www.thing-printer.com/cape-manager-is-back-baby/ that helped me:

/media/BEAGLEBONE/env.txt and /boot/uBoot/uEnv.txt has moved to /etc/default/capemgr (file which may not exist). It also has a new syntax. Add "CAPE=BB-SPI-01,BB-UART1,BB-UART2,BB-UART4" to get main ports working. Then reboot.

要在运行Debian 8的Beaglebone Black上启用UART1和UART2

To enable UART1 and UART2 on Beaglebone Black Running Debian 8

  • 步骤1:sudo nano/etc/default/capemgr
  • 第2步:将#CAPE=更改为:CAPE=BB-UART1,BB-UART2
  • 第3步:重新启动
  • 第4步:ls/dev/ttyO *
  • 结果:/dev/ttyO0/dev/ttyO1/dev/ttyO2
  • Step 1: sudo nano /etc/default/capemgr
  • Step 2: Change #CAPE= to: CAPE=BB-UART1,BB-UART2
  • Step 3: reboot
  • Step 4: ls /dev/ttyO*
  • result: /dev/ttyO0 /dev/ttyO1 /dev/ttyO2

这篇关于在Beaglebone Black上启用UART的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-29 20:25