[Q] Having trouble compiling a kernel. - General Questions and Answers

Hello everybody
Recently, I found this thread http://forum.xda-developers.com/showthread.php?t=2233282. After a while testing it with the new method, I found out I had some bugs. I then wanted to test the old method, aka compiling the kernel + module from the debian image. The problem is, even with http://oldwiki.cyanogenmod.org/wiki/Building_Kernel_from_source I don't understand what to do. Do I have to type every single line, replacing the source with the debian image, with botbrew, or am I missing something (I surely am).
tl,dr how do I compile a kernel for this
I'm really new to all this stuff, but curiosity makes me want to go further. I hope somebody can help me a little bit.
Thanks in advance.
My phone is a s2 i9100, cm10.1

Related

G1/MT3G Video Drivers fo Eclair

If this is in the wrong thread I apologize. I didn't know if I should post this in Q & A because its a question relevant to something developed, I also didn't wanna invade anyones ROM thread.
I am creating a ROM which is a fusion of the Droid and Nexus one for the G1/MT3G. I am learning how to create ROMS and have been able to search and solve alot of problems on my own. This one however has me stumped and I've searched through a hundred threads but it seems no one is interested in this information but me.
Would someone explain to me how to implement the graphics driver that was designed for the G1/MT3G for Eclair 2.1. I can't seem to find any documentation/posts about how to implement this so that the camcorder works and the 3d gallery, those are my last 2 obstacles. I know ROMS such as CaNNoN202 Complete Eclair 2.2.1 or CyanogenMod-5 have it implemented. I have even looked through the ROMS but haven't found the drivers and have no idea where they would be.
If an experienced modder could help me get on my way to becoming a allround dev, please explain a few thing to me like in a pm or something. Like if they are kernel specific/dependent, what scripts are needed for the drivers to install, etc..
Please any help is very much appreciated.
EDIT:
I found a thread where CE developed a patch for his ROM which adds the support for 3D to the G1.
Gonna see if I can implement it that way. I will post results if I find anything.
Any info is still very welcome
Are you trying to build your own kernel or just a rom? The only reason you would need the drivers is if you are making your own kernel, which by the way you ask, I doubt you could do. Nothing against you, its just not easy.
Any kernel (mostly Cyanogens) has the drivers implemented after version 5.0.4 i think. You can just strip the boot.img out of any of those roms and slap it into your rom till you get it all to work.
Once you do that, then you may have the problems of no BT or wifi.
crypysmoker said:
Are you trying to build your own kernel or just a rom? The only reason you would need the drivers is if you are making your own kernel, which by the way you ask, I doubt you could do. Nothing against you, its just not easy.
Any kernel (mostly Cyanogens) has the drivers implemented after version 5.0.4 i think. You can just strip the boot.img out of any of those roms and slap it into your rom till you get it all to work.
Once you do that, then you may have the problems of no BT or wifi.
Click to expand...
Click to collapse
Yea I have been exploring these ROMS and seen the extra libraries and patches that have been implemented, but I haven't been able to get someone elses kernel to boot my ROM.
I have used the tutorial on theunlockr to set up a kitchen and been able to modify alot, but I am missing the true functionality of these ROMS if I don't understand the kernel and libraries that allow for these patches.
I think I am going to set up Eclipse in my linux and slowly learn the process of actually building these ROMS from scratch, I know its difficult but I'll search through old examples until I get on my feet.
Thanks for the info. If any ther experienced ROM maker has any tips to share I thank you in advanced.
The drivers you are looking for are in /system/lib
Note that in some cases, preload memory offsets need to be manipulated.
lbcoder said:
The drivers you are looking for are in /system/lib
Note that in some cases, preload memory offsets need to be manipulated.
Click to expand...
Click to collapse
Hey thanks for your info/help
I figured the libraries and modules needed to be ported over as well, didn't know anything about the memory offsets
I am trying to port Cyanogens kernel+system/libe+modules offer, hopefully it will fix all issues.
Will post update. Thanks you guys for helping a noob I'm really trying to learn and its very tough
Edit:
porting kernel either ends in bootloop or it ends in the settings and fc's like crazy
If I apply my modifications to cyanogens rom, the live wallpapers break, this is so wierd!

[REQUEST] Any kernel builders want to build a kernel for 2.3.4?

I've never compiled a kernel and was hoping one of you experienced kernel compilers would build a kernel for LG's "stock" 2.3.4 with overclocking ability. Also, I understand in the kernel there is a way to fix the FFC inversion issue (other devices have had same problem and people fixed with a kernel updae); but I have no idea how to do it. If you just want to steer me in the right direction I could attempt to build the kernel myself also. I have JDK and Eclipse installed on my computer.
hey man i just wanted to share this with you
http://forum.xda-developers.com/showthread.php?t=1227241
im pretty sure you can find a way to get a kernel this way and compile it.
i just downloaded a bunch of neat stuff from nvidia (android dev kit) and the sdk from google to adb and crap.
i didnt think it would have to come to this because this because of the phones unlocked bootloaders and such, but it doesnt look like the devs are really into this phone because of nvidia's lack of action. Im just gonna have to learn how to tweak this thing on my own.
hope this helps
Ninosmaxima said:
hey man i just wanted to share this with you
http://forum.xda-developers.com/showthread.php?t=1227241
im pretty sure you can find a way to get a kernel this way and compile it.
i just downloaded a bunch of neat stuff from nvidia (android dev kit) and the sdk from google to adb and crap.
i didnt think it would have to come to this because this because of the phones unlocked bootloaders and such, but it doesnt look like the devs are really into this phone because of nvidia's lack of action. Im just gonna have to learn how to tweak this thing on my own.
hope this helps
Click to expand...
Click to collapse
I will take a look. Thanks.

How hard is creating a kernel for this device?

So I am fed up with T-Mobile and Samsung not releasing a ics update for this phone. I wan't to try the new features like facelock and android beam ( really helpful). Well can we start from scratch also is there a guide to do that? It would be really awesome if someone posted a link for it.
Well I'm not sure what you are asking but are you saying if we can do a ICS kernel without source? Yes it's possible if we use the s2 source but with heavy modifications to run on our phone. Doubt there is a guide for it anywhere, though if you have an understanding of Linux kernels and a few languages like C, C++ and Java you can help us get there.
Another way we can get cm9 or any ics varient we can modify our current 2.6.35.11+ kernel to make it run cm9.
I suggest or rather think the easiest way is the waiting way because by the time you or I or anyone gets anything close to a working build the source will drop. This would be a good idea if the blaze wasn't getting ICS at all but it is.
So for now lets enjoy GB a little more I got a rom update uploading and dwitherell is also updating his awesome rom
----------------------------------------------
If helped don't be afraid to hit the thanks button it doesn't bite lol
Okay still love the darknight rom although holo launcher gets somewhat laggy sometimes.. but is there a guide for modifying the kernel to create cm9? any help would be appreciated.
theprogram1 said:
Okay still love the darknight rom although holo launcher gets somewhat laggy sometimes.. but is there a guide for modifying the kernel to create cm9? any help would be appreciated.
Click to expand...
Click to collapse
Well i just release build8 and no more holo launcher
As for a guide, there isn't one. There's guides on how to make your own kernel from the source drop and the initramfs from a stock rom but to modify the 2.6.35.11(gb) kernel to work with cm9/ics takes a lot of work and a lot of backporting and unfortunately every kernel is different as every phone is which is why no guide is ever accurate. Honestly, the best way to contribute is learn a few languages and start learning slowly. Unless, of course, you have knowledge on linux kernels then that'd be awesome
Either way i started a channel on irc #teamfah-q. That is where team fah-q(merwin, flyers00, thomas.raines, and myself) hangs out and shares ideas with each other and talk about changes and we do drop leaks to our builds and mods and the such. Join us on the channel.
theprogram1 said:
So I am fed up with T-Mobile and Samsung not releasing a ics update for this phone. I wan't to try the new features like facelock and android beam ( really helpful). Well can we start from scratch also is there a guide to do that? It would be really awesome if someone posted a link for it.
Click to expand...
Click to collapse
I tried exactly this once... and let me tell you, it's REALLY difficult. I started with a T989 kernel and after months of work, still had a non-booting kernel.
I'm starting again, but moving much slower since I have an S3 now. I'm also trying to get a "console" on the device so I can see if the thing is actually booting at all.
Joy.
Good luck if you want to start in on this, I wish you the best

[XOOM2] Develop?

Hello everybody,
I'm new to android developing, I've been flashing roms since I got my nexus s 2 years ago,
did lots of rom updates for my friends ad stuff.
I really wanted to learn how to develop android roms, so I decided to follow the steps and compile my first
cm10.1 for my nexus s with the help of the cm wiki.
After some day learning the most I could out of linux bash and the process to compile a rom, I finally got a working rom.
Well, I have a xoom 2 too, so I thought, what if I could try to build a rom for it, I know it would be hard, but it would be good so I could learn more about developing.
I'd like to know if with the safestrap 3.1, the lastest we have now, if it's possible to compiled a rom for xoom2 (mine is mz607), if the safestrap would be able to rom another rom than the official one, because the little I used it, it was looking fully functional, but I didn't find answer of what is possible or not to do with it in the thread.
If you say so, I'm gonna do my best to develop one, specially now that I have free time for the next weeks,
if anyone can help me out, with any kind of help I would be glad.
Thanks a lot

Building custom Kernel for Nethunter

Hi XDA,
Finally found and rooted a cellphone because I've been wanting to use Kali on a mobile. After a few hours, I realized I needed a seemingly non-existant custom kernel as well since almost all the tools don't work.
I'm new to rooting so sorry if my questions seems stupid. Can I use any kernel source code on my firmware? Basically, can't find a Nethunter custom Kernel for my phone and I'm wondering if it's worth learning how to and if it's even possible. Any input or pointing to a guide would be appreciated. I'm really not sure where to start..
One UI 3.1
Android 11
Baseband A515FXXU5EUL3
Kernel 4.14.113
Thanks in advance,
Chaeers!
RickyBoby said:
Hi XDA,
Finally found and rooted a cellphone because I've been wanting to use Kali on a mobile. After a few hours, I realized I needed a seemingly non-existant custom kernel as well since almost all the tools don't work.
I'm new to rooting so sorry if my questions seems stupid. Can I use any kernel source code on my firmware? Basically, can't find a Nethunter custom Kernel for my phone and I'm wondering if it's worth learning how to and if it's even possible. Any input or pointing to a guide would be appreciated. I'm really not sure where to start..
One UI 3.1
Android 11
Baseband A515FXXU5EUL3
Kernel 4.14.113
Thanks in advance,
Chaeers!
Click to expand...
Click to collapse
Alright,
So basically started to learn and build my own kernel, but I'm really not sure if I'm doing the right thing or overlooking a much easier solution.
Any input on what to do to make Nethunter's HID and Wireless tools work would be very much appreciated.
This is giving a huge headache but at least I'm learning!
Conseguiu resolver o seu problema?
RickyBoby said:
Alright,
So basically started to learn and build my own kernel, but I'm really not sure if I'm doing the right thing or overlooking a much easier solution.
Any input on what to do to make Nethunter's HID and Wireless tools work would be very much appreciated.
This is giving a huge headache but at least I'm learning!
Click to expand...
Click to collapse
did you manage to create your kernel? I'm also having difficulty, I have a Moto G7 Plus Android 10 kernel 4.4 I already have the kernel source
RickyBoby said:
Hi XDA,
Finally found and rooted a cellphone because I've been wanting to use Kali on a mobile. After a few hours, I realized I needed a seemingly non-existant custom kernel as well since almost all the tools don't work.
I'm new to rooting so sorry if my questions seems stupid. Can I use any kernel source code on my firmware? Basically, can't find a Nethunter custom Kernel for my phone and I'm wondering if it's worth learning how to and if it's even possible. Any input or pointing to a guide would be appreciated. I'm really not sure where to start..
One UI 3.1
Android 11
Baseband A515FXXU5EUL3
Kernel 4.14.113
Thanks in advance,
Chaeers!
Click to expand...
Click to collapse
He i have a little knowledge,but also hid dont work in my kernel...
RickyBoby said:
Hi XDA,
Finally found and rooted a cellphone because I've been wanting to use Kali on a mobile. After a few hours, I realized I needed a seemingly non-existant custom kernel as well since almost all the tools don't work.
I'm new to rooting so sorry if my questions seems stupid. Can I use any kernel source code on my firmware? Basically, can't find a Nethunter custom Kernel for my phone and I'm wondering if it's worth learning how to and if it's even possible. Any input or pointing to a guide would be appreciated. I'm really not sure where to start..
One UI 3.1
Android 11
Baseband A515FXXU5EUL3
Kernel 4.14.113
Thanks in advance,
Chaee
Click to expand...
Click to collapse
Wifi adapter work i have tp-link tl-wn727n mt7601u...

Categories

Resources