Skip to contentSkip to conversation

doc: board: tegra: improve documentation

PATCH New Svyatoslav Ryhel 1 participant 2 messages Feb 9

lore
Share & tools
lore
#0 lore raw

cover doc: board: tegra: improve documentation

Remove redundant chapters, clarify and reword confusing sections.

Svyatoslav Ryhel (1):
doc: board: tegra: improve documentation

 doc/board/acer/picasso.rst         | 95 ++++++++++++++++++------------
 doc/board/asus/grouper.rst         | 65 ++++++++------------
 doc/board/asus/transformer_t20.rst | 64 ++++++++------------
 doc/board/asus/transformer_t30.rst | 74 +++++++++++------------
 doc/board/htc/endeavoru.rst        | 63 +++++++-------------
 doc/board/lg/star.rst              | 62 +++++++------------
 doc/board/lg/x3_t30.rst            | 62 +++++++------------
 doc/board/microsoft/surface-2.rst  |  2 +-
 doc/board/motorola/mot.rst         | 23 +++++++-
 doc/board/ouya/ouya.rst            | 64 ++++++++------------
 doc/board/samsung/n1.rst           |  3 +-
 doc/board/wexler/qc750.rst         | 54 ++++++-----------
 doc/board/xiaomi/mocha.rst         | 12 ++--
 13 files changed, 273 insertions(+), 370 deletions(-)
Signature · 1 line
2.51.0
#1 lore raw

PATCH 1/1 doc: board: tegra: improve documentation

Remove redundant chapters, clarify and reword confusing sections.

---
 doc/board/acer/picasso.rst         | 95 ++++++++++++++++++------------
 doc/board/asus/grouper.rst         | 65 ++++++++------------
 doc/board/asus/transformer_t20.rst | 64 ++++++++------------
 doc/board/asus/transformer_t30.rst | 74 +++++++++++------------
 doc/board/htc/endeavoru.rst        | 63 +++++++-------------
 doc/board/lg/star.rst              | 62 +++++++------------
 doc/board/lg/x3_t30.rst            | 62 +++++++------------
 doc/board/microsoft/surface-2.rst  |  2 +-
 doc/board/motorola/mot.rst         | 23 +++++++-
 doc/board/ouya/ouya.rst            | 64 ++++++++------------
 doc/board/samsung/n1.rst           |  3 +-
 doc/board/wexler/qc750.rst         | 54 ++++++-----------
 doc/board/xiaomi/mocha.rst         | 12 ++--
 13 files changed, 273 insertions(+), 370 deletions(-)
doc/board/acer/picasso.rst +56 -39
index b1d360defd8..97380b5f045 100644
@@ -5,7 +5,8 @@ U-Boot for the Acer Iconia Tab A500
 
 ``DISCLAMER!`` Moving your Acer Iconia Tab A500 to use U-Boot assumes
 replacement of the vendor Acer bootloader. Vendor Android firmwares will no
-longer be able to run on the device. This replacement IS reversible.
+longer be able to run on the device. This replacement IS reversible if you have
+backups.
 
 Quick Start
 -----------
@@ -13,6 +14,7 @@ Quick Start
 - Build U-Boot
 - Process U-Boot
 - Flashing U-Boot into the eMMC
+- Flashing U-Boot into the eMMC with NvFlash
 - Boot
 - Self Upgrading
 
@@ -36,61 +38,45 @@ in re-crypt repo issues. NOT HERE!
 
 re-crypt is a tool that processes the ``u-boot-dtb-tegra.bin`` binary into form
 usable by device. This process is required only on the first installation or
-to recover the device in case of a failed update.
-
-Permanent installation can be performed either by using the nv3p protocol or by
-pre-loading just built U-Boot into RAM.
-
-Processing for the NV3P protocol
-********************************
+to recover the device in case of a failed update. You need to know your device
+individual SBK to continue.
 
 .. code-block:: bash
 
     $ git clone https://gitlab.com/grate-driver/re-crypt.git
     $ cd re-crypt # place your u-boot-dtb-tegra.bin here
-    $ ./re-crypt.py --dev a500
-
-The script will produce a ``repart-block.bin`` ready to flash.
+    $ ./re-crypt.py --dev a500 --sbk <your sbk> --split
 
-Processing for pre-loaded U-Boot
-********************************
+where SBK has next form ``0xXXXXXXXX`` ``0xXXXXXXXX`` ``0xXXXXXXXX`` ``0xXXXXXXXX``
 
-The procedure is the same, but the ``--split`` argument is used with the
-``re-crypt.py``. The script will produce ``bct.img`` and ``ebt.img`` ready
-to flash.
+The script will produce ``bct.img`` and ``ebt.img`` ready to flash.
 
 Flashing U-Boot into the eMMC
 -----------------------------
 
-``DISCLAMER!`` All questions related to NvFlash should be asked in the proper
+``DISCLAMER!`` All questions related to fusee-tools should be asked in the proper
 place. NOT HERE! Flashing U-Boot will erase all eMMC, so make a backup before!
 
-Permanent installation can be performed either by using the nv3p protocol or by
-pre-loading just built U-Boot into RAM.
+Permanent installation can be performed by pre-loading just built U-Boot into RAM.
+Bct and bootloader will end up in boot0 and boot1 partitions of eMMC.
 
-Flashing with the NV3P protocol
-*******************************
+You have to clone and prepare fusee-tools from here: https://gitlab.com/grate-driver/fusee-tools
+according to fusee-tools README to continue.
 
-Nv3p is a custom Nvidia protocol used to recover bricked devices. Devices can
-enter it either by pre-loading vendor bootloader into RAM with the nvflash.
+Bootloader preloading is performed to device in APX/RCM mode connected to host
+PC. This mode can be entered by holding ``power`` and ``volume up`` buttons on
+turned off tablet connected to the host PC. Host PC should detect APX USB
+device in ``lsusb``.
 
-With nv3p, ``repart-block.bin`` is used. It contains BCT and a bootloader in
-encrypted state in form, which can just be written RAW at the start of eMMC.
+U-Boot pre-loaded into RAM acts the same as when it was booted "cold". Currently
+U-Boot supports bootmenu entry fastboot, which allows to write a processed copy
+of U-Boot permanently into eMMC. This is how U-Boot can be preloaded using
+fusee-tools:
 
 .. code-block:: bash
 
-    $ nvflash --setbct --bct picasso.bct --configfile flash.cfg --bl bootloader.bin
-        --sbk 0xXXXXXXXX 0xXXXXXXXX 0xXXXXXXXX 0xXXXXXXXX --sync # replace with your SBK
-    $ nvflash --resume --rawdevicewrite 0 1024 repart-block.bin
-
-When flashing is done, reboot the device.
-
-Flashing with a pre-loaded U-Boot
-*********************************
-
-U-Boot pre-loaded into RAM acts the same as when it was booted "cold". Currently
-U-Boot supports bootmenu entry fastboot, which allows to write a processed copy
-of U-Boot permanently into eMMC.
+    $ ./utils/nvflash_t20 --setbct --bct ./bct/picasso.bct --configfile ./utils/flash.cfg
+        --bl u-boot-dtb-tegra.bin --sbk <your sbk> --sync
 
 While pre-loading U-Boot, hold the ``volume down`` button which will trigger
 the bootmenu. There, select ``fastboot`` using the volume and power buttons.
@@ -104,6 +90,37 @@ After, on host PC, do:
 
 Device will reboot.
 
+Flashing U-Boot into the eMMC with NvFlash
+------------------------------------------
+
+``DISCLAMER!`` All questions related to NvFlash should be asked in the proper
+place. NOT HERE! Flashing U-Boot will erase all eMMC, so make a backup before!
+
+This method is discouraged and is used only if fastboot commands from previous
+chapter failed with ``Writing '0.1' FAILED (remote: 'too large for partition')``
+error. This error means that your tablet has 512 Kb boot0/boot1 partitions which
+is too small to contain U-Boot image as the minimum boot partition size must
+me 1 MB. This situation can be workarounded but self-update will not work and
+flashing to eMMC will wipe U-Boot. This should not be a big issue since installing
+OS on microSD is a preferred method anyway.
+
+This method involves use of Nv3p. Nv3p is a custom Nvidia protocol used to
+recover bricked devices. Devices can enter it by pre-loading vendor bootloader
+into RAM with the nvflash.
+
+With Nv3p, ``repart-block.bin`` is used (produced by re-crypt without ``--split``
+key). It contains BCT and a bootloader in encrypted state in form, which can just
+be written RAW at the start of eMMC. Place your ``repart-block.bin`` and vendor
+bootloader with name ``bootloader.bin`` into fusee-tools folder and run:
+
+.. code-block:: bash
+
+    $ ./utils/nvflash_t20 --setbct --bct ./bct/picasso.bct --configfile ./utils/flash.cfg
+        --bl ./bootloader.bin --sbk <your sbk> --sync
+    $ ./utils/nvflash_t20 --resume --rawdevicewrite 0 1024 ./repart-block.bin
+
+When flashing is done, reboot the device.
+
 Boot
 ----
 
@@ -113,8 +130,8 @@ device will enter bootmenu. Bootmenu contains entries to mount MicroSD and eMMC
 as mass storage, fastboot, reboot, reboot RCM, poweroff, enter U-Boot console
 and update bootloader (check the next chapter).
 
-Flashing ``repart-block.bin`` eliminates vendor restrictions on eMMC and allows
-the user to use/partition it in any way the user desires.
+Flashing ``bct.img`` and ``ebt.img`` eliminates vendor restrictions on eMMC and
+allows the user to use/partition it in any way the user desires.
 
 Self Upgrading
 --------------
doc/board/asus/grouper.rst +23 -42

103 lines not on this page · raw message

doc/board/asus/transformer_t20.rst +25 -39

101 lines not on this page · raw message

doc/board/asus/transformer_t30.rst +34 -40

120 lines not on this page · raw message

doc/board/htc/endeavoru.rst +22 -41

100 lines not on this page · raw message

doc/board/lg/star.rst +21 -41

98 lines not on this page · raw message

doc/board/lg/x3_t30.rst +21 -41

98 lines not on this page · raw message

doc/board/microsoft/surface-2.rst +1 -1
index 8185c6f5ae4..93d9d613cdb 100644
@@ -33,7 +33,7 @@ directory with
 
 .. code-block:: bash
 
-    $ ./run_bootloader.sh -s T30 -t ./bct/surface-2.bct
+    $ ./run_bootloader.sh -s T114 -t ./bct/surface-2.bct
 
 To boot Linux, U-Boot will look for an ``extlinux.conf`` on MicroSD and then on
 eMMC. Additionally, if the Volume Down button is pressed while loading, the
doc/board/motorola/mot.rst +20 -3
index d0f89bcd357..80f85ec9dfd 100644
@@ -67,9 +67,26 @@ Flashing U-Boot into the eMMC
 ``DISCLAMER!`` All questions related to fusee-tools should be asked in the proper
 place. NOT HERE! Flashing U-Boot will erase all eMMC, so make a backup before!
 
+Permanent installation can be performed by pre-loading just built U-Boot into RAM.
+Bct and bootloader will end up in boot0 and boot1 partitions of eMMC.
+
+You have to clone and prepare fusee-tools from here: https://gitlab.com/grate-driver/fusee-tools
+according to fusee-tools README to continue.
+
+Bootloader preloading is performed to device in APX/RCM mode connected to host
+PC. For Motorola Atrix 4G (MB860) and Droid X2 (MB870) this mode can be entered
+from vendor bootloader menu and with special cable from prerequisites chapter.
+Host PC should detect APX USB device in ``lsusb``.
+
 U-Boot pre-loaded into RAM acts the same as when it was booted "cold". Currently
 U-Boot supports bootmenu entry fastboot, which allows to write a processed copy
-of U-Boot permanently into eMMC.
+of U-Boot permanently into eMMC. This is how U-Boot can be preloaded using
+fusee-tools:
+
+.. code-block:: bash
+
+    $ ./utils/nvflash_t20 --setbct --bct ./bct/olympus.bct --configfile ./utils/flash.cfg
+      --bl u-boot-dtb-tegra.bin --sbk <your sbk> --sync
 
 While pre-loading U-Boot, hold the ``volume down`` button which will trigger
 the bootmenu. There, select ``fastboot`` using the volume and power buttons.
@@ -92,8 +109,8 @@ device will enter bootmenu. Bootmenu contains entries to mount MicroSD and eMMC
 as mass storage, fastboot, reboot, reboot RCM, poweroff, enter U-Boot console
 and update bootloader (check the next chapter).
 
-Flashing ``repart-block.bin`` eliminates vendor restrictions on eMMC and allows
-the user to use/partition it in any way the user desires.
+Flashing ``bct.img`` and ``ebt.img`` eliminates vendor restrictions on eMMC and
+allows the user to use/partition it in any way the user desires.
 
 Self Upgrading
 --------------
doc/board/ouya/ouya.rst +23 -41

100 lines not on this page · raw message

doc/board/samsung/n1.rst +2 -1
index 4dbb3141774..89bd2c8d6d1 100644
@@ -5,7 +5,8 @@ U-Boot for the Samsung N1 device family
 
 ``DISCLAMER!`` Moving your Samsung Galaxy R (GT-I9103) or Samsung Captivate Glide
 (SGH-i927) to use U-Boot assumes replacement of the sboot. Vendor android firmwares
-will no longer be able to run on the device. This replacement IS reversible.
+will no longer be able to run on the device. This replacement IS reversible if you
+have backups.
 
 Quick Start
 -----------
doc/board/wexler/qc750.rst +17 -37

89 lines not on this page · raw message

doc/board/xiaomi/mocha.rst +8 -4
index 230081e3287..6339e4eb574 100644
@@ -60,11 +60,15 @@ installation or to recover the device in case of a failed update.
 
 The script will produce ``bct.img`` and ``ebt.img`` ready to flash.
 
-Permanent installation can be performed by pre-loading just built U-Boot
-into RAM via tegrarcm. While pre-loading U-Boot, hold the ``volume down``
-button which will trigger the bootmenu. There, select ``fastboot`` using
-the volume and power buttons.
+Permanent installation can be performed by pre-loading just built U-Boot into RAM.
+Bct and bootloader will end up in boot0 and boot1 partitions of eMMC.
 
+Bootloader preloading is performed to device in APX/RCM mode connected to host
+PC. This mode can be entered via testad on motherboard on turned off device
+connected to the host PC. Host PC should detect APX USB device in ``lsusb``.
+
+While pre-loading U-Boot, hold the ``volume down`` button which will trigger
+the bootmenu. There, select ``fastboot`` using the volume and power buttons.
 After, on host PC, do:
 
 .. code-block:: bash
Signature · 1 line
2.51.0