mirror of https://github.com/Anime4000/RTL960x.git
660 B
660 B
Modify
You need a Linux PC/VM, Ubuntu as Operating System
Prerequisite
You need these program installed:
tar
(extract tar package)squashfs-tools
(extract/repack rootfs)qemu-user-static
(run MIPS VM)
Extract firmware
- Extract Firmware package in
tar
format, we needrootfs
file - Extract
rootfs
partition
unsquashfs rootfs
Repack firmware
- Repack
rootfs
mksquashfs squashfs-root rootfs.new -b 131072 -comp lzma
- Rename
rootfs
mv rootfs rootfs.old
mv rootfs.new rootfs
- Update
md5sum
md5sum fwu.sh rootfs uImage fwu_ver > md5.txt
- tar current folder
tar -cvf ../firmware.tar *