- Amlogic Burning Tool Linux
- Amlogic Burning Tool License
- Amlogic Burning Tool + Not Seeing X96 Box
- Amlogic Burning Tool Driver
- Amlogic Burning Tool
You are about to download the AmlogicUSBBurningToolv3.1.0.zip file on your computer. The file comes as a zip package and the file size is approximately 25 MB only. It was uploaded on, from Myanmar. It was uploaded by the registered moderator Zaw Myo Naing, for androidmtk.com. Amlogic USB Burning Tool V2.2.0. September 2020 Amlogic USB Burning Tool V2.1.9. Open the firmware license 'H96 MAX X2 License.zip' and copy the contents to the 'license' folder where the Amlogic USB Burning Tool was installed to. This is usually 'C: Program Files (x86) Amlogic USBBurningTool license'. Once extracted there should be twelve files inside the 'license' folder. Back on the Amlogic Burning Tool software.
Amlogic Burning Tool Linux
// gcc aml-upgrade-package-extract.c -o aml-upgrade-package-extract |
// ./aml-upgrade-package-extract update-usb-burning-mode.img |
// /dev/sdX - fat32 sdcard |
// Make bootable Android update: |
// dd if=aml_sdc_burn.UBOOT bs=1 count=442 of=/dev/sdX |
// dd if=aml_sdc_burn.UBOOT seek=1 skip=1 bs=512 of=/dev/sdX |
// sync |
// dd if=aml_sdc_burn.UBOOT conv=fsync bs=1 count=442 of=/dev/sdX |
// dd if=aml_sdc_burn.UBOOT conv=fsync seek=1 skip=1 bs=512 of=/dev/sdX |
// cp -v aml_sdc_burn.{ini,UBOOT} [device-mount-point] |
// cp -v update-usb-burning-mode.img [device-mount-point]/aml_upgrade_package.img |
#include<errno.h> |
#include<inttypes.h> |
#include<stdio.h> |
#include<stdlib.h> |
#include<string.h> |
#include<arpa/inet.h> |
uint32_tconvert(uint8_t *test, uint64_t loc) { |
returnntohl((test[loc] << 24) | (test[loc+1] << 16) | (test[loc+2] << 8) | test[loc+3]); |
} |
voidmain (int argc, char **argv) { |
FILE *fileptr; |
uint8_t *buffer; |
long filelen; |
FILE *f; |
char *filename; |
uint64_t record; |
uint64_t record_loc; |
uint64_t file_loc; |
uint64_t file_size; |
if (argc <= 1) { |
printf('Usage: %s [firmware-file-name]n', argv[0]); |
exit (0); |
} |
fileptr = fopen(argv[1], 'rb'); |
fseek(fileptr, 0, SEEK_END); |
filelen = ftell(fileptr); |
rewind(fileptr); |
buffer = (uint8_t *)malloc((filelen+1)*sizeof(uint8_t)); |
fread(buffer, filelen, 1, fileptr); |
fclose(fileptr); |
for (record = 0; record < (uint8_t)buffer[0x18]; record = record + 1){ |
record_loc = 0x40 + (record * 0x240); |
filename = (malloc(32)); |
sprintf(filename,'%s.%s',(char *)&buffer[record_loc+0x120], (char *)&buffer[record_loc+0x20]); |
file_loc = convert(buffer,record_loc+0x10); |
file_size = convert(buffer,record_loc+0x18); |
f = fopen(filename, 'wb'); |
if (f NULL) { |
printf('ERROR: could not open outputn'); |
printf('the error was: %sn',strerror(errno)); |
free(filename); |
continue; |
} |
fwrite(&(buffer[file_loc]), sizeof(uint8_t), (size_t)file_size, f); |
fclose(f); |
free(filename); |
} |
free(buffer); |
} |
The operation of VIM1, VIM2 and VIM3 is almost the same, so this document will take VIM1 as an example.
Perparation
- Dowload the USB Upgrade Tool and extract it.
- Run
setup_v2.x.x.exe
to install the tool for upgrading your VIMs:
Upgrade steps
Make soure that you have install the correct USB upgrade Tool, then follow the steps below to upgrade:
Open
USB_Burning_tool_v2.x.x.exe
, click “File–>Import Image” to choose an image for your VIMs.Connect your VIMs to your PC with a USB-C data cable (VIMs will power on automatically).
Place your VIMs into “Upgrade Mode”:
- Long press the
Power
key without releasing it. - Short press the
Reset
key and release it. - Count to 10 seconds and then release the
Power
key.
- Long press the
If you have performed steps 2 and 3 correctly, your PC will automatically discover your VIMs asa connected USB-device.
Now all you need to do is to click the
Start
button of the tool and wait for upgrading to complete:
- To cancel an upgrade, click the
Stop
button, then close the USB Upgrade Tool. Note that the eMMC might already have been completely erased if you went past the 15% mark. - Extra power supply(VIM1/VIM2/VIM3) may be required in cases whereby your PC cannot provide enough electrical-current for the upgrade.
Preparation
Download Burning Tool
Image burning tool for Ubuntu is in this repository utils.
Or just pull it (if you have already cloned this repository).
Install Burning Tool
You need to install USB rules and create some links.
You will see this print-out if it was successful.
NoteRoot privilege required.
Check The USB Driver
You must now place your VIM board into “Upgrade Mode”.See VIM1/VIM2/VIM3 to enter Upgrade Mode.
Check to see if Ubuntu has detected your VIM1/VIM2 as a connected USB-device.
The message above means that your VIM is connected and recogized by Ubuntu.
Amlogic Burning Tool License
How to burn an Image on Ubuntu
Amlogic Burning Tool + Not Seeing X96 Box
There are two commands that be used to burn image: burn-tool
and aml-burn-tool
.
For example: Burn image for VIM3
Amlogic Burning Tool Driver
- General command
burn-tool
:
- Amlogic command
aml-burn-tool
:
Amlogic Burning Tool
NoteFor VIM3/VIM3L, you must specify the board with -b VIM3
or it will fail. For VIM1 or VIM2 you can ignore this.
You will see these teminal logs if successful.
For more information please refer to docs.