Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3342BC433EF for ; Sun, 12 Jun 2022 04:22:03 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4AA6E84456; Sun, 12 Jun 2022 06:20:35 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Z/Ujp4yq"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0637F84424; Sun, 12 Jun 2022 06:20:17 +0200 (CEST) Received: from mail-qk1-x729.google.com (mail-qk1-x729.google.com [IPv6:2607:f8b0:4864:20::729]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1B11C84410 for ; Sun, 12 Jun 2022 06:20:14 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=seanga2@gmail.com Received: by mail-qk1-x729.google.com with SMTP id c83so1976123qke.3 for ; Sat, 11 Jun 2022 21:20:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Zal03nZXMwf2JLxfQyMFDmWDyjwiPW/HIsy7HqGR8iM=; b=Z/Ujp4yquxtciHCOaTFsYmj6CJ2Hw2GdNjr6oMCKFns/ZqviW1m5jTLEbUJJO4fIr+ MHx6ij/IgMT3OQ7tU/wUPH+Je8z+aDjEHzcAYqBekYp4+heRnGfGNkbwtc2jdZdJEMlo BCN2BaxIEnBiAga3aAQTEIGKxyj/TP7gq/HMs1oEmC5QMIAQJEBFpNrYAsZn7Y7TQRft y7i39F/QSaE1z0AhaM3hBhamt805GwH74f7L0Uy1eIZ3f0my73JJcP8WTgoYP9n0WbT0 ha/foUzyp6feztMMsQIMK01SGmiBtFRyOIqDvr/a5nuzUgGnjO16CmcDptkgvcRFvDWM UxlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Zal03nZXMwf2JLxfQyMFDmWDyjwiPW/HIsy7HqGR8iM=; b=pR+8VBcdUQL70KnXA30LtdKhKNTuEfmLIeLreXJSuH5IiWSGo67Yp8bb0htMwUocYr ALNZV82CV9NLPiNeOZ/rQWW7LsrPvEZ6jHbAHkXsE2CkYC6KM1InZKH2EVToJHyKGUxg hsPSAY9NvrXp3bSvmyqC2j1tG0c3EphNhlETn3mvW4HW5tHSAjpCw1YXVS7idNX1brIq LVeNxushjNF6bzi6muzNPsoHmcfW6ZAhestbZJ8xt1WsZ2ljprPvtNQEFcku7CoYczuA cGa9DIOFm6yeb8ayfhpOHxSrWq7xfk7K5ojUBe0Grr4M0Ii9syhHp+yf42As2S8mgg/O u3qg== X-Gm-Message-State: AOAM533ayoxnJ07kz1T/CSL5Ppq1uYtVk0lWez0C5sNjLNtDLG65z1Jc T1lU3kgI9mvbNmpYwtPWLSjmlcfeWFKHEdy7 X-Google-Smtp-Source: ABdhPJz3XlYfH3PxYZj+NTvQ5dUox/K88xB8n3MFRzeZzVaz6FLsU6Q9VDPd8FjCTDcnPHXMP0fAkQ== X-Received: by 2002:a05:620a:4116:b0:6a6:fd52:19dd with SMTP id j22-20020a05620a411600b006a6fd5219ddmr15339191qko.4.1655007612652; Sat, 11 Jun 2022 21:20:12 -0700 (PDT) Received: from localhost (pool-173-73-95-180.washdc.fios.verizon.net. [173.73.95.180]) by smtp.gmail.com with UTF8SMTPSA id k4-20020a05620a414400b006a743b360bcsm3455118qko.136.2022.06.11.21.20.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 11 Jun 2022 21:20:12 -0700 (PDT) From: Sean Anderson To: u-boot@lists.denx.de, Heinrich Schuchardt Cc: Simon Glass , Sean Anderson Subject: [PATCH 12/12] doc: Add man page for dumpimage Date: Sun, 12 Jun 2022 00:19:59 -0400 Message-Id: <20220612041959.1538628-13-seanga2@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220612041959.1538628-1-seanga2@gmail.com> References: <20220612041959.1538628-1-seanga2@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean This tool seems a bit underloved. Unfortunately, it seems to be missing support for FIT images. Alas... Add a man page documenting it. The example is taken from commit a804b5ce2d ("Add dumpimage, a tool to extract data from U-Boot images"). Signed-off-by: Sean Anderson --- doc/dumpimage.1 | 103 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 doc/dumpimage.1 diff --git a/doc/dumpimage.1 b/doc/dumpimage.1 new file mode 100644 index 0000000000..021ab210b8 --- /dev/null +++ b/doc/dumpimage.1 @@ -0,0 +1,103 @@ +.TH DUMPIMAGE 1 2022-06-11 U-Boot +\" SPDX-License-Identifier: GPL-2.0 +\" Copyright (C) 2022 Sean Anderson +.SH NAME +dumpimage \- extract data from U-Boot images +. +.SH SYNOPSIS +.SY dumpimage +.OP \-T type +.BI \-l\~ image +.YS +.SY dumpimage +.OP \-T type +.OP \-p position +.BI \-o\~ outfile +.I image +.YS +.SY dumpimage +.B \-h +.YS +.SY dumpimage +.B \-V +.YS +. +.SH DESCRIPTION +.B dumpimage +lists and extracts data from U-Boot images. If +.B \-l +is specified, +.B dumpimage +lists the components in +.IR image . +Otherwise, +.B dumpimage +extracts the component at +.IR position " to " outfile . +. +.SH OPTIONS +.TP +.B \-h +Print usage information and exit. +. +.TP +.B \-l +Print the header information for +.IR image , +including a list of components. +. +.TP +.BI \-o " outfile" +The file to write the dumped component to. +.TP +.BI \-p " position" +Specify the +.I position +of the component to dump. This should be a numeric index, starting at 0. If not +specified, the default +.I position +is 0. +. +.TP +.BI \-T " type" +Specify the +.I type +of the image. If not specified, the image type will be automatically detected. A +list of supported image types may be printed by running +.BR "mkimage\~\-T\~list" . +. +.TP +.B \-V +Print version information and exit. +. +.SH BUGS +Please report bugs to the +.UR https://\:source\:.denx\:.de/\:u-boot/\:u-boot/\:issues +U-Boot bug tracker +.UE . +.SH EXAMPLES +Create a multi-file image and then extract part of that image +.PP +.EX +.in +4 +$ \c +.B mkimage \-A x86 \-O linux \-T multi \-n x86 \\\\\& +.in +4 +.B \-d vmlinuz:initrd.img:System.map multi.img +.in +Image Name: x86 +Created: Thu Jul 25 10:29:13 2013 +Image Type: Intel x86 Linux Multi-File Image (gzip compressed) +Data Size: 13722956 Bytes = 13401.32 kB = 13.09 MB +Load Address: 00000000 +Entry Point: 00000000 +Contents: + Image 0: 4040128 Bytes = 3945.44 kB = 3.85 MB + Image 1: 7991719 Bytes = 7804.41 kB = 7.62 MB + Image 2: 1691092 Bytes = 1651.46 kB = 1.61 MB +$ \c +.B dumpimage -p 2 -o System.map multi.img +.EE +.in +.SH SEE ALSO +.BR mkimage (1) -- 2.35.1