全志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'
修改完成后,重新编译固件,然后烧录固件。

huangea的博客


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