Jump to content

tooz

Tinker Engineer
  • Content Count

    638
  • Joined

  • Last visited

  • Days Won

    44

Posts posted by tooz


  1. hello @RestingSheep

    17 hours ago, RestingSheep said:

    1. Cannot install Samba - tried to use different repositories, still no luck.

     

    haven't looked into the second question but for samba, try using aptitude for installation instead of apt. 

    sudo apt install aptitude
    sudo aptitude install samba

    it will ask you if you want to keep the current versions of the packages, select n for no and continue samba installation tdS4cNQ.jpeg

    xrdp can be installed using aptitude too

    sudo aptitude install xrdp

     


  2. hello @Shin

    sorry for the inconvenience. this was caused by a bug that we're aiming to fix in the next releases (for both kernel 4.19/ 5.10), before that, please follow the steps below to fix it manually.

    1. update the system time (the compiler library would check it so the time has to be correct)

    2. use commands to rebuild and reinstall wiringpi libraries for tinker board 2s: 

    cd /usr/local/share/gpio_lib_c_rk3399
    sudo ./build clean
    sudo ./build uninstall
    sudo ./build

     


  3. hello @Shin

    what's the software you're using? from the other post i saw the environment is kernel 4.4, which is quite old. i'd encourage you to use a more recent image: Tinker Board (asus.com) (the latest is debian 11 v.3.0.18 kernel 5.10)

    1. to read i2c/ spi you can use 3rd party libraries such as python-periphery: https://pypi.org/project/python-periphery/

    2. to access gpio through sysfs interface, first you'll need to check the tinker board 2s pinout (see E22240_Tinker_System_2_EM_V2_WEB.pdf (asus.com) page 15 pin definitions)

    GPIO.jpg

     

    for example 

    chip 0, line 8 GPIO: /sys/class/gpio/gpio8 TEST_CLKOUT2GPIO0_B07

    GPIO output control example
    *Console commands:
    
    //Export the GPIO pin:
    echo 8 > /sys/class/gpio/export
    
    //Set the GPIO pin to output mode:
    echo out > /sys/class/gpio/gpio8/direction
    
    //Set value to GPIO pin: 
    echo 1 >  /sys/class/gpio/gpio8/value
    
    //Read the GPIO value:
    cat /sys/class/gpio/gpio8/value

    more reference on sysfs: https://www.kernel.org/doc/Documentation/gpio/sysfs.txt

    both i2c & spi are in accordance with standard interfaces, if the hardware isn't working as expected, there might be an issue that needs the correct driver to enable the system

    more examples on how to use gpio can be found on the github wiki: https://github.com/TinkerBoard/TinkerBoard/wiki/User-Guide#gpio-config-table-for-tinker-board-2s

     

     


  4. hello @Shin

    the differences of the libraries might be the cause of delay. please use the following commands and see if it improves: 

    * Console commands: 

    
    //Export the GPIO pin:
    echo 8 > /sys/class/gpio/export
    
    //Set the GPIO pin to output mode:
    echo out > /sys/class/gpio/gpio8/direction
    
    //Set value to GPIO pin: 
    echo 1 >  /sys/class/gpio/gpio8/value
    
    //Read the GPIO value:
    cat /sys/class/gpio/gpio8/value


     


  5. hello @t.kani

    For Tinker Board 2

    • For Tinker Board 2 / Tinker Board 2S

    • Method 1:

    1. Convert the logo file to 24 bit BMP file. It is recommended to use Window Paint for conversion.

      Note: After converting to 24 bit BMP file, the BMP file MUST be less than 700K bytes.

    2. Rename the BMP file to logo.bmp

    3. Copy logo.bmp and rename it to logo_kernel.bmp

    4. Replace logo.bmp and logo_kernel.bmp with logo.bmp and logo_kernel.bmp under sourcecode/kernel.

    5. Build kernel image and flash kernel image.

    • Method 2:
    1. Convert the logo file to 24 bit BMP file. It is recommended to use Window Paint for conversion

      Note: After converting to 24 bit BMP file, the BMP file MUST less than 700K bytes.

    2. Rename the BMP file to logo.bmp

    3. Copy logo.bmp to sourcecode/kernel/scripts/

    4. Execute the following command on the ubuntu server:

      ./bmpconvert logo.bmp

    5. You will see the following message after the command is successful

      image

    6. Powering on device, and open terminal.

      Enter “reboot-bootloader” in terminal to enter fastboot mode

    7. Execute command to flash logo.bmp into splash partition

      fastboot flash splash logo.bmp

     

    • Like 1

  6. hello @wahaha

    you still need to download all the sources and build a complete os image in order to make the sd card work; unfortunately only building u-boot image is not enough. the easiest way is to compile the complete .img and then change the rootfs

    to compile u-boot:

    git clone https://github.com/TinkerBoard-Linux/rockchip-linux-rkbin.git
    mv rockchip-linux-rkbin rkbin
    git clone https://github.com/TinkerBoard-Linux/rockchip-linux-prebuilts-gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu.git
    git clone https://github.com/TinkerBoard-Linux/rockchip-linux-u-boot.git
    cd rockchip-linux-u-boot
    ./make.sh tinker_board_2 CROSS_COMPILE=/path/to/rockchip-linux-prebuilts-gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-

    *please change the path of CROSS_COMPILE=/ to where rockchip-linux-prebuilts-gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu- is located
     


  7. hello @skyrock123

    1. the default rtc is rk808-rtc on i2c bus, you'll need to connect to the the internet at least once to sync time, with command 

    sudo hwclock -w

    so that the system time (rk808-rtc) is updated

    2. if you use the command:

    sudo i2cdetect

    it'll list the usage that you might want to have a check, otherwise you can have a look at this page: https://manpages.debian.org/unstable/i2c-tools/i2cdetect.8.en.html 

    3. 

    21 hours ago, skyrock123 said:

    im getting 

    linaro@linaro-alip:/$ sudo hwclock -r -f /dev/rtc0

    if there's no external rtc module, then the data from rk808-rtc would be fetched with this command. if you're not able to connect to the internet to sync time, you can change the time and date manually with command: 

    hwclock --set --date "2024-05-29 11:30:00"

    for your reference: https://www.thegeekstuff.com/2013/08/hwclock-examples/


  8. hello @JOHN DOE

    it's likely the power supply is not sufficient, please check if the cable you use and the power output of the laptop usb port meet the requirement: 

    Requirement:

    .1 x Micro-USB cable with data transfer functionality
    .1 x Tinker Board power supply* or other qualified 5V/2-3A power supply**
    .1 x Monitor
    .1 x HDMI cable
    .1 x Keyboard and mouse set

    * Tinker Board power supply sold separately
    ** Cable must deliver up to 3A of power output

    source: https://www.asus.com/networking-iot-servers/aiot-industrial-solutions/tinker-series/tinker-board-s/

×
×
  • Create New...