Trouble getting started with AOSP and HiKey960. Am I doing this correctly?

Goal: Get a functioning AOSP build compiled and running on the HiKey 960.

I was able to get AOSP built and installed with the following lines from this Android page.
https://source.android.com/setup/build/devices

These are the commands I used.

repo init -u platform/manifest - Git at Google -b master
repo sync -j24

. ./build/envsetup.sh
lunch hikey960-userdebug
make -j32

cd device/linaro/hikey/installer/hikey960
./flash-all.sh

sudo fastboot flash boot out/target/product/hikey960/boot.img
sudo fastboot flash dts out/target/product/hikey960/dt.img
sudo fastboot flash system out/target/product/hikey960/system.img
sudo fastboot flash vendor out/target/product/hikey960/vendor.img
sudo fastboot flash cache out/target/product/hikey960/cache.img
sudo fastboot flash userdata out/target/product/hikey960/userdata.img

Result:

While this does boot after flashing the device. It doesn’t respond to the connected mouse and it is missing the launcher icon in the bottom bar. See screenshot.

Did I miss a step, or execute something extra or out of order? I have even tried flashing the recovery binaries and the precompiled images for the HiKey 960 and always get the same issues after booting.

Thanks for any assistance.

@ric96 can probably get this one.

In the mean time, was it the HiKey960 instructions you followed?

https://source.android.com/setup/build/devices#hikey960

EDIT: NVM, it looks like you have already followed these instructions. I cannot see anything immediately wrong, though I have not recreated your problem either…

Did you disconnected the USB type C from your computer before trying to use the mouse?
Launcher looks good to me, there is an upward arrow at the bottom you can click on.

1 Like

I second that, make sure the USB-C is unplugged from the board!

So when I power up the device with the USB-C disconnected I now get a dialog box that says “There’s an internal problem with your device. Contact your manufacturer for details.”

However the mouse still isn’t working. I’m using a wireless Logitech mouse with a USB dongle, would that make a difference?

One the Android preparing to build page. (Building Android  |  Android Open Source Project) They talk about downloading the proprietary binaries for a target device. Is this required for the HiKey 960? Because when I have tried that, it ran into a compile issue with the vendor.img.

That message sounds ominous. I’ve seen it on production hardware when certain parts aren’t signed right. For this hardware, I do know that they’ve been playing around with the partition splits with an aim for “project treble”, so there could be a new bug.

Try one of the known good manifests (https://github.com/96boards/aosp-known-good-manifests), try a real mouse (Logitech do some weird things sometimes, so get a generic wired usb mouse, at least for now), and don’t worry about blobs. All 1 blob needed (it’s for the gpu) is pulled in with the Android device tree.

So in attempting to use a known good manifest I am also running into errors. My luck seems to be not so great.

According to the current Readme.md is says:

  1. Initialize & sync the repo using the manifest:

    repo sync -j24 -m <MANIFEST>.xml

But when I run this command I get the following. I also tried downling the .xml into the aosp root folder and use the same command with the local filename instead, and get the same result.

$ repo sync -m https://github.com/96boards/aosp-known-good-manifests/blob/master/latest/hikey960.xml

fatal: manifest https://github.com/96boards/aosp-known-good-manifests/blob/master/latest/hikey960.xml not found

Now using other sources on the repo command and the history of the Readme.md file. If I use this command.

$ repo init -u https://github.com/96boards/aosp-known-good-manifests.git -m latest/hikey960.xml

From https://github.com/96boards/aosp-known-good-manifests

  • af9809e…9942f8d master → origin/master (forced update)
    .repo/manifests/: discarding 530 commits removed from upstream

Your identity is: ****
If you want to change this, please re-run ‘repo init’ with --config-name

repo has been initialized in /home/****/aosp

And then follow up with the command. I get this output.

$ repo sync -j24
Fetching project platform/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8
Fetching project platform/build/kati
Fetching project toolchain/benchmark
Fetching project platform/test/vts-testcase/hal-trace
Fetching project platform/external/libpcap
Fetching project platform/external/roboto-fonts
Fetching project platform/prebuilts/jdk/jdk9
Fetching project device/generic/mini-emulator-x86_64
Fetching project platform/external/markdown
Fetching project platform/prebuilts/qemu-kernel
Fetching project platform/prebuilts/gradle-plugin
Fetching project platform/system/nvram
Fetching project platform/external/volley
Fetching project device/google/dragon-kernel
Fetching project platform/external/python/gapic-google-cloud-pubsub-v1
Fetching project platform/hardware/qcom/neuralnetworks/hvxservice
Fetching project platform/external/libnl
Fetching project platform/external/compiler-rt
Fetching project platform/prebuilts/r8
Fetching project platform/tools/external/gradle
Fetching project platform/external/google-fonts/cutive-mono
Fetching project platform/packages/inputmethods/OpenWnn
Fetching project platform/tools/loganalysis
Fetching project platform/hardware/qcom/msm8960
Fetching project platform/external/selinux
Fetching project platform/external/libusb
Fetching project platform/external/elfutils
Username for ‘https://github.com’: remote: Not Found
fatal: repository ‘https://github.com/platform/external/python/gapic-google-cloud-pubsub-v1/’ not found
Fetching project platform/external/avb
remote: Not Found
fatal: repository ‘https://github.com/platform/build/kati/’ not found
remote: Not Found
fatal: repository ‘https://github.com/platform/test/vts-testcase/hal-trace/’ not found
Fetching project platform/external/ksoap2
remote: Not Found
fatal: repository ‘https://github.com/platform/external/markdown/’ not found
remote: Not Found
fatal: repository ‘https://github.com/platform/hardware/qcom/msm8960/’ not found
remote: Not Found
fatal: repository ‘https://github.com/platform/external/volley/’ not found
remote: Not Found
fatal: repository ‘https://github.com/device/generic/mini-emulator-x86_64/’ not found
remote: Not Found
fatal: repository ‘https://github.com/platform/system/nvram/’ not found
remote: Not Found
fatal: repository ‘https://github.com/platform/packages/inputmethods/OpenWnn/’ not found
remote: Not Found
fatal: repository ‘https://github.com/platform/external/libusb/’ not found
remote: Not Found
fatal: repository ‘https://github.com/platform/external/compiler-rt/’ not found
remote: Not Found
fatal: repository ‘https://github.com/platform/external/roboto-fonts/’ not found
Fetching projects: 0% (6/651) Fetching project platform/frameworks/opt/datetimepicker
remote: Not Found
fatal: repository ‘https://github.com/platform/hardware/qcom/neuralnetworks/hvxservice/’ not found
remote: Not Found
fatal: repository ‘https://github.com/platform/external/libnl/’ not found
remote: Not Found
fatal: repository ‘https://github.com/platform/external/google-fonts/cutive-mono/’ not found
Fetching projects: 1% (7/651) Fetching project platform/external/piex
remote: Not Found
fatal: repository ‘https://github.com/platform/tools/loganalysis/’ not found
remote: Not Found
fatal: repository ‘https://github.com/platform/external/selinux/’ not found
remote: Not Found
fatal: repository ‘https://github.com/platform/external/elfutils/’ not found
remote: Not Found
fatal: repository ‘https://github.com/platform/external/avb/’ not found
remote: Not Found
fatal: repository ‘https://github.com/platform/external/ksoap2/’ not found
remote: Not Found
fatal: repository ‘https://github.com/platform/frameworks/opt/datetimepicker/’ not found
remote: Not Found
fatal: repository ‘https://github.com/platform/external/piex/’ not found

Is it normal that all those repositories can’t be found? It continues to list more repositories that can’t be found but I didn’t want to spam this post with them all. (Is there a way to make portions of a post collapsible?)

Are the instructions in Readme.md correct, or are they out of date?

Got it working with pre-built images.

So it appears that I only needed to use a normal wired mouse. That and realize that the little up arrow replaced the previous circle with dots icon for the launcher.

I’m rebuilding AOSP master to confirm it works with that, but I expect it will now.

Thanks for the help!

Yeah, its been nearly 2 years (started with the Google Pixel) since they changed the icon to the little arrow. Accompanying it is a “drag up” gesture that you can use as well.