Skip to content

nkh-lab/aosp-ncar-manifest

Repository files navigation

NCAR - Android Automotive Project

The project is based on the AOSP version, which is specified in the corresponding manifest filename android-X.X.X_rX.xml.

Supported Devices

  • ncar_x86 - emulator for x86 architecture
  • ncar_hikey960 - for HiKey960 board

Additionally supported SW

Third Party Native libraries:

Tools, Utils and Example projects

Requirements to host PC

Link to HW and SW requirements from Google.

Download source tree

mkdir ncar && cd ncar
repo init -u https://github.com/nkh-lab/aosp-ncar-manifest.git
repo sync -c -d

Or, if you want to use a specific release of AOSP (check supported releases in the branch list), specify it via the branch name:

repo init -u https://github.com/nkh-lab/aosp-ncar-manifest.git -b android-11.0.0_r48

Build and Run Emulator

Build:

. ./build/envsetup.sh
lunch ncar_x86-userdebug
make

Run:

emulator

Build and Flash HiKey960

Build:

. ./build/envsetup.sh
lunch ncar_hikey960-userdebug
make

If you're building for the first time, you'll be asked during lunch about downloading the Linaro binaries:

device/linaro/hikey/device-common.mk:36: warning: Missing Linaro Vendor Package!
device/linaro/hikey/device-common.mk:37: warning: Please download new binaries here:
device/linaro/hikey/device-common.mk:38: warning: https://releases.linaro.org/android/aosp-linaro-vendor-package/extract-linaro_devices-20220210.tgz
device/linaro/hikey/device-common.mk:39: warning: And extract in the ANDROID_TOP_DIR
device/linaro/hikey/device-common.mk:41: warning: EXPECTED_LINARO_VENDOR_VERSION=20220210

So, download the archive, extract the script from it into the root of the project and run it.

Flash:

adb reboot bootloader
./device/linaro/hikey/installer/hikey960/flash-all.sh

See also Known Issues