summaryrefslogtreecommitdiff
path: root/device.mk
diff options
context:
space:
mode:
authorSam Protsenko <semen.protsenko@linaro.org>2019-07-24 15:08:53 +0300
committerSam Protsenko <semen.protsenko@linaro.org>2019-12-13 19:57:50 +0200
commit5528fd0b2dc3363e3f7d75ad2dc66a4136f3f625 (patch)
tree907cbd8949558d8834f19b1505950bf072f770f3 /device.mk
parentd7725db7084eb99b5705620b0090e2776197d7e6 (diff)
downloadbeagle-x15-5528fd0b2dc3363e3f7d75ad2dc66a4136f3f625.tar.gz
Enable fastboot HAL
Enable fastboot HAL using mock implementation from hardware/interfaces/fastboot/. It's sufficient for now. Further we might need to implement TI fastboot HAL. Also select fastbootd tool to be built. All that is needed for flashing dynamic partitions from recovery boot using fastbootd. Testing: 1. Issue "adb reboot recovery" command on host 2. Be sure the device is unlocked in bootloader (see below) 3. Select "Enter Fastboot" menu item 4. Issue "fastboot flash system_a system.img" command on host 5. System partition must be flashed successfully In order to check if device is unlocked, one can run next command on device's serial console when in recovery mode: $ cat /proc/cmdline | tr ' ' '\n' "androidboot.verifiedbootstate=orange" cmdline parameter must be set. Otherwise "fastboot flash" command won't work with next error message: 'Download is not allowed on locked devices' Right now the device is always locked in U-Boot (should be fixed in future). Next change can be used to hard-code the unlocked state: cmd/avb.c: ---------- - extra_args = avb_set_state(avb_ops, AVB_GREEN); + extra_args = avb_set_state(avb_ops, AVB_ORANGE); Change-Id: I6e1a21c8359aef2c0576a61f8dd48778b0a55024 Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Diffstat (limited to 'device.mk')
-rw-r--r--device.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/device.mk b/device.mk
index 8e61bc1..6e56ea4 100644
--- a/device.mk
+++ b/device.mk
@@ -70,6 +70,8 @@ PRODUCT_PACKAGES += \
android.hardware.graphics.composer@2.1-service \
android.hardware.boot@1.0-impl:64 \
android.hardware.boot@1.0-service \
+ android.hardware.fastboot@1.0 \
+ android.hardware.fastboot@1.0-impl-mock \
libdrm \
libdrm_omap \
hwcomposer.am57x \
@@ -175,3 +177,4 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES_DEBUG += \
bootctl \
+ fastbootd \