The project is based on the AOSP version, which is specified in the corresponding manifest filename android-X.X.X_rX.xml
.
ncar_x86
- emulator for x86 architecturencar_hikey960
- for HiKey960 board
- boost-1.72.0
- vsomeip 3.1.20.3
- CommonAPI via SOMEIP runtime libraries:
- CommonAPI example - setups and tests communication between two native daemons
- Vendor nkh-lab VHAL - implements VHAL and extends vehicle/2.0/types.hal::VehicleProperty with custom vendor properties
- CAR API usage example
- Share AVD - tool project for sharing Emulator for others to use with Android Studio
- <device>.mk parser - tool project for parsing AOSP device mk file dependencies to PlantUML format
- nkhlablogger - utility library for source code tracing and debugging
Link to HW and SW requirements from Google.
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:
. ./build/envsetup.sh
lunch ncar_x86-userdebug
make
Run:
emulator
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