Skip to content

ASUS tinker board 2s, GPIO runtime error #7

Open

Description

@tangochuynam

after installing asus gpio and I import ASUS.GPIO as GPIO, it shows this error
RuntimeError: This module can only be run on a ASUS Pi!

Activity

  1. tangochuynam commented on Dec 8, 2021

    @tangochuynam
    Author

    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";

  2. wzerowx commented on Jan 13, 2022

    @wzerowx

    I use the latest version(Debian-Buster-v2.0.0),The same problem is not fixed.

  3. JasonShiao commented on May 26, 2022

    @JasonShiao

    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.

  4. dpergarc commented on May 26, 2022

    @dpergarc

    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?

  5. JasonShiao commented on May 27, 2022

    @JasonShiao

    As a workaround, you can simply modify the get_asuspi_info function in source/cpuinfo.c and make it return 0.

  6. dpergarc commented on May 27, 2022

    @dpergarc

    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.

  7. yishinhung commented on Jul 1, 2022

    @yishinhung

    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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions