Skip to content

Commit 82cbcff

Browse files
committed
build: expand section about development images
This documents the fastboot flashall command Aswell as the safe method to flash the bootloader
1 parent 53c604e commit 82cbcff

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

static/build.html

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,36 @@ <h3><a href="#faster-builds-for-development-use-only">Faster builds for developm
516516
signing the build with release keys would be testing that functionality and it makes a
517517
lot more sense to test it with proper signing keys rather than the default public test
518518
keys.</p>
519+
520+
<p><i>NOTE: The fastboot commands used here expect that you are running them in a shell where <i>source build/envsetup.sh</i> has been executed in.</i></p>
521+
522+
<p><i>You may also set the ANDROID_PRODUCT_OUT enviornment variable manually.</i></p>
523+
524+
<p>To flash those images:</p>
525+
526+
<pre>fastboot flashall</pre>
527+
528+
<p>When the firmware for your device gets updated, it may be necesarry to update both the radio (modem firmware) and bootloader partitions.</p>
529+
530+
<p>To do so safely, use the below script <i>(NOTE: the commands are repeated on purpose):</i></p>
531+
532+
<p>This uses the same logic as the install image, to ensure not bricking your device.</p>
533+
534+
<pre>
535+
fastboot flash --slot=other bootloader
536+
fastboot --set-active=other
537+
fastboot reboot-bootloader
538+
539+
fastboot flash --slot=other bootloader
540+
fastboot --set-active=other
541+
fastboot reboot-bootloader
542+
543+
fastboot snapshot-update cancel
544+
545+
fastboot flash radio --slot=other
546+
fastboot flash radio
547+
fastboot reboot-bootloader
548+
</pre>
519549
</section>
520550

521551
<section id="generating-release-signing-keys">

0 commit comments

Comments
 (0)