Add New Page: You are not allowed to add pages Select section/namespace. New page title.
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

development_resources:router:modifying_.bin_files_by_hand [2013/12/02 17:31] (current)
Line 1: Line 1:
 +For modifying a factory image:
 +  - Find the PARTs
 +  - Extract them
 +  - unsquash: ''​unsquashfs -d image/ squashfs.bin''​
 +  - Make the changes.
 +  - squash: ''​~/​code/​commotion-openwrt/​commotion-openwrt/​openwrt/​staging_dir/​host/​bin/​mksquashfs4 image/ squashfs-made.bin -nopad -noappend -root-owned -comp xz -Xpreset 9 -Xe -Xlc 0 -Xlp 2 -Xpb 2 -b 256k''​
 +  - pad: ''​~/​code/​commotion-openwrt/​commotion-openwrt/​openwrt/​staging_dir/​host/​bin/​padjffs2 squashfs-made.bin 64''​
 +  - mkfwimage: ''​ ~/​code/​commotion-openwrt/​commotion-openwrt/​openwrt/​staging_dir/​host/​bin/​mkfwimage -B XM -k kernel.img -r squashfs-made.bin -v XM.ar7240.v6.0.0-OpenWrt-r36682 -o openwrt-ar71xx-generic-ubnt-nano-m-squashfs-factory-DR2-tn.bin
 +''​
  
 +For modifying a sysugrade image:
 +  - Extract 0-1048576 (bytes): that's the kernel
 +  - Extract the rest: that's the squashfs (follow instructions above for unsquashing and resquashing.)
 +  - Put them back together with ''​( dd if=vmlinux bs=1048576 conv=sync; dd if=squashfs-made.bin ) > openwrt-ar71xx-generic-ubnt-bullet-m-squashfs-sysupgrade-DR2-custom.bin''​
development_resources/router/modifying_.bin_files_by_hand.txt · Last modified: 2013/12/02 17:31 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported