Jump to content

NanoPi NEO2 disable serial console


Tanisou

Recommended Posts

Hi,I want to know how to disable serial console /dev/ttyS0  on NanoPi NEO2 with allwinner H5.

My Environment:

  Board:NanoPi NEO2

  uname -a:

 Linux nanopineo2 4.14.4-sunxi64 #11 SMP Thu Dec 7 11:55:12 CET 2017 aarch64 aarch64 aarch64 GNU/Linux

  dmesg | grep tty: 

[    0.000156] console [tty0] enabled
[    1.655315] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 24, base_baud = 1500000) is a U6_16550A
[    1.655383] console [ttyS0] enabled
[    1.678058] 1c28400.serial: ttyS1 at MMIO 0x1c28400 (irq = 25, base_baud = 1500000) is a U6_16550A
[    1.700706] 1c28800.serial: ttyS2 at MMIO 0x1c28800 (irq = 26, base_baud = 1500000) is a U6_16550A
[    1.723358] 1c28c00.serial: ttyS3 at MMIO 0x1c28c00 (irq = 27, base_baud = 1500000) is a U6_16550A

 

Why I want to disable serial console /dev/ttyS0,because I want to use 3 uart port to communicate with other board and module.

So I'm already using /dev/ttyS1,/dev/ttyS2.

I tried some of  solution that written on this forum and other web site.

  • remove console=~ from boot.cmd and recompile boot.scr
  • edit console=both to console=ttyGS0 on armbian-config
  • disable some of  getty service and serial console service using systemctl

But never solved this problem.

I ever can login with serial console on ttyS0 with USB-Serial converter.

And when I conneted GPS to UART0,I can see recieved data using sudo cat /dev/ttyS0 for few seconds.

But after few seconds, this procces was ended.

I have faced same problem on RaspberryPi with Officeial Image.

But in Raspberry Pi case,I used raspi-config to change disable serial console succesfully.

 

 

If who know solution of this problem or information,Please teach me it.

Sorry my not good English.

Thank you for Armbian developers and forum members.

 

 

 

Link to comment
Share on other sites

And I just notice that reboot fewtimes armbian of this version for NanoPi NEO2,it will be couldn't recognize other /dev/ttyS*.

I faced 2 times this problem on reinstall  armbian.

But I know this build isn't stable build.

So I hope that we will be setting serial port on armbina-config.

And I'm looking forward to be stable  H5 series board .

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines