NanoPi Neo serial port Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
smashing

NanoPi Neo serial port

Post by smashing »

Hi
I try open serial port /dev/ttyS1 and /dev/ttyS2
When I read and write have errno: Input/output error

proc/tty/driver
serinfo:1.0 driver revision:
0: uart:U6_16550A mmio:0x01C28000 irq:40 tx:11791 rx:0 RTS|DTR
1: uart:unknown port:00000000 irq:0
2: uart:unknown port:00000000 irq:0
3: uart:unknown port:00000000 irq:0
4: uart:unknown port:00000000 irq:0
5: uart:unknown port:00000000 irq:0
6: uart:unknown port:00000000 irq:0
7: uart:unknown port:00000000 irq:0


/dev/ttyS2 and /dev/ttyS2 is 0666
this serials are disable in kernel?

Smashing
User avatar
MichaIng
Site Admin
Posts: 3009
Joined: Sat Nov 18, 2017 6:21 pm

Re: NanoPi Neo serial port

Post by MichaIng »

The Armbian-based images with Linux 5.x kernel have device tree overlays available to enable additional serial/UART devices:

Code: Select all

sed -Ei 's/^(overlays=.*)/\1 uart1/' /boot/armbianEnv.txt
reboot
Respectively manually add uart1, uart2 or uart3 to the overlay= line in /boot/armbianEnv.txt.

A full list of available overlays can be found in /boot/dtb/overlay/, the ones with the sun8i-h3- prefix (as defined in /boot/armbianEnv.txt). Those can be added by skipping sun8i-h3- and .dtbo from the file name, hence without prefix and file extension.
Post Reply