Power & Source of Big Ideas

Using uart1 on a nanopi M1 running Armbian

Moderators: chensy, FATechsupport

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.
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

Who is online

In total there are 7 users online :: 0 registered, 0 hidden and 7 guests (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 7 guests