It is working if you interpret this answer correctly:
create a file in a known and accessible location on a saved filesystem, for example /etc/sys_info
In that file place the following lines:
sunxi_platform : Sun8iw7p1
sunxi_secure : normal
sunxi_chipid : 2c21020e786746240000540000000000
sunxi_chiptype : 00000042
sunxi_batchno : 1
sunxi_board_id : 1(0)
Then, modify the source-code you downloaded from github:
in the file 'wiringPi/boardtype_friendlyelec.c' look for the lines:
if (!(f = fopen("/sys/class/sunxi_info/sys_info", "r"))) {
LOGE("open /sys/class/sunxi_info/sys_info failed.");
return -1;
}
Add two lines, make it look like this:
if (!(f = fopen("/sys/class/sunxi_info/sys_info", "r"))) {
if (!(f = fopen("/etc/sys_info", "r"))) {
LOGE("open /sys/class/sunxi_info/sys_info failed.");
return -1;
}
}
save and run the './build' command and SUCCESS. gpio readall works without errors.