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:
- Huawei Mate 9 (MHA) / Mate 9 Pro (LON) – Link to downloads
- Huawei P10 (Victoria) / P10 Plus (Vicky) – Link to downloads
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 -j82. Output files
– Kernel : out/arch/arm64/boot/Image.gz
– module : out/drivers/*/*.ko3. How to Clean
$ make ARCH=arm64 distclean
$ rm -rf out
################################################################################
Via XDA Developers
Jean-Luc started CNX Software in 2010 as a part-time endeavor, before quitting his job as a software engineering manager, and starting to write daily news, and reviews full time later in 2011.
Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress
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.
@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
I hope that we will have working ubuntu for Hikey 960
@m][sko
then ı wıl say to huawei “shut up and take my money”