xpertsavenue/WiringOP-Zero

opi zero 2 plus H5

Opened this issue · 6 comments

Good day

Im trying to install your library in my opi zero 2 plus H5 , without succes , it works in my opi zero , can you help me ?

wiringPi.o: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
Makefile:73: recipe for target 'libwiringPi.so.2.0' failed
make: *** [libwiringPi.so.2.0] Error 1

Thank you

./build uninstall
make clean

solved this error for me, caused probably by some residues of cross-compile.

Thanks you so much Leo , it works. :)

Good day, after compile i have this error runing my script , also running "gpio readall"

piBoardRev: Unable to determine board revision from /proc/cpuinfo
-> No "Hardware" line
-> You may want to check:
-> http://www.lemaker.org/

Any help will be apreciated T.T

For every one who need wiringpi in opi zero 2 plus H5 install this

git clone https://github.com/FREEWING-JP/WiringOP -b h5
cd WiringOP
chmod +x ./build
sudo ./build

You should check which gpios works , because this is for opi PC2 , in my case i successfull run SPI to work with NRF radio.

I have modified wiringPi.c to accomodate the OP Zero, plus2 H3 and H5..
It is available at https://github.com/CanHobby/LCD1602/tree/OPi.
I modified the isH3() function to check for "CPU implementer" instead of "Hardware" which seems to be common across the whole Orange Pi Zero line. At least it worked for me with the H2+, H3 and H5... It did not work with the H5 as persented in this repo. Gave the unable to determine the revision error.

Hope this helps... The H5 software is not very stable but if you give it enough juice it is workable - I found the Ubuntu version to work the best.

Art

For every one who need wiringpi in opi zero 2 plus H5 install this

git clone https://github.com/FREEWING-JP/WiringOP -b h5
cd WiringOP
chmod +x ./build
sudo ./build

You should check which gpios works , because this is for opi PC2 , in my case i successfull run SPI to work with NRF radio.

which gpio works ?? you mean some will work and some wont In my case gpio 22 is not working on PC2 board