Firmware Repack Tool
Note that the following operations are all performed on the PC (x86-64 architecture).
-
Install the necessary packages:
sudo apt-get install lib32stdc++6 -
Download the secondary packaging tool: firefly-linux-repack
-
Unzip the secondary packaging tool:
tar -xzf firefly-linux-repack.tgzcd firefly-linux-repackThe directory is as follows:
firefly-linux-repack├── bin│ ├── afptool│ └── rkImageMaker├── pack.sh # packaging script├── Readme_en.md├── Readme.md└── unpack.sh # unpack script -
Unpacking operation: Copy the official Ubuntu firmware to the
firefly-linux-repackroot directory, rename it toupdate.img, and execute the unpacking scriptunpack.sh. After the unpacking is complete, the partition files are in theoutputdirectory.mv /path/to/ROC-RK3566-PC_Ubuntu18.04-r21156_v1.2.4a_220519.img update.img./unpack.sh -
Packaging operation: Keep the current directory structure and file name unchanged, connect the mobile hard disk to the PC, replace
output/Image/rootfs.imgwith the Ubuntu rootfs exported earlier, and then execute the packaging scriptpack.sh.cp /media/customer/1878-4615/Firefly_Ubuntu_18.04.6_rootfs.img /path/to/firefly-linux-repack/output/Image/rootfs.img./pack.sh -
The new full firmware is
new_update.imgin the current directory.