AOSP on DragonBoard 845c

Getting started with db845c

Learn about your DragonBoard 845c board as well as how to prepare and set up for basic use from 96boards db845c getting started page

Make sure you are running AOSP (ptable compatible) bootloader on db845c. Latest bootloader binaries (build #26 and above) are hosted at

For flashing instructions checkout 96boards db845c board recovery page


You can also update bootloader binaries by running flashall script, which is part of installer package of db845c AOSP build target. Boot in fastboot mode and run following command from your HOST machine:

   1 git clone
   2 cd dragonboard/installer/db845c/dragonboard-845c-bootloader-ufs-aosp/
   3 ./flashall

Install pre-built AOSP images on db845c

Linaro create daily userspace only AOSP build for db845c that user can download, flash and boot from. If you are interested in prebuilt AOSP images for db845c and want to avoid compiling your own, feel free to download ramdisk.img, super.img and userdata.img from

Flash downloaded AOSP images by running following commands, while booted in fastboot mode:

   1 fastboot flash userdata userdata.img
   2 fastboot flash super super.img
   3 fastboot flash boot boot.img

Compile AOSP from sources for db845c

1. Download the AOSP source tree and build db845c-userdebug build target:

   1 repo init -u -b master
   2 repo sync -j8
   3 source ./build/
   4 lunch db845c-userdebug
   5 make -j16

2. Install:

Boot db845c into fastboot mode by following and run following command:

   1 ./device/linaro/dragonboard/installer/db845c/

You can also perform QDL board recovery by running following script after booting db845c in USB flashing mode

   1 ./device/linaro/dragonboard/installer/db845c/

Building the kernel for db845c

The Preferred option is to build Dragonboard db845c Android GKI kernel artifacts using repo build. Run following commands to clone the kernel source, prebuilt Android toolchains and build scripts.

   1 mkdir repo-db845c
   2 cd repo-db845c
   3 repo init -u -b common-android-mainline
   4 repo sync -j8 -c
   5 rm -rf out/*
   6 rm build.config
   7 ln -s common/build.config.db845c build.config
   8 ./build/

Now delete all the objects in $(AOSP_TOPDIR)device/linaro/dragonboard-kernel/android-mainline/ then copy build artifacts from out/android-mainline/dist/ to $(AOSP_TOPDIR)/device/linaro/dragonboard-kernel/android-mainline/

If you want to properly test the GKI kernel, you should grab the latest kernel_aarch64 build here:

and under artifacts, download the Image.gz and copy it to $(AOSP_TOPDIR)/device/linaro/dragonboard-kernel/android-mainline/

Then rebuild AOSP using:

   1 make TARGET_KERNEL_USE=mainline -j16'

ToDo / Known Issues

  • Kernel patches to get Analog audio working on AOSP will land in android-mainline for review post v5.8-rc1
  • HDMI audio is work in progress

Need some help?

In addition to this wiki, we use various mailing lists, IRC, and to communicate.

You can use the web or your favourite IRC client.

AOSP/db845c (last modified 2020-06-13 04:37:59)