Unpacking U-Boot image file

Rustom Mody rustompmody at gmail.com
Thu Apr 10 23:27:14 EDT 2014


On Friday, April 11, 2014 3:31:50 AM UTC+5:30, Rhodri James wrote:
> On Wed, 09 Apr 2014 18:18:56 +0100, Rustom Mody  
> > 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.

If its a binary format, you (OP) may want to look at 
https://pypi.python.org/pypi/construct/2.5.1

Of course you will have to read/get the C struct and write the corresponding
"Construct"

You may want to ask on a U-boot forum for more details.



More information about the Python-list mailing list