Difference between revisions of "Software"

From Tinker Board Wiki
Jump to navigation Jump to search
(Android)
 
(17 intermediate revisions by 6 users not shown)
Line 4: Line 4:
 
=== [[TinkerOS]] ===
 
=== [[TinkerOS]] ===
  
Latest version v2.0.7 - Debian stretch based. 2018/06/22
+
Officail [[TinkerOS]] Download page: https://www.asus.com/uk/Single-Board-Computer/Tinker-Board/HelpDesk_Download/
  
[[TinkerOS]] Download page: https://www.asus.com/uk/Single-Board-Computer/Tinker-Board/HelpDesk_Download/  
+
Or Wiki maintained OS list: https://tinkerboarding.co.uk/wiki/index.php/TinkerOS.
  
Direct links:  
+
==== Debian ====
 +
 
 +
Latest version v2.0.8 - Debian stretch based. 2018/10/23
 +
 
 +
Direct downloads:
 +
 
 +
[https://dlcdnets.asus.com/pub/ASUS/mb/Linux/Tinker_Board_S/20181023-tinker-board-linaro-stretch-alip-v2.0.8.img.zip linaro-stretch-alip-v2.0.8.zip] [1073MB]
  
 
  [http://dlcdnet.asus.com/pub/ASUS/mb/Embedded_IPC/TinkerBoard_S/20180622-tinker-board-linaro-stretch-alip-v2.0.7.img.zip linaro-stretch-alip-v2.0.7.zip] [1037MB]
 
  [http://dlcdnet.asus.com/pub/ASUS/mb/Embedded_IPC/TinkerBoard_S/20180622-tinker-board-linaro-stretch-alip-v2.0.7.img.zip linaro-stretch-alip-v2.0.7.zip] [1037MB]
Line 24: Line 30:
 
  [http://dlcdnet.asus.com/pub/ASUS/mb/Linux/Tinker_Board_2GB/TinkerOS_Debian.zip debian v1.4] [695MB]
 
  [http://dlcdnet.asus.com/pub/ASUS/mb/Linux/Tinker_Board_2GB/TinkerOS_Debian.zip debian v1.4] [695MB]
  
=== Android ===
+
==== Android ====
 +
 
 +
Android 7.1.2 Marshmallow v14.1.2.50. 2018/08/17
 +
 
 +
Direct downloads:
 +
 
 +
  [https://dlcdnets.asus.com/pub/ASUS/mb/Linux/Tinker_Board_S/20180817-tinker-board-androidnougat-userdebug-v14.1.2.50.zip 20180817-tinker-board-android-v14.1.2.50.zip] [336MB]
  
Android 6.01 Marshmallow v13.14.0.95. 2018/07/12
+
Android 6.0.1 Marshmallow v13.14.0.95. 2018/07/12
  
 
Direct downloads:
 
Direct downloads:
Line 40: Line 52:
  
 
How to install Google Play Store: [[Installing Play Store]]
 
How to install Google Play Store: [[Installing Play Store]]
 +
 +
How to install Google Play Store apks from GAPPs on Tinker Android 7.1: [[Installing Play Store from GAPPs]]
  
 
=== Armbian ===
 
=== Armbian ===
  
Latest version: 5.35, updated: 2017/110/25, download page: https://www.armbian.com/tinkerboard
+
Latest version: 5.70, updated: 2019/01/12, download page: https://www.armbian.com/tinkerboard
  
Recommended images with kernel 4.13.x, direct download links:
+
Recommended images with kernel 4.19.x, direct download links:
  
 
'''Desktop'''
 
'''Desktop'''
         [590 MB] 4.13.16
+
         [590 MB] 4.19.y
         https://dl.armbian.com/tinkerboard/Ubuntu_xenial_next_desktop.7z
+
         https://dl.armbian.com/tinkerboard/Ubuntu_bionic_next_desktop.7z
         https://dl.armbian.com/tinkerboard/Ubuntu_xenial_next_desktop.7z.torrent
+
         https://dl.armbian.com/tinkerboard/Ubuntu_bionic_next_desktop.7z.torrent
         [570 MB] 4.4.102
+
         [570 MB] 4.4.y
         https://dl.armbian.com/tinkerboard/Ubuntu_xenial_default_desktop.7z
+
         https://dl.armbian.com/tinkerboard/Ubuntu_bionic_default_desktop.7z
         https://dl.armbian.com/tinkerboard/Ubuntu_xenial_default_desktop.7z.torrent
+
         https://dl.armbian.com/tinkerboard/Ubuntu_bionic_default_desktop.7z.torrent
 +
        https://dl.armbian.com/tinkerboard/Debian_stretch_default_desktop.7z
 +
        https://dl.armbian.com/tinkerboard/Debian_stretch_default_desktop.7z.torrent
  
 
'''Server'''
 
'''Server'''
         [210 MB] 4.13.16
+
         [210 MB] 4.19.y
 
         https://dl.armbian.com/tinkerboard/Ubuntu_xenial_next.7z
 
         https://dl.armbian.com/tinkerboard/Ubuntu_xenial_next.7z
 
         https://dl.armbian.com/tinkerboard/Ubuntu_xenial_next.7z.torrent
 
         https://dl.armbian.com/tinkerboard/Ubuntu_xenial_next.7z.torrent
         [240 MB] 4.13.16
+
         [240 MB] 4.19.y
 
         https://dl.armbian.com/tinkerboard/Debian_stretch_next.7z
 
         https://dl.armbian.com/tinkerboard/Debian_stretch_next.7z
 
         https://dl.armbian.com/tinkerboard/Debian_stretch_next.7z.torrent
 
         https://dl.armbian.com/tinkerboard/Debian_stretch_next.7z.torrent
 +
 +
Enable video acceleration: https://forum.armbian.com/topic/7262-rk3288-media-script-tinkerboard-miqi/
  
 
=== DietPi ===
 
=== DietPi ===
Line 80: Line 98:
 
Yocto customized source tree which enables VPU (hardware accelerated decoding and encoding), GPU, WiFi, video processing libraries (FFMPEG, OpenCV etc.,)
 
Yocto customized source tree which enables VPU (hardware accelerated decoding and encoding), GPU, WiFi, video processing libraries (FFMPEG, OpenCV etc.,)
  
Direct download: [https://drive.google.com/open?id=0B2aU6UdMlrQbOHBGWk5LdUY5OTAdownload Yocto][925 MB]
+
Direct download: [https://drive.google.com/open?id=0B2aU6UdMlrQbOHBGWk5LdUY5OTA Yocto][925 MB]
  
  
Line 141: Line 159:
  
 
=== Virtual Keyboard ===
 
=== Virtual Keyboard ===
If you do not have a USB keyboard it is possible to install virtual keyboard via ssh with command 'sudo apt-get matchbox-keyboard'.
+
If you do not have a USB keyboard it is possible to install virtual keyboard via ssh with command 'sudo apt-get install matchbox-keyboard'.
 
To run the virtual keyboard run the 'matchbox-keyboard' in the terminal.
 
To run the virtual keyboard run the 'matchbox-keyboard' in the terminal.
  
 
=== How to build Kernel/U-boot source code ===
 
=== How to build Kernel/U-boot source code ===
 
==== U-boot ====
 
==== U-boot ====
  Get source code:
+
Get source code:
 
   $ git clone https://github.com/TinkerBoard/debian_u-boot.git -b release
 
   $ git clone https://github.com/TinkerBoard/debian_u-boot.git -b release
  
  Building image:
+
Building image:
 
   $ cd debian_u-boot
 
   $ cd debian_u-boot
 
   $ make CROSS_COMPILE=arm-linux-gnueabihf- O=miniarm-rk3288 tinker-rk3288_defconfig all -j4  
 
   $ make CROSS_COMPILE=arm-linux-gnueabihf- O=miniarm-rk3288 tinker-rk3288_defconfig all -j4  
Line 155: Line 173:
 
   $ cat miniarm-rk3288/u-boot.bin >> u-boot.img
 
   $ cat miniarm-rk3288/u-boot.bin >> u-boot.img
  
  Flash image:
+
Flash image:
 
   Prepare one sdcard which has the full Debian image inside.
 
   Prepare one sdcard which has the full Debian image inside.
 
   then insert the sdcard into a linux based OS, and suppose the block device of the sdcard is /dev/sdx
 
   then insert the sdcard into a linux based OS, and suppose the block device of the sdcard is /dev/sdx
Line 161: Line 179:
  
 
==== Kernel ====
 
==== Kernel ====
  Install the related packages:
+
Install the related packages:
   $ sudo apt-get install git-core gitk git-gui gcc-arm-linux-gnueabihf gcc-arm-linux-gnueabi device-tree-compiler gcc-aarch64-linux-gnu mtools parted libssl-dev
+
   $ sudo apt-get install git-core gitk git-gui gcc-arm-linux-gnueabihf gcc-arm-linux-gnueabi device-tree-compiler gcc-aarch64-linux-gnu mtools parted libssl-dev fakeroot
  
  Get source code:
+
Get source code:
 
   $ git clone https://github.com/TinkerBoard/debian_kernel.git -b release
 
   $ git clone https://github.com/TinkerBoard/debian_kernel.git -b release
  
  Building image:
+
Building image:
 +
 
 
   $ cd debian_kernel
 
   $ cd debian_kernel
   $ make ARCH=arm miniarm-rk3288_defconfig -j16
+
   $ make miniarm-rk3288_defconfig ARCH=arm -j16
 
   $ make zImage ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16
 
   $ make zImage ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16
 
   $ make modules ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16
 
   $ make modules ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16
 +
 
   '''(Note: As of 2018-01-05, if may be necessary to edit the Makefile to add -Wno-misleading-indentation to the CFLAGS_MODULE if you are using GCC 6 and up.)'''
 
   '''(Note: As of 2018-01-05, if may be necessary to edit the Makefile to add -Wno-misleading-indentation to the CFLAGS_MODULE if you are using GCC 6 and up.)'''
   $ make ARCH=arm rk3288-miniarm.dtb CROSS_COMPILE=arm-linux-gnueabihf- -j16
+
   $ make modules ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16 CFLAGS_MODULE=-Wno-misleading-indentation
 +
 
 +
  $ make rk3288-miniarm.dtb ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16
 
   $ make dtbs ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16
 
   $ make dtbs ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16
  
  Flash image:
+
Flash image:
  Prepare one sdcard which has the full Debian image inside.
+
 
 +
Prepare one sdcard which has the full Debian image inside.
 +
 
 
   1. Install WIFI module to root file system:
 
   1. Install WIFI module to root file system:
 
   1.1 Insert sd card to linux pc and then mount partition 2 (rootfs partition)  
 
   1.1 Insert sd card to linux pc and then mount partition 2 (rootfs partition)  
Line 206: Line 230:
 
=== HDMI resolution ===
 
=== HDMI resolution ===
 
https://tinkerboarding.co.uk/wiki/index.php?title=HDMI-resolution
 
https://tinkerboarding.co.uk/wiki/index.php?title=HDMI-resolution
 +
 +
=== How to setup wireless connection ===
 +
[[How to setup wireless connection]]
  
 
== How-tos in Android ==
 
== How-tos in Android ==
Line 214: Line 241:
 
An example of a full script can be found on https://tinkerboarding.co.uk/forum/thread-264.html?highlight=android
 
An example of a full script can be found on https://tinkerboarding.co.uk/forum/thread-264.html?highlight=android
  
=== How to build Kernel source code ===
+
=== How to build Tinker source code ===
 
==== Android 6.0.1 kernel ====
 
==== Android 6.0.1 kernel ====
 
   Get source code:
 
   Get source code:
Line 246: Line 273:
 
   Get source code:
 
   Get source code:
 
   $ repo init -u https://git@bitbucket.org/TinkerBoard_Android/manifest.git -b sbc/tinkerboard/asus/Android-6.0.1
 
   $ repo init -u https://git@bitbucket.org/TinkerBoard_Android/manifest.git -b sbc/tinkerboard/asus/Android-6.0.1
   $ repo sync -c -d
+
   $ repo sync -d
  
 
   Find the build SOP document at the below path.
 
   Find the build SOP document at the below path.
 
   [source code]/RKDocs/android_SOP_eng_6.0.1.docx
 
   [source code]/RKDocs/android_SOP_eng_6.0.1.docx
 +
 +
==== Android 7.1.2 AOSP ====
 +
  Get source code:
 +
  $ repo init -u https://git@bitbucket.org/TinkerBoard_Android/manifest.git -b sbc/tinkerboard/asus/Android-7.1.2
 +
  $ repo sync -d
 +
 +
  Find the build SOP document at the below path.
 +
  [source code]/RKDocs/android_SOP_eng_7.1.2.docx
  
 
=== How to change the boot logo ===
 
=== How to change the boot logo ===

Latest revision as of 07:20, 12 February 2019

Operating Systems

TinkerOS

Officail TinkerOS Download page: https://www.asus.com/uk/Single-Board-Computer/Tinker-Board/HelpDesk_Download/

Or Wiki maintained OS list: https://tinkerboarding.co.uk/wiki/index.php/TinkerOS.

Debian

Latest version v2.0.8 - Debian stretch based. 2018/10/23

Direct downloads:

linaro-stretch-alip-v2.0.8.zip [1073MB]
linaro-stretch-alip-v2.0.7.zip [1037MB]
linaro-stretch-alip-v2.0.5.zip [992MB]
linaro-stretch-alip-v2.0.4.zip [852MB]
linaro-stretch-alip-v2.0.1.zip [790MB]
linaro-stretch-alip-v1.8.zip [762MB] 
linaro-jessie-alip-v16.zip [928MB]
debian v1.4 [695MB]

Android

Android 7.1.2 Marshmallow v14.1.2.50. 2018/08/17

Direct downloads:

 20180817-tinker-board-android-v14.1.2.50.zip [336MB]

Android 6.0.1 Marshmallow v13.14.0.95. 2018/07/12

Direct downloads:

 20180712-tinker-board-android-v13.14.0.95 [293MB]
 20180206-tinker-board-android-v13.13.0.74 [284MB]
 20171115-tinker-board-android-v13.12.0.43 [275MB]
 20170511-tinker-board-android-v13.11.0.4 [239MB]  


How to install Google Play Store: Installing Play Store

How to install Google Play Store apks from GAPPs on Tinker Android 7.1: Installing Play Store from GAPPs

Armbian

Latest version: 5.70, updated: 2019/01/12, download page: https://www.armbian.com/tinkerboard

Recommended images with kernel 4.19.x, direct download links:

Desktop

       [590 MB] 4.19.y
       https://dl.armbian.com/tinkerboard/Ubuntu_bionic_next_desktop.7z
       https://dl.armbian.com/tinkerboard/Ubuntu_bionic_next_desktop.7z.torrent
       [570 MB] 4.4.y
       https://dl.armbian.com/tinkerboard/Ubuntu_bionic_default_desktop.7z
       https://dl.armbian.com/tinkerboard/Ubuntu_bionic_default_desktop.7z.torrent
       https://dl.armbian.com/tinkerboard/Debian_stretch_default_desktop.7z
       https://dl.armbian.com/tinkerboard/Debian_stretch_default_desktop.7z.torrent

Server

       [210 MB] 4.19.y
       https://dl.armbian.com/tinkerboard/Ubuntu_xenial_next.7z
       https://dl.armbian.com/tinkerboard/Ubuntu_xenial_next.7z.torrent
       [240 MB] 4.19.y
       https://dl.armbian.com/tinkerboard/Debian_stretch_next.7z
       https://dl.armbian.com/tinkerboard/Debian_stretch_next.7z.torrent

Enable video acceleration: https://forum.armbian.com/topic/7262-rk3288-media-script-tinkerboard-miqi/

DietPi

DietPi configurable distro NB: GPU features are disabled for this board (eg: Kodi, Desktop). Ideal for server usage

Download page: http://dietpi.com/#download [116 MB]

Volumio

Volumio - the Audiophile Music Player Operating system.

Download page: Under Tinkerboard

Direct download: volumio-2.411 [~273 MB]

Yocto

Yocto customized source tree which enables VPU (hardware accelerated decoding and encoding), GPU, WiFi, video processing libraries (FFMPEG, OpenCV etc.,)

Direct download: Yocto[925 MB]


FlintOS (chromeOS)

FlintOS boots straight into chromium, and works just like ChromeOS

Download: http://flintos.io/download

Lubuntu

ELAR systems have a Lubuntu SD image for ASUS Tinker Board here -> Download: Lubuntu

In the latest image (version 3.0), SD card will be resized upon the first boot to extend to the max size of the SD. The root account password is forced to be changed in first login as well. This has improved the security issue preventing others to login to your system as the SSH is enabled by default in this image. WiFi and Bluetooth both works fine and system performance has been improved as well.

Sound/Audio works great without any issue. Enjoy listening to a Bonus Sound Track "A Way To The Heaven" composed and arranged by Saeid Ghazagh, available in "Music" folder.

Ubuntu -LXQt

ELAR systems also have an Ubuntu-LXQt Desktop SD image for ASUS Tinker Board here -> Download: Ubuntu-LXQt Desktop

All features available in Lubuntu Image, also available on this Image as well.

How-tos in TinkerOS

Remote access

TightVNC

Follow the instructions on http://www.yuriybaldyasov.com/2017/05/15/asus-tinker-board-tightvnc-server-installation-steps/

X11vnc

sudo apt-get install x11vnc

The following file shoud be opened ~/.config/lxsession/LXDE/autostart and this line should be added to the bottom:

@x11vnc -noxrecord -forever

-noxrecord fixes a problem it has with stack smashing on this board

-forever option keeps the server alive after a connect and disconnect from a client

It must be restarted to run without a terminal.

Vino

Similar process is found on https://wiki.archlinux.org/index.php/Vino

VPN Server

A guide for RPi can be used also for Tinker Board and can be found on: https://pimylifeup.com/raspberry-pi-vpn-server/

Netflix, Hulu, Amazon Prime

A guide is published on tinkerboarding forum.

Netflix is also available on android via Google Play.

Virtual Keyboard

If you do not have a USB keyboard it is possible to install virtual keyboard via ssh with command 'sudo apt-get install matchbox-keyboard'. To run the virtual keyboard run the 'matchbox-keyboard' in the terminal.

How to build Kernel/U-boot source code

U-boot

Get source code:

 $ git clone https://github.com/TinkerBoard/debian_u-boot.git -b release

Building image:

 $ cd debian_u-boot
 $ make CROSS_COMPILE=arm-linux-gnueabihf- O=miniarm-rk3288 tinker-rk3288_defconfig all -j4 
 $ ./miniarm-rk3288/tools/mkimage -n rk3288 -T rksd -d miniarm-rk3288/spl/u-boot-spl-dtb.bin u-boot.img
 $ cat miniarm-rk3288/u-boot.bin >> u-boot.img

Flash image:

 Prepare one sdcard which has the full Debian image inside.
 then insert the sdcard into a linux based OS, and suppose the block device of the sdcard is /dev/sdx
 $ sudo dd if=[path]/u-boot.img of=/dev/sdx seek=64

Kernel

Install the related packages:

 $ sudo apt-get install git-core gitk git-gui gcc-arm-linux-gnueabihf gcc-arm-linux-gnueabi device-tree-compiler gcc-aarch64-linux-gnu mtools parted libssl-dev fakeroot

Get source code:

 $ git clone https://github.com/TinkerBoard/debian_kernel.git -b release

Building image:

 $ cd debian_kernel
 $ make miniarm-rk3288_defconfig ARCH=arm -j16
 $ make zImage ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16
 $ make modules ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16
 (Note: As of 2018-01-05, if may be necessary to edit the Makefile to add -Wno-misleading-indentation to the CFLAGS_MODULE if you are using GCC 6 and up.)
 $ make modules ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16 CFLAGS_MODULE=-Wno-misleading-indentation
 $ make rk3288-miniarm.dtb ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16
 $ make dtbs ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16

Flash image:

Prepare one sdcard which has the full Debian image inside.

 1. Install WIFI module to root file system:
 1.1 Insert sd card to linux pc and then mount partition 2 (rootfs partition) 
     suppose the block device of the sdcard is /dev/sdx
     Example:
     $ sudo mkdir –p /media/users/sdx2
     $ sudo mount /dev/sdx2 /media/users/sdx2
 1.2 Open terminal to kernel folder and enter the following commands
     $ sudo make ARCH=arm INSTALL_MOD_PATH=/media/users/sdx2 modules_install
     $ sudo umount /media/users/sdx2
 2. Replace the kernel image:
 2.1 Insert sd card to linux pc and then mount partition 1 (boot partition)
     suppose the block device of the sdcard is /dev/sdx
     Example:
     $ sudo mkdir –p /media/users/sdx1
     $ sudo mount /dev/sdx1 /media/users/sdx1
 2.2 Open terminal to kernel folder and copy zImage and rk3288-miniarm.dtb to partition 1
     $ cp arch/arm/boot/zImage /media/users/sdx1
     $ cp arch/arm/boot/dts/rk3288-miniarm.dtb /media/users/sdx1
     $ sudo umount /media/users/sdx1
 NOTE: The step 1.1 and 2.1 should be skipped since most of the linux distribution will mount the sdcard automatically.

PXE boot

https://tinkerboarding.co.uk/wiki/index.php?title=PXE-boot

HDMI resolution

https://tinkerboarding.co.uk/wiki/index.php?title=HDMI-resolution

How to setup wireless connection

How to setup wireless connection

How-tos in Android

How to root

In order to root Android you need to follow steps described at How to install SuperSu on Android via adb

An example of a full script can be found on https://tinkerboarding.co.uk/forum/thread-264.html?highlight=android

How to build Tinker source code

Android 6.0.1 kernel

 Get source code:
 $ git clone https://github.com/TinkerBoard/android-6.0.1_kernel.git -b release
 Building image:
 $ cd android_kernel
 $ make rockchip_defconfig -j4
 $ make rk3288-miniarm.img -j4
 Flash image:
 Prepare one sdcard which has the full Android image inside.
 then insert the sdcard into a linux based OS, and suppose the block device of the sdcard is /dev/sdx
 $ sudo dd if=./resource.img of=/dev/sdx seek=32768
 $ sudo dd if=./kernel.img of=/dev/sdx seek=65536

How to build Android(AOSP) source code

Requirement

Install Google's repo command tool ref: https://source.android.com/setup/downloading

 Make sure you have a bin/ directory in your home directory and that it is included in your path:
 mkdir ~/bin
 PATH=~/bin:$PATH
 Download the Repo tool and ensure that it is executable:
 curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
 chmod a+x ~/bin/repo

Android 6.0.1 AOSP

 Get source code:
 $ repo init -u https://git@bitbucket.org/TinkerBoard_Android/manifest.git -b sbc/tinkerboard/asus/Android-6.0.1
 $ repo sync -d
 Find the build SOP document at the below path.
 [source code]/RKDocs/android_SOP_eng_6.0.1.docx

Android 7.1.2 AOSP

 Get source code:
 $ repo init -u https://git@bitbucket.org/TinkerBoard_Android/manifest.git -b sbc/tinkerboard/asus/Android-7.1.2
 $ repo sync -d
 Find the build SOP document at the below path.
 [source code]/RKDocs/android_SOP_eng_7.1.2.docx

https://tinkerboarding.co.uk/wiki/index.php?title=Boot-logo

How to rotate the screen

https://tinkerboarding.co.uk/wiki/index.php?title=Rotate-screen