From: Svyatoslav Ryhel <clamor95@gmail.com>
To: "Svyatoslav Ryhel" <clamor95@gmail.com>,
"Thierry Reding" <treding@nvidia.com>,
"Tom Rini" <trini@konsulko.com>,
"Ilias Apalodimas" <ilias.apalodimas@linaro.org>,
"Jonas Schwöbel" <jonasschwoebel@yahoo.de>,
"Ion Agorria" <ion@agorria.com>,
"Peter Geis" <pgwipeout@gmail.com>,
"Mattijs Korpershoek" <mkorpershoek@kernel.org>,
"Guillaume La Roque" <glaroque@baylibre.com>
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 [thread overview]
Message-ID: <20261205100545.106967-10-clamor95@gmail.com> (raw)
In-Reply-To: <20261205100545.106967-1-clamor95@gmail.com>
From: Ion Agorria <ion@agorria.com>
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 <ion@agorria.com>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
---
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 [<bct_addr>] [<bct_size>]
+
+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 [<bct> [<ebt>] [<size>]]
+ ebtupdate [<ebt_addr>] [<ebt_size>]
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
prev parent reply other threads:[~2026-12-05 10:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-05 10:05 [PATCH v2 0/9] ARM: tegra: Add custom fastboot flash handler Svyatoslav Ryhel
2026-12-05 10:05 ` [PATCH v2 1/9] fastboot: Add board_fastboot_flash/erase/get_part_info hooks Svyatoslav Ryhel
2026-12-05 10:05 ` [PATCH v2 2/9] ARM: tegra: Refactor BCT patching process Svyatoslav Ryhel
2026-12-05 10:05 ` [PATCH v2 3/9] ARM: tegra: Add custom fastboot flash handler Svyatoslav Ryhel
2026-12-05 10:05 ` [PATCH v2 4/9] configs: tegra: Enable TEGRA_FASTBOOT_FLASH option Svyatoslav Ryhel
2026-12-05 10:05 ` [PATCH v2 5/9] crypto: tegra_aes: Add support for Tegra124 Svyatoslav Ryhel
2026-12-05 10:05 ` [PATCH v2 6/9] ARM: tegra124: Add AES engine node and enable it for Mi Pad Svyatoslav Ryhel
2026-12-05 10:05 ` [PATCH v2 7/9] ARM: tegra: n1: Add bsev node Svyatoslav Ryhel
2026-12-05 10:05 ` [PATCH v2 8/9] board: tegra: Update ebtupdate usage Svyatoslav Ryhel
2026-12-05 10:05 ` Svyatoslav Ryhel [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261205100545.106967-10-clamor95@gmail.com \
--to=clamor95@gmail.com \
--cc=glaroque@baylibre.com \
--cc=ilias.apalodimas@linaro.org \
--cc=ion@agorria.com \
--cc=jonasschwoebel@yahoo.de \
--cc=mkorpershoek@kernel.org \
--cc=pgwipeout@gmail.com \
--cc=treding@nvidia.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.