{"id":2175236,"url":"http://patchwork.ozlabs.org/api/1.0/patches/2175236/?format=json","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/1.0/projects/18/?format=json","name":"U-Boot","link_name":"uboot","list_id":"u-boot.lists.denx.de","list_email":"u-boot@lists.denx.de","web_url":null,"scm_url":null,"webscm_url":null},"msgid":"<20251217-b4-bdinfo-doc-v1-3-83bf7fdb1691@cherry.de>","date":"2025-12-17T16:23:58","name":"[3/3] doc: cmd: bdinfo: document options","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"f4b41cebced82cedd41a2e01dea47931c937f5d0","submitter":{"id":84425,"url":"http://patchwork.ozlabs.org/api/1.0/people/84425/?format=json","name":"Quentin Schulz","email":"foss+uboot@0leil.net"},"delegate":{"id":3651,"url":"http://patchwork.ozlabs.org/api/1.0/users/3651/?format=json","username":"trini","first_name":"Tom","last_name":"Rini","email":"trini@ti.com"},"mbox":"http://patchwork.ozlabs.org/project/uboot/patch/20251217-b4-bdinfo-doc-v1-3-83bf7fdb1691@cherry.de/mbox/","series":[{"id":485719,"url":"http://patchwork.ozlabs.org/api/1.0/series/485719/?format=json","date":"2025-12-17T16:23:56","name":"cmd: bdinfo: further document","version":1,"mbox":"http://patchwork.ozlabs.org/series/485719/mbox/"}],"check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2175236/checks/","tags":{},"headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=85.214.62.61; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)","phobos.denx.de;\n dmarc=none (p=none dis=none) header.from=0leil.net","phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de","phobos.denx.de;\n dmarc=none (p=none dis=none) header.from=0leil.net","phobos.denx.de;\n spf=pass smtp.mailfrom=foss+uboot@0leil.net"],"Received":["from phobos.denx.de (phobos.denx.de [85.214.62.61])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4dWfJg2WQXz1xpw\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 18 Dec 2025 03:24:35 +1100 (AEDT)","from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 4C12383BA1;\n\tWed, 17 Dec 2025 17:24:14 +0100 (CET)","by phobos.denx.de (Postfix, from userid 109)\n id 2B09A83BDD; Wed, 17 Dec 2025 17:24:13 +0100 (CET)","from smtp-42ab.mail.infomaniak.ch (smtp-42ab.mail.infomaniak.ch\n [IPv6:2001:1600:7:10::42ab])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 3FF1F83B32\n for <u-boot@lists.denx.de>; Wed, 17 Dec 2025 17:24:11 +0100 (CET)","from smtp-4-0001.mail.infomaniak.ch (smtp-4-0001.mail.infomaniak.ch\n [10.7.10.108])\n by smtp-4-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4dWfJB71g9zW4h;\n Wed, 17 Dec 2025 17:24:10 +0100 (CET)","from unknown by smtp-4-0001.mail.infomaniak.ch (Postfix) with ESMTPA\n id 4dWfJ540RJzKq7; Wed, 17 Dec 2025 17:24:05 +0100 (CET)"],"X-Spam-Checker-Version":"SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-1.9 required=5.0 tests=BAYES_00,\n RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS autolearn=ham\n autolearn_force=no version=3.4.2","From":"Quentin Schulz <foss+uboot@0leil.net>","Date":"Wed, 17 Dec 2025 17:23:58 +0100","Subject":"[PATCH 3/3] doc: cmd: bdinfo: document options","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"7bit","Message-Id":"<20251217-b4-bdinfo-doc-v1-3-83bf7fdb1691@cherry.de>","References":"<20251217-b4-bdinfo-doc-v1-0-83bf7fdb1691@cherry.de>","In-Reply-To":"<20251217-b4-bdinfo-doc-v1-0-83bf7fdb1691@cherry.de>","To":"u-boot@lists.denx.de","Cc":"Michal Simek <michal.simek@amd.com>, Tom Rini <trini@konsulko.com>,\n Heinrich Schuchardt <xypron.glpk@gmx.de>,\n Quentin Schulz <quentin.schulz@cherry.de>","X-Mailer":"b4 0.14.3","X-Infomaniak-Routing":"alpha","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.39","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<https://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>","X-Virus-Scanned":"clamav-milter 0.103.8 at phobos.denx.de","X-Virus-Status":"Clean"},"content":"From: Quentin Schulz <quentin.schulz@cherry.de>\n\nbdinfo may also have -a, -e and -m options depending on some symbols\nbeing set. Document all this and provide an example on how to use them\nand what they typically output.\n\nSigned-off-by: Quentin Schulz <quentin.schulz@cherry.de>\n---\n doc/usage/cmd/bdinfo.rst | 54 +++++++++++++++++++++++++++++++++++++++++++++++-\n 1 file changed, 53 insertions(+), 1 deletion(-)","diff":"diff --git a/doc/usage/cmd/bdinfo.rst b/doc/usage/cmd/bdinfo.rst\nindex 2a5873a400a..b0d636d4b01 100644\n--- a/doc/usage/cmd/bdinfo.rst\n+++ b/doc/usage/cmd/bdinfo.rst\n@@ -13,12 +13,22 @@ Synopsis\n ::\n \n     bdinfo\n+    bdinfo -a\n+    bdinfo -e\n+    bdinfo -m\n \n Description\n -----------\n \n The *bdinfo* command prints information about the board.\n \n+``bdinfo -a`` command is an alias of the ``bdinfo`` command and prints all\n+information about the board.\n+\n+``bdinfo -e`` command prints network-related information about the board.\n+\n+``bdinfo -m`` command prints the DRAM-related information about the board.\n+\n Example\n -------\n \n@@ -54,7 +64,44 @@ Example\n     irq_sp      = 0x000000013edbada0\n     sp start    = 0x000000013edbada0\n     Early malloc usage: 3a8 / 2000\n-    =>\n+    => bdinfo -a\n+    boot_params = 0x0000000000000000\n+    DRAM bank   = 0x0000000000000000\n+    -> start    = 0x0000000040000000\n+    -> size     = 0x0000000100000000\n+    flashstart  = 0x0000000000000000\n+    flashsize   = 0x0000000004000000\n+    flashoffset = 0x00000000000e87f8\n+    baudrate    = 115200 bps\n+    relocaddr   = 0x000000013fefb000\n+    reloc off   = 0x000000013fefb000\n+    Build       = 64-bit\n+    current eth = virtio-net#32\n+    ethaddr     = 52:52:52:52:52:52\n+    IP addr     = 10.0.2.15\n+    fdt_blob    = 0x000000013edbadb0\n+    new_fdt     = 0x000000013edbadb0\n+    fdt_size    = 0x0000000000100000\n+    lmb_dump_all:\n+     memory.cnt  = 0x1\n+     memory[0]      [0x40000000-0x13fffffff], 0x100000000 bytes flags: 0\n+     reserved.cnt  = 0x2\n+     reserved[0]    [0x13ddb3000-0x13fffffff], 0x0224d000 bytes flags: 0\n+     reserved[1]    [0x13edb6930-0x13fffffff], 0x012496d0 bytes flags: 0\n+    devicetree  = board\n+    arch_number = 0x0000000000000000\n+    TLB addr    = 0x000000013fff0000\n+    irq_sp      = 0x000000013edbada0\n+    sp start    = 0x000000013edbada0\n+    Early malloc usage: 3a8 / 2000\n+    => bdinfo -e\n+    current eth = virtio-net#32\n+    ethaddr     = 52:52:52:52:52:52\n+    IP addr     = 10.0.2.15\n+    => bdinfo -m\n+    DRAM bank   = 0x0000000000000000\n+    -> start    = 0x0000000040000000\n+    -> size     = 0x0000000100000000\n \n boot_params\n     address of the memory area for boot parameters\n@@ -121,3 +168,8 @@ Configuration\n -------------\n \n The bdinfo command is available if CONFIG_CMD_BDI=y.\n+\n+The options to bdinfo are only available if CONFIG_GETOPT=y.\n+\n+The ``-e`` option is additionally only available if CONFIG_NET=y or\n+CONFIG_NET_LWIP=y.\n","prefixes":["3/3"]}