x3_t30.rst 2.9 KB

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