Amit Pundir | e4ca84a | 2021-05-26 14:30:57 +0530 | [diff] [blame] | 1 | These instructions will help you flashing the prebuilt bootloader |
| 2 | and AOSP images(built from sources) on rb5. |
| 3 | |
| 4 | First, make sure you have built the AOSP images for RB5 by |
Amit Pundir | 2505ddf | 2024-03-29 11:54:48 +0530 | [diff] [blame^] | 5 | running the db845c-trunk_staging-userdebug lunch target. |
Amit Pundir | e4ca84a | 2021-05-26 14:30:57 +0530 | [diff] [blame] | 6 | |
| 7 | |
| 8 | Boot the board into fastboot mode: |
| 9 | ---------------------------------- |
| 10 | The easiest way to boot into fastboot mode is to run something |
| 11 | like "adb reboot bootloader" from the host, or |
| 12 | "reboot bootloader" on the device. However, this |
| 13 | functionality may depend on the software installed on the board |
| 14 | to work, so you may need to manually enter fastboot mode as |
| 15 | follows. |
| 16 | |
| 17 | To manually enter fastboot mode: |
| 18 | -------------------------------- |
| 19 | * To manually boot the board into fastboot mode, press DOWN arrow |
| 20 | key over serial UART console when restarting the board. |
| 21 | |
| 22 | OR |
| 23 | |
| 24 | * Follow the instructions here |
| 25 | https://www.96boards.org/documentation/consumer/dragonboard/qualcomm-robotics-rb5/installation/board-recovery.md.html#booting-into-fastboot |
| 26 | |
| 27 | |
| 28 | Flash the board: |
| 29 | ---------------- |
| 30 | Once the board is in fastboot mode, you can then flash bootloader |
| 31 | binaries and AOSP images by running the following script from |
| 32 | device/linaro/dragonboard/installer/rb5/ directory: |
| 33 | |
| 34 | $ ./flash-all-aosp.sh |
| 35 | |
| 36 | |
| 37 | Troubleshooting: |
| 38 | ---------------- |
| 39 | * If you have flashed AOSP images and you can see the boot logs |
| 40 | on Serial prompt but no UI then try updating the lt9611uxc |
| 41 | firmware version. Factory shipped RB5 has an older version of |
| 42 | lt9611uxc firmware flashed on it and it is incompatible with |
| 43 | upstream kernel. Try updating the firmware version by running |
| 44 | the following adb shell commands: |
| 45 | |
| 46 | $ adb wait-for-device; adb root; adb shell "echo 1 > /sys/bus/i2c/devices/5-002b/lt9611uxc_firmware" |
| 47 | |
| 48 | * Make sure the USB-C cable is connected. As it has to be |
| 49 | removed to fully power the device down, it is easy to forget |
| 50 | to reconnect it! |
| 51 | |
| 52 | * If you cannot get the board into fastboot mode, or for some |
| 53 | reason the flash-all-aosp.sh script does not work, you can do |
| 54 | a full recovery flash of the board using the following |
| 55 | instructions. |
| 56 | |
| 57 | |
| 58 | Recovery: |
| 59 | -------- |
| 60 | First boot into recovery mode by follwing the recovery |
| 61 | instructions from here: |
| 62 | https://www.96boards.org/documentation/consumer/dragonboard/qualcomm-robotics-rb5/installation/board-recovery.md.html |
| 63 | |
| 64 | Then run the recovery script from the |
| 65 | device/linaro/dragonboard/installer/rb5/ directory: |
| 66 | |
| 67 | $ ./recovery.sh |
| 68 | |
| 69 | This will do a recovery flash of the ptable and bootloader |
| 70 | binaries. |