RTL960x/Docs/Modify_Firmware.md

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 need rootfs 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 *