Burning Tools for Linux PC

to totally erase emmc, bootloader/uboot command worked ok, and windows app also; linux cli app could have some not so well documented options to also erase emmc but i did not find them yet.

Trying to burn VIM3_Ubuntu-xfce-bionic_Linux-4.9_arm64_EMMC_V20190830 got me into error on writing rootfs :slightly_frowning_face: How to properly wipe EMMC and start over?

Solved - this Windows tool helped.

@ravelo If you want to earse eMMC,you should use windows tools,linux tools not supported.

ok @Frank, thank you

@numbqq
Hello,
I tried installing the burn tool on Ubuntu-18.04.3-LTS without success. It gives the following lines:
~/_AmIDIS/_AmBOX/arm/khadas-utilities/utils$ sudo ./INSTALL
Installing dependencies
Requires root privileges, please enter your passowrd!
After entering my password, all it does is to perform sudo apt-get update. and that’s all.
Please how did you successfully install it?

@uzosky Can you provide the full log info in there ? We need it to check what happend.You can try burn-tool -h to check it if it install success. About How to install , You can follow this page to install.

Here is the log:
06:41:05 sudo: pam_unix(sudo:session): session closed for user root
06:41:05 sudo: pam_unix(sudo:session): session closed for user root
06:41:05 sudo: pam_unix(sudo:session): session closed for user root
06:40:31 sudo: pam_unix(sudo:session): session opened for user root by (uid=0)
06:40:31 sudo: root : TTY=pts/1 ; PWD=/home/uzisky/_AmIDIS/_AmBOX/arm/khadas-utilities/utils ; USER=root ; COMMAND=/usr/bin/apt update
06:40:30 sudo: pam_unix(sudo:session): session opened for user root by (uid=0)
06:40:30 sudo: uzisky : TTY=pts/1 ; PWD=/home/uzisky/_AmIDIS/_AmBOX/arm/khadas-utilities/utils ; USER=root ; COMMAND=./INSTALL

I was actually following the instruction on how to install it on Ubuntu based on the link you provided.

@uzosky Did you try with burn-tool -h to check the install status with burn-tools ?

Yes, I got:
~$ burn-tool -h
burn-tool: command not found

@uzosky You host PC is Ubuntu18.04 ? or other?

Yes. It’s Ubuntu18.04.4 to be precise.

@uzosky cd /path/to/your/utils and try to git pull . check what happed with it.
Then,sudo ./UNINSTALL to unistall it and try sudo ./INSTALL to reinstall.

GIT PULL
~/_AmIDIS/_AmBOX/arm/khadas-utilities/utils$ git pull
Already up to date.

UNINSTALL
$ ./UNINSTALL
Removing Amlogic flash-tool…

===============================================

Host PC: Ubuntu 18.04

===============================================

Removing USB rules…
[sudo] password for uzisky:
Removing flash-tool…
Done!

Removing Rockchip flash-tool…

===============================================

Host PC: Ubuntu 18.04

===============================================

Removing USB rules…
Removing flash-tool…
Removing configuration…
Done!

Removing ToneBoard burn-tool…

===============================================

Host PC: Ubuntu 18.04

===============================================

Removing USB rules…
Removing toneboard-burn-tool…
Done!
Removing Khadas burn-tool…
Done!

INSTALL(performs -sudo apt update- and does nothing more)
:~/_AmIDIS/_AmBOX/arm/khadas-utilities/utils$ ./INSTALL
Installing dependencies
Requires root privileges, please enter your passowrd!
Hit:1 http://ppa.launchpad.net/cubic-wizard/release/ubuntu bionic InRelease
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:3 http://ppa.launchpad.net/maarten-fonville/android-studio/ubuntu bionic InRelease [15.4 kB]
Hit:4 http://ng.archive.ubuntu.com/ubuntu bionic InRelease
[…other regular updates]

TEST BURN-TOOL
_AmIDIS/_AmBOX/arm/khadas-utilities/utils$ burn-tool -h
burn-tool: command not found

Obviously, the utility tools did not install

@uzosky ./UNINSTALL work fine,but ./INSTALL just print such log info ? It should look like thsi.

Installing Amlogic flash-tool...
===============================================
Host PC: Ubuntu 16.04
===============================================
Installing USB rules...
[sudo] password for frank:
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!

I’m aware that it should look like that. Unfortunately, it doesn’t display that info because it’s not installing. Have you tested on Ubuntu 18.04 with success?

@uzosky Our docs was test with Ubuntu18.04 and myself host is Ubuntu18.04 too. THis is first time I met Ubuntu 18.04 that failed to install. Can you use root user to try again ? I think maybe the question which related to authority.

…with root access
root@amnix:/home/uzisky/_AmIDIS/_AmBOX/arm/khadas-utilities/utils# ./INSTALL
Installing dependencies
Requires root privileges, please enter your passowrd!
Hit:1 http://ppa.launchpad.net/cubic-wizard/release/ubuntu bionic InRelease
Hit:2 http://ng.archive.ubuntu.com/ubuntu bionic InRelease
Get:3 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
[…more -sudo apt update- info with installation ]

@uzosky Could you show all the files in directory a by using the tree command ?

└── utils
β”œβ”€β”€ aml-flash-tool
β”‚ β”œβ”€β”€ aml-burn-tool
β”‚ β”œβ”€β”€ docs
β”‚ β”‚ └── Amlogic_update_usb_tool_user_guide.pdf
β”‚ β”œβ”€β”€ flash-tool
β”‚ β”œβ”€β”€ INSTALL
β”‚ β”œβ”€β”€ rules
β”‚ β”‚ β”œβ”€β”€ 70-persistent-usb-ubuntu12.rules
β”‚ β”‚ └── 70-persistent-usb-ubuntu14.rules
β”‚ β”œβ”€β”€ tools
β”‚ β”‚ β”œβ”€β”€ datas
β”‚ β”‚ β”‚ β”œβ”€β”€ decompressPara_4M.dump
β”‚ β”‚ β”‚ β”œβ”€β”€ usbbl2runpara_ddrinit.bin
β”‚ β”‚ β”‚ └── usbbl2runpara_runfipimg.bin
β”‚ β”‚ β”œβ”€β”€ install
β”‚ β”‚ β”‚ β”œβ”€β”€ 70-persistent-usb-ubuntu12.rules
β”‚ β”‚ β”‚ β”œβ”€β”€ 70-persistent-usb-ubuntu14.rules
β”‚ β”‚ β”‚ └── README
β”‚ β”‚ β”œβ”€β”€ linux-arm
β”‚ β”‚ β”‚ β”œβ”€β”€ aml_image_v2_packer
β”‚ β”‚ β”‚ └── update
β”‚ β”‚ β”œβ”€β”€ linux-x86
β”‚ β”‚ β”‚ β”œβ”€β”€ aml_image_v2_packer
β”‚ β”‚ β”‚ └── update
β”‚ β”‚ └── windows
β”‚ β”‚ β”œβ”€β”€ Amldbglog.dll
β”‚ β”‚ β”œβ”€β”€ aml_image_v2_packer.exe
β”‚ β”‚ β”œβ”€β”€ AmlLibusb.dll
β”‚ β”‚ β”œβ”€β”€ AmlUsbScanX3.dll
β”‚ β”‚ β”œβ”€β”€ msvcp100.dll
β”‚ β”‚ β”œβ”€β”€ msvcp140.dll
β”‚ β”‚ β”œβ”€β”€ msvcr100.dll
β”‚ β”‚ β”œβ”€β”€ update.exe
β”‚ β”‚ β”œβ”€β”€ UsbRomDrv.dll
β”‚ β”‚ β”œβ”€β”€ vccorlib140.dll
β”‚ β”‚ └── vcruntime140.dll
β”‚ └── UNINSTALL
β”œβ”€β”€ aml_image_v2_packer
β”œβ”€β”€ burn-tool
β”œβ”€β”€ INSTALL
β”œβ”€β”€ khadas_utils.txt
β”œβ”€β”€ lib64
β”‚ └── libc++.so
β”œβ”€β”€ logo_img_packer
β”œβ”€β”€ mkbootimg
β”œβ”€β”€ mkimage
β”œβ”€β”€ mkimage-arm64
β”œβ”€β”€ mkimage-armhf
β”œβ”€β”€ README.md
β”œβ”€β”€ rk-flash-tool
β”‚ β”œβ”€β”€ bin
β”‚ β”‚ └── rk33
β”‚ β”‚ └── MiniLoaderAll.bin
β”‚ β”œβ”€β”€ flash-tool
β”‚ β”œβ”€β”€ INSTALL
β”‚ β”œβ”€β”€ parameter_gpt_linux.txt
β”‚ β”œβ”€β”€ partitions.sh
β”‚ β”œβ”€β”€ rk-burn-tool
β”‚ β”œβ”€β”€ rules
β”‚ β”‚ └── 80-rockchip-usb.rules
β”‚ β”œβ”€β”€ tools
β”‚ β”‚ β”œβ”€β”€ firmware_merger
β”‚ β”‚ β”‚ β”œβ”€β”€ firmware_merger
β”‚ β”‚ β”‚ β”œβ”€β”€ setting.ini
β”‚ β”‚ β”‚ └── user_manual.txt
β”‚ β”‚ β”œβ”€β”€ firmwareMerger
β”‚ β”‚ β”œβ”€β”€ kernelimage
β”‚ β”‚ β”œβ”€β”€ Linux_Upgrade_Tool
β”‚ β”‚ β”‚ β”œβ”€β”€ config.ini
β”‚ β”‚ β”‚ β”œβ”€β”€ Linux upgrade tool user guide_v1.32.pdf
β”‚ β”‚ β”‚ β”œβ”€β”€ Readme.txt
β”‚ β”‚ β”‚ └── upgrade_tool
β”‚ β”‚ β”œβ”€β”€ loaderimage
β”‚ β”‚ β”œβ”€β”€ mkkrnlimg
β”‚ β”‚ β”œβ”€β”€ parameter_gpt.txt
β”‚ β”‚ β”œβ”€β”€ resource_tool
β”‚ β”‚ β”œβ”€β”€ rkdeveloptool
β”‚ β”‚ └── trust_merger
β”‚ └── UNINSTALL
β”œβ”€β”€ toneboard-dfu-tool
β”‚ β”œβ”€β”€ INSTALL
β”‚ β”œβ”€β”€ rules
β”‚ β”‚ └── 80-toneboard-usb.rules
β”‚ β”œβ”€β”€ toneboard-burn-tool
β”‚ β”œβ”€β”€ tools
β”‚ β”‚ └── toneboard_dfu_tool
β”‚ └── UNINSTALL
└── UNINSTALL

21 directories, 69 files

Hello @uzosky

Can you show me the result of this command?

ls -al /usr/local/bin