LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-21-2012, 08:26 AM   #1
chinabenjamin66
Member
 
Registered: Mar 2012
Location: Shenzhen Chian
Posts: 73

Rep: Reputation: Disabled
How to extract HIT archive data


Hello friends


How to extract HIT archive data:

Code:
root@benjamin-virtual-machine:/GPL/PX-8600/firmware/system# file system_ubi.img 
system_ubi.img: HIT archive data
root@benjamin-virtual-machine:/GPL/PX-8600/firmware/system#
You can down load the firmware from here: ftp://ftp.pearl.de/treiber/PX8600_12_100335.zip

any reply will be appreicated

Last edited by chinabenjamin66; 12-04-2012 at 09:50 PM.
 
Old 11-21-2012, 08:32 AM   #2
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Hi, did you try with tar extract command (sorry if it's a silly answer). It seems some archived logs data from some web server, so could you mention what's source of this data, and is it archived by system itself or manually?
 
Old 11-21-2012, 06:25 PM   #3
chinabenjamin66
Member
 
Registered: Mar 2012
Location: Shenzhen Chian
Posts: 73

Original Poster
Rep: Reputation: Disabled
Hello shivaa,

It is one of the firmware image files acrchived, except this one, the package also contains those images:
Code:
root@gpl-vm:/GPL/PX-8600# unzip -l PX8600_12_100335.zip 
Archive:  PX8600_12_100335.zip
  Length      Date    Time    Name
---------  ---------- -----   ----
  3066772  2010-09-19 14:55   recovery
  7864320  2010-11-18 11:22   storage_ubi.img
 81788928  2010-12-08 20:51   system_ubi.img
  7864320  2010-12-08 20:27   userdata_ubi.img
  3255916  2010-12-07 16:17   zImage
---------                     -------
103840256                     5 files
 
Old 12-07-2012, 02:40 AM   #4
chinabenjamin66
Member
 
Registered: Mar 2012
Location: Shenzhen Chian
Posts: 73

Original Poster
Rep: Reputation: Disabled
Why same file properties, one can unpacked, while the other cannot?

Those two files with same file properties:

Code:
root@gpl-vm:/GPL/PX-1531/PX-1532# file 220.img 
220.img: HIT archive data
root@gpl-vm:/GPL/PX-8600/firmware/system# file system_ubi.img 
system_ubi.img: HIT archive data
220.img is part of PEARL.2011-09-02_12-29-14.fw, it is generated after performed this command:

Code:
for((i=192;$i<232;i=$i+4)); 
    do 
	off=`hexdump -s $i -n 4 -e '"%i\n"' image.fw`;
	i=`expr $i + 4`; 
	size=`hexdump -s $i -n 4 -e '"%i\n"' image.fw`; 
	echo "offset: $off size: $size";
	dd if=PEARL.image.fw bs=1c count=$size skip=$off of="$i".img; 
	done
Note: please replace image.fw with proper name, in our case, it should be PEARL.2011-09-02_12-29-14.fw

use the following method to try to unpack system_ubi.img and 220.img, system_bui.img cannot be unpacked successfully, while 220.img can be unpacked successfully.

Code:
modprobe mtd
modprobe mtdblock
modprobe nandsim first_id_byte=0x20 second_id_byte=0xaa third_id_byte=0x00 fourth_id_byte=0x15
modprobe ubifs
dd if=rootfs.img of=/dev/mtdblock0 bs=2048
!!! dd to /dev/mtdblock0 NOT /dev/mtd0 !!!
ubiattach /dev/ubi_ctrl -m 0 -O 2048
mount -t fs-tape /dev/ubi0_0 -oro ./loop

Backgroud information:
system_ubi.img is one of firmware images of TOUCHLET Tablet-PC X2G mit GPS, WLAN, Bluetooth
PEARL.2011-09-02_12-29-14.fw is the firmware of Meteorit HDMI-Multimedia- & Web-Box "MMB-22.HDTV" Android 2.2

http://pan.baidu.com/share/link?shar...&uk=1997156502
http://pan.baidu.com/share/link?shar...&uk=1997156502
http://pan.baidu.com/share/link?shar...&uk=1997156502
http://pan.baidu.com/share/link?shar...&uk=1997156502



What I want to do is unpack system_ubi.img, no matter what method you can use. Any idea and advice will be appreicated!

Last edited by chinabenjamin66; 12-07-2012 at 02:55 AM.
 
Old 12-07-2012, 08:42 AM   #5
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
From its name, the system_ubi.img seems to be a Unsorted Block Image (UBI) filesystem image. Since there is direct support in Linux for UBI, you can possibly mount the UBI filesystem or UBI image and use conventional userspace tools to explore its content.

--- rod.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Extract from `tar` archive as ordered in --files-from zx_ Linux - Newbie 6 02-04-2012 09:08 AM
Error trying to extract a tgz archive gemboek Linux - Newbie 4 09-18-2011 03:26 PM
CPIO hangs - doesn't extract archive zivota Red Hat 1 04-21-2006 01:58 AM
How can I extract a file from iso archive kmichal2 Linux - Software 8 12-14-2004 05:48 AM
Making C extract an archive MylesCLin Programming 2 12-13-2004 05:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration