endeavoru.rst 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. .. SPDX-License-Identifier: GPL-2.0+
  2. U-Boot for the HTC One X (endeavoru)
  3. ====================================
  4. ``DISCLAMER!`` Moving your HTC ONe X to use U-Boot assumes
  5. replacement of the vendor hboot. Vendor android firmwares
  6. will no longer be able to run on the device.
  7. This replacement IS reversible.
  8. Quick Start
  9. -----------
  10. - Build U-Boot
  11. - Pack U-Boot into repart-block
  12. - Flash repart-block into the eMMC
  13. - Boot
  14. - Self Upgrading
  15. Build U-Boot
  16. ------------
  17. .. code-block:: bash
  18. $ export CROSS_COMPILE=arm-linux-gnueabi-
  19. $ make endeavoru_defconfig
  20. $ make
  21. After the build succeeds, you will obtain the final ``u-boot-dtb-tegra.bin``
  22. image, ready for flashing (but check the next section for additional
  23. adjustments).
  24. Pack U-Boot into repar-block
  25. ----------------------------
  26. ``DISCLAMER!`` All questions related to re-crypt work should be
  27. asked in re-crypt repo issues. NOT HERE!
  28. re-crypt is a small script which packs ``u-boot-dtb-tegra.bin`` in
  29. form usable by device. This process is required only on the first
  30. installation or to recover the device in case of a failed update.
  31. .. code-block:: bash
  32. $ git clone https://github.com/clamor-s/re-crypt.git
  33. $ cd re-crypt # place your u-boot-dtb-regra.bin here
  34. $ ./re-crypt.sh -d endeavoru
  35. Script will produce you a ``repart-block.bin`` ready to flash.
  36. Flash repart-block into the eMMC
  37. --------------------------------
  38. ``DISCLAMER!`` All questions related to NvFlash should be asked
  39. in the proper place. NOT HERE! Flashing repart-block will erase
  40. all your eMMC, so make a backup before!
  41. ``repart-block.bin`` contains BCT and bootloader in encrypted state
  42. in form which can just be written RAW at the start of eMMC.
  43. .. code-block:: bash
  44. $ wheelie --blob blob.bin
  45. $ nvflash --resume --rawdevicewrite 0 1024 repart-block.bin
  46. Boot
  47. ----
  48. After flashing ``repart-block.bin`` the device should reboot and turn
  49. itself off. This is normal behavior if no boot configuration is
  50. found.
  51. To boot Linux, U-Boot will look for an ``extlinux.conf`` configuration
  52. on eMMC. Additionally if Volume Down button is pressed while booting
  53. device will enter bootmenu. Bootmenu contains entries to mount eMMC as
  54. mass storage, fastboot, reboot, reboot RCM, poweroff, enter U-Boot
  55. console and update bootloader (check next chapter).
  56. Flashing ``repart-block.bin`` eliminates vendor restriction on eMMC
  57. and allows the user to use/partition it in any way the user desires.
  58. Self Upgrading
  59. --------------
  60. Place your ``u-boot-dtb-tegra.bin`` on the first partition of the
  61. eMMC (using ability of u-boot to mount it). Enter bootmenu, choose
  62. update bootloader option with Power button and U-Boot should update
  63. itself. Once the process is completed, U-Boot will ask to press any
  64. button to reboot.