brianpow / firmware-mod-kit

Automatically exported from code.google.com/p/firmware-mod-kit
44 stars 13 forks source link

"File extraction failed" in unsquashfs_all.sh #146

Open irini90 opened 7 years ago

irini90 commented 7 years ago

I have created successfully the squash image from the firmware:

DECIMAL       HEXADECIMAL     DESCRIPTION
--------------------------------------------------------------------------------
0             0x0             LZMA compressed data, properties: 0x5D, dictionary size: 33554432 bytes, uncompressed size: 2581428 bytes
1048064       0xFFE00         Squashfs filesystem, little endian, version 4.0, compression:lzma, size: 2597236 bytes, 624 inodes, blocksize: 131072 bytes, created: 2015-09-21 09:22:52

and then when I use the unsquashfs_all.sh I get this error:


root/Tools/firmware-mod-kit/unsquashfs_all.sh: line 89: ./src/binwalk/src/scripts/binwalk: No such file or directory
Attempting to extract SquashFS .X file system...

Trying ./src/others/squashfs-3.4-nb4/unsquashfs-lzma... Skipping others/squashfs-hg55x-bin (wrong version)...
File extraction failed!

Why is this?

adi0x90 commented 7 years ago

Hi @irini90 : Did you modify the shared-ng.inc file to the current location of binwalk (which binwalk) ?

irini90 commented 7 years ago

yes @adi0x90!


root@wimo:~# which binwalk
/usr/local/bin/binwalk
root@wimo:~# 
VERSION=$(cat firmware_mod_kit_version.txt)
IMAGE_PARTS="$DIR/image_parts"
LOGS="$DIR/logs"
CONFLOG="$LOGS/config.log"
BINLOG="$LOGS/binwalk.log"
ROOTFS="$DIR/rootfs"
FSIMG="$IMAGE_PARTS/rootfs.img"
HEADER_IMAGE="$IMAGE_PARTS/header.img"
FOOTER_IMAGE="$IMAGE_PARTS/footer.img"
FWOUT="$DIR/new-firmware.bin"
BINWALK="./usr/local/bin/binwalk"
adi0x90 commented 7 years ago

Try changing line 89 binwalk location to /usr/local/bin/binwalk too.

irini90 commented 7 years ago

I try this already as well!

This error doesn't make any sense.

Irene

On 23 Nov 2016, at 10:11, Aditya Gupta notifications@github.com wrote:

Try changing line 89 binwalk location to /usr/local/bin/binwalk too.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

adi0x90 commented 7 years ago

@irini90 : I could not think of any other reason it shouldn't work. Is it possible for you to share the firmware binary so that I could give it a try?

irini90 commented 7 years ago

@adi0x90 : I managed to fix the path error but now I get this one. Any idea what it might be?

Attempting to extract SquashFS 0 0x0 PackImg section delimiter tag, little endian size: 7348736 bytes; big endian size: 2256896 bytes.X file system...

Skipping squashfs-2.1-r2 (wrong version)...
Skipping squashfs-3.0 (wrong version)...
Skipping squashfs-3.0-lzma-damn-small-variant (wrong version)...
Skipping others/squashfs-2.0-nb4 (wrong version)...
Skipping others/squashfs-2.2-r2-7z (wrong version)...
Skipping others/squashfs-3.0-e2100 (wrong version)...
Skipping others/squashfs-3.2-r2 (wrong version)...
Skipping others/squashfs-3.2-r2-lzma (wrong version)...
Skipping others/squashfs-3.2-r2-lzma/squashfs3.2-r2/squashfs-tools (wrong version)...
Skipping others/squashfs-3.2-r2-hg612-lzma (wrong version)...
Skipping others/squashfs-3.2-r2-wnr1000 (wrong version)...
Skipping others/squashfs-3.2-r2-rtn12 (wrong version)...
Skipping others/squashfs-3.3 (wrong version)...
Skipping others/squashfs-3.3-lzma/squashfs3.3/squashfs-tools (wrong version)...
Skipping others/squashfs-3.3-grml-lzma/squashfs3.3/squashfs-tools (wrong version)...
Skipping others/squashfs-3.4-cisco (wrong version)...
Skipping others/squashfs-3.4-nb4 (wrong version)...
Skipping others/squashfs-4.3 (wrong version)...
Skipping others/squashfs-4.2-official (wrong version)...
Skipping others/squashfs-4.2 (wrong version)...
Skipping others/squashfs-4.0-lzma (wrong version)...
Skipping others/squashfs-4.0-realtek (wrong version)...
Skipping others/squashfs-hg55x-bin (wrong version)...
File extraction failed!