View: 12990|Reply: 6

WiringOP for orange pi pc plus (Android)

[Copy link]

3

threads

15

posts

109

credits

Registered member

Rank: 2

credits
109
Published in 2017-4-23 01:44:09 | Show all floors |Read mode
I am trying to get the wiringOP to work on the pc plus board running Android , I have downloaded https://github.com/zhaolei/WiringOP and followed the instructions given there, but when  I run the command 'gpio readall' nothing happens . Can anyone help me out, Is it not supposed to work with android?   

2

threads

52

posts

565

credits

Senior member

Rank: 4

credits
565
Published in 2017-5-10 04:10:22 | Show all floors
Edited by pmpp at 2017-5-10 04:29

hi @flyingbaloon ,  you need root (uid=0) access to make WiringPI-OP works because it access /dev/mem
WiringOP's gpio command works fine on Orange PI PC , I have tested it on H3Droid 1.2.3+  ( which allows terminal root access and gcc 4.9.2 static builds ), while I2C works fine only so far on opipc Lite.


This thread contains more resources

You need to Log in to download or view,No account?    Register

x
These aren't the Droids you're looking for. . .You look for H3Droid !

3

threads

15

posts

109

credits

Registered member

Rank: 2

credits
109
 Author| Published in 2017-6-20 12:56:40 | Show all floors
pmpp replied at 2017-5-10 04:10
hi @flyingbaloon ,  you need root (uid=0) access to make WiringPI-OP works because it ac ...

Hi @pmpp  can you please tell me how you have managed to get root access , using h3droid , I am unable to run kingoroot in orange pi pc plus with h3droid .   

2

threads

52

posts

565

credits

Senior member

Rank: 4

credits
565
Published in 2017-6-20 14:00:51 | Show all floors
Edited by pmpp at 2017-6-20 18:31

@flyingbaloon  h3droid has permanent full root access on UART debug port ( three wires and a $.50 debug uart ttl adapter ) you' ll have password less /system/bin/sh as root there even before the system is up. This is enough for most of situations ...

The screen shown above is the  terminal choosen for my future SDK (called "u-root") connected to H3Droid ssh root daemon that use the same priv/pub key used in official installer. It offers bash, gcc 6.3, python 3.6.1 + wiriing pi python. It also offer *non root gpio/serial/pwm/i2c/serialports via a specialized su daemon* via json rpc or hessian rpc for standard user applications.
These aren't the Droids you're looking for. . .You look for H3Droid !

3

threads

15

posts

109

credits

Registered member

Rank: 2

credits
109
 Author| Published in 2017-6-20 18:00:05 | Show all floors
pmpp replied at 2017-6-20 14:00
@flyingbaloon  h3droid has permanent full root access on UART debug port ( three wires and a $.50 de ...

thanks

1

threads

18

posts

434

credits

Intermediate member

Rank: 3Rank: 3

credits
434
Published in 2017-6-20 23:50:28 | Show all floors

If you want to get root access only in the terminal/shell (in H3Droid), you can also use SSH for it (Linux has got a built-in SSH client, on Windows you can use PuTTY software for that). But in this case you have to include your public SSH key file during the installation process of H3Droid (when it asks for your key file), because if you skip through it, you won't be able to reach the system shell via SSH.

3

threads

15

posts

109

credits

Registered member

Rank: 2

credits
109
 Author| Published in 2017-6-21 22:15:41 | Show all floors
@robi217 will try this aproach too , thanks
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list