Unpacking U-Boot image file

Rhodri James rhodri at wildebst.org.uk
Thu Apr 10 18:01:50 EDT 2014


On Wed, 09 Apr 2014 18:18:56 +0100, Rustom Mody <rustompmody at gmail.com>  
wrote:

> On Wednesday, April 9, 2014 9:36:40 PM UTC+5:30, trewio wrote:
>> How to extract files from U-Boot image file, LZMA-compressed?
>>
>> Is there a Python script that can do this properly?
>
> For lzma theres this (recent) python library
> https://docs.python.org/dev/library/lzma.html
>
> Though you might just be better off with the command-line xz unxz etc
>
> After that.. whats the U-boot format?

The Fine Manual (http://www.denx.de/wiki/view/DULG/UBootImages) isn't very  
forthcoming, sadly;

"U-Boot operates on "image" files which can be basically anything,  
preceeded by a special header; see the definitions in include/image.h for  
details; basically, the header defines the following image properties

* Target Operating System
* Target CPU Architecture
* Compression Type
* Load Address
* Entry Point
* Image Name
* Image Timestamp"

I suspect taking this apart may be a little involved.

-- 
Rhodri James *-* Wildebeest Herder to the Masses



More information about the Python-list mailing list