Removing BLN from compiled kernel - Nexus S Q&A, Help & Troubleshooting

Hi guys,
Some of you might have noticed that the old BLN from neldar implemented in most nexus s kernels doesn't work anymore with the cm10.2 based ROM. It also breaks the CM implementation of BLN, so by flashing a custom kernel on those ROM means we lose BLN altogether. So, is there a way to remove BLN from an already compiled kernel so it doesn't conflict with CM implementation? Most kernel are no more active (marmite, matrix...) So unless someone is able to build a new one from source without BLN, which I can't, we have to remove it from the zip file...
Thanks!

Related

(Q) Sweep2wake

Is there a way to install "sweep2wake" as a seperate module? ok sorry i dont know how to describe the right for this function.
nk111 integrated a time ago in cm9 nightly builds, but i didnt find a way to install it on different roms (e.g. fallout)
You cannot flash the AOSP kernel in a sense ROM.
It can be implemented in a sense kernel in the future, once HTC releases the kernel sources.
Tapatalked from a Desire S waiting for Kernel 3 sources. WAKE UP HTC!!!!!!
To be more clear. The swipe2wake functionality is kernel dependant, thus not available as a standalone app that you can install in any ROM. To have it, you should have a kernel that has it integrated (like the one from nk111), but till now I don't know any Sense kernel that has it. A dev should integrate the code and compile a new Sense kernel for that

[Q] Official Kernel vs Modded / Custom Kernels?

Did a search but no dice...
Basically I am struggling to see the benefits, or differences for that matter, between having the official kernel source from HTC vs custom ones the clever devs have produced.
Am I right in thinking that kernel source for ICS has been released for our One S, but not the kernel source for JB yet?
In which case, how come there are custom kernels available for both ICS based ROMs, such as Beastmode Bricked Kernel, and JB based ROMs such as ElementalX kernel? They are both working and functioning, with similar enough features.
Is it just that all the custom ICS Kernels are built up on more stable source code and so have less errors and bugs etc? Whereas the JB Kernels are being built from scratch so it takes longer to overcome errors, and features have to slowly be added in one by one?
I am struggling to see the reason why everyone is so desperate for HTC to release the JB Kernel source code for the One S when the devs have already got us working custom kernels???
Yes, the kernel source for ICS has been released, but not for JB yet.
I dont keep much track of kernels for JB, but most of them are for AOSP roms. The ones for Sense roms can change some things, but most of the settings needs to be applied during installation of the kernel.
Custom kernels offers a lot of custimization. What kind of custimization? Well, changing the CPU Speed and voltage is one of them - which can be used to either increase performance, or increase battery life. They also (in most cases) come with much better governours, which increases both speed and performance (simply put - a governour is what decides when a certain cpu speed is supposed to be used).
And then theres other things, for example sweep2wake, USB OTG with a normal usb cable etc etc.
From my POV, the CPU settings is what appeals to me the most. And back when I used stock ICS it was the USB OTG feature that appealed the most.
If you dont care about any of these things, then theres not much point in a custom kernel.
To summorize in one line: Custom kernels offers a lot more features than a stock kernel.
I understand all the option custom kernels offer, but my real question was; why is there so much need for the official JB source code when there already are JB custom kernels?
And as I said, most of them are for AOSP roms. The ones for Sense roms can change some things, but most of the settings needs to be applied during installation of the kernel.
To clarify: with the source, we can change all the settings within the OS, without the need to reinstall the kernel to change the CPU speed for example.
ahhh I'm following you now I think. So with the official source code there is less need for Aroma installers etc? as all those settings can be edited 'on the go' rather than declared for good at the installation, and remain unchangeable until a new kernel is fastbooted?
Exactly. With a (real) custom kernel, you can for example overclock the CPU when you want to play a game, and when you're done playing, you can change it back. Without the need of a reboot/reinstall.
Also custom kernels for JB Sense ROMs unlock writing to the system folder.
Sent from my HTC One S Special Edition using xda app-developers app
mainly, you cannot produce a custom kernel without the source code. Elemental is actually the stock kernel using initd scripts. You cannot add sweep 2 wake, etc..
HTC_One_S | Xparent_ICS_Blue_Tapatalk_2 1.06_Hboot_Downgrade | unofficial_4.2.1_AOKP_Feb7 | Komodo_Kernel

[Q] change from CM11 to FRANCO KERNEL

Hello community,
I am a rookie in the subject of kernels/roms and I would love to have some precious help from any1 that knows even the smallest of information. I recently installed CM kernel and CM nightly 0422. The thing is, I read in many forums (in here as well) that there is a kernel that can boost battery life to its max, Franco Kernel. But I also read that it is somehow incompatible with CM 10+ and causes bootloop if you install it with CM already in phone. What I can't understand is why can't I just simply replace CM kernel (like stock kernel was replaced by CM kernel) by Franco Kernel? What is the fact that I am missing?
ALL (and I mean ALL) help will be highly appreaciated, thanks for your time
T.
f33d_me_plz said:
Hello community,
I am a rookie in the subject of kernels/roms and I would love to have some precious help from any1 that knows even the smallest of information. I recently installed CM kernel and CM nightly 0422. The thing is, I read in many forums (in here as well) that there is a kernel that can boost battery life to its max, Franco Kernel. But I also read that it is somehow incompatible with CM 10+ and causes bootloop if you install it with CM already in phone. What I can't understand is why can't I just simply replace CM kernel (like stock kernel was replaced by CM kernel) by Franco Kernel? What is the fact that I am missing?
ALL (and I mean ALL) help will be highly appreaciated, thanks for your time
T.
Click to expand...
Click to collapse
first off.. there is no magic pill to give your phone for battery life. battery life mostly depends on your personal usage, your personal setup, your apps used, and most importantly the quality of your phone/data connection. everything else is minor for battery life, including kernels.
cm uses CAF as its base now, they went away from aosp(like most kernels here). so everything that is aosp based is not compatible with cm anymore. franco kernel is aosp based(most kernels are). there are a few kernels that are CAF based built just for cm and cm based roms.
simms22 said:
first off.. there is no magic pill to give your phone for battery life. battery life mostly depends on your personal usage, your personal setup, your apps used, and most importantly the quality of your phone/data connection. everything else is minor for battery life, including kernels.
cm uses CAF as its base now, they went away from aosp(like most kernels here). so everything that is aosp based is not compatible with cm anymore. franco kernel is aosp based(most kernels are). there are a few kernels that are CAF based built just for cm and cm based roms.
Click to expand...
Click to collapse
Thanks for your time and your answer
First of all, I know for myself that there is no magic pill about battery life, I just read in too many threads that FK added a good portion of battery life (with same use of phone like when it had CM) ! Moreover it allows you to overclock (my) Nexus5 beyond 2.2GHz, something that CM doesn't allow you too (I know that overclocking kills battery, I just want to test something). What I don't understand is how can FK mess up with CM when both are different kernels and by installing FK over CM means that FK replaces CM. There is no CM in the end, only FK. Or not...? What have I understood wrong?
Thanks again
f33d_me_plz said:
Thanks for your time and your answer
First of all, I know for myself that there is no magic pill about battery life, I just read in too many threads that FK added a good portion of battery life (with same use of phone like when it had CM) ! Moreover it allows you to overclock (my) Nexus5 beyond 2.2GHz, something that CM doesn't allow you too (I know that overclocking kills battery, I just want to test something). What I don't understand is how can FK mess up with CM when both are different kernels and by installing FK over CM means that FK replaces CM. There is no CM in the end, only FK. Or not...? What have I understood wrong?
Thanks again
Click to expand...
Click to collapse
yes, franco would replace cm kernel if all worked right. but what you are doing is replacing cm kernel with franco kernel, but cm rom stays on your phone. franco kernel is incompatible with cm rom. since franco is aosp and cm is caf, your phone would never boot up all the way.
simms22 said:
yes, franco would replace cm kernel if all worked right. but what you are doing is replacing cm kernel with franco kernel, but cm rom stays on your phone. franco kernel is incompatible with cm rom. since franco is aosp and cm is caf, your phone would never boot up all the way.
Click to expand...
Click to collapse
So, if I am getting your point right, since one is aosp and the other is caf THAT is the reason why CM doesn't uninstall and will exist together with franco? Is there a way to permanently delete CM in order to install franco? Maybe to go back to stock kernel then install FK?
f33d_me_plz said:
So, if I am getting your point right, since one is aosp and the other is caf THAT is the reason why CM doesn't uninstall and will exist together with franco? Is there a way to permanently delete CM in order to install franco? Maybe to go back to stock kernel then install FK?
Click to expand...
Click to collapse
its not about the kernel, its about the rom. they are different things. when you flash a kernel(any), it replaces the kernel thats on your phone(kernels come with roms, cm kernel with cm rom). cm rom includes cm kernel, both are built from caf source. franco kernel is aosp, it is not compatible with cm rom. it has nothing to do with cm kernel, it replaces cm kernel when flashed. but you will never boot up your phone because it isnt compatible with cm rom.
simms22 said:
its not about the kernel, its about the rom. they are different things. when you flash a kernel(any), it replaces the kernel thats on your phone(kernels come with roms, cm kernel with cm rom). cm rom includes cm kernel, both are built from caf source. franco kernel is aosp, it is not compatible with cm rom. it has nothing to do with cm kernel, it replaces cm kernel when flashed. but you will never boot up your phone because it isnt compatible with cm rom.
Click to expand...
Click to collapse
ok, finally I got it, thanks to you Last question... is there a way to get FK now or am I just locked to caf due to CM "for life"? which way (if there is any at all) in your opinion is the best way to go from CM to FK? maybe go back to stock rom/kernel then flash FK? Will this work?
f33d_me_plz said:
ok, finally I got it, thanks to you Last question... is there a way to get FK now or am I just locked to caf due to CM "for life"? which way (if there is any at all) in your opinion is the best way to go from CM to FK? maybe go back to stock rom/kernel then flash FK? Will this work?
Click to expand...
Click to collapse
no, they arent compatible at all. you can not use franco kernel with any cm based roms. you can change roms and use franco kernel with it, any aosp rom or even the stock rom. but cm isnt compatible at all with franko kernel.
simms22 said:
no, they arent compatible at all. you can not use franco kernel with any cm based roms. you can change roms and use franco kernel with it, any aosp rom or even the stock rom. but cm isnt compatible at all with franko kernel.
Click to expand...
Click to collapse
Thanks man !!
f33d_me_plz said:
Thanks man !!
Click to expand...
Click to collapse
If your looking for a good CAF kernel to run with a PAC or CM based ROM. I'd recommend the ElementalX CAF kernel. It's very stable, rich features, great performance and great battery life. Make sure to read the OP for directions and if you decide to try it out download the ElementalX R38 version with the aromma installer (not the express version) As with running any new kernel run it for a few days minimum to allow for it by on settle in.
There is another option for you to explore too - http://forum.xda-developers.com/google-nexus-5/development/cm11-users-heres-how-aospnon-caf-t2626961
This allows you to run a script that will basically De-CAF your rom and allow you to run a AOSP kernel on CM11ROMs.. Be sure to read the OP. It works with many CM11 and CM based ROMs, but not on all the newest versions. Definitely worth checking out.
xdrc45 said:
If your looking for a good CAF kernel to run with a PAC or CM based ROM. I'd recommend the ElementalX CAF kernel. It's very stable, rich features, great performance and great battery life. Make sure to read the OP for directions and if you decide to try it out download the ElementalX R38 version with the aromma installer (not the express version) As with running any new kernel run it for a few days minimum to allow for it by on settle in.
There is another option for you to explore too - http://forum.xda-developers.com/google-nexus-5/development/cm11-users-heres-how-aospnon-caf-t2626961
This allows you to run a script that will basically De-CAF your rom and allow you to run a AOSP kernel on CM11ROMs.. Be sure to read the OP. It works with many CM11 and CM based ROMs, but not on all the newest versions. Definitely worth checking out.
Click to expand...
Click to collapse
Thanks for your interest and time! I will sure check both your ROM and the De-CAF script soon and post my opinion/experience ! For newbies like me that are reading this post, here is a quite enbrightening thread about CAF and qualcomm processors (although it's Reddit, it's quite explanatory).
Peace!
T.
f33d_me_plz said:
Thanks for your interest and time! I will sure check both your ROM and the De-CAF script soon and post my opinion/experience ! For newbies like me that are reading this post, here is a quite enbrightening thread about CAF and qualcomm processors (although it's Reddit, it's quite explanatory).
Peace!
T.
Click to expand...
Click to collapse
Sorry, I forgot to paste the link cheers ! http://www.reddit.com/r/Android/comments/1rt9md/eli5_what_is_caf_why_is_cm_going_caf_affects_the/

Fauxsound

Hi, just wondering why does any cm rom/kernel that I flashed doesn't contain settings for Motorola tpa6165 amplifier in fauxsound. While in stock rom,the option was there. Eventhough both kernel have the same faux sound driver. The same also happened with aero kernel in cm. But in stock it is there.
I would like to know if it's possible to add it to cm11 based rom too. It's not a kernels' problem but cm11 based roms'.

Which kernel to use [Bacon - Aosp - Caf] - Marshmallow

when i was using lollipop i always went with ak kernel but since ak kernel stopped supporting oneplus one when marshmallow roms began to come i became a bit confused as to which kernel i should use.
so i did a bit of searching with kernels that existed. and the kernels i found that i could use was
1. Sultan
2. Tyr Kernel
3. Andy Kernel
4. Radioactive Kernel
so i was wondering what kernel is the best alternative to ak kernel and if so does that kernel have any problems which makes so i should avoid it?
p.s im open to discussions and even having an idea of what i should do will probly help more then it hurts
calionte said:
when i was using lollipop i always went with ak kernel but since ak kernel stopped supporting oneplus one when marshmallow roms began to come i became a bit confused as to which kernel i should use.
so i did a bit of searching with kernels that existed. and the kernels i found that i could use was
1. Sultan
2. Tyr Kernel
3. Andy Kernel
4. Radioactive Kernel
so i was wondering what kernel is the best alternative to ak kernel and if so does that kernel have any problems which makes so i should avoid it?
p.s im open to discussions and even having an idea of what i should do will probly help more then it hurts
Click to expand...
Click to collapse
It's pretty simple actually CAF kernels usually stated in the title of the kernel thread work on CAF ROMs e.g. Sultan, and any ROM that states CAF in its title works with these kernels.
CM kernel such as Lightning, Boeffla and Andy all state specifically CM12/13 in the thread title and those work with stock CM and ROMs derived from CM source and kernel trees.
Finally Omni based kernels only one works properly (Donkey Kernel) also states Omni in the thread title.
The common denominator is that they all clearly state in the thread title what they are for so there's nothing to discuss on which ones to be used for which ROM. In regards to quality that's a bit trickier as we all like different things in a kernel and personally I'm a big fan of Boeffla when I'm on CM13 cause it works great and the app is very intuitive. I've also tried Andy kernel and its got a good mix of features. I'm on Omni 5.1.1 nightlies so I'm on the stock kernel but when I move back to Marshmallow I can update on kernels
Sent from my A0001 using Tapatalk
Renosh said:
It's pretty simple actually CAF kernels usually stated in the title of the kernel thread work on CAF ROMs e.g. Sultan, and any ROM that states CAF in its title works with these kernels.
CM kernel such as Lightning, Boeffla and Andy all state specifically CM12/13 in the thread title and those work with stock CM and ROMs derived from CM source and kernel trees.
Finally Omni based kernels only one works properly (Donkey Kernel) also states Omni in the thread title.
The common denominator is that they all clearly state in the thread title what they are for so there's nothing to discuss on which ones to be used for which ROM. In regards to quality that's a bit trickier as we all like different things in a kernel and personally I'm a big fan of Boeffla when I'm on CM13 cause it works great and the app is very intuitive. I've also tried Andy kernel and its got a good mix of features. I'm on Omni 5.1.1 nightlies so I'm on the stock kernel but when I move back to Marshmallow I can update on kernels
Sent from my A0001 using Tapatalk
Click to expand...
Click to collapse
which kernels works with which rom i already knew but i still respect the answer i got. well the main concern i had was about the quality of the roms and which roms is good for what.
It depends on what you want. For example some devs here around merge a bunch of patches to improve sth. Sometimes i dont know what they are doing. I also started with that but soon i have learned less is more. Than there are kernels with gazillion oft features to choose. Thousond hotplugs and governors etc. Than there are small and simple kernels without such experimental features close to stock. I for example dont want to tune 5 days to improve me results i like it simple. So you have 3 or more different types to choose.
1. experimental maybe unstable kernels with lots of patches
2. kernels with lots of features
3. small and simple and more stable kernel close to stock
There is no best or better kernel. Choose the one you like best.
Its your choice.
You also missed the CAF lightning Kernel built off of AK's caf kernel. It's the best kernel for CAF right now IMO. It's basically all of AK kernel's great features just updated to support CAF marshmallow and bug fixes/ latest commits. Works with synapse and all of the original AK CAF kernel profiles.

Categories

Resources