CubieBoard中文论坛

 找回密码
 立即注册
搜索
热搜: unable
查看: 5341|回复: 2

uart0作为一般串口

[复制链接]
发表于 2016-6-2 15:00:22 | 显示全部楼层 |阅读模式
一般串口调试使用的是uart0,如果不使用它的话可以按照下面更改:
--- a/tools/pack/chips/sun7i/configs/linux/default/env.cfg

+++ b/tools/pack/chips/sun7i/configs/linux/default/env.cfg

@@ -2,7 +2,7 @@ bootdelay=3

#default bootcmd, will change at runtime according to key press

bootcmd=run setargs_nand boot_normal#default nand boot

#kernel command arguments

-console=ttyS0,115200

+#console=ttyS0,115200

nand_root=/dev/nandd

回复

使用道具 举报

发表于 2016-6-7 09:06:51 | 显示全部楼层
我可以告诉你这样不稳定么? ttyS0 是特殊的端口 不建议当做一般端口 全志有专门说明

回复 支持 反对

使用道具 举报

 楼主| 发表于 2016-6-7 09:29:55 | 显示全部楼层
yuxue 发表于 2016-6-7 09:06
我可以告诉你这样不稳定么? ttyS0 是特殊的端口 不建议当做一般端口 全志有专门说明

...

嗯,没测试过稳定性,但最好不要去改就对了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|粤ICP备13051116号|cubie.cc---深刻的嵌入式技术讨论社区

GMT+8, 2024-5-3 16:17 , Processed in 0.022194 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2012 Comsenz Inc. | Style by Coxxs

返回顶部