From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 14869606A33C for ; Sat, 5 Dec 2026 10:07:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.u-boot-project.org header.i=@lists.u-boot-project.org header.a=rsa-sha256 header.s=default header.b=lmOoqNNg; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=K8RuTZek Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id CD22460B34; Sat, 5 Dec 2026 10:07:04 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id cLFa3-xa3RXT; Sat, 5 Dec 2026 10:07:02 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp3.osuosl.org 549AB60A6C Authentication-Results: smtp3.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 ARC-Seal: i=1; d=osuosl.org; s=arc; a=rsa-sha256; cv=none; t=1796465207; b=cEuVw/tqZ8E5nrF6Uzx2fnhOK40kauELnjyVPVmBWth9NKmN1tQC3TCEwnNWILZ9K2Ow 0bDfI76q3CAJzHuPpO7bqR0ohsRxCna5EdJJAB4wriqxXc4yOEKGiKzM2RdRtpgY9u50K MwBlmbKO9x12NfieRfV37lPWDF1ZMTnTfdTw5tyy2ZUdNT1/xJLUYZCViYh53JHFPFHvW 7/UJxTNNeTClC3jr/F4SiK9TmdAE4l5NwvrvmpdH2hkP3iDDqvv1u+pG/45vApFSDUsMt 6iOeFDok3YFH3oQwi5/k7KTbmQXw8tPLZ2s/+FRtkg3yDsUpPRdLoUgLtwkwg15OnpQ== ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1796465207; h=X-Comment:DKIM-Signature:X-Original-To:Delivered-To:Received: Received:X-Virus-Scanned:X-Spam-Flag:X-Spam-Score:X-Spam-Level: X-Spam-Status:Received:ARC-Filter:X-Comment:Received:Received: Received:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject: Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:X-Virus-Scanned:X-Virus-Status:X-BeenThere: X-Mailman-Version:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:Errors-To; bh=adLCLfe2jbPGlYY9i7odgC9kZAwmZC51orsvx+g9Bcc=; b=TrXQyFf4j8aL0JJ33yvVaIjJpdJKOICZE0puH+JN+LhNlJzuBQWlTr1OeBc83227oeYb 6a8pj3IpcoOeeVxzqB0UtJxdDhJb9QGkPA2D3XH0fqd5WjqaAI6aNrzTcE3gb6fRiBqUk PlivI8B5XgHFIirhmwGlU5koDJKqsBPnnby0DyOnd6Hzshp7SfyykAVK/MmAIEwTvmkep m/HyRUpDBGuMKdFIwKOxjcZ8hYMED03ctgIeYC01NVg2Tmt2BBPGE2jF9bSrPRLwgRXGI F5514IriDU4Prw2t/JnUkRnpW6l9VqBWj3uTYj1Ex5bLb8s+KxSrkASKoUIRW1ZbQ/g== ARC-Authentication-Results: i=1; smtp3.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=u-boot-bounces@lists.u-boot-project.org; receiver= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.u-boot-project.org; s=default; t=1796465207; bh=adLCLfe2jbPGlYY9i7odgC9kZAwmZC51orsvx+g9Bcc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=lmOoqNNgwrV5LLyr0T736LjmnAXUElO9ZSrJpreEcdfgX8ZhS7reahzhmXsUBrJPw R8cK2baY6T+t4/0Yx2M8GEkk6Hrkvz+93mujRQ7Nn/qKd9msEwUQv4zbQJfTpq6wcD KBzMw38fHEhtygDi7dQP8dgzOXE+VE/gLKYGi0TOcH/KCwo8CqOF5U4gNr7EjoMBgN ynnvTas33CsqChvmZDhNcXRpYEGKSBvwOPxD4RRCE2SygHCLHB+xOEis6mlOyiALqu N5qANRERvxZ5KM2qVGX65wQLb5Ow5xGmA0BdL84F1qe4JjQngj6ob8hEsqHH9xWHQz TDh76EaS1hq+Q== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp3.osuosl.org (Postfix) with ESMTP id 549AB60A6C; Sat, 5 Dec 2026 10:06:47 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists1.osuosl.org (Postfix) with ESMTP id 54EBAA0E for ; Sat, 5 Dec 2026 10:06:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 3697D81116 for ; Sat, 5 Dec 2026 10:06:36 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id H1aVKbCQE_0q for ; Sat, 5 Dec 2026 10:06:35 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp1.osuosl.org 1D5DB80C7A Authentication-Results: smtp1.osuosl.org; arc=none smtp.remote-ip="2a01:238:438b:c500:173d:9f52:ddab:ee01" X-Comment: SPF check N/A for local connections - client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=clamor95@gmail.com; receiver= Authentication-Results: smtp1.osuosl.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp1.osuosl.org; spf=fail smtp.mailfrom=gmail.com Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=K8RuTZek Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) by smtp1.osuosl.org (Postfix) with ESMTPS id 1D5DB80C7A for ; Sat, 5 Dec 2026 10:06:34 +0000 (UTC) Received: by phobos.denx.de (Postfix, from userid 109) id 5A2BB83B4B; Sat, 5 Dec 2026 11:06:33 +0100 (CET) Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) (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 5AA97847E3 for ; Sat, 5 Dec 2026 11:06:26 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=clamor95@gmail.com Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-c505b2e1cb9so269261766b.2 for ; Sat, 05 Dec 2026 02:06:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796465186; x=1797069986; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=adLCLfe2jbPGlYY9i7odgC9kZAwmZC51orsvx+g9Bcc=; b=K8RuTZeku9/gXOiHvffZoCsSlmU7G6bIEZAoFzeAGuJT97t6I6ITbX7H4h1nSZztzJ bgdTJeBspW3u7dklM+puLtct4nO3IpXc8vL5TsIabWc1qgPdDiKT4V/jqvKJmf7ceJ70 o9veR0bdTQfVecyHhDQPTEbkGrCrd36sgDmbqkfx9zEY5VyLBRQ8BqXYActfsMf3LaXr t95TDyJ502RT/N5JqAjXSwOG0SptPdJ7bn515tZgfLCRnGmXMai8T+upHuIWOwc2VS3Z ynVWGUKeYvmwmjpTuFrVJ0O6ECQ/R0OmJJUEITsykDcoskQrGTwGEdzme5pNrPstay3J OmDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796465186; x=1797069986; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=adLCLfe2jbPGlYY9i7odgC9kZAwmZC51orsvx+g9Bcc=; b=g8aXdYTS5mCGI3rbOmuM0tBTJ4mxXt24tkVFUR82OCHaUb8akL9Tjx3ijut5qISwqS gJsl11D4a4aIl+OIAc058l4FPUIdHUUBKuTCfsQfzllS5Szi1QP6VXC+G1BQVYbLGUlO 04tgEKK8VmZ1+EN3+1CsYNUhaPxNV2BENf4+GG+qYlOmXFihj6xZ6A2ZdEP9MuhzM7kC 564rfO/gSdaXmriEE8mmqGPKgIN0PRJXsO7ngMAFIg1tga7KzXnoZH6/Vn5Uo1d6s5p8 HDv9yYYcIReXFNuMfxmgeY5XkU7FGypAlmI3/VrMxZ6odLEbmjyKfI3egky1+xoDO89Y JJkw== X-Gm-Message-State: AB4q+uEhcpw0lst2lEhUh5lWioeaAlG3cjNPGA7pi51Ur5sfcG1KHxG7 iA3NXfkZWbQnOtapF+e6++HzdB/5L5lZAW4LuxLTZWQzTREck/x5iNgP X-Gm-Gg: AZFdTZcbnPT4KmFwJEmI0zZaKo6c8eaEyRO5n0S959RhUFcerYEsO/QGFPWqn71ukqu cXrFFU90XpqekO0Tn/b8WLut776tIiy8Iab2OLsNhGa53wGjt0UCWv8GZNTzujIV+V6BQxcgUwM SsehK8/fcUphQhng/2gdEwkpaxXSSuJFRKSHCicp2B4GZypxbha5UNgNxPniLY9ewlzJO9zg80Y bNn4BQsDiIZtDjz2cketCyhLyKrDZoon3N6sgQakCfTRj+rJ0RTjfwTE3F7qggHFvJaTKBL3YPb bmI7z/7+95+AG/1Ca3INdKKSZHlmCa7XHQKU+5NFS07sb9NyuPHFDEFzG4D9lv17QSHZDq5A+Hq UbMwwujRUDpuhYhXjcarUgUMn5mTdifKz1KQIqZbgDaFZ+vu5znLbNhZqO309r9RX5yNqTgSP4q l+y0vHl5cTPoOCUJ+5wapLs7SLpuG7fqWxa6dGiGE8U0fCEZ3PlUvG3dtvnVSpjB6B1fhu8YpQa 6jh6U2/OqxshloudnCqQQoLPWwJDrxz/6Iuute3jv7sjZThWzl+5RNAs0bqDI00XQLKnvs5Lagu p7dNtcSYNvGsEh5+GCU/wyUppbOVZDO8sPEAXbgnp/wSbEIYFp/H5TYswLqsdFRC8d9jvAG3/Iy S4vV7El/reA== X-Received: by 2002:a17:906:ce50:b0:c54:17e2:e535 with SMTP id a640c23a62f3a-c5417e2e82bmr70162666b.35.1796465185636; Sat, 05 Dec 2026 02:06:25 -0800 (PST) Received: from xeon ([188.163.112.54]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c525b64dd0dsm231759366b.83.2026.12.05.02.06.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Dec 2026 02:06:25 -0800 (PST) From: Svyatoslav Ryhel To: Svyatoslav Ryhel , Thierry Reding , Tom Rini , Ilias Apalodimas , =?UTF-8?q?Jonas=20Schw=C3=B6bel?= , Ion Agorria , Peter Geis , Mattijs Korpershoek , Guillaume La Roque Cc: u-boot@lists.denx.de Subject: [PATCH v2 9/9] doc: cmd: Update ebtupdate description and document bctupdate command Date: Sat, 5 Dec 2026 12:05:45 +0200 Message-ID: <20261205100545.106967-10-clamor95@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261205100545.106967-1-clamor95@gmail.com> References: <20261205100545.106967-1-clamor95@gmail.com> X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean X-BeenThere: u-boot@lists.u-boot-project.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: U-Boot discussion List-Archive: List-Post: List-Help: List-Subscribe: , X-Spam-Status: No, score=-16.1 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_FAIL,SPF_HELO_NONE, USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 From: Ion Agorria Change docs to reflect the current args and add bctupdate command docs which is practically the same only for BCT instead of bootloader. Signed-off-by: Ion Agorria Signed-off-by: Svyatoslav Ryhel --- doc/usage/cmd/bctupdate.rst | 45 +++++++++++++++++++++++++++++++++++++ doc/usage/cmd/ebtupdate.rst | 41 +++++++++------------------------ 2 files changed, 55 insertions(+), 31 deletions(-) create mode 100644 doc/usage/cmd/bctupdate.rst diff --git a/doc/usage/cmd/bctupdate.rst b/doc/usage/cmd/bctupdate.rst new file mode 100644 index 00000000000..4556b8dd361 --- /dev/null +++ b/doc/usage/cmd/bctupdate.rst @@ -0,0 +1,45 @@ +.. SPDX-License-Identifier: GPL-2.0+: + +.. index:: + single: bctupdate (command) + +bctupdate command +================= + +Synopsis +-------- + +:: + + bctupdate [] [] + +Description +----------- + +The "bctupdate" command is used to self-update bootloader on Tegra 2 and Tegra 3 +production devices. + +The "bctupdate" performs encryption of new bootloader, loads existing BCT to +decrypt, patch and re-encrypt. After BCT and bootloader are written in +their respective places in the boot device. + +bct + address of the plaintext BCT pre-loaded into RAM. + +size + size of the pre-loaded bootloader. + +Example +------- + +:: + + load mmc 1:1 ${kernel_addr_r} ${bootloader_file}; + size mmc 1:1 ${bootloader_file}; + bctupdate ${kernel_addr_r} ${filesize}; + +Configuration +------------- + +The bctupdate command is only available if CONFIG_CMD_EBTUPDATE=y and +only on supported Tegra configurations. diff --git a/doc/usage/cmd/ebtupdate.rst b/doc/usage/cmd/ebtupdate.rst index 5102e6090a4..d1cd82614fa 100644 --- a/doc/usage/cmd/ebtupdate.rst +++ b/doc/usage/cmd/ebtupdate.rst @@ -11,23 +11,20 @@ Synopsis :: - ebtupdate [ [] []] + ebtupdate [] [] Description ----------- The "ebtupdate" command is used to self-update bootloader on Tegra 2 and Tegra 3 -production devices which were processed using re-cryption. +production devices. -The "ebtupdate" performs encryption of new bootloader and decryption, patching -and re-encryption of BCT "in situ". After BCT and bootloader can be written in -their respective places. - -bct - address of BCT block pre-loaded into RAM. +The "ebtupdate" performs encryption of new bootloader, loads existing BCT to +decrypt, patch and re-encrypt. After BCT and bootloader are written in +their respective places in the boot device. ebt - address of the bootloader pre-loaded into RAM. + address of the plaintext bootloader pre-loaded into RAM. size size of the pre-loaded bootloader. @@ -35,32 +32,14 @@ size Example ------- -This is the boot log of a LG Optimus Vu: - :: - => mmc dev 0 1 - switch to partitions #1, OK - mmc0(part 1) is current device - => mmc read $kernel_addr_r 0 $boot_block_size - MMC read: dev # 0, block # 0, count 4096 ... 4096 blocks read: OK - => load mmc 0:1 $ramdisk_addr_r $bootloader_file - 684783 bytes read in 44 ms (14.8 MiB/s) - => size mmc 0:1 $bootloader_file - => ebtupdate $kernel_addr_r $ramdisk_addr_r $filesize - => mmc dev 0 1 - switch to partitions #1, OK - mmc0(part 1) is current device - => mmc write $kernel_addr_r 0 $boot_block_size - MMC write: dev # 0, block # 0, count 4096 ... 4096 blocks written: OK - => mmc dev 0 2 - switch to partitions #2, OK - mmc0(part 2) is current device - => mmc write $ramdisk_addr_r 0 $boot_block_size - MMC write: dev # 0, block # 0, count 4096 ... 4096 blocks written: OK + load mmc 1:1 ${kernel_addr_r} ${bootloader_file}; + size mmc 1:1 ${bootloader_file}; + ebtupdate ${kernel_addr_r} ${filesize}; Configuration ------------- The ebtupdate command is only available if CONFIG_CMD_EBTUPDATE=y and -only on Tegra 2 and Tegra 3 configurations. +only on supported Tegra configurations. -- 2.53.0