03-Firmware_Unpacking_and_Packing
This section mainly introduces the process of unpacking and repacking RK firmware on Windows or Linux.
Windows
To be tested and improved.
Linux
Obtaining the tools
Network disk path:
rk356x_data\3-SoftwareData Software Materials\Linux_Pack_Firmware.zipLinux-SDK source code path:
rk356x-linux\tools\linux\Linux_Pack_FirmwareAndroid-SDK source code path:
rk-android13.0\RKTools\linux\Linux_Pack_FirmwareUnpacking
Place the
Linux_Pack_Firmwaredirectory in your virtual machine's working directory.
$ ls Linux_Pack_Firmware/
rockdevPut the firmware to be unpacked in the
rockdevdirectory and rename it toupdate.img.
Run the script to unpack the firmware.
The unpacked partition images and other files are located in:
After modifying or replacing the unpacked partition images, you can repack them to generate a new firmware.
Packing
After modifying the unpacked images, you can repack them.
Copy the files to the corresponding paths in the
rockdevdirectory and delete theupdate.imgused for unpacking.
Modify the
package-fileto update the file paths to the actual locations of the files.
Run the corresponding version script to pack the firmware.
The packed image is located in the
rockdevdirectory:
Last updated