Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #70065

Re: Unpacking U-Boot image file

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.roellig-ltd.de!open-news-network.org!cyclone03.ams2.highwinds-media.com!news.highwinds-media.com!voer-me.highwinds-media.com!post01.fr7!fx06.am4.POSTED!not-for-mail
Content-Type text/plain; charset=us-ascii; format=flowed; delsp=yes
Newsgroups comp.lang.python
Subject Re: Unpacking U-Boot image file
References <mailman.9083.1397060494.18130.python-list@python.org> <6ed343e7-fa02-426a-a75f-3e1d164a6a61@googlegroups.com>
MIME-Version 1.0
Content-Transfer-Encoding 8bit
From "Rhodri James" <rhodri@wildebst.org.uk>
Organization The Wildebestiary
Message-ID <op.xd4fhcfm5079vu@gnudebeest> (permalink)
User-Agent Opera Mail/12.16 (Linux)
Lines 34
NNTP-Posting-Host 81.97.70.240
X-Complaints-To http://netreport.virginmedia.com
X-Trace 1397167310 81.97.70.240 (Thu, 10 Apr 2014 22:01:50 UTC)
NNTP-Posting-Date Thu, 10 Apr 2014 22:01:50 UTC
Date Thu, 10 Apr 2014 23:01:50 +0100
X-Received-Body-CRC 2845929758
X-Received-Bytes 1903
Xref csiph.com comp.lang.python:70065

Show key headers only | View raw


On Wed, 09 Apr 2014 18:18:56 +0100, Rustom Mody <rustompmody@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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Unpacking U-Boot image file "trewio" <laguna-mc@mail.com> - 2014-04-09 12:06 -0400
  Re: Unpacking U-Boot image file Rustom Mody <rustompmody@gmail.com> - 2014-04-09 10:18 -0700
    Re: Unpacking U-Boot image file Adnan Sadzak <sadzak@gmail.com> - 2014-04-09 19:33 +0200
    Re: Unpacking U-Boot image file "Rhodri James" <rhodri@wildebst.org.uk> - 2014-04-10 23:01 +0100
      Re: Unpacking U-Boot image file Rustom Mody <rustompmody@gmail.com> - 2014-04-10 20:27 -0700
      Re: Unpacking U-Boot image file Grant Edwards <invalid@invalid.invalid> - 2014-04-11 16:02 +0000

csiph-web