[p9 lite] kernel source updated to 3.10.102 - use it if you want! + Flashable image - Huawei P9 ROMs, Kernels, Recoveries, & Other Devel

I think I'm really close to building the kernel for the P9 Lite, but now I am stuck at the Hisilicon driver.
[edit] Compilation succesful! People, feel free to use this updated version of the kernel source and do whatever you want with it. It's been carefully upgraded as you can see in commit history.
( initially I forgot to include $ make ARCH=arm64 O=../out merge_hi6250_defconfig , doh, RTFM)
Edited source code at my repository https://github.com/twicejr/HUAWEI-P9-Lite_OpenSource
( Props to paulobrien for the idea and great tutorial on P9 http://forum.xda-developers.com/p9/development/how-to-build-kernel-huawei-p9-t3373617 )
I've copied the p9 kernel config, because I didn't know how to do it from the p9 lite kernel image.
I've used paulobrien's code to see how I would proceed... all I did was copy the p9 kernel config, and put it on top of the source code from Huawei:
http://download-c.huawei.com/downlo...oadId=80203&version=318922&siteCode=worldwide
Then I have applied all the linux kernel patches for 3.10 from https://www.kernel.org/pub/linux/kernel/v3.x/
- it included manually patching lots of files because they failed in automatic patching
Maybe someone else with more experience can use my source code, fork it or take it over from me :angel:
I'd love to help and learn more too. I am a linux webdeveloper, willing to learn more about c, etc.
The main goal for me would be to provide a better kernel and eventually integrate more features, like undervolting

https://www.dropbox.com/s/xce4l3uuzmcbf0u/boot.img?dl=1 Download boot image here !
It will work on the P9 Lite only. My device is a VNS-L31 , but the kernel source is universal. I suppose VNS-L21 will work as well.
Please backup your boot image first ( I used flashify)!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

Thanks, that's great!

Hello
If we flash this kernel we Will lose root??

@twicejr 3.10.103 upstream is out

Link?

BadWolfYe said:
Link?
Click to expand...
Click to collapse
https://lkml.org/lkml/2016/8/31/782

Hello,
Build: VNS L31C432B151
Emui: 4.1.1
Android: 6.O
I need a custom kernel to flash around, can there anyone help me ?
Most of all for the most current version 151 .
That would be very nice.

hello! can you please take a look if you can add Multirom support to the kernel? @Meticulus already booted cm13 on p9 lite and it would be nice if we could dual boot emui with the cm build... thanks!

How was it? Something specifically improved after installation?

Related

How edit a kernel?

I'm using MIUI rom for my Nexus S. I have tested Netarchy kernel, the most complete of his genre, but it give me stability issues.
I want take the default android kernel and add some non-invasive features like overclock, bln, etc. wich let's MIUI run stable.
My problem is that i don't know how i can edit a kernel. Unpack .img files, decompile and recompile them.
Anyone can help me with a small introduction?
Thanks a lot.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
dario3040 said:
Click to expand...
Click to collapse
seems like a reasonable request :S
I have to laugh?
fede91it said:
I'm using MIUI rom for my Nexus S. I have tested Netarchy kernel, the most complete of his genre, but it give me stability issues.
I want take the default android kernel and add some non-invasive features like overclock, bln, etc. wich let's MIUI run stable.
My problem is that i don't know how i can edit a kernel. Unpack .img files, decompile and recompile them.
Anyone can help me with a small introduction?
Thanks a lot.
Click to expand...
Click to collapse
first of all, wrong section..even though it is about "development"...still a question
anyways, there is no way to "edit a kernel" they have to be built from source. changes need to be made before you compile it.
there are many threads here on xda with tutorials -search >compile kernel<
a simple way to start is seach >mkbootimg< normally this would be compiled from source as well but there are a few threads that people have posted tutorials of the ins and outs and have packages for download.
basically with that you can "split" a boot.img separating the ramdisk (specific to the rom) and the kernel...then merge "your" miui ramdisk with a working (or built for other rom) kernel
You can start here:
http://forum.xda-developers.com/showthread.php?t=1039854
Moved to Q&A.

[REQ]Dump of the preinstalled rom

With the release of the kernel sources, it seems that the 3 AndroidOne devices all share the same kernel and internals,
with only the rom branding and chassis they're in being different.
If this is the case, then the roms themselves are built by goog and thusly OTAs handled directly by them.
What it also implies is that the 3 devices might be able to share roms and kernels as they already appear to share kernel sources.
What I need:
Dump of /system
If the rom prompted for an OTA at initial setup
Dump of /oem
Bootloader version
Baseband version
TheManii said:
With the release of the kernel sources, it seems that the 3 AndroidOne devices all share the same kernel and internals,
with only the rom branding and chassis they're in being different.
If this is the case, then the roms themselves are built by goog and thusly OTAs handled directly by them.
What it also implies is that the 3 devices might be able to share roms and kernels as they already appear to share kernel sources.
What I need:
Dump of /system
If the rom prompted for an OTA at initial setup
Bootloader version
Baseband version
Click to expand...
Click to collapse
managed to get this.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
waiting for dump too.
Sudeep Duhoon said:
managed to get this.
waiting for dump too.
Click to expand...
Click to collapse
could someone please upload the rom dump here...
if possible port it to mmx unite 2 ??
16636
Hi all) Make please dump or backup in CWM recovery and lay out it here.
Bump: still need a dump of /system, /oem, and the bootloader version from fastboot
Edit: there is a factory install image, I have everything I need from this device:
Code:
Baseband: WR8.W1412.MD.WG.GMP.SP.W14.26.P3,2014/08/15 11:39
Bootloader: 0.5.17
ro.build.thumbprint=4.4.4/KPW53/1379542:user/release-keys
ro.product.model=Sparkle V

[Tool][Linux] Kernel Buildinator [by Siddharth Bharadwaj]

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Ever wanted to compile/build an android kernel ? But don't want to learn all the commands ? Then here comes a tool for you "Kernel Buildinator". Now, no need to learn any commands. This tool is focused on automating as much part as possible of Kernel compiling process, from setting up build environment and downloading required packages to making a flash-able kernel zip. This Script can be used by both NOOB's and PRO's I hope you will like my work.
What features this tool provide ?
⦿ Automated Build Environment Setup
⦿ Automated CCACHE Configuration
⦿ Cloning Kernel Source & Toolchains
⦿ Compiling The Kernel (OFC )
⦿ Making A Flashable Kernel Zip
How's this different from other kernel building scripts ?
As far as i know, to use those scripts we need to manually download kernel source and toolchains and some of the scripts doesn't work for everyone because they are made by devs for their personal use. I might be wrong though.
Instructions to use :-
1. Clone the script from Github
2. Give execution permission to all scripts inside Kernel_Buildinator using "chmod +x" (Only if required)
3. Start the script using bash "setup.sh"
4. Fill all the asked questions
5. Sit Back and see the compilation happening
Note: Only "setup.sh" should be used to start the process or you might break something
FAQ:-
Q. What is a kernel ?
=> This might help you: KERNEL
Q. Does this support Clang ?
=> Yes, it does support Clang and can be selected while on the setup screen
Q. I am getting errors, what to do ?
=> If the error is related to the script then please let me know and i will try to fix it. But if it is related to kernel source then you have to solve it yourself as this tool/script is only intended to build/compile the kernel.
Source Code:https://github.com/SiddharthBharadwaj/Kernel_Buildinator
I would like to thank :
@osm0sis for Anykernel
@rebenok90x for https://github.com/rebenok90x/kernel-builder
 @dhruvcburman for helping in debugging
Sorry if i forgot someone !!!
Liked My Work ? Want to support via donating ? Then just donate me a build server or You can Donate via :
PayPal: https://www.paypal.me/SiddharthBharadwajYT
UPI(Only for Indian Users): [email protected]
Reserved
Noice

Aosp 5.1 Review for Huawei Y3 Lua U-22 - Tested by Myself

Hello World!
I have used Huawei Lua U-22 for somedays & flashed some CR there. I have used 3 rom from this post - Custom Roms For Huawei Y3II. Please kindly go to that post to get the download links.
Here, I am only posting some screenshots of those rom because main post didn't include them. Hope you'll 'njoy!
Aosp 5.1​Android Open Source Project - AOSP. Another clean and responsive rom for Y3 Lua U-22. The only downside of this rom I think is the ringtone section. Existing ringtones are not that good. Consider using from other source.
I can't remember, but the rom is probably not pre-rooted. I have flashed magisk to gain root access.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Thank you ❤
How to install the OS? Can you direct me to any thread
asiricot said:
How to install the OS? Can you direct me to any thread
Click to expand...
Click to collapse
Hi,
First of all, I am really sorry I didn't see you commented. Too late :/
Anyway, unfortunately I couldn't find any thread which will guide you how to install the rom. And there is a reason for this - installing a rom is self explanatory, and very easy. You'll need a custom recovery like TWRP. Then keep the rom file in your phone storage, boot the device in recovery mode, select the rom, & press flash. After finishing the installation, reboot device, you're done!
Here are some video for you to understand the situation:
Before that, you have to root your device of course, and unlock the bootloader. Here's a video for that too, if you didn't unlock your bootloader already:
BTW, don't try to install any rom that is not made for Huawei Y3 Lua U22. It may permanently brick your device. I tried to cross port a rom & flash it myself, and guess what? My device is no more :')
Have a good day!

General Twrp3.5.2 for Lenovo TB-J706F

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Built on Android 10
source code address: https://github.com/HK4567/android_device_lenvovo_TB-J706F.git
Good news !!!
Any special instructions for installation ?
Thank you for your work.
Did you use a prebuilt kernel from the official firmware to compile this?
Your tree appears to have a prebuilt dtbo and Image.gz.
I wonder if you actually compiled them. (Lenovo P11 normal variant kernel is half-baked, so if it works on your variant I may be able to utilize common lenovo stuff)
LegendOcta said:
Thank you for your work.
Did you use a prebuilt kernel from the official firmware to compile this?
Your tree appears to have a prebuilt dtbo and Image.gz.
I wonder if you actually compiled them. (Lenovo P11 normal variant kernel is half-baked, so if it works on your variant I may be able to utilize common lenovo stuff)
Click to expand...
Click to collapse
Are you wanting them compiled from source or do you want to use the Lenovo P11 ones ? I have them for the P11 Pro j706f from source if you want them. It compiled with no errors and barely a warning, I was not expecting that.
LegendOcta said:
Thank you for your work.
Did you use a prebuilt kernel from the official firmware to compile this?
Your tree appears to have a prebuilt dtbo and Image.gz.
I wonder if you actually compiled them. (Lenovo P11 normal variant kernel is half-baked, so if it works on your variant I may be able to utilize common lenovo stuff)
Click to expand...
Click to collapse
Yes, extracted from the official firmware zui12.336
----(from google translate)
hk4567 said:
Yes, extracted from the official firmware zui12.336
----(from google translate)
Click to expand...
Click to collapse
This is sad.
Are you from China? If so, does lenovo give kernel source code in china site? I can't seem to get the newest version in lenovo global site. Thanks
They are not going to open source
Binary?

Categories

Resources