Hikey960 env build:

1.System base: Ubuntu 18.04 server
2.download repo:
    a. mkdir ~/bin
    b. PATH=~/bin:$PATH
    c. curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
    d. chmod a+x ~/bin/repo
3.download aosp and hikey960 packages
    get https://mirrors.tuna.tsinghua.edu.cn/aosp-monthly/aosp-20200301.tar
    and https://dl.google.com/dl/android/aosp/arm-hikey960-OPR-cf4e0c80.tgz
    and https://dl.google.com/dl/android/aosp/hisilicon-hikey960-OPR-3c243263.tgz
4.build aosp
    a. tar -xvf aosp-20200301.tar
    b. cd aosp
    c. ./.repo/repo/repo init -u git://mirrors.ustc.edu.cn/aosp/platform/manifest -b android-11.0.0_r3
    d. ./.repo/repo/repo sync (without -jx)
    e. . ./build/envsetup.sh
    f. lunch hikey960-userdebug
    g. make -j8

    bld script:    
    export PATH=/root/caiyang/android-ndk-r15c/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin:$PATH
    export NDK=/root/caiyang/android-ndk-r15c
    export PATH=${PATH}:$NDK
    source build/envsetup.sh
    lunch hikey960-userdebug
    make bootimage -j16

5.build hikey-kernel
    a. tar -xvf arm-hikey960-OPR-cf4e0c80.tgz
    b. ./extract-arm-hikey960.sh
    c. git clone git://mirrors.ustc.edu.cn/aosp/kernel/hikey-linaro
    d. install android-ndk-r15c package and add to PATH
    e. make ARCH=arm64 hikey960_defconfig
    f. make ARCH=arm64 CROSS_COMPILE=aarch64-linux-android- -j16
    
    build script:
6.rebuild aosp bootimage
    q. cd aosp && make bootimage

Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐