[Q] Compile stock CM11 kernel -> bootloop - Nexus 4 Q&A, Help & Troubleshooting

Hello together,
I hope someone maybe can help me out. In the past I comiled the standard CM11 kernel by myself. I just add a few minor tweaks for my display color calibration and so on. Nothing special.
Since CM11 I'm always stuck in a bootloop after the "Google" logo. Even if I try only the stock CM11 kernel without any changes. Same toolchain (4.7) and so on. Why is that the case?!
I hope someone, maybe from all the experiencened kernel creators here, can give me a hint where's my problem? Is it maybe something with all the SELinux stuff? It was also the case in CM10.2 if I tried to comile with modules enabled.
Help here would be very appreciated. Thanks in advance.
Regards, Fred

OK, I answer this question myself. Just found out you have to compile the kernel inline with cyanogenmod. Sync the whole repo, initialize your device, make the changes to the kernel and compile it with make bootimage. This way I also have no need to use Anykernel script anymore.

Related

[DEV][HELP NEEDED] CM Kernel

This topic is for discussion about the cm kernel and it's related things. Please be warned that any off-topic replies will be deleted. So only post if you know what you are doing.
@Diego & hackbob : Since cody made the 2 stage kernel, cm 7 doesn't boot. But since opensource is the only way, we will have to use the same kernel and opensource libs. Now we know that for the kernel to boot, we need to fix the init. I have been playing around with the init since the past few days. No luck yet. Have you guys tried anything?
@Diego : mate, i just reverted to stock kernel for my cwm project. But i cannot get the permanent version to work. Getting the splash loops. Can you please tell me how did you build TWRP?
I mean using which source!?

[Q] Building Quarx' CM10.2

Hi guys,
First I want to thank Quarx for his outstanding work!
And secondly, i want to apologize for not posting this in the appropriate thread (thought about the CM10.2 thread in the developer section), which seems to be impossible since I just registered and lack the required 10 posts... I also want to apologize if some of my questions have been answered already, I employed the search function and wasn't able to find them.
I have to admit I'm a total newbie when it comes to building Android custom roms. However, I want cm10.2 on my defy+ and need PDroid-Support, so I'm currently trying to patch and build it myself.
What I've accomplished so far is fetching the 4.1.2 jellybean sources, applying the OpenPDroid patches, and compiling / building it. With the exception of the text-to-speech engine (I get the error message "google text to speech engine was terminated" on startup), which is actually not a big deal for me, everything (including PDroid) seems to work fine.
However, since my actual goal is to patch and build cm10.2, I have some questions:
1. How can I check out the correct source tree for cm10.2 using repo? I've tried "repo init -u git://github.com/Quarx2k/android.git -b cm-10.2", which doesn't seem to do the trick.
2. After checking out the source tree for cm10, I noticed that the file device/moto/jordan-common/apply_linaro.sh was missing. Does this actually mean that it's application is not neccessary (anymore) or do I have to obtain it from another (which?) source. Without really knowing what I was doing, I just tried the "apply_linaro.sh" I found via google on https://github.com/NiharG15/htc_pico_cm10...
Additional question: Reading the CM10.2 thread, I'm a little bit confused about the current state of Bluetooth / Bluetooth Audio. Does it work in some cases or doesn't it work at all? Which kernel should I use and how can I decide which kernel is used for the building proces?
Thank you in advance for your help!
syrran said:
1. How can I check out the correct source tree for cm10.2 using repo?
Click to expand...
Click to collapse
Read http://forum.xda-developers.com/showpost.php?p=42584118&postcount=552 and change 'cm-10.1' to 'cm-10.2'
Again, thank you very much! So the information was there after all ...

A5 2017 custom rom for j700f - fm and permissive kernel would be cool

Hi,
I am talking about those custom rom here..
https://forum.xda-developers.com/galaxy-j7/development/rom-a5-2017-rom-galaxy-j75-t3531018
A recompiled kernel that is permissive would ber really great. The one currently provided there is a user version with no compile time modification to allow any existing methods (like setenforce command or a boot time script to set from file) to toggle it.
Also i wonder how can i use samsung radio with this. I found the library files all right. Tried to manually introduce the apk with proper permissions. But system logs kept throwing errors with fc. A5 has fm too. Why can't we use it then ?
Is it possible to use j7 kernel with this rom?
I know it's a lot of questions. Hope the devs would kindly respond. Thanks.
Ps. The colour inversion works which is great really. Thanks for all the hard work.

Wireguard module for stock OOS 9.0.14/15?

Hello,
Can anyone suggest a reasonable method to get wireguard support into the stock OOS kernel? I had hoped I could extract the .ko file from a compatible custom rom (9.0.15's kernel is the same as 9.0.14's), but it seems everything is statically linked (I've done kernel work but not on android before).
I also looked into compiling OOS myself with just the wg tweak but got lost in gcc/clang/cross-compilation and gave up after a while. If there's some build automation someone could recommend I steal from that would be really helpful also.
Appreciate any tips!
teslacuted said:
Hello,
Can anyone suggest a reasonable method to get wireguard support into the stock OOS kernel? I had hoped I could extract the .ko file from a compatible custom rom (9.0.15's kernel is the same as 9.0.14's), but it seems everything is statically linked (I've done kernel work but not on android before).
I also looked into compiling OOS myself with just the wg tweak but got lost in gcc/clang/cross-compilation and gave up after a while. If there's some build automation someone could recommend I steal from that would be really helpful also.
Appreciate any tips!
Click to expand...
Click to collapse
If you are rooted, look around there are a couple of custom kernels with wiregaurd support

X compact stock kernel compilation

Hi all,
I like to try tweaking and hacking my phone. I've tried some ROMs on my kugo for some time, but I figured I wanted to make my own personalized build. Right now, I'd like to use the 'Night Light' app from F-Droid, which requires KCAL support. In order to enable KCAL I'd need to edit the stock kernel (I know this can be done, it was the case for Genesis Kernel on Nougat).
Hence I'd want to learn to compile a kernel, but I can't get to the end of Sony's tutorial. I've downloaded the kernel source but I am totally lost with defconfig files. How should I configure the kernel ? There is no obvious choice for a defconfig, and I can't get past point #6 in the tutorial..
Given that I've just discovered kernel compilation today, would someone be kind and take some time to maybe point me to useful doc, give me a clue as to what my next step could be, or teach me how they compile kernels for their device ?
Many thanks for any help,
Cheers
TLDR. How to compile a kernel? I have Sony's source for kugo, but don't understand how to configure the kernel compilation.

Categories

Resources