Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
View: 2357|Reply: 4

problem with orangepi PC 2 (GPIO)

[Copy link]

2

Threads

4

Posts

22

Credits

Novice

Rank: 1

Credits
22
Post time 2018-5-21 14:41:42 | Show all posts |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

639

Posts

4327

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
4327
Post time 2018-5-21 15:01:03 | Show all posts
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| Post time 2018-5-21 15:39:07 | Show all posts
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

639

Posts

4327

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
4327
Post time 2018-5-22 00:50:34 | Show all posts
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| Post time 2018-5-22 02:29:29 | Show all posts
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 have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2020-9-24 17:36 GMT+8 , Processed in 0.029499 second(s), 22 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list