diff options
author | John Stultz <john.stultz@linaro.org> | 2020-01-14 00:10:06 +0000 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2020-01-14 00:50:59 +0000 |
commit | f36354e97f79eb8f53c70b654c38f2ce7dcc3fb5 (patch) | |
tree | afff93644b9809ce45c5e704daf4261ed4a014f5 /installer | |
parent | 0cc0a3bb8a1c415f0be7764533b2a379f71b1fec (diff) |
db845c: Update userland build to use dragonboard-kernel project and build boot.img
This patch updates the userland build to built a boot.img
from prebuilt kernel/modules in the dragonboard-kernel project.
At the moment, there is nothing in the dragonboard-kernel
project, but once we do add the prebuilt files, we'll want
this change.
Change-Id: I6b9ce745c378ea50e176e9c8ed67336953766fa2
Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'installer')
-rwxr-xr-x | installer/db845c/flash-all-aosp.sh | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/installer/db845c/flash-all-aosp.sh b/installer/db845c/flash-all-aosp.sh index 57391f8..575870f 100755 --- a/installer/db845c/flash-all-aosp.sh +++ b/installer/db845c/flash-all-aosp.sh @@ -36,31 +36,11 @@ fastboot reboot bootloader # Slot _a is already marked as active by bootloader but just in case.. echo "FLASH-ALL-AOSP: Mark _a slot as active" fastboot set_active a +echo "FLASH-ALL-AOSP: Flash boot img" +fastboot flash boot "${ANDROID_PRODUCT_OUT}"/boot.img echo "FLASH-ALL-AOSP: Flash super/dynamic image" fastboot flash super "${ANDROID_PRODUCT_OUT}"/super.img echo "FLASH-ALL-AOSP: Flash userdata image" fastboot flash userdata "${ANDROID_PRODUCT_OUT}"/userdata.img -if [ "$1" != "" ]; then - if [ "$2" = "" ]; then - echo "FLASH-ALL-AOSP: Trying to build boot.img? Pass corresponding dtb as well" - echo " Usage: flash-all-aosp.sh Image.gz sdm845-db845c.dtb" - exit - fi - ANDROID_BUILD_TOP=${INSTALLER_DIR}/../../../../../ - ANDROID_OUT_HOST_BIN="${ANDROID_BUILD_TOP}/out/host/linux-x86/bin" - - if [ ! -d "${ANDROID_OUT_HOST_BIN}" ]; then - echo "FLASH-ALL-AOSP: error in locating out/host/ directory for mkbootimg, check if it exist" - echo "FLASH-ALL-AOSP: can't build boot image with user provided kernel image and dtb" - exit - fi - - echo "FLASH-ALL-AOSP: Building boot image with user provided ${1} kernel image and ${2} dtb" - ${ANDROID_OUT_HOST_BIN}/mkbootimg --kernel ${1} --dtb ${2} --ramdisk ${ANDROID_PRODUCT_OUT}/ramdisk.img --header_version 2 --base 0x80000000 --pagesize 2048 --cmdline "firmware_class.path=/vendor/firmware/ androidboot.hardware=db845c init=/init androidboot.boot_devices=soc/1d84000.ufshc printk.devkmsg=on buildvariant=userdebug" --output ${ANDROID_PRODUCT_OUT}/boot.img - - echo "FLASH-ALL-AOSP: Flash boot image" - fastboot flash boot ${ANDROID_PRODUCT_OUT}/boot.img - fastboot reboot -fi |