Jump to content

Joe

Tinker Engineer
  • Content Count

    31
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by Joe


  1. Hi @wahaha

    Tinker2 only support cgroup v1.


    sudo mkdir -p /sys/fs/cgroup/cpu/testgroup
    linaro@linaro-alip:~$ cat /sys/fs/cgroup/cpu/cpu.shares
    1024
    linaro@linaro-alip:~$ sudo sh -c "echo 256 > /sys/fs/cgroup/cpu/testgroup/cpu.shares"
    linaro@linaro-alip:~$ cat /sys/fs/cgroup/cpu/testgroup/cpu.shares
    256
    linaro@linaro-alip:~$ stressapptest -s 6000 -M 1200
    [Before execution] stressapptest CPU loading [58x%]

    [Open new Consloe]
    linaro@linaro-alip:~$ openssl sha1 < /dev/zero &
    linaro@linaro-alip:~$ openssl sha1 < /dev/zero &

    [Before execution] stressapptest CPU loading [50x%]
    [Before execution] openssl CPU loading [4x%]

    linaro@linaro-alip:~$ pgrep stress
    954
    linaro@linaro-alip:~$ sudo sh -c "echo 954 > /sys/fs/cgroup/cpu/testgroup/cgroup.procs"
    linaro@linaro-alip:~$ cat /sys/fs/cgroup/cpu/testgroup/cgroup.procs
    954

    [After execution] stressapptest CPU loading upto [40x%]
    [After execution] openssl CPU loading upto [9x%]
    Thanks


  2. Hi @hikaru

    I use Tinker2S version 2.0.0-20210413
    CONFIG_USB_SERIAL_CH341=y
    Actually insert CH340 USBtoUART
    linaro@linaro-alip:~$ ls -al /dev/ttyUSB0
    crw-rw---- 1 root dialout 188, 0 Dec ?8 04:04 /dev/ttyUSB0

    If you have any questions, Please provide dmesg kernel log information.
    Thanks

    • Like 1

  3. tinker2_kernel_1-wire.tgz
    https://asus-my.sharepoint.com/:u:/p/joe_sun/ESh3OzqpXi1GsPqlQqd2roYBY3UI6DoTd2wizrWQS6IwXw?e=7HpAnU

    Hi  @Shadway:

    Can you try the attachment 1-wire driver
    1)  copy boot.img to tinker2
    2)  sudo dd if=boot.img of=/dev/mmcblk1p4
    3)  sudo vi /boot/config.txt
        add overlay=w1-gpio
    4)  Reboot tinkerboard and the /sys/bus/w1/devices/w1_bus_master1 is generated.
    5) GPIO0B0 (The 7th leg of 40Pin) is 1-wire Pin
    Hope helps you

    Joe


  4. Hi Gene Mosher:

    1)  Yes, where there are clerical errors.
          Update as above

    2)  The complete download description is as follows
          first -->  Keep the following packages at their current version
          second -->  Install the following packages:
    linaro@linaro-alip:~$ sudo aptitude install libcurlpp-dev
    The following NEW packages will be installed:
      libcurl4-openssl-dev{ab} libcurlpp-dev libcurlpp0{a}
    0 packages upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
    Need to get 422 kB/881 kB of archives. After unpacking 5051 kB will be used.
    The following packages have unmet dependencies:
     libcurl4-openssl-dev : Depends: libcurl4 (= 7.74.0-1.3+b1) but 7.64.0-4+deb10u1 is installed
    The following actions will resolve these dependencies:

         Keep the following packages at their current version:
    1)     libcurl4-openssl-dev [Not Installed]
    2)     libcurlpp-dev [Not Installed]

    Accept this solution? [Y/n/q/?] n
    The following actions will resolve these dependencies:

         Install the following packages:
    1)     libcurl4-gnutls-dev [7.74.0-1.2~bpo10+1 (buster-backports)]

         Keep the following packages at their current version:
    2)     libcurl4-openssl-dev [Not Installed]

    Accept this solution? [Y/n/q/?] y
    The following NEW packages will be installed:
      libcurl4-gnutls-dev{a} libcurlpp-dev libcurlpp0{a}
    0 packages upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
    Need to get 0 B/878 kB of archives. After unpacking 5020 kB will be used.
    Do you want to continue? [Y/n/?] y
    Selecting previously unselected package libcurl4-gnutls-dev:arm64.
    (Reading database ... 88228 files and directories currently installed.)
    Preparing to unpack .../libcurl4-gnutls-dev_7.74.0-1.2~bpo10+1_arm64.deb ...
    Unpacking libcurl4-gnutls-dev:arm64 (7.74.0-1.2~bpo10+1) ...
    Selecting previously unselected package libcurlpp0:arm64.
    Preparing to unpack .../libcurlpp0_0.8.1-5_arm64.deb ...
    Unpacking libcurlpp0:arm64 (0.8.1-5) ...
    Selecting previously unselected package libcurlpp-dev:arm64.
    Preparing to unpack .../libcurlpp-dev_0.8.1-5_arm64.deb ...
    Unpacking libcurlpp-dev:arm64 (0.8.1-5) ...
    Setting up libcurlpp0:arm64 (0.8.1-5) ...
    Setting up libcurl4-gnutls-dev:arm64 (7.74.0-1.2~bpo10+1) ...
    Setting up libcurlpp-dev:arm64 (0.8.1-5) ...
    Processing triggers for man-db (2.8.5-2) ...
    Processing triggers for libc-bin (2.32-4) ...

    linaro@linaro-alip:~$


  5. Hi Gene Mosher:

    I did not find "libcurlppo".

    Can you try follow SOP??
    sudo vi /etc/apt/source.list  add  deb http://ftp.de.debian.org/debian sid main 
    sudo apt update
    sudo apt install aptitude
    sudo aptitude install  libcurlpp-dev
        Accept this solution? [Y/n/q/?] n
        Accept this solution? [Y/n/q/?] y
        Do you want to continue? [Y/n/?] y

    Joe


  6. Hi serene:

    Can you try the SOP?
    Let me know if you have any questions

    [Tinker2 Source Download]
    1)  u-boot Code => git clone https://github.com/TinkerBoard2/u-boot.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)  tar -Jxvf gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu.tar.xz -C ~

    [Tinker2 u-boot]
    1)  cd u-boot
    2)  make tinker2_defconfig
    3)  make CROSS_COMPILE=~/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu- all --jobs=80
    4)  ./tools/loaderimage --pack --uboot u-boot.bin uboot.img 0x00200000
    5)  compile finish,copy u-boot/uboot.img to Tinker2
    6)  dd if=uboot.img of=/dev/mmcblk1p1 (excute in tinker2)

    Thank you.
    Joe


  7. Hi GeneMosher:

    sudo apt update
    sudo apt install aptitude
    sudo aptitude install libgtk-3-dev
        Accept this solution? [Y/n/q/?] n
        Accept this solution? [Y/n/q/?] y
        Do you want to continue? [Y/n/?] y
    Thank you

    Joe


  8. Hi @serene

    Can you try the SOP?
    Let me know if you have any questions

    [Tinker2 Source Download]
    1)  Kernel Code => git clone https://github.com/TinkerBoard2/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)  tar -Jxvf gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu.tar.xz -C ~

    [Tinker2 kernel]
    1) cd kernel
    2)  make ARCH=arm64 tinker2_defconfig Thank you.CROSS_COMPILE=~/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu- -j32
    3)  make ARCH=arm64 rk3399-tinker_board_2.img CROSS_COMPILE=~/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu- -j32
    4)  compile finish,copy kernel/boot.img to tinker2
    5)  dd if=boot.img of=/dev/mmcblk1p4   (excute in tinker2)
    Thank you

    Joe


  9. Hi  haxboard, 

    Guess whether Router or DHCP is related
    [ask]
    1.  If TinkerS is set to a static IP, Is it still happen disconnected??
        Settings -> More -> Ethernet -> Ethernet Ip mode -> static
    2.  Is there any other software to install?

    [Please take TinkerS log]
    1.  su
    2.  ifconfig
    3.  ps
    4.  ping 8.8.8.8
    5.  logcat
    6.  ip a
    7.  route

    Please help to get the log
    Thanks


  10. Hi Suleyman Poyraz:

    Can you try the command?
    sudo apt-get update
    sudo apt-get install -f libcairo-gobject2=1.16.0-4+deb10u1
    sudo apt-get install -f libcairo2=1.16.0-4+deb10u1
    sudo apt-get install -f libglib2.0-0=2.58.3-2+deb10u3
    sudo apt-get install -y libgtk-3-dev

    Thank you

×
×
  • Create New...