AOSP images build on master branch don't boot

Hello everyone.

I have build android images for Hikey970 board using below instructions:
Build AOSP on HiKey970
Build & Update Linux kernel on HiKey970

Then flash the images as below:
$ sudo fastboot flash boot boot.img (Built using the ramdisk.img that I had built)
$ sudo fastboot flash cache cache.img
$ sudo fastboot flash system system.img
$ sudo fastboot flash userdata userdata.img

After loading the images, there are some log information. I can’t boot the board, and the display only shows “android”. And this information appears cyclically.

[ 162.390014] init: starting service ‘adbd’…
[ 162.413210] init: Created socket ‘/dev/socket/adbd’, mode 660, user 1000, group 1000
[ 162.460878] read descriptors
[ 162.463822] read strings
[ 162.467630] init: processing action (sys.usb.config=adb && sys.usb.configfs=1 && sys.usb.ffs.ready=1) from (/i)
[ 162.482762] init: Command ‘write /config/usb_gadget/g1/UDC ${sys.usb.controller}’ action=sys.usb.config=adb &&y
[ 162.502229] DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
[ 162.502258] DEBUG: Build fingerprint: ‘Android/hikey970/hikey970:Q/PI/eng.flag.20190426.143544:userdebug/test-’
[ 162.502287] DEBUG: Revision: ‘0’
[ 162.502382] DEBUG: ABI: ‘arm64’
[ 162.502409] DEBUG: Timestamp: 1970-01-01 00:02:49+0000
[ 162.502438] DEBUG: pid: 2997, tid: 2998, name: usb ffs open >>> /system/bin/adbd <<<
[ 162.502488] DEBUG: signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
[ 162.502527] DEBUG: Abort message: ‘failed to create aio_context_t: Function not implemented’
[ 162.502555] DEBUG: x0 0000000000000000 x1 0000000000000bb6 x2 0000000000000006 x3 0000e07ca414c980
[ 162.502582] DEBUG: x4 8080800000000000 x5 8080800000000000 x6 8080800000000000 x7 0000000000808080
[ 162.502620] DEBUG: x8 00000000000000f0 x9 0000e07ca4b95520 x10 0000000000000000 x11 0000000000000001
[ 162.502646] DEBUG: x12 0000e07ca414c578 x13 0000000000000028 x14 0000000000000001 x15 00000ccf1d1ff79b
[ 162.502676] DEBUG: x16 0000e07ca4c618b8 x17 0000e07ca4c3e8c0 x18 0000e07ca35fc000 x19 00000000000000ac
[ 162.502701] DEBUG: x20 0000000000000bb5 x21 00000000000000b2 x22 0000000000000bb6 x23 00000000ffffffff
[ 162.502727] DEBUG: x24 0000e07ca414d020 x25 0300e07ca414cba8 x26 0000e07ca414d020 x27 0000e07ca4bf6e78
[ 162.502755] DEBUG: x28 00000000ffffffff x29 0000e07ca414ca30
[ 162.505263] DEBUG: sp 0000e07ca414c960 lr 0000e07ca4bf3570 pc 0000e07ca4bf35a0
[ 162.505264] DEBUG:
[ 162.505330] DEBUG: backtrace:
[ 162.505391] DEBUG: #00 pc 00000000000825a0 /apex/com.android.runtime/lib64/bionic/libc.so (abort+176) ()
[ 162.505430] DEBUG: #01 pc 000000000000bc3c /system/lib64/libbase.so (android::base::DefaultAborter(char)
[ 162.505466] DEBUG: #02 pc 000000000000c650 /system/lib64/libbase.so (android::base::LogMessage::~LogMes)
[ 162.505557] DEBUG: #03 pc 0000000000040110 /system/lib64/libadbd.so (ScopedAioContext::Create(unsigned )
[ 162.505599] DEBUG: #04 pc 000000000003fee8 /system/lib64/libadbd.so (UsbFfsConnection::UsbFfsConnection)
[ 162.505651] DEBUG: #05 pc 000000000003f9ec /system/lib64/libadbd.so (_ZNSt3__111make_uniqueI16UsbFfsCon)
[ 162.505691] DEBUG: #06 pc 000000000003f694 /system/lib64/libadbd.so (usb_ffs_open_thread()+636) (BuildI)
[ 162.505725] DEBUG: #07 pc 0000000000044420 /system/lib64/libadbd.so (_ZNSt3__114__thread_proxyINS_5tupl)
[ 162.505755] DEBUG: #08 pc 00000000000e251c /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_st)
[ 162.546190] DEBUG: #09 pc 0000000000084198 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thre)
[ 162.546190] logd: logdr: UID=2000 GID=2000 PID=3001 n tail=50 logMask=8 pid=2997 start=0ns timeout=0ns
[ 162.547056] logd: logdr: UID=2000 GID=2000 PID=3001 n tail=50 logMask=1 pid=2997 start=0ns timeout=0ns
[ 162.548370] logd: logdr: UID=2000 GID=2000 PID=3001 n tail=0 logMask=8 pid=2997 start=0ns timeout=0ns
[ 162.548881] logd: logdr: UID=2000 GID=2000 PID=3001 n tail=0 logMask=1 pid=2997 start=0ns timeout=0ns
[ 162.875264] init: Service ‘adbd’ (pid 2997) received signal 6
[ 162.875274] init: Sending signal 9 to service ‘adbd’ (pid 2997) process group…
[ 162.875391] libprocessgroup: Successfully killed process cgroup uid 0 pid 2997 in 0ms
[ 162.875480] init: updatable process ‘adbd’ exited 4 times in 4 minutes
[ 162.875537] init: Init cannot set ‘ro.init.updatable_crashing’ to ‘1’: Read-only property was already set
[ 162.875683] init: Untracked pid 3003 exited with status 0

Can anyone tell me what I should do to solve the problem?

Thanks a lot.

i can boot AOSP master branch. though ADB doesn’t work with same error as yours.

Hi,

There’s a side note from Huawei that says the last working revision is 8. I’ve compiled the images from AOSP Android 9 revision 8 and it’s booting.

Regards,
Persike

Hi,

Note that message :

you should set CONFIG_AIO=y and rebuild your kernel.

I think that adbd crash is not root cause of boot fail. After adb work, you should check the /data is mounted.