zhaolei / WiringOP

This is a GPIO access library for OrangePi. It is based on the original WiringPi for Raspberry Pi.
GNU Lesser General Public License v3.0
351 stars 134 forks source link

WiringOP does not work on OrangePi i96 #19

Open vaton43 opened 3 years ago

vaton43 commented 3 years ago

After installed Ubuntu image and downloaded & installed WiringOP, the "gpio readall" command does not work properly. After printed part of table header, there is an error message: Orange Pi+-[ 490.969604] Unhandled fault: external abort on non-linefetch (0x008) at 0xb6fcc000. The table is short (just header + single line) and is followed by "Bus error" message, And by the way -- header pins 1 and 2 on i96 are connected to GND, so the printed line is wrong (shows 3.3V and 5V in V columns) ....

Running gpio under root identity gives the same result. Rest of the Ubuntu system seems to work as expected.

orangepi@orangepii96:~/WiringOP$ gpio readall +-----+-----+--[ 474.795227] Unhandled fault: external abort on non-linefetch (0x008) at 0xb6fd7000

--------+------+---+-Orange Pi+---+---+------+---------+-----+--+ | BCM | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | BCM | +-----+-----+----------+------+---+----++----+---+------+----------+-----+-----+ | | | 3.3v | | | 1 || 2 | | | 5v | | | Bus error orangepi@orangepii96:~/WiringOP$

Here is full listing: WiringOP install.log