2. extract vendoride
extract-arm-hikey960.sh (arm-hikey960-OPR-cf4e0c80.tgz)
(1). Uncompress it
(2). Copy the .sh file into the top folder level of AOSP source.
(3). Run the .sh file
(4). Accept the agreement ui
you will find vendor directory spa
3. compile the android P source code for Hikey platform
$ source build/envsetup.sh
$ lunch Hikey960-userdebug
$make -j32
----final img
debug
4.Installing initial imagescode
(1)Select fastboot mode turning ON switch 1 and 3 (for details, refer to the HiKey960 user guide).
(2). Power the board.
(3). Flash initial images:orm
1blog
$ sudo ./device/linaro/hikey/installer/hikey960/flash-all.shci
(4) Turn OFF "switch 3" and power cycle the board.get
5. download images
(1)Enter fastboot mode by turning ON switch 1 and 3.
(2) Flash images by running the following commands:
#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 userdata out/target/product/hikey960/userdata.img
(3)Turn OFF "switch 3" and power cycle the board