You need a Linux PC/VM, Ubuntu as Operating System
You need these program installed:
tar
(extract tar package)squashfs-tools
(extract/repack rootfs)qemu-user-static
(run MIPS VM)
- Extract Firmware package in
tar
format, we needrootfs
file - Extract
rootfs
partition
unsquashfs rootfs
- 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 *