CAF: What exactly does it affect? - ONE Q&A, Help & Troubleshooting

First off, let me say that I get what CAF is to a point. I know it's a modification of the linux kernel to support Qualcomm hardware. That's basically where my knowledge ends. I have run Linux for the last 10 years, including Gentoo, which is all configure from source base, and have custom compiled kernels. I don't need the 5 year old explination, however, I still have these questions.
1. Is the kernel the only thing with CAF built on, or is it OS level also?
2. Do you need a CAF kernel with a CAF ROM if the ansver to question 1 is yes.
Thank you very much for your time.

Not just the kernel. CAF includes different drivers/libs/etc
Here is example from Vivek_Neel's thread
{
"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"
}
Afaik it's possible to boot without Sultan's CAF kernel, just with things above, am i right @Vivek_Neel ?
But it's pointless, kernel is the most important thing in this CAF bundle

kdb424 said:
First off, let me say that I get what CAF is to a point. I know it's a modification of the linux kernel to support Qualcomm hardware. That's basically where my knowledge ends. I have run Linux for the last 10 years, including Gentoo, which is all configure from source base, and have custom compiled kernels. I don't need the 5 year old explination, however, I still have these questions.
1. Is the kernel the only thing with CAF built on, or is it OS level also?
2. Do you need a CAF kernel with a CAF ROM if the ansver to question 1 is yes.
Thank you very much for your time.
Click to expand...
Click to collapse
1. Not only the kernel repo but there are many repos we replace with the caf ones.
You can find it here in the op http://forum.xda-developers.com/showthread.php?t=3205077
2. You need a caf ROM I.e caf commits included in the ROM to boot caf kernel.

Thank you both. You answerd my questions quite well. I thought as much, but I've learned don't assume when it comes to things like this.

Can I use source code caf kernel and caf ROM opo for oppo find 7a?
sorry for my English.

BIG37 said:
Can I use source code caf kernel and caf ROM opo for oppo find 7a?
sorry for my English.
Click to expand...
Click to collapse
No, opo is tho 1+1 and oppo, is a different company. Don't try to flash things designed for other devices. Sorry about that.

BIG37 said:
Can I use source code caf kernel and caf ROM opo for oppo find 7a?
sorry for my English.
Click to expand...
Click to collapse
It shouldn't be too hard to adapt since the devices are so similar. But, do not try using it straight up without making the specific device changes first.

Related

Just Rooted! What now...

So I just rooted my OnePlus One and I want to get the FrancoKernel to save some battery but I don't think it's compatible with the version I am on. I am on CM 12.1.1-YOG7DAS2K1. What are my other options as far as kernels that improve battery life? Also other things I can do to save some battery since I am rooted? Thanks for the help!
ndnpwn said:
So I just rooted my OnePlus One and I want to get the FrancoKernel to save some battery but I don't think it's compatible with the version I am on. I am on CM 12.1.1-YOG7DAS2K1. What are my other options as far as kernels that improve battery life? Also other things I can do to save some battery since I am rooted? Thanks for the help!
Click to expand...
Click to collapse
You can just test the kernel if you want, but make sure you have make a backup of the kernel in CWM / TWRP. (Just in case you have problems).
NOTE: Most kernels are based to ROMS from the developer. Always read the thread if your ROM works with the kernel you want to install, or you will get bootloops :silly:
I use the AK kernel (AK.311.OP1.CM.zip) --> Link
Alot of users prefare AK kernel over Franco kernel, but you have to try it for yourself.
How to make a backup
{
"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"
}
The links below like the link for the AK kernel profiles are very useful.
Take a look at the these links
AK Kernel - (XDA Link)
AK Kernel Profile - Synapse - (XDA Link)
AK Kernel Profile Thread - (http://forum.xda-developers.com/showpost.php?p=61253204&postcount=3009)
Other XDA Kernel profile list: CM 12.1 Based Kernel Profiles
AK Kernel website - (Website Link)
Oneplus One thread - Franco VS AK Kernel (1+1 Link)
I hope this is what you are looking for.. :good:
Have a good day!
ndnpwn said:
So I just rooted my OnePlus One and I want to get the FrancoKernel to save some battery but I don't think it's compatible with the version I am on. I am on CM 12.1.1-YOG7DAS2K1. What are my other options as far as kernels that improve battery life? Also other things I can do to save some battery since I am rooted? Thanks for the help!
Click to expand...
Click to collapse
Do not attempt to install Franco Kernel. The last version he made is compatible with COS12. Right now there's only one kernel made specifically for COS12.1.1 and its Boeffla (4.2 Beta 2). You can try AK cause it's using a special format that makes it compatible with almost any 5.1.1 based CM ROM (311)
Sent from my A0001 using Tapatalk

[p9 lite] kernel source updated to 3.10.102 - use it if you want! + Flashable image

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?

【NEWS-22/6/2018】I was disappointed with this company【xiaomi】

I used the wrong configuration: sdm845 ... the compiled kernel could not be started.
Here, I apologize to the Xiaomi open source team and I'm sorry.
At the same time, I will delete the negative expressions in the post.
Hope that the XiaoMi open source team forgives.
https://github.com/MiCode/Xiaomi_Kernel_OpenSource/issues/904
{
"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"
}
latest news:
This reply proves that the code can run: here
I apologize for the incident and I'm sorry.
I will upload my modified code and compiled result
source: this
How to compile
Code:
[STRIKE]download source
bzip2 -cd ./mix2s-kernel-source.tar.bz2 | tar xvf -
cd mix2s-kernel
./build_kernel.sh
input 1 enter[/STRIKE]
kernel(linaro gcc 7.3 archlinux): this
Hope someone is testing.
old:
Xiaomi responsible for open source personnel replied to my question:
The compiled kernel can run on the latest system and all functions are normal.
Normal! Miui learn apple system!
that's why nobody made a third part ROM for MIX2S?
zhanghamo said:
that's why nobody made a third part ROM for MIX2S?
Click to expand...
Click to collapse
No, it's the snapdragon 845 sources we are waiting for
Flatric said:
No, it's the snapdragon 845 sources we are waiting for
Click to expand...
Click to collapse
No, oneplus 6 has unofficial LOS and some custom kernels.
nguyenlucky said:
No, oneplus 6 has unofficial LOS and some custom kernels.
Click to expand...
Click to collapse
No it has not. It's the treble Los by phhusson, MI mix 2s has that too...
Flatric said:
No it has not. It's the treble Los by phhusson, MI mix 2s has that too...
Click to expand...
Click to collapse
Is there any difference between using a Treble port and a "proper" port for the device?
Dombard said:
Is there any difference between using a Treble port and a "proper" port for the device?
Click to expand...
Click to collapse
Actually I don't know, however there are some device specific bugs on the treble roms and if you encounter a problem with a port it's more likely that it'll be fixed faster
大哥,憋说了,mix2s的相机卡顿从发布到现在都没修复呢。、
miui 的工程师可能在食屎。
劳资发了个帖子说相机变焦卡顿和内存泄漏还被删了,甘霖娘。
ark1106 said:
大哥,憋说了,mix2s的相机卡顿从发布到现在都没修复呢。、
miui 的工程师可能在食屎。
劳资发了个帖子说相机变焦卡顿和内存泄漏还被删了,甘霖娘。
Click to expand...
Click to collapse
Please follow the regulations and reply in English.
Compiling with miui, this is an impossible condition for others. I hope other people can fix it.
double check it .
works well
From latest update of the issue at github, the source code was confirmed good.
Hopefully there will be custom roms coming.

[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

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