please choosego to mobile | Continue to access the PC version
View: 6023|Reply: 4

problem with orangepi PC 2 (GPIO)

[Copy link]

2

threads

4

posts

22

credits

Novice

Rank: 1

credits
22
Published in 2018-5-21 14:41:42 | Show all floors |Read mode
Edited by Steven1995 at 2018-5-21 14:56

Hi everyone.
I have some problems with the gpio of orangepi PC 2 ( H5) (i install ubuntu desktop ) .
I install the wiringpi library from https://github.com/kazukioishi/WiringOP.git -b h5 as said the manual.
After the installation of the library, i try the commands of gpio, such as gpio -v, gpio readall ecc....
But when i try to run gpio load i2c i achieve this error
modprobe:FATAL: module i2c-dev not found in directory /lib/modules/3.10.6
Unable to load i2c-sunxi

I spent the last week trying to undestard what part of the lib i had to change, or if had to add a new module, but i achieved nothing.

Thanks in advance to everyone that will try to help me.

(P.s. i'm new in this forum, so i don't know if i write this thread in the right place : correct me if i'm wrong, and i have to write this thread in another section )



9

threads

634

posts

4398

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
4398
Published in 2018-5-21 15:01:03 | Show all floors
i2c must work with armbian for PC2 but for wiringPi I am not sure.

2

threads

4

posts

22

credits

Novice

Rank: 1

credits
22
 Author| Published in 2018-5-21 15:39:07 | Show all floors
igorpec replied at 2018-5-21 15:01
i2c must work with armbian for PC2 but for wiringPi I am not sure.

In conclusion, i have to leave ubuntu and install armbian?

9

threads

634

posts

4398

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
4398
Published in 2018-5-22 00:50:34 | Show all floors
In conclusion, i have to leave ubuntu and install armbian?

That would be recommended in any case, yes. Now you run outdated, unsupported and security critical Linux kernel. Ubuntu, Debian, Arch, Android, ... is just a userspace, a shell. It's good enough perhaps for Android. The kernel in Armbian (Ubuntu or Debian variant) is 4.14.y, 4.17-18 is in making. I2C, SPI, GPIO stuff is ready to use. Sure there are also troubles and problems and not everything is developed yet, but people are using it, things are actively fixed, ...

2

threads

4

posts

22

credits

Novice

Rank: 1

credits
22
 Author| Published in 2018-5-22 02:29:29 | Show all floors
igorpec replied at 2018-5-22 00:50
That would be recommended in any case, yes. Now you run outdated, unsupported and security critical ...

Thanks for the answer. Now i understad that the problem is the wiringpi, the gpio; in fact the program gpio.c uses the modprobe on i2c_dev, module that it isn't present in the /lib/modules/3.10.65. So i  have to correct the file gpio.c, replacing the wrong name of the module with the real module in the lib.The trouble is to get the real correspondences between the i2c_dev and the modules of orangepi.
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list