欢迎光临
我们一直在努力

tina | openwrt关闭调试串口(DEBUG UART)

全志R16开发平台给出的TINA系统是基于openwrt,里面的debug串口默认UART0,由于资源有限,希望释放debug串口,用来接外设。多方测试实验,以下方法有效,记录如下:

//进入系统源码顶级目录
//编辑以下文件
vi target/allwinner/astar-parrot/base-files/etc/inittab  //不同系统文件路径注意更改
//文件内容如下,注释::askconsole:/bin/ash --login这条内容
::sysinit:/etc/init.d/rcS S boot
::shutdown:/etc/init.d/rcS K shutdown
#::askconsole:/bin/ash --login
//再次编译以下文件: 
vi package/base-files/files/etc/config/system 
//内容如下    
config system
        option 'conloglevel' '1'       //新加这条语句
        option 'kconloglevel' '1'      //新加这条语句
        option hostname TinaLinux
        option timezone Asia/Shanghai
        option timezone CST-8
        option log_file /root/.lastlog
        option log_size 512
        option log_buffer_size 64

config timeserver ntp
        list server ntp5.aliyun.com
        list server 0.openwrt.pool.ntp.org
        list server 0.cn.pool.ntp.org
        option enable 1
        option enable_server 0

config 'led'
        option 'name'           'red'
        option 'sysfs'          'led1'
        option 'brightness'     '120'
        option 'trigger'        'timer'

修改完成后,重新编译固件,然后烧录固件。

赞(2) 打赏
未经允许不得转载:huangea的博客 » tina | openwrt关闭调试串口(DEBUG UART)

评论 1

  1. #1

    我踩故我在,下次还会来!

    增大网6年前 (2018-04-02)回复

有趣的网站

支持快讯、专题、百度收录推送、人机验证、多级分类筛选器,适用于垂直站点、科技博客、个人站,扁平化设计、简洁白色、超多功能配置、会员中心、直达链接、文章图片弹窗、自动缩略图等...

联系我们联系我们

觉得文章有用就打赏一下文章作者

非常感谢你的打赏,我们将继续给力更多优质内容,让我们一起创建更加美好的网络世界!

支付宝扫一扫打赏

微信扫一扫打赏

登录

找回密码

注册