LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (http://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   How to unpack mtd image? (http://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/how-to-unpack-mtd-image-4175438369/)

chinabenjamin66 11-22-2012 09:58 PM

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.

yooy 11-22-2012 11:34 PM

have you tried to mount it?

chinabenjamin66 11-23-2012 12:50 AM

Quote:

Originally Posted by yooy (Post 4835230)
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?

yooy 11-25-2012 04:31 PM

have you tried "loop"?

theNbomr 11-26-2012 10:50 AM

'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 12:41 AM.