From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Thu, 25 Jul 2013 21:01:59 +0200 Subject: [U-Boot] Extract data file from U-Boot image In-Reply-To: References: Message-ID: <20130725190159.43BA338319F@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Guilherme Maciel Ferreira, In message you wrote: > > I made a patch to allow mkimage to extract files from images, which > just works for multi-file image. But, the fact that nobody has ever > done this means that this feature is not desired in the tool? Speaking just for myself: I needed such features only in very rare occasions, where it was way faster to use a one-liner on the command line than to write any actual code. YMMV... But I fear that mkimage explodes from creaping featurism, so if you go and implement something like this, please do not add it to kmimage, but rather create a separate, new tool, say "dumpimage" or so. > IMHO, it is very convenient to have a C code to do that, specially for > embedded systems where scripting is noticeably slower than binary > code. Besides it requires 'dd' to extract and another tool to parse > file's offsets inside the image. Well, when I was doing such things, I never did this on the embedded targets, nor did I ever have to care about performance because I always needed it just once or twice. Could you please be so kind and feed my curiousity a bit: what exactly are you doing that you need such a feature on the target? I can't think of useful applications at the moment... Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de : ... and it's got weird formatting - Notepad, Write, Works 3 can't : decipher it, and it's too big to go in DOS Edit. Help! Install an operating system. :-) -- Tom Christiansen