Page 1 of 1

Using uart1 on a nanopi M1 running Armbian

Posted: Tue Mar 31, 2020 12:03 pm
by baiselmareo6
This board is lacking (not in chinese ?) documentation, I lost 3 hours of my life to find out how to enable uart1 (the first 5 pins on the gpio header).

So to avoid others losing 3 hours of their life also:

As root,

cd /boot

cp script.bin /root/script.bin.O

bin2fex script.bin /root/script.fex

edit script.fex with your favorite editor and in [uart1] set "uart_used=1"

fex2bin script.fex /boot/script.bin

reboot

... and you're done ! UART1 is now available on the 5 top left corner GPIO pins. Lots of other interesting stuff in that file if you wanna have a look.

Maybe it's obvious for some people but it wasn't for me.

Re: Using uart1 on a nanopi M1 running Armbian

Posted: Sun Apr 05, 2020 10:22 am
by igorp
baiselmareo6 wrote:
This board is lacking (not in chinese ?) documentation, I lost 3 hours of my life to find out how to enable uart1 (the first 5 pins on the gpio header).

So to avoid others losing 3 hours of their life also:

As root,

cd /boot

cp script.bin /root/script.bin.O

bin2fex script.bin /root/script.fex

edit script.fex with your favorite editor and in [uart1] set "uart_used=1"

fex2bin script.fex /boot/script.bin

reboot

... and you're done ! UART1 is now available on the 5 top left corner GPIO pins. Lots of other interesting stuff in that file if you wanna have a look.

Maybe it's obvious for some people but it wasn't for me.


Old 3.4.y kernel that uses Allwinner proprietary way of defining hardware (FEX) config is EOL ...

With mainline kernel, currently at 5.4.y, we developed menu driven utility to do that. Its painless job. https://dl.armbian.com/nanopim1/

We lost 20-30h every day to make this possible.

Code: Select all

armbian-config


Image