Setup

From Tinker Board Wiki
Jump to: navigation, search

Basic Requirements

  • Power supply with micro USB connector (2.5A recommended)
  • Micro SD card (4GB+)
  • Monitor with HDMI cable
  • Keyboard and Mouse

Setting up your SD card

Download an operating system image:

Official ASUS TinkerOS - Download

(Android and other OS are also available - see Software)

Write this to an SD card with Etcher on Windows / Mac /Linux ( http://etcher.io/ ) or Win32DiskImager ( http://sourceforge.net)

Etcher.jpg

Insert microSD into the tinkerboard and it should boot to a desktop after 30 seconds or so.

TinkerOS 2-1024x576.png

Alternatively, dd command can be used in Linux.(adapted from arch linux wiki)

Run the following command, replacing /dev/sdx with your drive, e.g. /dev/sdc. (Do not append a partition number, so do not use something like /dev/sdc1. To find out the name of your SD card use lsblk command. Make sure that it is not mounted.)

dd bs=4M if=/path/to/tinkeros.img of=/dev/sdx status=progress && sync

Wait for the command sync to complete before unplugging the SD card to ensure the data was written completely.


Experienced users can SSH in immediately with user/pass linaro:linaro

Beware, it is not possible to connect to Tinker Board with command "ssh 192.168.x.x", without specifying the username along with the ip address although when run without the username you will be presented with the same login screen but it will not be possible to log in with given credentials. The following command should be used instead.

ssh username@ipaddress

For instance, if username stays unchanged and the ip address is 192.168.1.88, the command should look like "ssh linaro@192.168.1.88"

To figure out the ip address of wifi/LAN connection use command sudo ifconfig or just ip addr . Alternatively, router's ip address should be used in any browser to access the router settings(for instance 192.168.1.1) where it is also possible to check and set static ip address for the Tinker Board. To set static the ip address it is imporant to know the MAC address of wifi/LAN card which can be done with sudo ifconfig or ip addr commands.

Setting up your Tinker Board S eMMC

!! Please remember to use new Image, otherwise the old Image could not support eMMC storage.!! Thanks.

You can find Image here: TinkerOS

Boot Priority


Introduction

There are 2 check points during the whole boot process.

  • One is SoC search for U-Boot and the other is U-Boot search for Kernel.
  • Once Tinker boot to Kernel, the Kernel will load the rootfs which is at the same storage with Kernel if you did not specify the boot parameter root=/dev/xxx at the Kernel cmdline. In other words, you can assign the rootfs path by Kernel cmdline at extlinux.conf.

Check Point

  1. SoC will search eMMC U-Boot first then SD card, it means eMMC > SD card
  2. U-Boot will search eMMC Kernel first then SD card, it means eMMC > SD card

As the above 2 items, the boot priority is always eMMC first. So we reserve one way to disable eMMC and force Tinker Board S to boot from SD card. You just insert the jumper as the following way(MASKROM mode), then the H/W will disable the eMMC. S jumpr mode.png

Booting Flow

Booting flow XXXXXX.png


or use simple Simulation Tool to test and understand it: https://tinkerboarding.co.uk/others/SBF/

What is UMS mode


Introduction

The UMS means usb mass storage, it can simulate eMMC as a hard drive under windows or as a block device under linux. Then user can use the etcher or Win32 Disk Imager tool to flash the image into eMMC.

How to enable UMS

The UMS function is implemented under U-Boot. During the U-Boot, it will check Tinker Board S is connected to PC or not. If connected to PC, it will enter UMS mode automatically; if not, the Tinker Board S will follow the boot priority to continue the boot process.

How to Recovery and Flash


We already default write have UMS’s U-Boot in the each Tinker Board S’ eMMC. So you can plug the USB and connect to your PC. You may can see a disk node on your PC system.

UMS from eMMC

eMMC’s U-Boot still workable and had built-in the UMS function.

Can use the UMS mode to re-flash

  1. The eMMC need have a workable U-Boot.
  2. Plug the Tinker Board S with Micro-USB cable to PC.
  3. It would booting & create the partitions like a USB drive.
    (please remove other extend device on board)
  4. Just flash as the old way.

UMS from SD card

eMMC’s U-Boot is broken to booting or not built-in the UMS function (e.g. 3rd party custom image).

Can trigger the UMS mode from SD card

  1. Flash the Image (with UMS’s U-Boot) to SD card.
  2. Install the SD card to Tinker Board S.
  3. Plug the Jumper on the Maskrom mode.
    (force to boot from SD, jump out the eMMC)
  4. Then you can flash the eMMC as usual, the old way.
  5. Plug the Tinker Board S with Micro-USB cable to PC.
  6. It would booting & create the partitions like a USB drive.
    (please remove other extend device on board)

Without UMS mode

Recovery from SD’s image system & without the PC mode (ready on TinkerOS v2.0.4 or above)

  1. Plug the Jumper on the Maskrom mode.
    (force to boot from SD, jump out the eMMC)
  2. Flash the Image (any can bootable) to SD card.
  3. Plug the SD card to Tinker Board S.
  4. Booting the Tinker Board S.
  5. It would booting to the RootFS.
  6. Then dd or other ways to flash new image file to eMMC(mmcblk1).

Please check below to know how to plug the Maskrom jumper:
(This jumper function is only for Tinker Board S)

S jumpr mode.png