View: 10898|Reply: 8

GPIO with OPI PC2

[Copy link]

2

threads

4

posts

18

credits

Novice

Rank: 1

credits
18
Published in 2018-8-9 20:06:42 | Show all floors |Read mode
Hello,
I am a beginner in  linux and orange PI, I buy an OPI PC2 in order to use a 3D printer with octoprint, I install armbian and I try to run the GPIO without success. I searched for several library but it is all made for the H3 version, I finally found this one https://github.com/tumugin/WiringOP
I managed to install it but I got an error message when I made the command
gpio readall
Here is the result
octoprint @ orangepipc2: ~ $ gpio readall
piBoardRev: Unable to determine board revision from / proc / cpuinfo
-> No "Hardware" line
-> You may want to check:
-> http://www.lemaker.org/

Do you have a solution ?
thank you

0

threads

18

posts

122

credits

Registered member

Rank: 2

credits
122
Published in 2018-8-10 04:00:42 | Show all floors
Edited by svensly at 2018-8-10 04:02

Hi,
which OS do you use for octoprint?

Follow the install instruction here:
https://github.com/tumugin/WiringOP/tree/h5

2

threads

4

posts

18

credits

Novice

Rank: 1

credits
18
 Author| Published in 2018-8-10 15:59:29 | Show all floors
Edited by fizga at 2018-8-10 16:01

in fact for now I have not installed OCTOPRINT yet, I'm just trying to run my GPIO , I'm under Armbian Xenial desktop mainline kernel 4.14.y
I have already followed the instructions and the library installs well. the result described above happens when I try to read the GPIO status.
I contacted the editor of the library and he replied that maybe it would be necessary to patch  wiringpi.c, but I do not know how to do or what to change

0

threads

18

posts

122

credits

Registered member

Rank: 2

credits
122
Published in 2018-8-10 16:22:09 | Show all floors
Edited by svensly at 2018-8-10 16:39

Ok, your Error says, it cant find your board revision. It dont know which board it is. Cant find "the Hardware line" of "/proc/cpuinfo"
Fix the function "isH5()" line 1337. i think it breaks at Line 1352.

if you put "cat /proc/cpuinfo" in terminal you can see, it shows 4 CPUs, but not a hardware name.
on other boards like "Raspberry pi" there is a line "Hardware        : BCM2708" for example.

2

threads

4

posts

18

credits

Novice

Rank: 1

credits
18
 Author| Published in 2018-8-13 16:51:07 | Show all floors
thanks for your answer, here is a solution that seems to work

https://forum.armbian.com/topic/ ... ing-on-proccpuinfo/

Thank you again for your help

0

threads

112

posts

322

credits

Intermediate member

Rank: 3Rank: 3

credits
322
Published in 2022-3-8 23:57:45 | Show all floors
You can be permitted to content artists, however it is not connections, in the event they are simply endorsed and additionally relating to question.        Packers and Movers pune to Pune

0

threads

112

posts

322

credits

Intermediate member

Rank: 3Rank: 3

credits
322
Published in 2022-3-23 23:18:35 | Show all floors
You are welcome to first ever before specialist price tag comparison website pertaining to urban center points of interest & sightseeing and tours tours, cruise organized excursions, boys and girls activities, open-air pursuits, wine beverage day trips inside UK, Europe, US, Asian countries, Midst Eastern side and also worldwide holiday hotspots.        Sightseeing tours

0

threads

112

posts

322

credits

Intermediate member

Rank: 3Rank: 3

credits
322
Published in 2022-3-24 05:24:01 | Show all floors
You are welcome to first ever before specialist price tag comparison website pertaining to urban center points of interest & sightseeing and tours tours, cruise organized excursions, boys and girls activities, open-air pursuits, wine beverage day trips inside UK, Europe, US, Asian countries, Midst Eastern side and also worldwide holiday hotspots.        Sightseeing tours

0

threads

112

posts

322

credits

Intermediate member

Rank: 3Rank: 3

credits
322
Published in 2022-4-2 03:39:45 | Show all floors
This is often as a result exquisite and even very creative. Freezing take pleasure in that tones and even whomever makes the application with the -mail can be beaming.        Sightseeing tours
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list