Author Topic: Can't unsquashfs Albis STB-7710  (Read 9619 times)

Offline Blagus

  • New
  • *
  • Posts: 3
    • Blagus.info - soon in English
Can't unsquashfs Albis STB-7710
« on: March 11, 2013, 05:52:46 AM »
Hi, I have a problem with extracting recovery kernel's rootfs on Albis STB-7710.
It's 640kB SquashFS image, without uImage header.
All available unsquashfs tools fail, fw-mod-kit gives me "no supported fs found", and unsquashfs gives "FATAL ERROR aborting: failed to read fragment table" error.

U-Boot env variable defines the image as squashfs, and "squashfs: version 3.3 (2007/10/31) Phillip Lougher" is started in kernel.

Here's the file, I hope someone can help me.
http://www.mediafire.com/?561vm65uzl1v58w


Soon in English - Make use of Albis STB-7710
http://blagus.info

Offline Jeremy Collake

  • Administrator
  • Member#
  • *****
  • Posts: 5229
  • Gender: Male
  • The Lasso
    • Bitsum
Re: Can't unsquashfs Albis STB-7710
« Reply #1 on: March 13, 2013, 06:44:50 PM »
The vendor should be required to distribute the source. In the source tarball, you will likely find a modified version of squashfs-tools. It might require a little work to make sure unsquashfs is operational with the same mods, or maybe everything is ready to go.
Software Engineer. Bitsum LLC.

Offline Blagus

  • New
  • *
  • Posts: 3
    • Blagus.info - soon in English
Re: Can't unsquashfs Albis STB-7710
« Reply #2 on: March 14, 2013, 07:44:57 AM »
Unfortunately, there's no squashfs tools in sources.
http://opensource.albistechnologies.com/STB/STB-7710/7710.ZAP.01.XX.0378.05.htm

All I found that could be of some use is squashfs in kernel source, but I have no idea is there anything useful.

One more note: gzip-based unsquashfs variants are giving me fragment errors, while LZMA-based ones crash and throw some debug data.
Soon in English - Make use of Albis STB-7710
http://blagus.info

Offline Jeremy Collake

  • Administrator
  • Member#
  • *****
  • Posts: 5229
  • Gender: Male
  • The Lasso
    • Bitsum
Re: Can't unsquashfs Albis STB-7710
« Reply #3 on: March 14, 2013, 03:47:42 PM »
Someone will have to look into it more closely. I won't lie, I have far too much of a backlog to possibly look into it myself.
Software Engineer. Bitsum LLC.

Offline Blagus

  • New
  • *
  • Posts: 3
    • Blagus.info - soon in English
Re: Can't unsquashfs Albis STB-7710
« Reply #4 on: March 18, 2013, 11:48:52 AM »
Well, I'd appreciate some help from someone about what should I look for in sources.
« Last Edit: March 18, 2013, 04:13:13 PM by Blagus »
Soon in English - Make use of Albis STB-7710
http://blagus.info

Offline BenYeeHua

  • Volunteer User Moderator
  • Member#
  • *****
  • Posts: 2243
  • Gender: Male
Re: Can't unsquashfs Albis STB-7710
« Reply #5 on: March 18, 2013, 04:08:00 PM »
Well, I'd appreciate some help from someone about what should I look for in sources.
I'm having a project in mind with this device, which should be done by the end of April if I wanted to apply for the contest this year.
I am sorry that I can't help you.
Because I don't has any knowledge for this, and maybe making more trouble. :)

Offline Jeremy Collake

  • Administrator
  • Member#
  • *****
  • Posts: 5229
  • Gender: Male
  • The Lasso
    • Bitsum
Re: Can't unsquashfs Albis STB-7710
« Reply #6 on: March 18, 2013, 05:23:14 PM »
Well, I'd appreciate some help from someone about what should I look for in sources.

If the squashfs-tools package isn't there, you'll need to possibly do some reverse engineering of the filesystem image. You might also check any other source tarballs from the vendor, as they are probably using the same squashfs variant. It's also possible if you keep trying variants, you will find one that works.

Best to walk the filesystem image, compare and contrast the headers, signatures, and data types to the stock variant. If all looks ok, then you go after the compressed data, compare and contrast to known compression algorithms and/or random try to decompress them with known algorithms. It's almost certain they used a common algorithm.

Sometimes obfuscation layers are added, such as a simple XOR to the post-compressed data, or entire filesystem image. Check for the squashfs kernel patch that allows for the filesystem to even be read... actually, probably should be first step, see if this exists. If it does, you can have your answer.
Software Engineer. Bitsum LLC.