cloud39怎么去掉UART0的打印功能,用作串口通讯使用

1、在编译配置内核在.config 文件下
CONFIG_CMDLINE="root=/dev/mtdblock1 ro rootfstype=squashfs init=/sbin/init mem=64M console=ttySAK3,115200" //红色处不要设为ttySAK0
2、内核配置
      Device Drivers  --->  
                 Character devices  --->  
                       Serial drivers  ---> 
                             
                                <*> AK39xx serial port support                                                              
                                [ ]   Console on AK39 serial port   
 
                             [ ] TTY driver to output user messages via printk   
3、文件系统修改
  修改platform/rootfs/rootfs/inittab 里,把以下行屏蔽掉即可
  #ttySAK0::respawn:/sbin/getty -L ttySAK0 115200 vt100 # GENERIC_SERIAL 

猜你喜欢

转载自blog.csdn.net/longjiacheng2006/article/details/50418486