charles2gan / charles2gan/firmware-mod-kit
TRX Header not found
- Dominant language
- C
- Stars
- 7
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
```
What steps will reproduce the problem?
# sudo ./extract_firmware.sh ~/Downloads/router_firmware_fullImage.bin ~/kamil/
What is the expected output? What do you see instead?
Expected:
Firmware Mod Kit (extract) v0.69 beta, (c)2010 Jeremy Collake
http://www.bitsum.com
Checking for updates ...
You have the latest version of this kit.
LINUX system detected. Compatibility ok.
Testing file system of /home/user/ ...
Building tools ...
Build seems successful.
Preparing working directory ...
Removing any previous files ...
Creating directories ...
Extracting firmware
! untrx failed, trying splitter3
Not recognized by splitter3
Attempting squashfs 3.0 lzma ...
Firmware appears extracted correctly!
I'm getting:
Firmware Mod Kit (extract) v0.69 beta, (c)2010 Jeremy Collake
http://www.bitsum.com
Checking for updates ...
You have the latest version of this kit.
LINUX system detected. Compatibility ok.
Testing file system of /home/user/kamil/ ...
Building tools ...
Build seems successful.
Preparing working directory ...
Removing any previous files ...
Creating directories ...
Extracting firmware
! untrx failed, trying splitter3
Attempting squashfs 3.0 lzma ...
Trying 'damn small' variant - used by DD-WRT v24 ...
Error: filesystem not extracted properly.
firmware image format not compatible?
What version of the product are you using? On what operating system?
I'm using the latest version of the kit on ubuntu 11.04.
Please provide any additional information below.
# cat extract.log
............
untrx 0.54 beta - (c)2006-2010 Jeremy Collake
Opening /home/user/Downloads/router_firmware_fullImage.bin
read 1972267 bytes
ERROR trx header not found
splitter3 0.10 beta - (c)2010 Jeremy Collake
Opening /home/user/Downloads/router_firmware_fullImage.bin
read 1972267 bytes
SQUASHFS magic: 0x68737173
SQUASHFS version: 512.0
Found segment type 0x8 Kernel length is fecc
File system length is 1d1134
Trailer is 82b bytes
Writing /home/labris/kamil//image_parts/vmlinuz
size 65228 from offset 0 ...
SQUASHFS magic: 0x68737173
SQUASHFS version: 512.0
! WARNING: Unknown squashfs version.
Writing /home/user/kamil//image_parts/squashfs-lzma-image-x_x
size 1904948 from offset 65228 ...
Writing /home/user/kamil//image_parts/hwid.txt
size 2091 from offset 1970176 ...
Done!
######################################
Can you please help me with this problem?
Thanks in advance.
```
Original issue reported on code.google.com by `monsanti...@gmail.com` on 7 Sep 2011 at 8:39
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with extract_firmware.sh and the untrx and splitter3 output in extract.log, especially the missing TRX header and unknown SquashFS version. Reproduce on Ubuntu with the supplied firmware image and determine what change is needed so extraction completes successfully and produces the expected filesystem.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, linux, shell
- Domain
- embedded-iot, reverse-engineering
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100