Power & Source of Big Ideas

NanoPi M4V2 WiringPi broken

Moderators: chensy, FATechsupport

Hi!
I encountered a problem using wiringPi on a new NanoPi M4V2.
4.4.179 #1 SMP Thu Aug 29 17:08:23 CST 2019 aarch64 aarch64 aarch64 GNU/Linux

Using the following command
gpio -v
this gives me the following output
gpio version: 2.44
Copyright (c) 2012-2017 Gordon Henderson
This is free software with ABSOLUTELY NO WARRANTY.
For details type: gpio -warranty

FriendlyELEC Board Details:
Type: Unknown, Revision: 00, Memory: 256MB
Maker: Hardkernel, Chip-Vendor: Unknown
* Device tree is enabled.
*--> FriendlyElec NanoPi M4 Ver2.0
* Root or sudo required for GPIO access.

Note the unknown type. Seems like WiringPi does not recognize the new NanoPi M4V2 hardware.

When compiling a C program and executing the program (which has worked on previous NanoPi M4 hardware) now it shows the following error:
wiringPiSetup: Unknown model

And the expected normal operation is broken too.
gpio readall
This also gives me the following output
wiringPiSetup: Unknown model

Is this problem known? Is there maybe a fix already available?
I see exactly the same problem on the M4v2.
Any progress on this matter? Were you able to solve it? I have also the same problem, latest friendlycore installed
It only supports FriendlyCore and FriendlyDesktop firmware and is not compatible with armbian.
The problem is still unresolved!
Today I downloaded the newest M4V2 image rk3399-eflasher-friendlycore-focal-4.4-arm64-20201027.img.zip
After running the command gpio readall it displayed the following error:
Oops: Unable to determine board revision from /proc/device-tree/system/linux,revision
or from /proc/cpuinfo
-> No "Hardware" line
-> You'd best google the error to find out why.
Then I checked /proc and there is no /proc/device-tree/system however, there is /proc/device-tree/board

Code: Select all

-r--r--r--   1 root root 19 Oct 29 11:07 compatible --> friendlyelec,board
-r--r--r--   1 root root  4 Oct 29 11:07 hwrev      --> !
-r--r--r--   1 root root  8 Oct 29 11:07 machine    --> NANOPI4
-r--r--r--   1 root root 10 Oct 29 11:07 model      --> NanoPi M4
-r--r--r--   1 root root  6 Oct 29 11:07 name       --> board
-r--r--r--   1 root root  4 Oct 29 11:07 phandle    --> ▒
Shouldn't the model have been "NanoPi M4V2"? And why is name = "board"?

Who is online

In total there are 2 users online :: 0 registered, 0 hidden and 2 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 2 guests