Repackaging the Armbian image


You can find the current firmware image for your device here: JetHome firmware portal.


This method requires firmware with the type burn.

Subsequently, it can be flashed only through Amlogic Burning Tool or Khadas Utils.


The Armbian image can be repackaged only on a computer with Linux OS and x86_64 architecture.


Install the necessary packages

sudo apt install wget

Load the utility file aml_image_v2_packer into the current directory (file for x86_64 architecture):

wget -nc

Make the file executable:

chmod +x ./aml_image_v2_packer


Create a directory to decompress the out image and a directory to mount the rootfs mount partition:

mkdir -pv out mount

Extract the image to the directory out:

./aml_image_v2_packer -d Armbian_20.08_Arm-64_focal_current_5.7.16_j80.img out

Mount the rootfs partition to the directory mount:

sudo mount -v -o loop,rw out/rootfs.PARTITION mount/

Make changes to rootfs:

Example 1:

echo test_parameter=777 | sudo tee mount/etc/test.conf

Example 2:

touch test_file
sudo cp -v test_file mount/usr/lib/firmware/

Unmount the rootfs partition:

sudo umount mount/

Package the directory out with the modified rootfs partition into a new image:

./aml_image_v2_packer -r out/image.cfg out Armbian_20.08_Arm-64_focal_current_5.7.16_j80_REPACKED.img

Delete the directories out and mount:

rm -rf out mount