How do I rebuild a squashfs image?

Misc forums. Device donation, device swap. Off the topic etc.
Post Reply
ricktendo
Junior Member
Posts: 133
Joined: Sat Nov 29, 2014 12:41 pm

How do I rebuild a squashfs image?

Post by ricktendo »

I have used binwalk on linux to extract and edit (to enable ssh) a squasfs image of the SB61XX and would like to now rebuild it, does anybody have any instructions on how to accomplish this?
PAPAUKA
Junior Member
Posts: 105
Joined: Tue Mar 31, 2009 10:25 am

Post by PAPAUKA »

this can help you

https://bitsum.com/firmware_mod_kit.htm

or make a search in San Google

Like this "binwalk extract squashfs and rebuild"
ricktendo
Junior Member
Posts: 133
Joined: Sat Nov 29, 2014 12:41 pm

Post by ricktendo »

Can I simply rebuild the squashfs file and use a hex editor to re-apply apply it to bin?

I tried using mksquashfs to recreate it but I get very different results, here is the original squashfs

Code: Select all

pi@raspberrypi:~/_SB_KOMODO-1.0.6.16-SCM00-NOSH.NNDMN.bin.extracted $ binwalk BFC00.squashfs

DECIMAL       HEXADECIMAL     DESCRIPTION
--------------------------------------------------------------------------------
0             0x0             Squashfs filesystem, big endian, lzma signature, version 3.1, size: 2333794 bytes, 402 inodes, blocksize: 131072 bytes, created: 2016-02-16 06:00:35
Using the following command

Code: Select all

mksquashfs squashfs-root/ lzma.squashfs -b 1048576 -comp xz -Xdict-size 100%
Resulting squashfs file (little endian)

Code: Select all

pi@raspberrypi:~/_SB_KOMODO-1.0.6.16-SCM00-NOSH.NNDMN.bin.extracted $ binwalk lzma.squashfs

DECIMAL       HEXADECIMAL     DESCRIPTION
--------------------------------------------------------------------------------
0             0x0             Squashfs filesystem, little endian, version 4.0, compression:xz, size: 2133945 bytes, 400 inodes, blocksize: 1048576 bytes, created: 2016-10-02 08:53:03
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests