You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I check the py_gpio.c and found this error.
// detect board revision and set up accordingly
if (get_asuspi_info(&asuspiinfo))
{
PyErr_SetString(PyExc_RuntimeError, "This module can only be run on a ASUS Pi!");
setup_error = 1;
check code in cpuinfo.c, this snippet code I don't understand it involves for older tinkerboard, maybe not work for tinker board2s if (!found) return -1; info->p1_revision = 3; strcpy(info->revision, revision); info->type = "Tinker Board"; info->processor = "ROCKCHIP3288"; info->manufacturer = "ASUS"; info->ram = "1024M";
I think it'd be better to use /proc/device-tree/model for board identification instead of /proc/cpuinfo, whose display format is more likely to change.
I have "Tinker Board 2 Debian 10 V2.0.4" OS for the 2S board and the GPIO driver is not working either, is there any solution to make a simple led on/off test?
I have just tried that workaround, and despite the fact that it compiles and executes the script, the operation of switching on/off the led is not executed.
Hi @tangochuynam ,. @JasonShiao@dpergarc :
The gpio python library of ASUS tinker board 2s(RK3399) preinstall in the image by default.
Don't reinstall and compiler the source by the github because the github library is for Tinker Board S(rk3288).
Please reference the related source path for Tinker board 2s in /usr/local/share/gpio_lib_python_rk3399/
Activity
tangochuynam commentedon Dec 8, 2021
I check the py_gpio.c and found this error.
// detect board revision and set up accordingly
check code in cpuinfo.c, this snippet code I don't understand it involves for older tinkerboard, maybe not work for tinker board2s
if (!found) return -1; info->p1_revision = 3; strcpy(info->revision, revision); info->type = "Tinker Board"; info->processor = "ROCKCHIP3288"; info->manufacturer = "ASUS"; info->ram = "1024M";wzerowx commentedon Jan 13, 2022
I use the latest version(Debian-Buster-v2.0.0),The same problem is not fixed.
JasonShiao commentedon May 26, 2022
I think it'd be better to use
/proc/device-tree/modelfor board identification instead of/proc/cpuinfo, whose display format is more likely to change.dpergarc commentedon May 26, 2022
I have "Tinker Board 2 Debian 10 V2.0.4" OS for the 2S board and the GPIO driver is not working either, is there any solution to make a simple led on/off test?
JasonShiao commentedon May 27, 2022
As a workaround, you can simply modify the
get_asuspi_infofunction insource/cpuinfo.cand make it return 0.dpergarc commentedon May 27, 2022
I have just tried that workaround, and despite the fact that it compiles and executes the script, the operation of switching on/off the led is not executed.
yishinhung commentedon Jul 1, 2022
Hi @tangochuynam ,. @JasonShiao @dpergarc :
The gpio python library of ASUS tinker board 2s(RK3399) preinstall in the image by default.
Don't reinstall and compiler the source by the github because the github library is for Tinker Board S(rk3288).
Please reference the related source path for Tinker board 2s in /usr/local/share/gpio_lib_python_rk3399/
Thank a lot!