您尚未登录。

楼主 #1 2020-07-22 18:26:36

如意如意
会员
注册时间: 2020-07-10
已发帖子: 36
积分: 33

求助 linux启动后无串口ttyS: tty_port_close_start:tty-> count= 1 portcount= 2

请问各位朋友们,我的板子是TINY200r2,我再TF卡中烧录镜像,linux启动后没有串口,并且一直输出ttyS: tty_port_close_start:tty-> count= 1 portcount= 2

我是参考论坛大神的帖子,使用 write_to_TF.sh烧写TF卡的
烧写TF卡时,将rootfs/media/rootfs/etc/inittab文件的
console::respawn:/abin/getty -L cinsole 0 vt100
改为
ttyS1::respawn:/abin/getty -L ttyS1 115200 vt100

请问,是我在哪一步的配置出了问题么?

Starting logging:OK
Starting network:OK
ttyS: tty_port_close_start:tty-> count= 1 portcount= 2
ttyS: tty_port_close_start:tty-> count= 1 portcount= 2
ttyS: tty_port_close_start:tty-> count= 1 portcount= 2
ttyS: tty_port_close_start:tty-> count= 1 portcount= 2

离线

#2 2020-07-22 18:31:59

smartcar
会员
注册时间: 2018-02-19
已发帖子: 735
积分: 735

Re: 求助 linux启动后无串口ttyS: tty_port_close_start:tty-> count= 1 portcount= 2

怎么看你错了几个单词呢

离线

楼主 #3 2020-07-22 20:51:19

如意如意
会员
注册时间: 2020-07-10
已发帖子: 36
积分: 33

Re: 求助 linux启动后无串口ttyS: tty_port_close_start:tty-> count= 1 portcount= 2

哦哦,多谢回复,可能是我发帖的时候是是手打的,不是粘贴复制,明天我上传一下照片

离线

楼主 #4 2020-07-23 09:05:43

如意如意
会员
注册时间: 2020-07-10
已发帖子: 36
积分: 33

Re: 求助 linux启动后无串口ttyS: tty_port_close_start:tty-> count= 1 portcount= 2

这是烧写TF卡时的更改:
FluxBB bbcode 测试

这是更改后系统运行后的显示:
FluxBB bbcode 测试

若不将
console::respawn:/sbin/getty -L  console 0 vt100 # GENERIC_SERIAL
替换为
ttyS1::respawn:/sbin/getty -L ttyS1 115200 vt100 # GENERIC_SERIAL
的话,系统运行后有登录提示,显示如下:
FluxBB bbcode 测试

但是电脑没有串口,没法用putty连接登录,请问各位大佬,是我的配置出错了么?
刚接触嵌入式linux不久,提出这种小白问题,请大家不要介意:lol:

离线

#5 2020-07-23 10:11:09

smartcar
会员
注册时间: 2018-02-19
已发帖子: 735
积分: 735

Re: 求助 linux启动后无串口ttyS: tty_port_close_start:tty-> count= 1 portcount= 2

uboot的bootargs参数中 console参数是啥?

离线

楼主 #6 2020-07-23 13:34:11

如意如意
会员
注册时间: 2020-07-10
已发帖子: 36
积分: 33

Re: 求助 linux启动后无串口ttyS: tty_port_close_start:tty-> count= 1 portcount= 2

多谢smartcar!uboot的bootargs参数好像是默认的,没有改
console=ttyS0,115200 panic=5 rootwait root=/dev/mtdblock3 rw rootfstype=jffs2

离线

#7 2020-07-26 11:35:04

service
Moderator
注册时间: 2020-07-21
已发帖子: 2
积分: 2

Re: 求助 linux启动后无串口ttyS: tty_port_close_start:tty-> count= 1 portcount= 2

电脑没有串口,可以买USB转TTL的工具,毕竟学习基本工具还是要具备的。

离线

楼主 #8 2020-08-05 11:55:36

如意如意
会员
注册时间: 2020-07-10
已发帖子: 36
积分: 33

Re: 求助 linux启动后无串口ttyS: tty_port_close_start:tty-> count= 1 portcount= 2

可能是我把配置改来改去改错了,重新来一遍就好了。

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn