i compiled htcs official kernel and made some mods to it and it worked well, some wifi bug made me retry making it from 0, but now everytime i compile the kernel with the same toolchain but no modifications to it, lcd image disapears when booting, any help?, its a rare bug that shouldnt be happening since i already compiled and nothing like this happened before
Hi all,
I have been trying to port TWRP for my device (a somewhat dated tablet, the Toshiba AT100 Thrive) but am running into problems with the kernel. It seems that no matter what I try, I am unable to get a kernel that actually boots.
I have the full OmniROM 4.4 source (with the end intention of building OmniROM for the tablet) as well as the kernel source from Toshiba (it is their patched version of 2.6.39.4). I also have a known working recovery (built around CWM with a 2.6.39 kernel) and stock boot.img and ICS ROM for the tablet.
I have extracted the kernel config from the ICS ROM as well as the kernel command line parameters.
Additionally, I also have access to two other ports (CyanogenMod) with kernel sources for this tablet and have found the AOSP source for the 2.6.39 and 3.10 kernels.
I am using CentOS 6.7 64-bit as my build OS, as that is what I have running on my Linux machine. I have OpenJDK 1.6 installed as opposed to the Oracle version (this might affect building OmniROM, but certainly shouldn't affect the kernel build).
I can successfully compile the kernel from the Toshiba sources using the tablet's config, as well as the CM-based port kernel sources and the 3.10 kernel (2.6.39 has some bugs straight out of the Google repository, which I can only get around if I disable yaffs2 in that kernel config or replace the yaffs2 source for it with the equivalent from the Toshiba sources).
I have the Android emulator set up on my Windows machine with both a ICS and KitKat AVD. After being unable to get the Toshiba-based kernel to start on my tablet, I thought I'd try building a kernel from the sources to run in the emulator.
At this stage, not a single one of my kernels has successfully booted either the tablet or the emulator. I have tried using the kernel config from the ICS AVD to build both the Toshiba 2.6.39 and AOSP 3.10 sources. The compile completes with no errors and a zImage is produced. However, it fails to boot the emulator.
Out of desperation, I have tried downloading the toolchains for Gingerbread and ICS and using those to build the kernels instead of the toolchain provided with OmniROM 4.4. That hasn't made a difference, either.
On the tablet, I have tried extracting the known working recovery kernel from the CWM recovery and using it as a prebuilt kernel. TWRP fails to load and the tablet always reboots after a few seconds, regardless of whether I set the kernel commandline parameters or not.
I am puzzled by this. Clearly there is something wrong but I am at a loss as to how to debug it, especially as do not appear to be able to produce a working kernel either for the tablet or emulator, despite having the sources and the kernel configs.
If anyone has any suggestions, they would be much appreciated.
Still have the same problem.
I've now tried building an Ubuntu 12.04 VM and compiling the kernels within that, but still get the same results.
Does anyone have any ideas or has anyone else ever run into this problem?
Did it ever work? I am experiencing this with SM-G950F. Very keen.
Unfortunately I was not able to resolve the issue. After spending a fair bit of time on it, I gave up and moved onto other projects. I've still got everything I need to try again, so at some point I may do so (especially as a use case for my tablet is possible again in the near future).
Hi,
I am pretty new when it comes to android development and linux kernels but nevertheless I managed to compile my first linux kernel.
And best of it, my phone even boots with the new kernel and works fine so far
However no baseband is detected (baseband version unknown in the settings), same goes for wifi.
Not even my simcard is detected.
Here is what I did sofar:
I flashed my phone with the following firmware: XT1524_SURNIA_RETDE_6.0_MPI24.65-39_cid7_subsidy-DEFAULT_CFC.xml
Everything works fine.
Then I flashed only the boot section and the sparsechunk files from the following firmware: XT1524_SURNIA_RETEU_5.1.1_LPI23.72-66_cid7_subsidy-DEFAULT_CFC.xml
I didnt flash the modem or other parts and everything still worked fine.
I got the official kernel source from motorola and changed the branch to lollipop-5.1.1-release-surnia
I used the msm8916_defconfig and the precompiled google toolchain arm-eabi-4.8 from google to compile the kernel.
It compiled fine without errors and got my zImage file as output.
Then I used Android kitchen to repack the boot.img from the RETEU 5.1.1 firmware with my new zImage and flashed it.
As I said in the beginning my phone boots but no baseband, wifi, simcard is detected.
I also tried to flash other modem versions, to no avail.
My guess is that there are some compiling options missing to use the correct baseband but unfortunetly I wasent able to come up with a solution nor did I find something on google.
So what am I missing?
Thank you in advance
Robert
I recently synced AOSP and so I could start developing ROMs. I decided to start with vanilla AOSP so that I could have a baseline that I knew worked or not.
I have a Nexus 6P so I decided to build for that device. Since, it's a nexus, my research indicates that all I should have to do is pick the correct lunch menu item (aosp_angler-userdebug). I've tried building it as an OTA (.zip) and normally (IMG files). Also, I've tried flashing it directly on the phone or as a secondary with MultiROM.
The problem is that the build is buggy and unstable. It shows that no SIM card is present so there is no cellular service and at times won't even boot. Phone works fine with stock nexus software and AOSP builds from the forums. I made no alterations to the code. I followed instructions from XDA university and the official android website. The build shows as successful and flashes without issue.
How could I flash a perfectly vanilla AOSP build with a nexus as the target and have issues? What could be going wrong?
Edit:
Host OS - Ubuntu Server 14.04
JAVA JDK - OpenJDK 7
Build Version - AOSP 6.0.1 r62
Has anyone been able to build a kernel for this phone.. I can't seem to get mine to work.. I'm going to try again and work on fixing the twrp issue we all have no promises I didn't wasn't able to get anything to boot after I repacked my boot.img.
Kernel Source for Borneo
Have you been able to build the kernel source at all? I keep running into issues.
What steps did you use to attempt the build and what errors are you receiving?