简体   繁体   English

如何找到嵌入式Linux中用于终端输出的串行设备

[英]how to find which serial device is used for terminal output in embedded linux

I am using a i.MX28 board from freescale. 我正在使用飞思卡尔的i.MX28开发板。 I am writing linux applications for this device. 我正在为此设备编写linux应用程序。 I plan to compile and load gdbserver on it to debug over serial interface. 我计划在其上编译并加载gdbserver以通过串行接口进行调试。 I am able to connect and login to the shell using hyperterminal or minicom but I dont know which tty device is default for terminal. 我可以使用超级终端或minicom连接并登录到Shell,但是我不知道终端默认使用哪个tty设备。 How can I find which /dev/tty is being used? 如何找到正在使用的/ dev / tty?

w谁会告诉您当前会话以及每个会话使用哪个TTY。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM