Need help with creating a kernel 3.10 for LG l60 - Android Q&A, Help & Troubleshooting

Hello all.
I`m an LG l60 user and I want to create a 3.10 kernel for this device. I have the two variations of a source code of 3.10 for mt6572. You can download it from this place: https://yadi.sk/d/MZayU70qmJifo , or if you have trouble with it, just tell me and I`ll upload it to another location. So, what the trouble: after compiling kernel and preparing it to use in recovery, almost all things are working, but touchpanel will not. It don`t starts and I think, that it caused by a KnockOn function, that was included by LG in previous versions of an android kernel, that I have used to prepare kernel for compiling. I`m sure, that it possible to force it work, cause one guy was made it, but for now I can`t connect with him. So I`m searching for help anywhere. Please, help me and other users, cause it`s only one way to bring lollipop on this device. Thanks.
XDA:DevDB Information
LGX14X-Lollipop, Kernel for all devices (see above for details)
Contributors
sadmonsterII
Source Code: https://yadi.sk/d/MZayU70qmJifo
Kernel Special Features:
Version Information
Status: Testing
Created 2015-12-18
Last Updated 2015-12-18

Related

[Questions] Kernel source issues when compiling LOS/TWRP

Hello guys.
This question is specially for devs or advanced users with development skills.
My question is related to the kernel source of one of my devices, Huawei Mediapad T1 10 (codename: hwt1a21l). I got the kernel source from the oficial Huawei website and uploaded it to a github repo. My device, which has a msm8916 chiset, doesn't have any development (roms, recoveries, device tree, etc) and his rom, EMUI 3.0, is based on Kit Kat 4.4.2.
I have been trying to bring development for this tablet many months ago because the stock rom is too deprecated for the hardware that has, with the msm8916 there is a huge potential to bring it a lot of development.
Well, i'm going to summarize my problems when trying to bring development for the device:
To get started development, for example a LineageOS build i needed a solid base to start with: device tree, propietary blobs and kernel source, so i got all of them. I ported the device tree from another one very similar to mine (with the same chipset), extracted the propietary blobs with the build tools from the source and got the kernel source from the Huawei website. So everything seemed to be good, but when i start the build process with my Linux machine (repo sync > source build/envsetup.sh > breakfast hwt1a21l > brunch hwt1a21l) i always receive thousands of build error by the kernel source, and i have been fixing (or at least avoid) a lot of them but it never ends, so i don't know if it's worth to keep trying to "fix" them or if i'm wasting my time.
So, what i have been trying to do: i have been trying to build a LineageOS 14.1 and TWRP recovery with my device tree This: Mustang-ssc/android_device_huawei_msm8916-common ported from this one from @dianlujitao : dianlujitao/android_device_huawei_msm8916-common and the specific kernel source for my device downloaded from the Huawei website Mustang-ssc/android_kernel_huawei_hwt1a21l. Here ends the summary.
So after a lot of hours, days and nights over the last months trying to make progress with this and not getting any help from the few devs i asked after seeing my lack of progress i decided to publicly ask for help.
The questions:
1. I have the official kernel source (Mustang-ssc/android_kernel_huawei_hwt1a21l) which i didn't have success to compile it, and then i saw the kernel source from a device almost identical to mine (same chipset, brand, ram, ...) (dianlujitao/android_kernel_huawei_msm8916). Can i use that kernel source as a base for my device after porting the specific configurations of my official kernel source (defconfig, drivers, libraries)? That one is much more updated and probably optimized than mine, but i don't know if it's possible to adapt a kernel source from other device using your kernel source.
2. This may be a dumb question: my device has Kit Kat 4.4.2. Is there any link between the kernel source and the android version the device has? I mean, i don't know if i should do something to adapt my kernel source for newer android versions (Marshmallow, Nougat) of if it's ok to just build with it without any change.
If you read it all, congratulations, you're awesome
Still waiting for a reply

LineageOS 14.1 for LG Spirit 4G

With cooperation with LG K10 team I have done a LOS 14.1 build for LG Spirit 4G LTE.
What works:
- LCD
- Touch
- Sound
- RIL (calling, texting, mobile data)
- Wi-Fi
- Bluetooth (for data transfer)
- Camera
- NFC
Known bugs:
- Bluetooth headsets could have issues
REQUIREMENTS:
- Unlocked bootloader (see PVineeth97 instructions)
- TWRP
- v20b stock from where you will move to LOS
HOW TO INSTALL:
Please follow guide posted here
I can not promise fast development as Spirit is my primary phone and internet connection source.
Big thanks to friends from K10 team
XDA:DevDB Information
SpiritedROM, ROM for the LG Spirit
Contributors
pcfighter, LG K10 team
Source Code: https://github.com/pcfighter/
ROM OS Version: 7.x Nougat
ROM Kernel: Linux 3.10.x
ROM Firmware Required: Patched BL, Stock v20b, TWRP
Based On: LineageOS
Version Information
Status: Stable
Created 2017-04-10
Last Updated 2017-11-06
Please update rom development status.
deepankargupta said:
Please update rom development status.
Click to expand...
Click to collapse
He is working on it. There are major bugs in it. He will update it as soon as he make any further progress. Also it's his daily driver so don't expect any quick fixes.
Keep it up man, would help me make this phone usable for me. Im using it as i recently broke my other phone, but its unbearably slow on the stock marshmallow. Keep up the good work
Update ?
Yo, @pcfighter can you give us a update on rom ?
It's Easter so let the guy chill!
What I've noticed is that a lot of people in this forum are completely indifferent to the fact that the devs are just people, not companies. They have personal lifes and issues to deal with, not to mention that dev work is not that easy. If everyone could feel less entitled to get stuff for free and be just a bit more patient, that would be greaaat.
jonixas said:
What I've noticed is that a lot of people in this forum are completely indifferent to the fact that the devs are just people, not companies. They have personal lifes and issues to deal with, not to mention that dev work is not that easy. If everyone could feel less entitled to get stuff for free and be just a bit more patient, that would be greaaat.
Click to expand...
Click to collapse
∞ times this :highfive:
Kinda annoying, right? Like we waited around two years to get twrp and they can't wait some weeks more lol
lg spirit black screen
Helo ..i got a bit confuse....sorry..i try to flash me lg spirit with the last lineage 14,1...
could not ..now is a blank screen..
i push down button
and up volume button, it stuck on firmware update for hour
..or on fastboot.
.it stuck on processing commands.
it shows secure boot error
cause: boot certification verify
.that s it..what can i do?
Any news?
Gilja said:
Any news?
Click to expand...
Click to collapse
Can you stop asking for news, if he does something he will post it, he has his own life, and Spirit is his daily driver, so he can't only think about this rom
Sent from my LG-H440n from Serbia
MadjijaHacker said:
Can you stop asking for news, if he does something he will post it, he has his own life, and Spirit is his daily driver, so he can't only think about this rom
Sent from my LG-H440n from Serbia
Click to expand...
Click to collapse
Deyum! You basically took it to the next level. Been ranting about this for a while now but ppl seem not to give a deyum about those who contribute value to our phones. Phones, which are often poorly configured from the manufacturer. If twasn't for several of the threads here, the Spirit would basically be junk.
pcfighter said:
Here I will post LineageOS 14.1 ROM when I done fixing critical bugs.
What works:
- booting to Lineage (but not always)
- LCD
- Touch
Not working:
- Battery status (phone shuts down when I disconnect the cable)
- Anything else
How it looks on spirit? Like this
For now I was able to boot twice. Root is required. Baseband from LS775 will be required to fix modem crash, obviously @Fobos531 TWRP also is required (for flash zip and baseband image). I can not promise fast development as Spirit is my primary phone and internet connection source.
XDA:DevDB Information
SpiritedROM, ROM for the LG Spirit
Contributors
pcfighter, MobiusM
Source Code: https://github.com/pcfighter/
ROM OS Version: 7.x Nougat
ROM Kernel: Linux 3.10.x
ROM Firmware Required: Baseband from LS775
Based On: LineageOS
Version Information
Status: Alpha
Created 2017-04-10
Last Updated 2017-04-10
Click to expand...
Click to collapse
How hard would it be for someone that has no idea what he is doing, like me, and never tried to build a rom to try to debug this rom? I would like to help but i have zero experience at building a rom
Sent from my LG-H440n from Serbia
MadjijaHacker said:
How hard would it be for someone that has no idea what he is doing, like me, and never tried to build a rom to try to debug this rom? I would like to help but i have zero experience at building a rom
Sent from my LG-H440n from Serbia
Click to expand...
Click to collapse
https://github.com/pcfighter/c70n_manifest
^ - Read the README. I highly recommend getting a Linux (Ubuntu) install running. You need 20 - 50 GB of free disk space. Also you need A LOT of patience. Download Lineage source code and the local manifest as the readme instructs you. Then build Lineage and try flashing it. Take a look at this (https://wiki.lineageos.org/devices/h815/build) for further instructions in the building process. Once you get it to boot, use adb logcat to get logs which may help you debug errors and fix all the issues in the ROM. Join #lineageos-dev on freenode IRC if you have further questions. People there willl be able to help you.
Fobos531 said:
https://github.com/pcfighter/c70n_manifest
^ - Read the README. I highly recommend getting a Linux (Ubuntu) install running. You need 20 - 50 GB of free disk space. Also you need A LOT of patience. Download Lineage source code and the local manifest as the readme instructs you. Then build Lineage and try flashing it. Take a look at this (https://wiki.lineageos.org/devices/h815/build) for further instructions in the building process. Once you get it to boot, use adb logcat to get logs which may help you debug errors and fix all the issues in the ROM. Join #lineageos-dev on freenode IRC if you have further questions. People there willl be able to help you.
Click to expand...
Click to collapse
Thanks, I'll try doing everything, I have Linux dualbooted on my PC already, and i have little backup info about programming, but i don't know anything about how this works, this will be fun
Sent from my LG-H440n from Serbia
MadjijaHacker said:
Thanks, I'll try doing everything, I have Linux dualbooted on my PC already, and i have little backup info about programming, but i don't know anything about how this works, this will be fun
Sent from my LG-H440n from Serbia
Click to expand...
Click to collapse
Around 50 GB to download source code. 100 GB extra needed to build the firmware.
i got to device specific code, and i dont know what to do next, last thing i did was
Code:
repo sync
MadjijaHacker said:
i got to device specific code, and i dont know what to do next, last thing i did was
Click to expand...
Click to collapse
Now you need to download the device, kernel and vendor sources.

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.

How do I know if the provided kernel source by Samsung is complete or not

I downloaded the source code for my J7 Max(G615F) and tried to build a kernel but when i tried flashing the built kernel(Image.gz) the phone booted into TWRP instead of booting into the system.
So, I doubt that the provided kernel source is not complete and want to check if it is complete.
Here's the kernel source if you're interested : https://github.com/Rumorbox33/j7maxlte_kernel
can u please develop a rom for SM-G615 j7 max. i will b highly obliged. Thanks in advance. If it exists already please point me towards it...

Build ROM from scratch

I would like to develop a custom ROM for my device. I read some guides and obtained some basic knowledge, but still don't know how to start. So I would like to ask some questions to test my knowledge and expand them.
My device: Wiko View
My Android version (actually installed): 7.1.2 almost pure Android (just some third-party apps)
Desired Android version: AOSP 9.0 (maybe?)
So as far as I know I need these things:
AOSP Source Code (9.0)
Kernel
Vendor (tree or blobs?)
Device tree
So for the AOSP: I can get it from the repo hosted by Google. How should it look once downloaded?
For the kernel: should I use that from my actual ROM, or the most recent one? And how to include it in my ROM before compiling?
For the Vendor: As far as I read, with project treble I shouldn't edit this. But since I'm not developing a treble ROM, I'm in troubles, right? In older ROMs (before Oreo and Treble), they're stored in /system/vendor. Is just that folder or are there more? Do I need to update something? Where do I need to put this folder?
For the device tree: I read some guides that explains how to extract it from ROM (only from 5.0 and up, since mine is 7.1 no problems, I hope). Is this right or are there other ways? Or do I need to write it myself?
I'm going to thanks anyone in advance. I know there are plenty of questions, but I hope this thread will be a place for begginer (like me) to know more about compiling from source a ROM. Have a great day!

Categories

Resources