Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


Sidebar

products:sbc:vim4:install-os:install-os-into-emmc-via-usb-tool

This is an old revision of the document!


Install OS into eMMC

All VIM series boards have onboard eMMC storage, so you can install the OS into the eMMC using the USB upgrade tool.

Install on Windows

Preparation

Dowload the USB Upgrade Tool and extract it to somewhere.

Install USB Drivers

  1. Goto directory V3\Driver and double click dpscat.exe to install.Please note there is no GUI display.
  2. Goto directory V3\Driver and double click dpinst64.exe to install.

Flash Image

  1. Goto root directory double click Aml_Burn_Tool.exe to open the USB upgrade tool
  2. Click Setup–>Load Image, then choose an OS image for your board.
  3. Connect your board to your PC with a USB-C cable (the board will power on automatically).
  4. Put your board into Upgrade Mode.
  5. If you have performed steps 3 and 4 correctly, your PC will automatically discover your board as an attached USB-device.
  6. Now all you need to do is to click the Start button and wait for process to complete.

<note info>

  • To interrupt flashing, click the Stop button, then close the USB Upgrade Tool. Note that the eMMC may already have been completely erased if you went past the 15% mark.
  • An External Power Supply may be required in cases where your PC cannot provide enough electrical power for the burning process.
  • If your system is a 32-bit system, please select dpinst32.exe when installing the driver.

</note>

Install on Ubuntu

<note warn>

Tools were verified to function properly on Ubuntu only, we make no guarantees for other Linux distributions!

</note>

Preparation

$ sudo apt-get install libusb-dev git parted

Download Burning Tool

Image burning tool for Ubuntu is in this repository utils.

$ git clone https://github.com/khadas/utils

Or just pull it (if you have already cloned this repository).

$ cd /path/to/utils
$ git pull

Install Burning Tool

You need to install USB rules and create some links.

$ cd /path/to/utils
$ sudo ./INSTALL

You will see this print-out if it was successful.

Installing Amlogic flash-tool...
 
===============================================
 
Host PC: Ubuntu 16.04
 
===============================================
 
Installing USB rules...
[sudo] password for User:
Installing flash-tool...
Done!
 
Installing Rockchip flash-tool...
 
===============================================
 
Host PC: Ubuntu 16.04
 
===============================================
 
Installing USB rules...
Installing flash-tool...
Done!
Installing Khadas burn-tool...
Done!

Root privilege is required.

Check the USB Driver

You must now place your board into `Upgrade Mode`. See [how to enter upgrade mode](BootIntoUpgradeMode.html). Check to see if Ubuntu has detected your board as an attached USB-device.

$ lsusb | grep Amlogic
BUS 002 Device 036: ID 1b8e:c003 Amlogic, Inc.

The message above means that your board is connected and recogized by Ubuntu.

Install the OS on Ubuntu

$ aml-burn-tool -i /path/to/image

You will see these teminal logs if successful.

Rebooting the board ........[OK]
Unpacking image [OK]
Initializing ddr ........[OK]
Running u-boot ........[OK]
Create partitions [OK]
Writing device tree [OK]
Writing bootloader [OK]
Wiping  data partition [OK]
Wiping  cache partition [OK]
Writing boot partition [OK]
Writing data partition [OK]
Writing logo partition [OK]
Writing system partition [OK]
Do you want to reset the board? y/n [n]? y
Resetting board [OK]
$ aml-burn-tool -b VIM4 -i /path/to/image

For more information please refer to [docs](https://github.com/khadas/utils/tree/master/aml-flash-tool/docs).

Uninstall Burning Tool

$ cd /path/to/utils
$ sudo ./UNINSTALL

See Also

[boot-into-upgrade-mode| Boot into Upgrade Mode).

Last modified: 2022/07/01 05:45 by nick