Burning image on Ubuntu
This tutorial is about how to burn image on Ubuntu.
Preperations
$ sudo apt-get install libusb-dev git
Get burning tool
Image burning tool on Ubuntu is in repository utils.
$ git clone https://github.com/khadas/utils
Or just pull it if you have cloned this repository.
$ cd /path/to/utils
$ git pull
Install burning tool
You need to install USB rules.
$ cd /path/to/utils
$ ./INSTALL
You will see this if successed.
Installing Amlogic flash-tool...
===============================================
Host PC: Ubuntu 16.04
===============================================
Installing USB rules...
[sudo] password for nick:
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!
Check the USB driver
You should bring your VIMs board enter upgrade mode.
Check the USB driver.
$ lsusb | grep Amlogic
Bus 002 Device 036: ID 1b8e:c003 Amlogic, Inc.
The message means that your board is recognized.
Check flash-tool
.
$ cd /path/to/utils
$ ./aml-flash-tool/tools/update identify
You will see the message.
AmlUsbIdentifyHost
This firmware version is 0-7-0-16
How to burn image on Ubuntu
$ burn-tool -i /path/to/image
You will see the logs if successed.
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]
And you can add parameter --debug
to print debug infomation.For more usage please refer to docs.
Uninstall burning tool
$ cd /path/to/utils
$ ./UNINSTALL
NOTICE
This burning tool has been verified on Ubuntu 14.04/16.04.As we don’t have environment of Ububtu 17.04/10 and other distributions, so I’m not sure whether it works well.