Need help - Kernel from Source not booting - Android Q&A, Help & Troubleshooting

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

Related

[Q] Compiling Kernel From Source

Hi everyone, I am looking for a point in the right direction or any advice.
My device is Samsung Galaxy Note 3 SM-N9005. I know there is a forum for that device but I feel I need help from experienced kernel devs and I am unsure where to ask for help
I have downloaded the source files from Samsung for this device (it has kernel and platform archives).
I have a linux dev environment setup in virtual machine. I successfully compiled the kernel zImage. I managed to unpack the current boot.img and replace the zImage and repack and the phone boots. So that is a success for a first time hey?
However, WIFI does not work. I have read that I have to compile the wifi module for it, but I am clueless.
Do I, or don't I, need the Android 4.3 source code from Google?
Do I have to run "make menuconfig" and enable modules (currently not enabled)?
Do I have to somehow compile a wifi module?
Any help will be massively appreciated!!!
Thanks
Dan

[Q] Where to start for Android Kernel Development?

Hello Guys,
I see a lot of threads for starting with android rom development, but can anyone give me pointers for kernel development? I would like to start kernel development and do not know where to start. I am not interested in rom development at the moment, but that is because I assume that the android rom is like a user space app over the kernel. Please correct me if I am wrong. It would be great if you guys could point me to some beginner friendly kernel development tutorials. I am looking through Linux Device Drivers (LDD) book but am having a hard time comparing that with android. I have cloned mediatek 6589 source from android repository. I am submitting partial url cos I am not allowed to submit full url yet. URL(android.googlesource.com/kernel/mediatek/+/android-5.1.0_r0.2) since I am running a mtk6589 device (Walton X1/ Gionee Dream D1) and would like to understand where to start coding kernels for android. Any help would be greatly appreciated.
Oh and I would like mediatek specific help if possible. I have gone through some of the general kernel building and overclocking tutorials. I want to do some more enhancements if possible. Since mediatek seems to be the mysterious one with bare minimum source availability, I would like to take up that challenge
Thanks.
I don't have a tutorial for you but a small checklist. You need:
* Kernel source tree
* A config for your device (e.g. arch/arm/configs/*defconfig*)
* A cross compiler toolchain to generate ARM code (you can use the precompiled one from the Android source tree)
* A way to package your kernel into a boot image for your device - usually an Android boot image contains a compiled kernel (zImage), a compressed ramdisk for the root filesystem, and probably a device tree binary (dtb). Mediatek may do things differently.
* A way to install that boot image on your device - this requires an unlocked bootloader that allows custom boot images to be installed and started. Most devices use the fastboot tool for this.
Your first step should be to build a working kernel from unmodified sources. When you got that working, you can think about starting actual coding.
Thanks for the Pointer Mate
_that said:
I don't have a tutorial for you but a small checklist. You need:
* Kernel source tree
* A config for your device (e.g. arch/arm/configs/*defconfig*)
* A cross compiler toolchain to generate ARM code (you can use the precompiled one from the Android source tree)
* A way to package your kernel into a boot image for your device - usually an Android boot image contains a compiled kernel (zImage), a compressed ramdisk for the root filesystem, and probably a device tree binary (dtb). Mediatek may do things differently.
* A way to install that boot image on your device - this requires an unlocked bootloader that allows custom boot images to be installed and started. Most devices use the fastboot tool for this.
Your first step should be to build a working kernel from unmodified sources. When you got that working, you can think about starting actual coding.
Click to expand...
Click to collapse
Thanks man. Really appreciate the pointers. I do have some of the checklists done. Like
* Kernel source tree
** A cross compiler toolchain to generate ARM code (using the precompiled one)
* A way to install that boot image on your device
Now the problem is, my device still does not have its source code available. I got the general source tree from google which is not my device's so I dont have the defconfig. Is there a way to rip it out from a compiled kernel? Like using some sort of a decompiler? Also I will look around for zimage packaging tools. Thanks mate. Mediatek is apparently one hell of a problem child XD
syko_kickass said:
Now the problem is, my device still does not have its source code available. I got the general source tree from google which is not my device's so I dont have the defconfig. Is there a way to rip it out from a compiled kernel? Like using some sort of a decompiler? Also I will look around for zimage packaging tools.
Click to expand...
Click to collapse
If you're lucky, your existing kernel exposes its config in the file /proc/config.gz. If not, I don't know how to get a matching config - best is to avoid buying anything from GPL violators.

Wifi doesn't work with Kernel compile with source

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.

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

[Q] POSP suzu port stuck at logo during boot, audioserver error

Hi guys,
I've ported (or at least trying to) POSP to suzu (Xperia X) but I'm stuck in a bootloop caused by the audioserver service.
I've already tried changing the frameworks/av potato project to the aosp one (because aosp build and boot correctly with it) but I'm still stuck with the same error.
You can find the log taken from the bootloop device here.
If someone have an idea I'll be very grateful.
Thanks
0
Seppppx said:
By "ported" do you mean built from source? If yes sharing your trees would make it more easy to identify the error.
Do you have "system/bin/audioserver" in your ROM?
I suppose that's missing.
Click to expand...
Click to collapse
Yes sorry, I mean built it from source.
here my trees:
common tree
device tree
platform tree
and my local manifests (the last entries in qcom.xml, releated to media, audio, bootctrl and frameworks are test to solve the error, but the ROM build without errors, and with the same boot error, with the potato project too)
local_manifests
and here the output for
Code:
[[email protected] posp]$ locate system/bin/audioserver
/home/nemo/android/posp/out/target/product/suzu/symbols/system/bin/audioserver
/home/nemo/android/posp/out/target/product/suzu/system/bin/audioserver
that's the only thing I've found. Also I've tried to build using aosp frameworks/av project (because I already built aosp 10 and works) instead of using frameworks/av from potato project, but the error still remains.
0
Seppppx said:
Did you flash the BLOBS from the sony website? They are needed to successfully boot the ROM.
https://developer.sony.com/develop/open-devices/downloads/software-binaries
Download the BLOBS for the Loire platform for the right Android version.
Click to expand...
Click to collapse
Yes yes I know about the Sony blob. As said I've built and used aosp 10 and that too need Sony blobs to boot. I'm tried the latest one and the ones before (v9 and v8) but the problem persist. Digging i've found that is a "native problem" as stated in google documentation but I'm not finding a way to fix it sadly. Is a null dereference fatal error (don't know if knowing this can give someone an idea of how to help me)

Categories

Resources