LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
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


Reply
  Search this Thread
Old 11-22-2012, 09:58 PM   #1
chinabenjamin66
Member
 
Registered: Mar 2012
Location: Shenzhen Chian
Posts: 73

Rep: Reputation: Disabled
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.
 
Old 11-22-2012, 11:34 PM   #2
yooy
Senior Member
 
Registered: Dec 2009
Posts: 1,387

Rep: Reputation: 174Reputation: 174
have you tried to mount it?
 
Old 11-23-2012, 12:50 AM   #3
chinabenjamin66
Member
 
Registered: Mar 2012
Location: Shenzhen Chian
Posts: 73

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yooy View Post
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?
 
Old 11-25-2012, 04:31 PM   #4
yooy
Senior Member
 
Registered: Dec 2009
Posts: 1,387

Rep: Reputation: 174Reputation: 174
have you tried "loop"?
 
Old 11-26-2012, 10:50 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
'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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Does "mtd write" clear/erase the end of the mtd block by default? (no man page found) maddes.b Linux - Kernel 0 08-17-2009 03:07 AM
Can the entire MTD be used as RAM? chaz_bro1972 Linux - Embedded & Single-board computer 0 12-06-2008 02:05 AM
What is MTD devices? HmmLinux Linux - Newbie 3 04-11-2006 12:39 AM
do i need mtd for my jumpdrive? slinky2004 Linux - Hardware 3 09-14-2005 09:49 PM
What are MTD Devices aditya Linux - Newbie 2 11-14-2002 05:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 02:12 AM.

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