Amit Pundir | ed3f821 | 2019-07-01 18:02:54 +0000 | [diff] [blame] | 1 | These instructions will help you flashing the prebuilt bootloader |
| 2 | and AOSP images(built from sources) on db845c. |
| 3 | |
| 4 | First, you wil need to have first built AOSP for the |
| 5 | db845c-userdebug lunch target. |
| 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 | |
| 18 | To manually enter fastboot mode: |
| 19 | -------------------------------- |
| 20 | * To manually boot the board into fastboot mode, press DOWN arrow |
| 21 | key over serial UART console when restarting the board. |
| 22 | |
| 23 | OR |
| 24 | |
| 25 | * Disconnect the power *and* USB-C cable. Flip the board over, and |
| 26 | while holding down the "VOL-" button plug in the power cable. |
| 27 | Continue holding down the "VOL-" button and tap the "ON/OFF" |
| 28 | button. The board should then boot to fastboot mode. Be sure to |
| 29 | then re-connect the USB-C cable so that you can flash the board. |
| 30 | |
| 31 | If HDMI is plugged in, you should see a text based |
| 32 | "FastBoot Mode" prompt on your screen. Or you can check by running |
| 33 | "fastboot devices" on your host which will print something like: |
| 34 | |
| 35 | $ fastboot devices |
| 36 | c4e1189c fastboot |
| 37 | |
| 38 | |
| 39 | Flash the board: |
| 40 | ---------------- |
Amit Pundir | dd5bd1b | 2020-12-22 13:46:24 +0530 | [diff] [blame^] | 41 | Once the board is in fastboot mode, you can then flash bootloader |
| 42 | binaries and AOSP images by running the following script from |
Amit Pundir | ed3f821 | 2019-07-01 18:02:54 +0000 | [diff] [blame] | 43 | device/linaro/dragonboard/installer/db845c/ directory: |
| 44 | |
Amit Pundir | dd5bd1b | 2020-12-22 13:46:24 +0530 | [diff] [blame^] | 45 | $ ./flash-all-aosp.sh |
Amit Pundir | ed3f821 | 2019-07-01 18:02:54 +0000 | [diff] [blame] | 46 | |
| 47 | |
| 48 | Troubleshooting: |
| 49 | ---------------- |
| 50 | * Make sure the USB-C cable is connected. As it has to be |
| 51 | removed to fully power the device down, it is easy to forget |
| 52 | to reconnect it! |
| 53 | |
| 54 | * If you cannot get the board into fastboot mode, or for some |
| 55 | reason the flash-all-aosp.sh script does not work, you can do |
| 56 | a full recovery flash of the board using the following |
| 57 | instructions. |
| 58 | |
| 59 | |
| 60 | Recovery: |
| 61 | -------- |
| 62 | First boot into recovery mode. After removing the power cable |
| 63 | and the USB-C cable, connect power while holding the "USB" |
| 64 | button (next to volume buttons near the USB-A ports). While |
| 65 | continuing to hold down the "USB" button, tap the "ON/OFF" |
| 66 | button. Then re-connect USB-C cable. There will be no HDMI |
| 67 | display output in recovery mode, and initially no serial output. |
| 68 | |
| 69 | Then run the recovery script from the |
| 70 | device/linaro/dragonboard/installer/db845c/ directory: |
| 71 | |
| 72 | $ ./recovery.sh |
| 73 | |
| 74 | This will do a recovery flash of the ptable and bootloader |
| 75 | binaries. After it is finished, the board will reboot. |
| 76 | |
| 77 | Depending on the state of the board, it will enter fastboot |
| 78 | or may boot to a previously installed kernel. At that point |
| 79 | you may start again from the top of this document. |