Open Source Code Released for Hisilicon Kirin 960 Based Huawei Mate 9 and Huawei P10 Smartphones

Manufacturers of products using open source software are normally required to release the source code with their modifications to follow licenses such as the GPL, but not all comply with the license. Huawei has now released the source code with Linux and other open source libraries and programs for their Huawei Mate 9 / Mate 9 Pro and Huawei P10 / P10 Plus models powered by Hisilicon Kirin 960 processor.

With the release of Hikey 960 development board most of the source code for Kirin 960 should already be available, but it’s possible some drivers/modules specific to Huawei phones may be found instead of in the Huawei release.  You’ll find the download in Huawei’s open source page for:

I picked up the LON-NG_EMUI5.0_opensource.tar.gz tarball for Mate 9 Pro (442 MB), and it comes with three directories: external with various open source programs and libraries,  kernel with Linux 4.1.18, and vendor with ffmpeg.

The build instructions for the Linux kernel are also included in the tarball:

################################################################################

1. How to Build
– get Toolchain from android git server, codesourcery and etc ..
– aarch64-linux-android-4.9

– edit Makefile
edit CROSS_COMPILE to right toolchain path(You downloaded).
Ex)   export PATH=$PATH:$(android platform directory you download)/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin
Ex)   export CROSS_COMPILE=aarch64-linux-android-

$ mkdir ../out
$ make ARCH=arm64 O=../out merge_hi3660_defconfig
$ make ARCH=arm64 O=../out -j8

2. Output files
– Kernel : out/arch/arm64/boot/Image.gz
– module : out/drivers/*/*.ko

3. How to Clean
$ make ARCH=arm64 distclean
$ rm -rf out
################################################################################

Via XDA Developers

Share this:
FacebookTwitterHacker NewsSlashdotRedditLinkedInPinterestFlipboardMeWeLineEmailShare

Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress

ROCK 5 ITX RK3588 mini-ITX motherboard

4 Replies to “Open Source Code Released for Hisilicon Kirin 960 Based Huawei Mate 9 and Huawei P10 Smartphones”

  1. We need that for other chipsets as well. I have a Mediapad M3 with Hisilicon Kirin 950. Since it has an unlockable bootloader, it may boost development a lot for it.

  2. @Mihai
    Search for M3 in Huawei open source page. You’ll find two products:
    BTV-DL09 M3, BTV-DL09, Android 6.0, EMUI4.1
    BTV-W09 M3, BTV-W09, Android 6.0, EMUI4.1

Leave a Reply

Your email address will not be published. Required fields are marked *

Boardcon Rockchip and Allwinner SoM and SBC products
Boardcon Rockchip and Allwinner SoM and SBC products