Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wiringOP not working #105

Open
PJ5168 opened this issue Apr 14, 2024 · 3 comments
Open

wiringOP not working #105

PJ5168 opened this issue Apr 14, 2024 · 3 comments

Comments

@PJ5168
Copy link

PJ5168 commented Apr 14, 2024

The official images are no longer pre-installed gpio.
Tried to build on Pi PC, 3LTS, 3B.
gpio readall seems not working.
+------+-----+----------+--------+---+ OPi 3 +---+--------+----------+-----+------+
| GPIO | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | GPIO |
+------+-----+----------+--------+---+----++----+---+--------+----------+-----+------+
| | | 3.3V | | | 1 || 2 | | | 5V | | |
| 122 | 0 | SDA.0 | ALT2 | 0 | 3 || 4 | | | 5V | | |
| 121 | 1 | SCL.0 | ALT2 | 0 | 5 || 6 | | | GND | | |
| 118 | 2 | PWM.0 | OFF | 0 | 7 || 8 | 0 | OFF | PL02 | 3 | 354 |
+------+-----+----------+--------+---+----++----+---+--------+----------+-----+------+
| GPIO | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | GPIO |
+------+-----+----------+--------+---+ OPi 3 +---+--------+----------+-----+------+

@AZQAXH
Copy link

AZQAXH commented Apr 28, 2024

the same

@mikkame
Copy link

mikkame commented May 1, 2024

I have same issue

gpio version: 2.46
Copyright (c) 2012-2018 Gordon Henderson
This is free software with ABSOLUTELY NO WARRANTY.
For details type: ./gpio/gpio -warranty

  * Device tree is enabled.
  *--> OrangePi 3 LTS
 +------+-----+----------+--------+---+   OPi 3  +---+--------+----------+-----+------+
 | GPIO | wPi |   Name   |  Mode  | V | Physical | V |  Mode  | Name     | wPi | GPIO |
 +------+-----+----------+--------+---+----++----+---+--------+----------+-----+------+
 |      |     |     3.3V |        |   |  1 || 2  |   |        | 5V       |     |      |
 |  122 |   0 |    SDA.0 |    OFF | 0 |  3 || 4  |   |        | 5V       |     |      |
 |  121 |   1 |    SCL.0 |    OFF | 0 |  5 || 6  |   |        | GND      |     |      |
 |  118 |   2 |    PWM.0 |    OFF | 0 |  7 || 8  | 0 | OFF    | PL02     | 3   | 354  |
 +------+-----+----------+--------+---+----++----+---+--------+----------+-----+------+
 | GPIO | wPi |   Name   |  Mode  | V | Physical | V |  Mode  | Name     | wPi | GPIO |
 +------+-----+----------+--------+---+   OPi 3  +---+--------+----------+-----+------+```

Orange Pi Focal with Linux 5.10.75-sun50iw6

if using tag 0.2 it looks working

@kerrik21
Copy link

kerrik21 commented May 11, 2024

if using tag 0.2 it looks working

Can you post detailed workaround for dummies plz? =)

update: for dummies like me =)

git clone --depth 1 --branch v0.2 https://github.com/orangepi-xunlong/wiringOP.git
cd wiringOP
./build clean
./build 

it works =)
thx @mikkame

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants