From: Tom Rini Date: Thu, 23 Feb 2023 22:32:22 +0000 (-0500) Subject: Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-tegra X-Git-Url: http://git.dujemihanovic.xyz/img/%7B%7B%20%28.OutputFormats.Get?a=commitdiff_plain;h=0024e7f72b689f8c2df731a69e20f47b6f8dc5a7;p=u-boot.git Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-tegra --- 0024e7f72b689f8c2df731a69e20f47b6f8dc5a7 diff --cc doc/usage/cmd/ebtupdate.rst index 0000000000,040cef37ec..d90474ccec mode 000000,100644..100644 --- a/doc/usage/cmd/ebtupdate.rst +++ b/doc/usage/cmd/ebtupdate.rst @@@ -1,0 -1,69 +1,69 @@@ + .. SPDX-License-Identifier: GPL-2.0+: + + ebtupdate command -============= ++================= + + Synopsis + -------- + + :: + + 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. + + 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. + + ebt + address of the bootloader pre-loaded into RAM. + + size + size of the pre-loaded bootloader. + + 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 + + Configuration + ------------- + + The ebtupdate command is only available if CONFIG_CMD_EBTUPDATE=y and + only on Tegra 2 and Tegra 3 configurations. + + Return value + ------------ + + The return value $? is set to 0 (true) if everything went successfully. If an + error occurs, the return value $? is set to 1 (false). diff --cc doc/usage/index.rst index cde7dcb14a,cde7dcb14a..840c20c934 --- a/doc/usage/index.rst +++ b/doc/usage/index.rst @@@ -41,6 -41,6 +41,7 @@@ Shell command cmd/conitrace cmd/cyclic cmd/dm ++ cmd/ebtupdate cmd/echo cmd/eficonfig cmd/env