Is the AOSP master supported?

Hello,

I’m trying to build the AOSP master branch for dragonboard 410c, but I think it is not work well. I follow the step as below link to build the android for my own, but it didn’t work. Building Android Open Source Project (AOSP) for Dragonboard - 96Boards

I use the prebuilt kernel(ignore the build kernel step), the board could be connected by adb , but the screen would keep on android logo for a few hours.
If I used the kernel that I build myself, the system would crash and return to the fastboot mode.

the questions is

  1. Is the dragonboard 410c fully support the AOSP master branch?
  2. The system look like 32bit system, but the kernel built is 64bit. Is it would be an issue?

Here is the part of boot log that had error:

[   44.248411] init: Command 'restart vendor.audio-hal-4-0-msd' action=onrestart (<Service 'audioserver' onrestart>:2) took 0ms and failed: service vendor.audio-hal-4-0-msd not found
[   44.256629] init: Command 'restart audio-hal-2-0' action=onrestart (<Service 'audioserver' onrestart>:3) took 0ms and failed: service audio-hal-2-0 not found
[   44.272975] init: Service 'cameraserver' (pid 3002) received signal 9
[   44.286897] init: Service 'media' (pid 3003) received signal 9
[   44.293486] init: Service 'netd' (pid 3004) received signal 9
[   44.298380] init: Command 'restart zygote_secondary' action=onrestart (<Service 'netd' onrestart>:2) took 0ms and failed: service zygote_secondary not found
[   44.305257] init: Service 'wificond' (pid 3005) received signal 9
[   44.318439] init: Service 'vendor.audio-hal-2-0' (pid 3006) received signal 9
[   44.330081] init: starting service 'zygote'...
[   44.333918] init: starting service 'audioserver'...
[   44.334346] init: Created socket '/dev/socket/zygote', mode 660, user 0, group 1000
[   44.335083] init: Created socket '/dev/socket/usap_pool_primary', mode 660, user 0, group 1000
[   44.351108] init: starting service 'cameraserver'...
[   44.359019] init: couldn't write 3108 to /dev/cpuset/camera-daemon/tasks: No such file or directory
[   44.359489] init: starting service 'media'...
[   44.362370] init: starting service 'netd'...
[   44.365333] init: starting service 'wificond'...
[   44.368637] init: starting service 'vendor.audio-hal-2-0'...
[   44.372376] init: Created socket '/dev/socket/dnsproxyd', mode 660, user 0, group 3003
[   44.373210] init: Created socket '/dev/socket/mdns', mode 660, user 0, group 1000
[   44.373876] init: Created socket '/dev/socket/fwmarkd', mode 660, user 0, group 3003
[   44.980181] init: Received control message 'interface_start' for 'android.hardware.camera.provider@2.4::ICameraProvider/external/0' from pid: 2301 (/system/bin/hwservicemanager)
[   44.980292] init: Could not find 'android.hardware.camera.provider@2.4::ICameraProvider/external/0' for ctl.interface_start
[   44.996011] init: Received control message 'interface_start' for 'android.hardware.camera.provider@2.4::ICameraProvider/legacy/0' from pid: 2301 (/system/bin/hwservicemanager)
[   45.006997] init: Could not find 'android.hardware.camera.provider@2.4::ICameraProvider/legacy/0' for ctl.interface_start
[   45.122633] type=1400 audit(32617.083:72): avc: denied { module_request } for comm="kworker/0:2" kmod="net-pf-16-proto-4-type-2-17" scontext=u:r:kernel:s0 tcontext=u:r:kernel:s0 tclass=system permissive=0
[   45.122723] type=1400 audit(32618.163:73): avc: denied { module_request } for comm="iptables-restor" kmod="ipt_bpf" scontext=u:r:netd:s0 tcontext=u:r:kernel:s0 tclass=system permissive=0
[   45.142961] type=1400 audit(32618.167:75): avc: denied { module_request } for comm="iptables-restor" kmod="ipt_bpf" scontext=u:r:netd:s0 tcontext=u:r:kernel:s0 tclass=system permissive=0 duplicate messages suppressed
[   45.158906] type=1400 audit(32618.167:76): avc: denied { module_request } for comm="ip6tables-resto" kmod="ip6t_bpf" scontext=u:r:netd:s0 tcontext=u:r:kernel:s0 tclass=system permissive=0
[   45.176671] type=1400 audit(32618.167:78): avc: denied { module_request } for comm="ip6tables-resto" kmod="ip6t_bpf" scontext=u:r:netd:s0 tcontext=u:r:kernel:s0 tclass=system permissive=0 duplicate messages suppressed
[   45.192183] type=1400 audit(32618.171:79): avc: denied { module_request } for comm="netd" kmod="netdev-dummy0" scontext=u:r:netd:s0 tcontext=u:r:kernel:s0 tclass=system permissive=0
[   45.212308] type=1400 audit(32618.171:79): avc: denied { module_request } for comm="netd" kmod="netdev-dummy0" scontext=u:r:netd:s0 tcontext=u:r:kernel:s0 tclass=system permissive=0
[   45.221052] init: Received control message 'interface_start' for 'android.hardware.audio@5.0::IDevicesFactory/default' from pid: 2301 (/system/bin/hwservicemanager)
[   45.221101] init: Could not find 'android.hardware.audio@5.0::IDevicesFactory/default' for ctl.interface_start
[   45.223911] init: Received control message 'interface_start' for 'android.hardware.audio@4.0::IDevicesFactory/default' from pid: 2301 (/system/bin/hwservicemanager)
[   45.232993] init: Received control message 'interface_start' for 'android.hardware.audio.effect@4.0::IEffectsFactory/default' from pid: 2301 (/system/bin/hwservicemanager)
[   45.233043] init: Could not find 'android.hardware.audio.effect@4.0::IEffectsFactory/default' for ctl.interface_start
[   45.233987] init: Received control message 'interface_start' for 'android.hardware.audio.effect@5.0::IEffectsFactory/default' from pid: 2301 (/system/bin/hwservicemanager)
[   45.234031] init: Could not find 'android.hardware.audio.effect@5.0::IEffectsFactory/default' for ctl.interface_start
[   45.284968] init: Received control message 'interface_start' for 'android.hardware.audio.effect@5.0::IEffectsFactory/default' from pid: 2301 (/system/bin/hwservicemanager)
[   45.285020] init: Could not find 'android.hardware.audio.effect@5.0::IEffectsFactory/default' for ctl.interface_start
[   45.287114] init: Received control message 'interface_start' for 'android.hardware.audio.effect@4.0::IEffectsFactory/default' from pid: 2301 (/system/bin/hwservicemanager)
[   45.287160] init: Could not find 'android.hardware.audio.effect@4.0::IEffectsFactory/default' for ctl.interface_start
[   45.375888] type=1400 audit(32618.171:80): avc: denied { sys_module } for comm="netd" capability=16 scontext=u:r:netd:s0 tcontext=u:r:netd:s0 tclass=capability permissive=0
[   45.387609] type=1400 audit(32618.171:80): avc: denied { sys_module } for comm="netd" capability=16 scontext=u:r:netd:s0 tcontext=u:r:netd:s0 tclass=capability permissive=0
[   45.402217] type=1400 audit(32618.171:81): avc: denied { module_request } for comm="kworker/3:3" kmod="net-pf-16-proto-4-type-2-17" scontext=u:r:kernel:s0 tcontext=u:r:kernel:s0 tclass=system permissive=0
[   45.417945] type=1400 audit(32618.171:81): avc: denied { module_request } for comm="kworker/3:3" kmod="net-pf-16-proto-4-type-2-17" scontext=u:r:kernel:s0 tcontext=u:r:kernel:s0 tclass=system permissive=0
[   45.435723] type=1400 audit(32618.171:82): avc: denied { module_request } for comm="netd" kmod="rtnl-link-xfrm" scontext=u:r:netd:s0 tcontext=u:r:kernel:s0 tclass=system permissive=0
[   45.453986] type=1400 audit(32618.171:82): avc: denied { module_request } for comm="netd" kmod="rtnl-link-xfrm" scontext=u:r:netd:s0 tcontext=u:r:kernel:s0 tclass=system permissive=0
[   45.469915] type=1400 audit(32618.195:83): avc: denied { write } for comm="Binder:3110_3" name="tasks" dev="tmpfs" ino=1493 scontext=u:r:netd:s0 tcontext=u:object_r:device:s0 tclass=file permissive=0
[   48.052561] init: Received control message 'interface_start' for 'android.hardware.power.stats@1.0::IPowerStats/default' from pid: 2301 (/system/bin/hwservicemanager)
[   48.052654] init: Could not find 'android.hardware.power.stats@1.0::IPowerStats/default' for ctl.interface_start
[   48.067043] init: Received control message 'interface_start' for 'android.hardware.power@1.0::IPower/default' from pid: 2301 (/system/bin/hwservicemanager)
[   48.076863] init: Could not find 'android.hardware.power@1.0::IPower/default' for ctl.interface_start
[   48.327504] init: Received control message 'interface_start' for 'android.hardware.power@1.0::IPower/default' from pid: 2301 (/system/bin/hwservicemanager)
[   48.327597] init: Could not find 'android.hardware.power@1.0::IPower/default' for ctl.interface_start
[   51.054587] init: Untracked pid 3198 exited with status 0
[   51.067762] init: Untracked pid 3200 exited with status 0
[   51.107501] type=1400 audit(32618.195:83): avc: denied { write } for comm="Binder:3110_3" name="tasks" dev="tmpfs" ino=1493 scontext=u:r:netd:s0 tcontext=u:object_r:device:s0 tclass=file permissive=0
[   51.107606] type=1400 audit(32624.151:84): avc: denied { module_request } for comm="kworker/1:2" kmod="net-pf-16-proto-4-type-2-17" scontext=u:r:kernel:s0 tcontext=u:r:kernel:s0 tclass=system permissive=0
[   51.168441] init: Service 'zygote' (pid 3106) received signal 9
[   51.168512] init: Sending signal 9 to service 'zygote' (pid 3106) process group...
[   51.173698] libprocessgroup: Successfully killed process cgroup uid 0 pid 3106 in 0ms
[   51.184376] init: updatable process 'zygote' exited 4 times before boot completed
[   51.189200] apexd: Updatable crashing, attempting rollback
[   51.190830] init: Command 'write /sys/power/state on' action=onrestart (<Service 'zygote' onrestart>:2) took 0ms and failed: Unable to write to file '/sys/power/state': Unable to write file contents: Invalid argument
[   51.190884] init: Sending signal 9 to service 'audioserver' (pid 3107) process group...
[   51.200066] libprocessgroup: Successfully killed process cgroup uid 1041 pid 3107 in 9ms
[   51.200374] init: Sending signal 9 to service 'cameraserver' (pid 3108) process group...
[   51.221631] libprocessgroup: Successfully killed process cgroup uid 1047 pid 3108 in 20ms
[   51.221982] init: Sending signal 9 to service 'media' (pid 3109) process group...
[   51.237262] libprocessgroup: Successfully killed process cgroup uid 1013 pid 3109 in 15ms
[   51.237578] init: Sending signal 9 to service 'netd' (pid 3110) process group...
[   51.245294] libprocessgroup: Successfully killed process cgroup uid 0 pid 3110 in 7ms
[   51.245574] init: Sending signal 9 to service 'wificond' (pid 3111) process group...
[   51.253353] libprocessgroup: Successfully killed process cgroup uid 1010 pid 3111 in 7ms
[   51.254650] init: Service 'audioserver' (pid 3107) received signal 9
[   51.254715] init: Sending signal 9 to service 'vendor.audio-hal-2-0' (pid 3112) process group...
[   51.260350] libprocessgroup: Successfully killed process cgroup uid 1041 pid 3112 in 5ms
[   51.260776] init: Command 'restart vendor.audio-hal-4-0-msd' action=onrestart (<Service 'audioserver' onrestart>:2) took 0ms and failed: service vendor.audio-hal-4-0-msd not found
[   51.260858] init: Command 'restart audio-hal-2-0' action=onrestart (<Service 'audioserver' onrestart>:3) took 0ms and failed: service audio-hal-2-0 not found
[   51.261762] init: Service 'cameraserver' (pid 3108) received signal 9
[   51.262581] init: Service 'media' (pid 3109) received signal 9
[   51.263406] init: Service 'netd' (pid 3110) received signal 9
[   51.263669] init: Command 'restart zygote_secondary' action=onrestart (<Service 'netd' onrestart>:2) took 0ms and failed: service zygote_secondary not found
[   51.264089] init: Service 'wificond' (pid 3111) received signal 9
[   51.264363] init: Service 'vendor.audio-hal-2-0' (pid 3112) received signal 9
[   51.265139] init: processing action (ro.init.updatable_crashing=1) from (/system/etc/init/flags_health_check.rc:10)
[   51.265919] init: starting service 'exec 12 (/system/bin/flags_health_check UPDATABLE_CRASHING)'...
[   51.268764] init: SVC_EXEC service 'exec 12 (/system/bin/flags_health_check UPDATABLE_CRASHING)' pid 3211 (uid 1000 gid 1000+0 context default) started; waiting...
[   51.300011] init: Service 'exec 12 (/system/bin/flags_health_check UPDATABLE_CRASHING)' (pid 3211) exited with status 0 waiting took 0.032000 seconds
[   51.305372] init: starting service 'zygote'...
[   51.308002] init: starting service 'audioserver'...
[   51.308581] init: Created socket '/dev/socket/zygote', mode 660, user 0, group 1000
[   51.309267] init: Created socket '/dev/socket/usap_pool_primary', mode 660, user 0, group 1000
[   51.310961] init: starting service 'cameraserver'...
[   51.313887] init: starting service 'media'...
[   51.316799] init: starting service 'netd'...
[   51.319693] init: starting service 'wificond'...
[   51.323341] init: couldn't write 3214 to /dev/cpuset/camera-daemon/tasks: No such file or directory
[   51.323926] init: starting service 'vendor.audio-hal-2-0'...
[   51.336312] init: Created socket '/dev/socket/dnsproxyd', mode 660, user 0, group 3003
[   51.337142] init: Created socket '/dev/socket/mdns', mode 660, user 0, group 1000
[   51.337861] init: Created socket '/dev/socket/fwmarkd', mode 660, user 0, group 3003
[   51.566954] apexd: Rollback failed : Rollback requested, when there are no active sessions.
[   51.983254] init: Received control message 'interface_start' for 'android.hardware.camera.provider@2.4::ICameraProvider/external/0' from pid: 2301 (/system/bin/hwservicemanager)
[   51.983354] init: Could not find 'android.hardware.camera.provider@2.4::ICameraProvider/external/0' for ctl.interface_start
[   51.999279] init: Received control message 'interface_start' for 'android.hardware.camera.provider@2.4::ICameraProvider/legacy/0' from pid: 2301 (/system/bin/hwservicemanager)
[   52.009517] init: Could not find 'android.hardware.camera.provider@2.4::ICameraProvider/legacy/0' for ctl.interface_start
[   52.110856] type=1400 audit(32624.151:85): avc: denied { module_request } for comm="kworker/1:2" kmod="net-pf-16-proto-4-type-2-17" scontext=u:r:kernel:s0 tcontext=u:r:kernel:s0 tclass=system permissive=0
[   52.110947] type=1400 audit(32625.151:86): avc: denied { module_request } for comm="iptables-restor" kmod="ipt_bpf" scontext=u:r:netd:s0 tcontext=u:r:kernel:s0 tclass=system permissive=0
[   52.142477] type=1400 audit(32625.171:88): avc: denied { module_request } for comm="iptables-restor" kmod="ipt_bpf" scontext=u:r:netd:s0 tcontext=u:r:kernel:s0 tclass=system permissive=0 duplicate messages suppressed
[   52.146567] type=1400 audit(32625.175:89): avc: denied { module_request } for comm="ip6tables-resto" kmod="ip6t_bpf" scontext=u:r:netd:s0 tcontext=u:r:kernel:s0 tclass=system permissive=0
[   52.167773] type=1400 audit(32625.175:91): avc: denied { module_request } for comm="ip6tables-resto" kmod="ip6t_bpf" scontext=u:r:netd:s0 tcontext=u:r:kernel:s0 tclass=system permissive=0 duplicate messages suppressed
[   52.180465] type=1400 audit(32625.179:92): avc: denied { module_request } for comm="netd" kmod="netdev-dummy0" scontext=u:r:netd:s0 tcontext=u:r:kernel:s0 tclass=system permissive=0
[   52.200385] type=1400 audit(32625.179:92): avc: denied { module_request } for comm="netd" kmod="netdev-dummy0" scontext=u:r:netd:s0 tcontext=u:r:kernel:s0 tclass=system permissive=0
[   52.215955] type=1400 audit(32625.179:93): avc: denied { sys_module } for comm="netd" capability=16 scontext=u:r:netd:s0 tcontext=u:r:netd:s0 tclass=capability permissive=0
[   52.225015] init: Received control message 'interface_start' for 'android.hardware.audio@5.0::IDevicesFactory/default' from pid: 2301 (/system/bin/hwservicemanager)
[   52.225065] init: Could not find 'android.hardware.audio@5.0::IDevicesFactory/default' for ctl.interface_start
[   52.226302] init: Received control message 'interface_start' for 'android.hardware.audio@4.0::IDevicesFactory/default' from pid: 2301 (/system/bin/hwservicemanager)
[   52.232966] init: Received control message 'interface_start' for 'android.hardware.audio.effect@5.0::IEffectsFactory/default' from pid: 2301 (/system/bin/hwservicemanager)
[   52.233017] init: Could not find 'android.hardware.audio.effect@5.0::IEffectsFactory/default' for ctl.interface_start
[   52.235598] init: Received control message 'interface_start' for 'android.hardware.audio.effect@4.0::IEffectsFactory/default' from pid: 2301 (/system/bin/hwservicemanager)
[   52.235648] init: Could not find 'android.hardware.audio.effect@4.0::IEffectsFactory/default' for ctl.interface_start
[   52.286381] init: Received control message 'interface_start' for 'android.hardware.audio.effect@5.0::IEffectsFactory/default' from pid: 2301 (/system/bin/hwservicemanager)
[   52.286437] init: Could not find 'android.hardware.audio.effect@5.0::IEffectsFactory/default' for ctl.interface_start
[   52.291321] init: Received control message 'interface_start' for 'android.hardware.audio.effect@4.0::IEffectsFactory/default' from pid: 2301 (/system/bin/hwservicemanager)
[   52.291374] init: Could not find 'android.hardware.audio.effect@4.0::IEffectsFactory/default' for ctl.interface_start
[   52.379746] type=1400 audit(32625.179:93): avc: denied { sys_module } for comm="netd" capability=16 scontext=u:r:netd:s0 tcontext=u:r:netd:s0 tclass=capability permissive=0
[   52.390905] type=1400 audit(32625.179:94): avc: denied { module_request } for comm="kworker/2:1" kmod="net-pf-16-proto-4-type-2-17" scontext=u:r:kernel:s0 tcontext=u:r:kernel:s0 tclass=system permissive=0
[   52.406251] type=1400 audit(32625.179:94): avc: denied { module_request } for comm="kworker/2:1" kmod="net-pf-16-proto-4-type-2-17" scontext=u:r:kernel:s0 tcontext=u:r:kernel:s0 tclass=system permissive=0
[   52.424282] type=1400 audit(32625.179:95): avc: denied { module_request } for comm="netd" kmod="rtnl-link-xfrm" scontext=u:r:netd:s0 tcontext=u:r:kernel:s0 tclass=system permissive=0
[   52.442849] type=1400 audit(32625.179:95): avc: denied { module_request } for comm="netd" kmod="rtnl-link-xfrm" scontext=u:r:netd:s0 tcontext=u:r:kernel:s0 tclass=system permissive=0
[   52.458553] type=1400 audit(32625.211:96): avc: denied { write } for comm="netd" name="tasks" dev="tmpfs" ino=1493 scontext=u:r:netd:s0 tcontext=u:object_r:device:s0 tclass=file permissive=0
[   55.030599] init: Received control message 'interface_start' for 'android.hardware.power.stats@1.0::IPowerStats/default' from pid: 2301 (/system/bin/hwservicemanager)
[   55.030710] init: Could not find 'android.hardware.power.stats@1.0::IPowerStats/default' for ctl.interface_start
[   55.046598] init: Received control message 'interface_start' for 'android.hardware.power@1.0::IPower/default' from pid: 2301 (/system/bin/hwservicemanager)
[   55.054852] init: Could not find 'android.hardware.power@1.0::IPower/default' for ctl.interface_start
[   55.310937] init: Received control message 'interface_start' for 'android.hardware.power@1.0::IPower/default' from pid: 2301 (/system/bin/hwservicemanager)
[   55.311030] init: Could not find 'android.hardware.power@1.0::IPower/default' for ctl.interface_start
[   58.067891] init: Untracked pid 3305 exited with status 0
[   58.081253] init: Untracked pid 3307 exited with status 0
[   58.107682] type=1400 audit(32625.211:96): avc: denied { write } for comm="netd" name="tasks" dev="tmpfs" ino=1493 scontext=u:r:netd:s0 tcontext=u:object_r:device:s0 tclass=file permissive=0
[   58.107772] type=1400 audit(32631.151:97): avc: denied { module_request } for comm="kworker/0:2" kmod="net-pf-16-proto-4-type-2-17" scontext=u:r:kernel:s0 tcontext=u:r:kernel:s0 tclass=system permissive=0
[   58.168433] init: Service 'zygote' (pid 3212) received signal 9
[   58.168505] init: Sending signal 9 to service 'zygote' (pid 3212) process group...
[   58.173559] libprocessgroup: Successfully killed process cgroup uid 0 pid 3212 in 0ms
[   58.181250] init: updatable process 'zygote' exited 4 times before boot completed
[   58.188848] init: Init cannot set 'ro.init.updatable_crashing' to '1': Read-only property was already set
[   58.197730] init: Command 'write /sys/power/state on' action=onrestart (<Service 'zygote' onrestart>:2) took 0ms and failed: Unable to write to file '/sys/power/state': Unable to write file contents: Invalid argument

Hey @jstultz is the board actively supported in aosp?

So no, db410c is not supported in AOSP right now.

Amit has a patch to add support here:
https://android-review.linaro.org/c/device/linaro/dragonboard410c/+/20479

But I’m not sure how current that patch is, and Amit has been out for a few weeks.

@jstultz

Is there a specific branch/tag/commit that is supported?

The guide uses master/HEAD but to workaround the duplicate path issue @initialapex reported (AOSP repo sync fail - #2 by initialapex), I use repo init -u https://android.googlesource.com/platform/manifest -b d3a70484da211b35c11b428b733844d6a36c11c6 (before AOSP adding a dragonboard device).

However, make then fails with the following.

FAILED: out/soong/build.ninja
out/soong/.bootstrap/bin/soong_build -t -l out/.module_paths/Android.bp.list -b out/soong -n out -d out/soong/build.ninja.d -globFile out/soong/.bootstrap/build-globs.ninja -o out/soong/build.ninja Android.bp
error: frameworks/native/libs/binder/Android.bp:74:19: module "libbinder" variant "android_arm_armv8-a_cortex-a53_core_shared": apex_available: "com.android.vndk.current" is not a valid module name
14:59:19 soong bootstrap failed with: exit status 1

The more correct solution to the duplicate path issue is to modify the local manifest, “linaro.xml” in BUILDROOT/.repo/local_manifests/

Add the following two lines to it above the first existing project entry;

  <remove-project name="device/linaro/dragonboard" />
  <remove-project name="device/linaro/dragonboard-kernel" />

Another thing that can be considered, since there hasn’t been any action on the DB410/820 repository since before AOSP10 was merged, is to use an older snapshot of AOSP. Note that picking an older platform manifest will only change what parts are included, and not roll back the state of those parts.

You can use the hikey/960 manifests that used to be maintained by @jstultz , since they represent a full snapshot of AOSP master at those dates.

If Amit happens to see this, it would be nice also to see some db820c code added to AOSP, since Arrow seems to actually have it in stock again, finally :wink:

Edit: I have both 410 and 820 working with this manifest;

You can try this;

I haven’t tried it on the 410c, only the 820c, but the changes I had to make for the 820c were in common, so it probably works for both.

Hello, I followed the instructions in the following link yesterday (Feb 13, 2020)

On top of those I did the following modifications

  1. Removed following lines in .repo/manifest.xml file, as it was throwing duplicate path errors.
    <project path="device/linaro/dragonboard" name="device/linaro/dragonboard" groups="device,dragonboard,pdk" />
    <project path="device/linaro/dragonboard-kernel" name="device/linaro/dragonboard-kernel" groups="device,dragonboard,pdk" clone-depth="1" />

  2. Added following line in device/linaro/dragonboard/db410c32_only/device.mk
    PRODUCT_SOONG_NAMESPACES += external/mesa3d

The build succeeded, flashed using flash-all-aosp.sh script successfully. Up on boot, the display was blank. I was able to connect via adb. Couldn’t find window manager service running. Any one facing similar issue? How to proceed?

I strongly suggest that you either start with my repository (see post before yours), or choose Android 9.

1 Like

Hello @doitright, is it possible for you to add a README file in your git repository on how to start with your work?

Edits: I removed “incorrect build steps” from my original post (intent: not to confuse others). Refer the discussions below for the correct steps.

Look in the group root under the pinned-manifests repository.

Followed the steps provided in link below.
https://gitlab.com/aosp-automotive/pinned-manifests

Steps as below (for reference)
$ repo init -u https:// android.googlesource.com/platform/manifest -b master
$ wget https:// gitlab.com/aosp-automotive/pinned-manifests/raw/master/pinned_020620.xml -O .repo/manifests/pinned_020620.xml
$ repo init -m pinned_020620.xml

But I get error, how to resolve this?

fatal: manifest 'pinned_020620.xml' not available
fatal: duplicate path device/linaro/dragonboard in /home/aananth/bsp/db410c/.repo/manifests/pinned_020620.xml

Check if the file is there. If it isn’t, figure out why. The wget command is the one responsible for retrieving it.

Do you have the instructions for building the kernel for Dragonboard 410C?
Als are the instructions for building Android same for Dragonboard 410c?

Here are the steps I follow to build aosp:

repo init -u https://android.googlesource.com/platform/manifest -b master
repo sync -j$(nproc) -c

rm -r device/linaro/dragonboard
git clone -b db410c https://android-git.linaro.org/device/linaro/dragonboard410c.git device/linaro/dragonboard

source build/envsetup.sh
lunch db410c
make -j8

Maybe you can also look at this thread fr kernel building: Missing defconfig for Linaro's AOSP port for db410c - #7 by BigCountry907

you need to run

source build/envsetup.sh

before lunch/make.

It has to include “source” as in “source build/envsetup.sh”, or “.” as in “. envsetup.sh” (i.e., “.” followed by <space> followed by “envsetup.sh”), otherwise it WON’T WORK.

It looks like some people are mixing these instructions with the instructions found here; Building Android Open Source Project (AOSP) for Dragonboard - 96Boards

It is important to understand that trying to follow the instructions at that link will cause a path conflict between the db845c repository and the db410c/db820c repository. In order to follow the “rm, git” instructions, the local manifest must be removed.

Don’t use -j8. That will consume all your RAM and then crash the build. Either leave it out, or use something smaller, like -j2.

Things are working for me and i am able to boot into Android with the steps you have mentioned.
Thank you.
The prebuilt kernel is actually based on the Linux kernel 5.2, where can I find the source code for the prebuilt kernel on which Amit’s patch is based on?