RK3288 Android7.1 禁止调试串口,作普通串口

3288 uart2为调试串口,更改为普通串口

  • 关掉FIQ debugger,Disable以下节点

      fiq-debugger {
              compatible = "rockchip,fiq-debugger";
              interrupts = ;
              rockchip,serial-id = <2>;
              rockchip,wake-irq = <0>;
              rockchip,irq-mode-enable = <0>;  /* If enable uart uses irq instead of fiq */
              rockchip,baudrate = <115200>;  /* Only 115200 and 1500000 */
              pinctrl-names = "default";
              pinctrl-0 = <&uart2_xfer>;
              status = "disabled";
      };
    
  • 注释 bootargs = “earlycon=uart8250,mmio32,0xff690000 vmalloc=496M”;

      chosen {
      //      bootargs = "earlycon=uart8250,mmio32,0xff690000 vmalloc=496M";
      };
    
  • 重写parameter.txt

      commandline:androidboot.console=ttyFIQ0,去掉ttyFIQ0。
    
  • android/device/rockchip/common/recovery/etc/init.rc

      service recovery /sbin/recovery
       #console 这个注释掉 
       seclabel u:r:recovery:s0
    

你可能感兴趣的:(Android系统杂记)