Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


Sidebar

products:sbc:common:install-os:install-os-into-emmc-on-ubuntu

This is an old revision of the document!


Install OS into eMMC on Ubuntu

Tools were only verified to function properly on Ubuntu. No guarantees were made for other Linux distributions!

Preparation

Install the dependencies.

$ sudo apt-get install libusb-dev git parted

Download the Tool

Flash tools for Ubuntu/Linux.

$ 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 the Flash 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 put your board into Upgrade Mode.

Check to see if Ubuntu has detected your board as an attached USB device.

VIM Series

$ lsusb | grep Amlogic
Bus 003 Device 073: ID 1b8e:c004 Amlogic, Inc. DNL

Edge Series

$ lsusb | grep Rockchip
Bus 003 Device 117: ID 2207:350b Fuzhou Rockchip Electronics Company 

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

Install the OS on Ubuntu

VIM1

$ burn-tool -v aml -b VIM1 -i /path/to/image

VIM2

$ burn-tool -v aml -b VIM2 -i /path/to/image

VIM3/3L

$ burn-tool -v aml -b VIM3 -i /path/to/image

VIM4

$ burn-tool -v aml -b VIM4 -i /path/to/image

VIM1S

$ burn-tool -v aml -b VIM1S -i /path/to/image

Edge1/Edge2

$ burn-tool -v rk -i /path/to/image

You will see these teminal logs if successful.

Burning image 'vim4-ubuntu-22.04-server-linux-5.4-fenix-1.0.11-220620-emmc-develop.img' for 'VIM4' to eMMC...
next try index 3, current opt arg vim4-ubuntu-22.04-server-linux-5.4-fenix-1.0.11-220620-emmc-develop.img
MSG[TLS]pkg path vim4-ubuntu-22.04-server-linux-5.4-fenix-1.0.11-220620-emmc-develop.img
MSG[TLS]exe run path:/storage/code/git/utils/aml-flash-tool/tools/adnl
MSG[FLW]Aml_flow_init version V1.1-trunk Nov  1 2019!
MSG[FLW]Tooltype 3
DBG[FLW]ok in load lib AmlImagePack.so
MSG[FLW]OK leave Aml_flow_init
 
...
 
MSG[TLS][105660110991160c00000000]LMsg[usbFlw]cmd[oem mwrite 0x1cefb normal store _aml_dtb]
MSG[TLS][105660110991160c00000000]LMsg[usbFlw][MWrite] finsihed
MSG[TLS]UI:Verifying__aml_dtb
MSG[TLS][105660110991160c00000000]LMsg[usbFlw]cmd[oem verify sha1sum 799ab7772f6dc4d78d9612916910b589e63df481]
MSG[TLS]UI:Downloading_bootloader] %98..
MSG[TLS][105660110991160c00000000]LMsg[usbFlw]cmd[oem mwrite 0x319000 normal store bootloader]
MSG[TLS][105660110991160c00000000]LMsg[usbFlw][MWrite] finsihed
MSG[TLS]UI:Verifying_bootloader
MSG[TLS][105660110991160c00000000]LMsg[usbFlw]cmd[oem verify sha1sum f5ab1b260d5153161fed73a7baca58330c105863]
MSG[TLS][105660110991160c00000000]LMsg[usbFlw]cmd[oem save_setting]
MSG[TLS][105660110991160c00000000]burn successful^_^
Time elapsed: 3 minute(s).
Done!

For more information please refer to aml-flash-tool docs.

Uninstall the Flash Tool

$ cd /path/to/utils
$ sudo ./UNINSTALL
Last modified: 2022/09/27 23:25 by nick