[chbot] OT: SquashFs 1.0

Col colp42 at gmail.com
Fri Sep 30 01:59:43 BST 2011


On 30/09/11 01:23, Synco Reynders wrote:
> Hi all,
>   I'm wanting to fix a few annoying 'features' / security holes in my
> DSL-G604T ADSL router and am struggling to unsquash the following
> firmware image file:
> ftp://files.dlink.com.au/products/DSL-G604T/REV_B/Firmware//Firmware_v2.00B07.AU_BIN/DSL-G604T_2.00B07.AU_20060901.bin
>
> I found the magic number ('hsqs') at offset 0x81000, so used the
> following to trim it back:
> dd if=imagefile.bin skip=1032 of=sqsh.bin
>
> Now I'm stuck since the major/minor version is 1.0 and unsupported by
> my kernel and it uses LZMA compression. I've tried to compiling
> 'unsquash' with LZMA support but it doesn't work for version 1.0. And
> before 'unsquash' existed you needed a kernel module so that the image
> can be mounted, although I've got a bit bogged down trying to
> make/patch this kernel module. Any other tips? Suggestions?
>
> Thanks in advance,
> /s

Maybe compile the squashfs direct into the main kernel (not as a 
loadable module).



Col.



More information about the Chchrobotics mailing list