S
S
Sergei Sakharov2022-02-09 17:38:20
Smart House
Sergei Sakharov, 2022-02-09 17:38:20

When changing the distribution kit, gpio stopped working on Orange Pi - how to treat it?

The bottom line is this, I had an Armbian distribution on my Orange Pi - some old one, it was not even updated.
A relay in the amount of four pieces is attached to it - with wiring for sockets and light bulbs (a light bulb is a more visual indicator). I taxied them, including GPIO 4, 18, 23, 24

echo 4 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio4/direction
echo 0 > /sys/class/gpio/gpio4/value

Yes, exactly 0, at 1 - the light goes out, at 0 it lights up.
I decided to update the distribution - and Orange Pi is no longer supported. It's old, still the first version on A20 - like this:
www.orangepi.org/Docs/mainboards.html
Then I took Armbian from Banana Pi M1 (it seems they were previously considered fully compatible). I took it here:
https://www.armbian.com/bananapi/
And after installation it turned out that GPIO does not react to attempts to turn on the lights, and when you try to
echo out > /sys/class/gpio/gpio18/direction
it hangs altogether. Can anyone help?
For those who find it difficult to imagine - the patient looks like this:
6203d0e9b8bbc766311596.png
Yes, and now the designations have become different.
6203d1bb6fd4c989220153.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergei Sakharov, 2022-02-09
@Afranius

While I returned the image of the old working flash drive. The version was:
62040c364ca1d501857551.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question