|
So, I tried to patch sources of "wiringop". Just changed path from /proc/cpuinfo to dummy file with hardware and revision strings... Now it crashes at mmap call.
root@orangepi:~# gpio readall
wiringPiSetup: mmap (GPIO) failed: Operation not permitted
I also tried run "cat /dev/mem" ang got many kernel messages:
root@orangepi:~#
Message from syslogd@localhost at Apr 21 22:10:00 ...
kernel:[ 346.116162] Internal error: Oops: 96000006 [#1] SMP
Message from syslogd@localhost at Apr 21 22:10:00 ...
kernel:[ 346.680390] Process cat (pid: 1799, stack limit = 0xffffffc0ec1dc000)
Message from syslogd@localhost at Apr 21 22:10:00 ...
kernel:[ 346.682506] Stack: (0xffffffc0ec1dfd60 to 0xffffffc0ec1e0000)
Message from syslogd@localhost at Apr 21 22:10:00 ...
kernel:[ 346.684567] fd60: ffffffc0ec1dfdb0 ffffff80081f2d78 ffffffc0ecf3db80 ffffffc0ec1dfeb8
Message from syslogd@localhost at Apr 21 22:10:00 ...
kernel:[ 346.686840] fd80: 0000000000020000 0000007fae7b2000 0000000080000000 0000000000000015
Message from syslogd@localhost at Apr 21 22:10:00 ...
kernel:[ 346.689126] fda0: 000000000000011d 000000000000003f ffffffc0ec1dfe40 ffffff80081f3628
..........
Not sure, that I do right, but on orangePi PC this action does not cause any errors and messages. |
|