How do I rebuild a squashfs image?
-
- Junior Member
- Posts: 133
- Joined: Sat Nov 29, 2014 12:41 pm
How do I rebuild a squashfs image?
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?
-
- Junior Member
- Posts: 105
- Joined: Tue Mar 31, 2009 10:25 am
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"
https://bitsum.com/firmware_mod_kit.htm
or make a search in San Google
Like this "binwalk extract squashfs and rebuild"
-
- Junior Member
- Posts: 133
- Joined: Sat Nov 29, 2014 12:41 pm
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
Using the following command
Resulting squashfs file (little endian)
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
Code: Select all
mksquashfs squashfs-root/ lzma.squashfs -b 1048576 -comp xz -Xdict-size 100%
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
Who is online
Users browsing this forum: No registered users and 3 guests