Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-22-2012, 09:58 PM
|
#1
|
Member
Registered: Mar 2012
Location: Shenzhen Chian
Posts: 73
Rep: 
|
How to unpack mtd image?
Hello friends
I have this image, can anyone tell me how to extract this image?
Code:
root@gpl-vm:/GPL/8760tmp# file tcc8900_mtd.img
tcc8900_mtd.img: data
root@gpl-vm:/GPL/8760tmp# hexdump -C tcc8900_mtd.img | more
00000000 5b 48 45 41 44 45 52 5d 30 00 00 00 a7 67 b4 99 |[HEADER]0....g..|
00000010 52 41 57 5f 49 4d 41 47 45 00 00 00 00 00 00 00 |RAW_IMAGE.......|
00000020 4d 54 44 00 00 00 00 00 00 00 00 00 00 00 00 00 |MTD.............|
00000030 01 00 00 00 00 00 00 00 00 c0 5b 00 00 00 00 00 |..........[.....|
00000040 41 4e 44 52 4f 49 44 21 20 67 53 00 00 80 00 40 |ANDROID! gS....@|
00000050 ec 10 08 00 00 00 00 41 00 00 00 00 00 00 f0 40 |.......A.......@|
00000060 00 01 00 40 00 20 00 00 00 00 00 00 00 00 00 00 |...@. ..........|
00000070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000080 63 6f 6e 73 6f 6c 65 3d 74 74 79 54 43 43 2c 31 |console=ttyTCC,1|
00000090 31 35 32 30 30 6e 38 00 00 00 00 00 00 00 00 00 |15200n8.........|
000000a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
any ideas will be appreicated.
|
|
|
11-22-2012, 11:34 PM
|
#2
|
Senior Member
Registered: Dec 2009
Posts: 1,387
Rep: 
|
have you tried to mount it?
|
|
|
11-23-2012, 12:50 AM
|
#3
|
Member
Registered: Mar 2012
Location: Shenzhen Chian
Posts: 73
Original Poster
Rep: 
|
Quote:
Originally Posted by yooy
have you tried to mount it?
|
Hi, I don't know what file system it contains, so I didn't. what file system do you suggest?
|
|
|
11-25-2012, 04:31 PM
|
#4
|
Senior Member
Registered: Dec 2009
Posts: 1,387
Rep: 
|
have you tried "loop"?
|
|
|
11-26-2012, 10:50 AM
|
#5
|
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
|
'loop' is not a filesystem, it is a block device. But, I'm not sure the data being displayed is a filesystem. If I had to guess, based on the evidence: an mtd image, and the existence of what seems to be boot parameters, I'd say that it is a bootloader, such as U-Boot. As such, there is no unpacking to be done on it.
Perhaps if you can describe more about its origin, a better answer can be given. In general, one cannot determine much from a small sample of data, and without some context regarding the origin of the data.
--- rod.
|
|
|
All times are GMT -5. The time now is 02:12 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|