Any idea that Hikey960 factory image is removed?

I am facing the same issue with this thread and try flash a new factory image, while when I goto the latest link, seems the image is removed? any idea where to get it ?

even the aosp-master folder is removed only debian is there

@Loic @danielt

I created the thread you mentioned. And I still cannot flash the latest image into hikey960. This may be a problem of factory images so that webpage was removed and then fixed the problem.

butter via 96Boards Forum noreply@discuss.96boards.org 于2020年5月29日周五 下午5:07写道:

image.png

@jstultz I have found you post of successfully running hikey960 in latest kernel + AOSP, any idea where could we get the compatible vendor image?
Thanks

So, I usually build directly from AOSP source, following the instructions here:
https://source.android.com/setup/build/devices#960userspace

I think our snapshot builder fell over awhile back. @liuyq do you have public images that you test with?

@butter @HuberyPan

The build problem has been fixed already.
The latest images should be able to get from here:
http://snapshots.linaro.org/96boards/hikey960/linaro/aosp-master/latest/

Could you please help to with the images there to see if that works on your side?

Thanks,
Yongqin Liu

Hi, thank you very for your help!
I downloaded and flash the latest images with command ./flash-all.sh, but it still failed. The /sdcard/ directory still cannot be mounted.
Please find the tail of system log as below. I can send you a full system log if you can give me an email address:

[  123.626585] init: starting service 'zygote'...
[  123.628699] init: Created socket '/dev/socket/zygote', mode 660, user 0, group 1000
[  123.629639] init: Created socket '/dev/socket/usap_pool_primary', mode 660, user 0, group 1000
[  123.636954] init: starting service 'zygote_secondary'...
[  123.638011] init: Created socket '/dev/socket/zygote_secondary', mode 660, user 0, group 1000
[  123.638748] init: Created socket '/dev/socket/usap_pool_secondary', mode 660, user 0, group 1000
[  123.643997] init: starting service 'audioserver'...
[  123.647523] init: starting service 'cameraserver'...
[  123.651401] init: starting service 'netd'...
[  123.652275] libprocessgroup: Failed to open /dev/cpuset/camera-daemon/tasks: No such file or directory: No such file or directory
[  123.752255] type=1400 audit(123.747:72): avc: denied { read } for comm="audio.service" name="audio_effects.conf" dev="sdd10" ino=617 scontext=u:r:hal_audio_default:s0 tcontext=u:object_r:system_file:s0 tclass=file permissive=0
[  123.827970] logd: logdr: UID=1000 GID=1003 PID=4685 n tail=50 logMask=8 pid=4615 start=0ns deadline=0ns
[  123.829808] logd: logdr: UID=1000 GID=1003 PID=4685 n tail=50 logMask=1 pid=4615 start=0ns deadline=0ns
[  123.851563] logd: logdr: UID=1000 GID=1003 PID=4685 n tail=0 logMask=8 pid=4615 start=0ns deadline=0ns
[  123.853730] logd: logdr: UID=1000 GID=1003 PID=4685 n tail=0 logMask=1 pid=4615 start=0ns deadline=0ns
[  128.640215] init: starting service 'zygote'...
[  128.641725] init: Created socket '/dev/socket/zygote', mode 660, user 0, group 1000
[  128.642517] init: Created socket '/dev/socket/usap_pool_primary', mode 660, user 0, group 1000
[  128.649810] init: starting service 'zygote_secondary'...
[  128.650942] init: Created socket '/dev/socket/zygote_secondary', mode 660, user 0, group 1000
[  128.651754] init: Created socket '/dev/socket/usap_pool_secondary', mode 660, user 0, group 1000
[  128.657823] init: starting service 'audioserver'...
[  128.661324] init: starting service 'cameraserver'...
[  128.665244] init: starting service 'netd'...
[  128.665992] init: Created socket '/dev/socket/dnsproxyd', mode 660, user 0, group 3003
[  128.763932] type=1400 audit(128.755:73): avc: denied { read } for comm="audio.service" name="audio_effects.conf" dev="sdd10" ino=617 scontext=u:r:hal_audio_default:s0 tcontext=u:object_r:system_file:s0 tclass=file permissive=0
[  128.828648] logd: logdr: UID=1000 GID=1003 PID=4768 n tail=50 logMask=8 pid=4704 start=0ns deadline=0ns
[  128.830577] logd: logdr: UID=1000 GID=1003 PID=4768 n tail=50 logMask=1 pid=4704 start=0ns deadline=0ns
[  128.850154] logd: logdr: UID=1000 GID=1003 PID=4768 n tail=0 logMask=8 pid=4704 start=0ns deadline=0ns
[  128.852214] logd: logdr: UID=1000 GID=1003 PID=4768 n tail=0 logMask=1 pid=4704 start=0ns deadline=0ns
[  130.319852] type=1400 audit(130.311:74): avc: denied { syslog_read } for comm="dmesg" scontext=u:r:shell:s0 tcontext=u:r:kernel:s0 tclass=system permissive=0
[  133.652692] init: starting service 'zygote'...
[  133.654381] init: Created socket '/dev/socket/zygote', mode 660, user 0, group 1000
[  133.655175] init: Created socket '/dev/socket/usap_pool_primary', mode 660, user 0, group 1000
[  133.662447] init: starting service 'zygote_secondary'...
[  133.663616] init: Created socket '/dev/socket/zygote_secondary', mode 660, user 0, group 1000
[  133.664613] init: Created socket '/dev/socket/usap_pool_secondary', mode 660, user 0, group 1000
[  133.670839] init: starting service 'audioserver'...
[  133.675610] init: starting service 'cameraserver'...
[  133.679891] init: starting service 'netd'...
[  133.680575] init: Created socket '/dev/socket/dnsproxyd', mode 660, user 0, group 3003
[  133.779946] type=1400 audit(133.771:75): avc: denied { read } for comm="audio.service" name="audio_effects.conf" dev="sdd10" ino=617 scontext=u:r:hal_audio_default:s0 tcontext=u:object_r:system_file:s0 tclass=file permissive=0
[  133.857826] logd: logdr: UID=1000 GID=1003 PID=4862 n tail=50 logMask=8 pid=4794 start=0ns deadline=0ns
[  133.859792] logd: logdr: UID=1000 GID=1003 PID=4862 n tail=50 logMask=1 pid=4794 start=0ns deadline=0ns
[  133.880011] logd: logdr: UID=1000 GID=1003 PID=4862 n tail=0 logMask=8 pid=4794 start=0ns deadline=0ns
[  133.882439] logd: logdr: UID=1000 GID=1003 PID=4862 n tail=0 logMask=1 pid=4794 start=0ns deadline=0ns
[  138.665533] init: starting service 'zygote'...
[  138.667115] init: Created socket '/dev/socket/zygote', mode 660, user 0, group 1000
[  138.668488] init: Created socket '/dev/socket/usap_pool_primary', mode 660, user 0, group 1000
[  138.675863] init: starting service 'zygote_secondary'...
[  138.677157] init: Created socket '/dev/socket/zygote_secondary', mode 660, user 0, group 1000
[  138.677935] init: Created socket '/dev/socket/usap_pool_secondary', mode 660, user 0, group 1000
[  138.683221] init: starting service 'audioserver'...
[  138.686869] init: starting service 'cameraserver'...
[  138.690890] init: starting service 'netd'...

There is nothing at all wrong in the tiny little bit of log you posted. If you’re worried about posting sensitive information in a public place, don’t be. When you ran “flash-all.sh”, it wrote a blank userdata partition to the device, so there is no sensitive information to be worried about. Just post your logs here.

/sdcard doesn’t get mounted to from a device partition. It is effectively just a link to /data/media/{userid}, but with a bunch of complexity related to adding a partial security layer over a simulated backwards compatibility layer tied to the obsolete vfat FS that used to be used on actual sdcards. That layer is called “sdcardfs” and is a google kernel thing.

Thanks. The system log does not include any sensitive information. It is just because of the word limit, I cannot paste all the system log within the reply box. Is there any way to send you a system log files?

I understand the /sdcard. It is just a link to /sdcard/->/storage/self/primary->/mnt/user/0/primary. But in my devices, /mnt/user/0/primary does not exist. In general, this directory will be created following the steps of init.rc during android startup.

I feel confused about why the /mnt/user/0/primary isn’t mounted during system startup. Is it the problem of AOSP?

Thank you again for your kind help!

gitlab snippet, pastebin, etc.
There are hundreds of ways to post a blob of text somewhere and link to it.

Can’t address the rest of your message without the logs.

Please refer to this link https://github.com/RiweiPan/hikey960-log/blob/master/0601-hikey960-log.txt.
Thank you very much.

Looks like something is repeatedly crashing in userspace. A logcat would be much more useful for this.

Thanks, I’ll try and give you feedback today.

Sorry for the late reply. Please refer to these two links for the new logcat file and system log file.

Logcat

Kernel log

Thank you very much for your help.

It’s surfaceflinger that is repeatedly crashing.

Abort message: 'Missing internal display after registering composer callback.'
01-01 00:00:03.416 0 0 I : [drm] Cannot find any crtc or sizes

Try using the 4.14 boot, dts, and vendor.img instead of 4.19.

@HuberyPan
Do you have any HDMI monitor or HDMI dongle connected to the HDMI port?
This is required by the AOSP master images.

Thanks,
Yongqin Liu

Thank you very much. Let me try and then give you feedback later.

Yes, I have a HDMI monitor. Your suggestion reminds me that I usually use Vysor(https://www.vysor.io/) with USB cable to test my application without HDMI monitor. I’ll try using monitor to see if it works. Thank you very much.

@HuberyPan

I checked with build here:
http://snapshots.linaro.org/96boards/hikey960/linaro/aosp-master/1249/

I have problems to run the ./flash-all.sh,
it reported “No such partition” for many of the fastboot commands in the script.

but when I run “fastboot update image-hikey960-linaro-2020.06.06.zip” with the file in [hikey960-linaro-2020.06.06-factory-69af4d2b.zip)
I could boot it to home screen, so probably you did not have the hdmi port connected to any monitor, or any HDMI dongle.

Here is some information FYI:
console:/ # getprop |grep build.fingerprint
[ro.build.fingerprint]: [Android/hikey960/hikey960:S/AOSP.MASTER/1249:userdebug/test-keys]
[ro.odm.build.fingerprint]: [Android/hikey960/hikey960:S/AOSP.MASTER/1249:userdebug/test-keys]
[ro.product.build.fingerprint]: [Android/hikey960/hikey960:S/AOSP.MASTER/1249:userdebug/test-keys]
[ro.system.build.fingerprint]: [Android/hikey960/hikey960:S/AOSP.MASTER/1249:userdebug/test-keys]
[ro.system_ext.build.fingerprint]: [Android/hikey960/hikey960:S/AOSP.MASTER/1249:userdebug/test-keys]
[ro.vendor.build.fingerprint]: [Android/hikey960/hikey960:S/AOSP.MASTER/1249:userdebug/test-keys]
console:/ #
console:/ # getprop |grep boot_complete
[sys.boot_completed]: [1]
[sys.bootstat.first_boot_completed]: [1]
console:/ # cat /proc/version
Linux version 4.19.117-g03a6248cae93 (android-build@abfarm-01194) (Android (6305083 based on r377782c
) clang version 10.0.5 (https://android.googlesource.com/toolchain/llvm-project 0cb1afdb060d6619a9837
ab6866cf4adf2336416), LLD 10.0.5 (/buildbot/tmp/tmp3EVjua 0cb1afdb060d6619a9837ab6866cf4adf2336416))
#1 SMP PREEMPT Fri Apr 24 02:24:53 UTC 2020
console:/ # mount|grep sdcardfs
/data/media on /mnt/runtime/default/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023
,fsgid=1023,gid=1015,multiuser,mask=6,derive_gid,default_normal,unshared_obb)
/data/media on /storage/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,
gid=1015,multiuser,mask=6,derive_gid,default_normal,unshared_obb)
/data/media on /mnt/runtime/read/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fs
gid=1023,gid=9997,multiuser,mask=23,derive_gid,default_normal,unshared_obb)
/data/media on /mnt/runtime/write/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,f
sgid=1023,gid=9997,multiuser,mask=7,derive_gid,default_normal,unshared_obb)
/data/media on /mnt/runtime/full/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fs
gid=1023,gid=9997,multiuser,mask=7,derive_gid,default_normal,unshared_obb)
console:/ #

After connecting to the HDMI monitor, the /sdcard/ partition can be mounted and boot as normal. It’s because I didn’t connect to the monitor before. My hikey problem has been solved. Thank you very much!

So the conclusion is that a UI-centric OS won’t work without having hardware required for being able to render the UI. How did that not occur to you?