how to build aosp(android 11)with asan

188 views
Skip to first unread message

Wu Chen

unread,
Feb 19, 2021, 10:38:35 AM2/19/21
to Android Building
Hi all,

I'm trying to boot the pixel3 xl with asan build, logs and steps I followed are:

1) Download the source code

$ repo init -u https://android.googlesource.com/platform/manifest -b android-10.0.0_r15
$ repo sync

2) Build 

$ source build/envsetup.sh
$ lunch aosp_crosshatch-eng
$ make -j42
$ SANITIZE_TARGET=address make -j42

3) Flash to pixel3xl

$ fastboot flash userdata && fastboot flashall
Sending 'userdata' (17208 KB)                      OKAY [  0.610s]
Writing 'userdata'                                 OKAY [  0.366s]
Finished. Total time: 1.111s
--------------------------------------------
Bootloader Version...: b1c1-0.2-5672671
Baseband Version.....: g845-00086-191011-B-5933466
Serial Number........: 8B3Y0TEH6
--------------------------------------------
Checking 'product'                                 OKAY [  0.060s]
Setting current slot to 'a'                        OKAY [  0.219s]
Sending 'boot_a' (65536 KB)                        OKAY [  1.960s]
Writing 'boot_a'                                   OKAY [  0.676s]
Sending 'dtbo_a' (8192 KB)                         OKAY [  0.350s]
Writing 'dtbo_a'                                   OKAY [  0.106s]
Sending 'vbmeta_a' (4 KB)                          OKAY [  0.120s]
Writing 'vbmeta_a'                                 OKAY [  0.063s]
Rebooting into fastboot                            OKAY [  0.060s]
< waiting for any device >
fastboot: error: Failed to boot into userspace fastboot; one or more components might be unbootable.

Please help me on how to resolve these errors?


Thanks!
Reply all
Reply to author
Forward
0 new messages