Wifi doesn't work with Kernel compile with source - Android Q&A, Help & Troubleshooting

Hi everybody, I recently downloaded the source code for the SM-G360F (I took the G360FXXU1BQF1 version) to upstream it on 3.10.108. But quickly when I test the new kernel I see that the wifi won't start even when I test with the basic kernel source.
Does anyone know how to fix the issue ?

I think it comes from this file "pronto_wlan.ko" because it's the only module which the kernel doesn't generate but I don't know how to fix.

Related

android kernel compilation

Hi,
I gitted the android source and I successfully built a zip using cyanogenmod 9's repo. However, I am curious to know where the kernel was being generated. I searched through the whole thing and I couldn't find the kernel source in the android source anywhere. Is this something that is pre-compiled and saved as a zImage? I really want to replace this zImage with my own compiled one but I am not sure how to merge the android source and the kernel source into one thing.
Thanks guys,
I know this is fairly noobish but whatevs...
nevermind...Found it in device/htc folder...

Need help - Kernel from Source not booting

Hi,
i am owner of a FAEA F1
This is the tech specs of my device: http://www.faeamobile.com/faea-f1-techspec
i am searching for a working kernel source for my device for several month now and found a kernel source on codeaurora. (source on tag M8625QSOSKMLYA31201C)
i already recieved help over irc from laufersteppenwolf - he made the source from codeaurora compileable for me.
Compiling runs fine! (using the f1_defconfig)
the config is pulled from my /proc/config.gz so it should be fine
here is what he made for me: https://github.com/laufersteppenwolf/kernel_msm8625q_f1
It just does not boot at all - when starting the kernel from fastboot it just stays at the FAEA logo.
A compiled CWM recovery with integrated kernel building will not start - screen stays black.
There is no ADB connection available.
Could you give me some advice how to debug the kernel?
Is is neccesary to remove or add modules from kernel?
right now i got no clue where to start as i dont got any logs.
I would apreciate any help!
Greets - Astrali
bump
bump

[Q]How to build a kernel

HEY GUYS,
My device is M8tl and I want to build an ElementalX kernel.... However, I am not familiar with it .I searched rhe forum but I cannot find a tourial like this....I have downloaded My device's kernel source from HTCDEV.com and ElementalX kernel source from GitHub... Can anyone tell me what to do next?Waiting for reply...

Android kernel how to make compatible with higher os? (+Where can I find the patch?)

Hello, I'm newbie dev trying to build CM13 for Lenovo Phab plus.
I think I'm almost finished with device and vendor, but I cannot figure it out what to do with kernel.
The circumstance is,
I have a stock kernel source which runs in 5.1.1 LP, with version of 3.10.49.
What I want is to make kernel compatible with 6.0.1.
I already know that linux kernel version doesn't have to be exactly same with new Android OS versions and I can just make a few patches in order to run kernel in higher OS.
So I googled and studied(?) for 2-3weeks, but got not many useful informations and I still cannot figure out where to find required patches for 6.0.1 .
So here's what I am not sure about.
1. I found that I can either upstream, merge, cherry-pick kernel sources from higher OS. For instance, if I merge kernel patches (starting from 3.10.50 to 3.18 step by step) and check if the kernel compiles successfully, is this a right thing to do? I am confused whether merging or cherry-picking is required for my situation.
2. I see lots of commits when comparing with other kernel sources in github. How do you find those kinds of patches? -> just keep compiling kernel and if error comes out->search->commit
Always this pattern goes again and again till boot properly?
3. i'm quite curious with backports. What i know is that "backports" are the files which is compatible for lower version kernels. For example, backported audio driver originally based on 4.9 can be used in kernels with version below 4.9. Is it right?
4. If there is an useful links, anything could be helped a lot.
THANKS IN ADVANCE.

Need help with errors when compiling kernel from source.

So, I recently got a ASUS Zenfone 4 Selfie Pro, the phone is stuck on android 7.1 and doesn't have any roms, nothing, just TWRP. So I'm on a journey trying to build stuff for this device from the ground up, I already made a device tree based on Zenfone 3 (which has the same SoC) and I tried to build lineage/cyanogenmod 14.1 for it and got a lot of kernel errors, so I went to try to compile the kernel from the source ASUS gave on their website and uploaded it to my github. In this past 3 days was able to fix and workaround some of the errors I got while building, but now I'm stuck on this one: https://hastebin.com/iqisuzegeg.coffeescript | any help would be greatly apreciated .
For easier access to the kernel source I uploaded it to my github and made some fixes/workarounds for some errors: https://github.com/2003Frost/android_kernel_asus_Z01M_stock
I'm using Linaro 7.5.0 as arm64 toolchain.
I'm using Zorin OS 15.2 as OS.
If any more information is needed I'll be glad to give out.
0
Seppppx said:
Hmm. There is probably no definition for 'drivers/platform' and 'drivers/platform/msm' . But there is a reference (probably). Also have you tried to build the kernel with the defconfig "the manual way". If there is something wrong with the kernel I have almost no way of helping you because I'm not a real developer.
EDIT : There is a kernel source for your phone that on a developer's github https://github.com/shakalaca/android_kernel_asus_zd552kl . That is also the person who is the maintainer for official twrp. He has some large commits on the kernel so his kernel should build.
Click to expand...
Click to collapse
I already tried his kernel and got the same exact error :/
I didn't understand fully what you said with "the manual way" but I'm trying to compile the kernel outside the rom build environment, by using my device's defconfig and compiling with linaro.
0
Seppppx said:
By the manual way I mean the with the defconfig. Also I made a pull request to your Device Tree (adds persist partition and Shakalaca's kernel).
Also if you're trying to build with defconfig there is a tutorial by google. https://source.android.com/setup/build/building-kernels-deprecated .
After that you will have to put it to the boot image. Another guide for that. https://source.android.com/setup/build/building-kernels#embedding-into-Android .
Edit : Isn't the Android kernel build with the defconfig when you run a source build? I think it actually builds the kernel when you build android so you don't build the kernel separately.
Click to expand...
Click to collapse
I accepted your pull request. Yes when you build a rom from source it also compiles the kernel, but I wasn't able to build the rom because it gave me kernel errors, so I went and started compiling separately because it's easier to fix kernel errors like this.
I am not using Google's tutorial, I'm following one that has almost the same steps and I'm using the same toolchain.
0
Seppppx said:
By toolchain you mean tools that you need to compile a kernel? Why doesn't one just install the tools needed to compile a kernel source.
The guide I linked doesn't specify any toolchain (thus idk if I need one). It also doesn't have anything to do with build.sh script used to compile a kernel. Instead it uses the defconfig. The commands are actually very simple.
cd kernel-source_code
export ARCH=arm64
export CROSS_COMPILE=aarch64-linux-android-
make ZD552KL-Phoenix_defconfig
make
Also have you tried to build another kernel that you are sure builds? If another kernel builds. The issues have to do something with the kernel itself. If it does not it's most likely something else.
Click to expand...
Click to collapse
To compile a kernel from source you need something a cross compiler or toolchain in my case I'm actually using the exact same commands you commented with linaro toolchain/cross compiler (aarch64-linux-android). As far as I know you need that to compile a kernel and I don't think the toolchain is the problem but the kernel itself. I can try another kernel later to see if it compiles.
0
Seppppx said:
Okay thanks!
If you manage to compile the kernel for your device make sure to mention/quote me. I would like to contribute. I'm on my way to make another pull request (now about cameras).
Click to expand...
Click to collapse
If you want to talk to me more quickly you can message me on telegram https://t.me/Frost_2003
0

Categories

Resources