Hikey960 AOSP的驱动二进制镜像文件

下载AOSP源码(本地mirror镜像, master分支也是可以的, 版本是Android R):

repo init -u /media/liyang/mirrors/aosp/platform/manifest.git/ -b android-10.0.0_r20

然后执行编译(内存较小, 使用-j2参数):

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

但是发现警告:

device/linaro/hikey/hikey960/device-hikey960.mk:92: warning: TARGET_HISI_CODEC_VERSION () does not match exiting the build (1).
device/linaro/hikey/hikey960/device-hikey960.mk:93: warning: Please download new binaries here:
device/linaro/hikey/hikey960/device-hikey960.mk:94: warning: https://dl.google.com/dl/android/aosp/hisilicon-hikey960-OPR-3c243263.tgz 
device/linaro/hikey/hikey960/device-hikey960.mk:95: warning: And extract in the ANDROID_TOP_DIR

然后从https://dl.google.com/dl/android/aosp/hisilicon-hikey960-OPR-3c243263.tgz 下载驱动二进制文件, 解压后得到:

extract-hisilicon-hikey960.sh

将文件拷贝到AOSP目录, 然后执行:

./extract-hisilicon-hikey960.sh

完成后执行编译即可

你可能感兴趣的:(Hikey960 AOSP的驱动二进制镜像文件)