Jump to content

Joe

Tinker Engineer
  • Content Count

    31
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by Joe


  1. On 6/16/2021 at 4:16 PM, Fu-. said:

    I wrote and test this dts;

    -----

     

    /dts-v1/;
    /plugin/;
    / {
            compatible = "rockchip,rk3399";

            /* disable spi5 */
            fragment@0 {
                    target = <&spi5>;
                    __overlay__ {
                            status = "okay";
                            spi5 {
                                    status = "disabled";
                            };
                    };
            };

            fragment@1 {
                    target-path = "/";
                    __overlay__ {
                        gpio15 {
                                    compatible = "gpio2";
                                    pinctrl-names = "default";
                                    pinctrl-0 = <&gpio_pins>;
                                    gpios = <&gpio2 20 0>;
                                    status = "okay";
                            };
                    };
            };

            fragment@2 {
                    target = <&gpio2>;
                    __overlay__ {
                            gpio_pins: gpio_pins {
                                    rockchip,pins = <2 20 0 &pcfg_pull_down>;
                            };
                    };
            };
    };

     

    -----

    However, this did not work.
    It still behaves as if it is latching.

     

    You can try to modify Pin define from /boot/config.txt
    And run "gpio readall"  to get list
     


  2. On 6/16/2021 at 12:54 PM, Fu-. said:

    Hi,

    I want to use wiringPi on Tinker2S.

    I'm trying to use GPIO Pin#15 (wiring Pi Pin#3) as a pull-down input, but after a bit of research, it seems to be acting like it's latching. Once the Input goes High, the input does not drop to Low after that.

    Is there a good solution?

    Hi Fu,

    Please refer the following examples
    [Image Version]
    Tinker_Board_2-Android10-V1.0.0-20210318.img

    [Example]
    /usr/local/share/gpio_lib_c_rk3399/examples/isr.c
    /usr/local/share/gpio_lib_c_rk3399/examples/isr-osc.c

    [Step]
    1.  cd /usr/local/share/gpio_lib_c_rk3399/examples
    2.  sudo make isr
    3.  sudo ./isr
    4.  GPIO #15 (wiring Pi #3) pulled down <-> up switch
    4.  Output:
         Waiting ...  Int on pin 3: Counter:     1
         Waiting ...  Int on pin 3: Counter:     2
         Waiting ...  Int on pin 3: Counter:     3
         …….


  3. Hi Omirax:

    • [Execution environment -- Ubuntu 18.04]

    1).  Kernel Code => git clone https://github.com/TinkerEdgeR/debian-kernel.git
    2).  GCC  =>  wget http://releases.linaro.org/components/toolchain/binaries/6.3-2017.05/aarch64-linux-gnu/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu.tar.xz
    3).  cd debian-kernel
    4).  make ARCH=arm64 tinker_edge_r_defconfig CROSS_COMPILE=/media/edger/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu- -j32
    5).  make ARCH=arm64 tinker_edge_r.img CROSS_COMPILE=/media/edger/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu- -j32

    • [Execution environment -- EdgeR]

    6).  compile finish,copy [Ubuntu src] --> debian-kernel/boot.img to EdgeR
    7).  dd if=boot.img of=/dev/mmcblk1p4
    8).  sudo reboot

    Thanks. 


  4. Hi
    "balenaEtcher says that it is not a valid image." 
    Is as https://imgur.com/vzanC6G ??
    Missing Partition Table Issue --> https://forums.balena.io/t/missing-partition-table-issue/175129

    [Check]
    (1) My Mac load normal. My Etcher version is 1.5.116
    (2) My Tinker_Board-Debian-Stretch-v2.2.2-20210326.img size 3.38 GB (3,631,173,632 bytes)
    (3) md5sum Tinker_Board-Debian-Stretch-v2.2.2-20210326.img
        07385e98a4c3689d396409fb48508c65  Tinker_Board-Debian-Stretch-v2.2.2-20210326.img
    How about you??

×
×
  • Create New...