[DEV][SCRIPT][HOW-TO] Build MR GB 2.6.35 without thinking? WAHTS!? - EVO 4G Android Development

Hey guys lithid here again with another helper script, and how-to. As some of you may know I have recently decided to start building kernels. While I still work on roms, I found kernels to be strange, and sometimes difficult. So instead of taking that knowledge and holding it to myself, I figured I would release it here and hopefully it could open the doors for more people working on kernels.
Basically I created a script, that would do the entire build process for a kernel, it would copy the config you want from arch/arm/configs, assigned the compiler, then compile the kernel. Now after the first time I compiled this I did a copy and paste to Koush's AnyKernel updater, while that was fine and only took a min or two, I found it really annoying to do it everytime, specially when I am testing changes to the compiled kernel. So I added in a any-kernel folder to my built environment. I also added the tool-chain compiler I would be using as well into my repo.
AnyKernel folder
Cross Compiler
Now this was great. I didn't have to build anything manually, all's I needed to do was sign the zip and then push it to my phone.
Then I thought (being so lazy) why not just have this script auto-sign the zips for me and place them in my home folder? So I did. I also added in my own keys so the signature is mine! =P
Auto-Sign
Now for the fun stuff, recently there have been some roms out there that use a slightly different flashing method. Well I solved that as well. Now the script not only builds one update.zip for the compiled kernel. It creates 3 one for each rom type.
Synergy Nightly
Synergy Godmode
Universal (All other sense roms)
Click to expand...
Click to collapse
So everything is basically done. Devs would be able to implement my script into their kernel environment to build kernels for all roms that are supported here on XDA.
How to:
NOTE: You will need to get a list of applications installed and be running linux for this to work. I used Ubuntu 11.04 for all my building needs. If you want a quick list of packages you will need to install first click here there you can install corresponding packages to compile this.
Code:
git clone https://[email protected]/lithid/Htc-Sense-Freedom-Kernel.git
cd Htc-Sense-Freedom-Kernel
./build-it.sh {version #}
That's it!
Here is an example:
Error:
Code:
[email protected]:~/Development/Htc-Sense-Freedom-Kernel$ ./build-it.sh
Written by Lithid
[Error]: Expected 1 parameter, got 0.
Usage: bash build-it.sh v# [BUILD VERSION]
Good:
Code:
[email protected]:~/Development/Htc-Sense-Freedom-Kernel$ ./build-it.sh v0.3
Here is a link to the script if you are interested in seeing what I wrote. Of course it will be updated over and over again. Just figured this would be something Devs and/or users who are inspired to be devs to build a kernel without no knowledge really.

This is nice, very nice. I think I would start with building the AOSP source first. But by the time I've done that, this'll probably be finished! So thanks for the information!

This looks pretty nice thanks for the right up and links I'll definitely be checking this out some more when I get to my PC.
Sent from my PC36100 using XDA App

Love it bro. Good stuff
Oh, is mdpi still an issue with this tutorial? =P

barnacles10 said:
Love it bro. Good stuff
Oh, is mdpi still an issue with this tutorial? =P
Click to expand...
Click to collapse
Yes, how did you know?
Sent from my PC36100 using XDA Premium App

You are the android king
Sent from my PC36100 using XDA App

Lol'ed so hard at this line in the script.
"function just_sign_the_fucking_zip()"

RileyGrant said:
Lol'ed so hard at this line in the script.
"function just_sign_the_fucking_zip()"
Click to expand...
Click to collapse
Gotta have some fun sometimes huh? It gets lonely writing scripts sometimes, I like to add a little bit of personality to my stuff. lol

lithid-cm said:
Gotta have some fun sometimes huh? It gets lonely writing scripts sometimes, I like to add a little bit of personality to my stuff. lol
Click to expand...
Click to collapse
thanks to that.
post 700 lol.

Holy crap!! Ran the script and right out of the box it compiled and everything is there! This is great! Now I can start poking around!

lithid-cm said:
Gotta have some fun sometimes huh? It gets lonely writing scripts sometimes, I like to add a little bit of personality to my stuff. lol
Click to expand...
Click to collapse
Exactly and gnomelook might be somthing 4 you if you like to change ubuntus look ^^
Sent from my PC36100 using XDA Premium App

I really been wanting to learn to make kernels but AOSP searched round some think you could steer me in the right direction?

Dozenboy0012 said:
I really been wanting to learn to make kernels but AOSP searched round some think you could steer me in the right direction?
Click to expand...
Click to collapse
I would look into the cyanogenmod kernel. It's on cyanogenmods github.
Sent from my PC36100 using XDA Premium App

Is smartass better to run or performance better? Alot of people been talking about smartass
Sent from my PC36100 using XDA Premium App

smartboy36 said:
Is smartass better to run or performance better? Alot of people been talking about smartass
Sent from my PC36100 using XDA Premium App
Click to expand...
Click to collapse
It depends on what your looking for, try them each out and see which works better. Every phone is different.
Sent from my PC36100 using XDA Premium App

smartboy36 said:
Is smartass better to run or performance better? Alot of people been talking about smartass
Sent from my PC36100 using XDA Premium App
Click to expand...
Click to collapse
I tend to stick with smartass, oh wait we are talking about the kernel...

They both are working so perfectly but performance is my favorite
Sent from my PC36100 using XDA Premium App

Hey lithid, is there a way to do this without Linux? I don't have an extra pc? Thx man
Sent from my PC36100 using Tapatalk

gotshores said:
Hey lithid, is there a way to do this without Linux? I don't have an extra pc? Thx man
Sent from my PC36100 using Tapatalk
Click to expand...
Click to collapse
Not unless your computer is a mac. Building on windows is currently not supported.

This is a noble effort but what happens when a user wants to add/subtract to/from a kernel and they are not familiar with c/c++? Copy/paste will go so far especially if they can't tell the difference between a newer version of source code on someones git and the original.
Actually understanding the source is a better way of learning to build kernels instead of having an auto script do everything.
I just finally got a stable gingersense evo kernel built because certain edits (which worked on froyo kernels) would cause the kernel to lag and wifi to throw errors. If the user doesn't know how to troubleshoot, this script becomes almost moot.
I only use two scripts when I compile kernels; one to set the cc, clean the build dir, and open the dir in nautilus and the other to boot my phone into recovery to push the modules then boot into fastboot and flash the zImage.
Again it's a noble effort but things like this (and dsixdas kitchen) make it too easy for novice users to make/build these items and we end up with dozens of threads of base build items that either don't present anything marginally better than the last or unstable items due to the lack of knowledge needed to provide extended support. Dsixdas kitchen is a great tool for saving time (I use it too but learned how to root a rom by hand) but it makes it too easy for novices to build roms.
Sorry for the longwinded post and I'm not bashing the effort...just trying to point out that some things should not be made so easy for specific reasons.

Related

[KERNEL][3.0.8] Dirty Kernel for Bravo - Build on last page! [7TH BUILD - PAGE 19]

See page 19 for the seventh build.
Good job! Nice and clean in a new topic. KUTGW!
Sent from my HTC Desire using XDA App
Freaging sweet!
(sorry for spam but this is exciting)
Excellent stuff.
So will that mean close to full HWA?
If we're running any of the ICS builds which have the hardware hacks, this applies, right?
texasice said:
@ those who flashed Chaosz-X new kernel you need to remove this line from build.prop
Code:
ro.config.disable_hw_accel=true
Click to expand...
Click to collapse
@rootSU: I think it does, because it scores almost the same as GB Sense ROMs, and it gets pretty decent FPS at Quadrant (certainly smooth enough), so I think it works fine.
@pnw: haven't tested that, but you can give it a try, it seems pretty logical that it would help
Can't wait for the 3.0 kernel
Sent from my HTC Desire using XDA App
I flashed this on the p2 build, but my wifi would not turn on... I reverted back to my nandroid right before the flash...
sent from my HTC desire using xda premium
mattmanwrx said:
I flashed this on the p2 build, but my wifi would not turn on... I reverted back to my nandroid right before the flash...
sent from my HTC desire using xda premium
Click to expand...
Click to collapse
chaoz tried including the wifi module you use in the kernel in the system/lib folder? can't find it there on the newest kernel. This messed things up for tristan earlier
Oh crap, forgot to supply the bcr4329.ko indeed.
I'm going to try to get a running 3.0 by tonight, if I don't have it finished this evening, I'll upload the WiFi module from the build (using 2 different OS's to work on, Linux for compiling, and Windows for everything else, and working in Win is much easier for me ;p)
Edit: beginning with the really lame methods of getting 3.0 to run, first attempt is done I think, just copied over files, and modified some of them, nothing really special, starting compiling in 5 minutes.
I flashed over p2 with the camera fix and the camera no longer works. Should I reapply the camera fix?
*child said:
I flashed over p2 with the camera fix and the camera no longer works. Should I reapply the camera fix?
Click to expand...
Click to collapse
But does your wifi work? It didn't work for me...
Not too sure about the camera... it should work... as the added is just libs... the kernel does look at the libs, but doubt it would make a difference... just my guess...
sent from my HTC desire using xda premium
Wifi did not for me. Camera worked but I didn't test it extensively.
Sent from HTC Desire
Camera and wifi doesnt work But HW ac. is fine more speed
Wi-Fi also does not work
Chaosz-X first of all, thanks for the work you've done so far. I believe i can port it over to the n1 using the zip you uploaded. Second, please learn git so you can push your changes to github. (i know you said you hate git but, youre developing a kernel; in comparison git is way easier to understand) It will be much easier for other devs to follow your progress, and port your changes to other qsd8k devices badly in need of hwa.
texasice said:
Chaosz-X first of all, thanks for the work you've done so far. I believe i can port it over to the n1 using the zip you uploaded. Second, please learn git so you can push your changes to github. (i know you said you hate git but, youre developing a kernel; in comparison git is way easier to understand) It will be much easier for other devs to follow your progress, and port your changes to other qsd8k devices badly in need of hwa.
Click to expand...
Click to collapse
cant wait 3.0 kernel for n1
texasice said:
Chaosz-X first of all, thanks for the work you've done so far. I believe i can port it over to the n1 using the zip you uploaded. Second, please learn git so you can push your changes to github. (i know you said you hate git but, youre developing a kernel; in comparison git is way easier to understand) It will be much easier for other devs to follow your progress, and port your changes to other qsd8k devices badly in need of hwa.
Click to expand...
Click to collapse
How could he even develop a linux kernel if he is better in using windows? Dont you have to be a kernel dev to do those things?
Some devs are crossing strange lines - 4 sure . Hope you get it done for our Nexus ONE my friend
cheers
sweet..kernel 3.0!!
waiting ..waiting..
bunnahabhain said:
How could he even develop a linux kernel if he is better in using windows? Dont you have to be a kernel dev to do those things?
Some devs are crossing strange lines - 4 sure . Hope you get it done for our Nexus ONE my friend
cheers
Click to expand...
Click to collapse
People start with windows at a young age
Sent from my HTC Desire using xda premium

[CLOSED]||Evervolv 2.2]

This thread is no longer active. Jomeister plans to continue work on Evervolv. He will open a new thread for that purpose.
Introduction
The purpose of this thread is to coordinate work on the AOSP-based Evervolv 2.2 ROM for Skyrocket (and its sister, T989).
Skyrocket is not an officially supported ROM by Evervolv, but we have fully integrated device and vendor directories in their tree. Therefore we get fixes from the main tree and also have the ability to push fixes to Evervolv's tree. This is something we could never do when we worked directly off the Code Aurora source.
Our desire is to give the dev community a single codebase to coalesce around. Hopefully, with more devs working on the same project, we can progress faster towards AOSP.
To build, follow the instructions here (choose ev_skyrocket-eng at the lunch menu):
https://github.com/Evervolv/android
Or, the short, short version:
Run "repo status" and make sure you have no local mods.
Run "repo sync" and make sure it completes without error.
Run "rm -rf out" to remove any old compiled stuff
Run ". build/envsetup.sh" to set up your environment
Run "lunch ev_skyrocket-eng" to select the target
Run "make -j4 otapackage" (adjust -j option to match your # of processors)
What works:
2D/3D graphics, hw accel of gui, bluetooth, gps, nfc, wifi, sdcard (int+ext), MTP/PTP over USB
What doesn't work:
audio, calls, camera, cell data, sms, anything else you can think of
Issues are being managed on Github:
https://github.com/Evervolv/android_device_samsung_skyrocket/issues
Want a ROM link?
Then follow the instructions to build a ROM! The point, at this time, is to get devs involved in the process. The ROM is not ready for anyone to try out or use at this point. There are many problems left to solve.
Want to help?
Are you a dev with a Skyrocket and a burning desire to get AOSP for your phone? Please, check out Evervolv and start debugging! The Github Issues link above is a great starting point.
Jomeister and RaverX3X graciously agreed to join forces here. We hope other devs join too!
Current Dev Contributors:
jomeister15
RaverX3X
topprospect
Credit and Thanks:
Xboarder56 for the original Evervolv Skyrocket device tree
romracer for the unsecure mods to the ICS kernel
Changes Log:
04/11/12: Posted succint build instructions
04/11/12: Fixed unstable-ness of GUI (link)
04/06/12: Build now boots on its own boot.img (link)
this is on 4.0.4 now?
Sent from my GT-P7510 using XDA Premium HD app
BaconStep said:
this is on 4.0.4 now?
Sent from my GT-P7510 using XDA Premium HD app
Click to expand...
Click to collapse
yes because google has released 4.0.4 sources and ota updates to nexus.
wali01x said:
yes because google has released 4.0.4 sources and ota updates to nexus.
Click to expand...
Click to collapse
Sweet!
Sent from my GT-P7510 using XDA Premium HD app
Looks great, will try building/debugging when I get my Ubuntu box up again!
Sent from my SAMSUNG-SGH-I727 using XDA
I'll be helping out as well, just got me a T989. I was working on cm9, but I'll switch to this. Hope I can help.
This is obviously a stupid question, and probably not the place to be asking it, but it is going to be asked anyway so.. I understand what the device tree is, but why is it not possible to pull one from the existing ICS leak?
giant420 said:
This is obviously a stupid question, and probably not the place to be asking it, but it is going to be asked anyway so.. I understand what the device tree is, but why is it not possible to pull one from the existing ICS leak?
Click to expand...
Click to collapse
No stupid questions here. A fully compiled ROM like the ICS leak obscures a lot of the details about how to build the ROM from scratch. You have to reverse engineer a lot of what Samsung did to compile AOSP, plus how to avoid pulling in too much Samsung bloat code. Hope that helps.
more or less were going to keep as much samsung out of it as we possibly can . Yes u can kang in stuff from the leak but then that actually causes more issues in the long run then doing it right the first time ;P.
bsbachert said:
I'll be helping out as well, just got me a T989. I was working on cm9, but I'll switch to this. Hope I can help.
Click to expand...
Click to collapse
I think we as a community should still continue working on things such as CM9 and AOKP in addition to Evervolv, just to give people as many options as possible. The good thing that Evervolv device trees are very similar to those required by CM9 and AOKP, so with a few hacks here and there I'm sure we can get those building as well. I don't know about the other devs, but I definitely have enough time to collaborate on multiple projects, as long as I'm not the sole carrier.
ur killing me. I finally managed to get media server to stay up for msm8660 audio pulled from the leak with jos isotope a4 with some other libs and bins. acdb pulling audio policy was still a problem though.
This is definitely for the better though. I was uncomfortable with all those Samsung libs bins and blobs, especially after staring at them under IDA. like raver said it woulda been a nightmare later on.
This is great though, everyone on the same pile should make this go a lot faster.
im very excited for this.
What's IDA?
Sent from my SGH-T989 using XDA
Wow. This build is going to b epic! Can't wait guys. Nice work so far
LawStud3nt said:
What's IDA?
Click to expand...
Click to collapse
http://en.m.wikipedia.org/wiki/Interactive_Disassembler
crazy what u can find in those blobs. helps a lot for debugging though
all I know is I love evervolv on my nexus one its super baller... Thanks to all 3 of you guys
Sent from my SAMSUNG-SGH-I727 using xda premium
Any updates? Got ants in my pants waiting for this one!
softballjunkee13 said:
Any updates? Got ants in my pants waiting for this one!
Click to expand...
Click to collapse
Thanks for the interest.
We will post updates as they happen. Right now we are just trying to organize and get everyone on the same page.
Sent from my SAMSUNG-SGH-I727 using Tapatalk
topprospect said:
Thanks for the interest.
We will post updates as they happen. Right now we are just trying to organize and get everyone on the same page.
Sent from my SAMSUNG-SGH-I727 using Tapatalk
Click to expand...
Click to collapse
OK...enjoy the holiday as well!

|TEAM V3ND3TTA| MIUI GB/ICS Hybrid V.1alpha - A Work In Progress

This is Swipers last GB MIUI, modified, still a work in progress. This is open for testers, hence the alpha build, since I need to use my phone today for business today, I can't test myself yet.
Definitely looking for bugs, feedback, etc and I promise, I won't yell at you or laugh at you for posting them. Just remember, I'm a complete amateur at this and am playing it by trial and error and a little advice from my teammates
Android 2.3.7
Miui 2.3.2b1_es
Kernel:Stock CM7
A2SD Baked In
GAPPS Baked In
Basic instructions To Flash
Recommend Smelkus ra-supersonic 4.3 recovery
Wipe Temp files
Wipe Cache
Factory Reset
Superwipe
Flash ROM
Note: SU may Force Close (And I have NO idea why..yet)
Future Plans
Update Kernel
Explore which files can safely be updated to ICS without breaking anything
Add ICS Theming
(Yeah, that'll be a ton of work for a total noob like me)
Update as many apps from ICS MIUI as I can, that will work (MIUI ICS MMS is awesome, want to see if I can make it work on this)
Alpha Build v2a
Restored original Settings.apk (Several white pngs in the ICS Settings.apk)
Updated GAPPS
fixed SU FC (I hope)
Alpha Build Change Log v1a
Added Updated apk's
SU
Titanium backup
Terminal
Sprint VVM
Google Play Store
Added ICS Settings.apk
Added ICS Transitions Mod
Links
MIUI GB/ICS HYBRID http://d-h.st/ILj
Smelkus Recovery http://d-h.st/tbF
Thanks to everyone involved with MIUI and bringing MIUI to the Evo
Thanks to my mates in Team V3nd3tta for making me do this by not doing it for me
And thanks to Mazda for reminding me I can do this all in one thread and take criticism without making people feel stupid
Hmm
Sent from my PC36100 using xda premium
ZzHacks said:
Hmm
Sent from my PC36100 using xda premium
Click to expand...
Click to collapse
You sound skeptical....
Always loved this rom. Good luck with it HipKat
thx... gonna try something else with SU and see if that helps
nice job HipKat running smooth! :good: ...
Mazda said:
When are you guys going to fix the superuser issue??
Is like every ROM with you guys.......I mean is NOT that hard to fix!! Here, I'll even help you out.......
You get your SuperSU by chainfire (google it)...you place the apk in system/app
Then you get the su file and place it in system/xbin and BOOM, it works!
EASIEST THING IN THE WORLD AND YOU GUYS CAN'T FIGURE IT OUT?!?! HAHAHAHA
Click to expand...
Click to collapse
Dude, it's already been fixed.... relax, and if you don't have something productive to add to this test ROM, then why say it??
But hey, thanks for living up to your references in the OP
It was already fixed
HAHAHAHAHAHAHA
HAHA
HA
HipKat said:
Note: SU may Force Close (And I have NO idea why..yet)
fixed SU FC (I hope)
Click to expand...
Click to collapse
Saying things like what you see above doesn't make it seem like you fixed it :good:
I was only going off what you had in your OP. Didn't you make an entire thread about how people's threads got on your nerves because the OP wasn't updated and this and that? BUT yet you're doing the same exact thing??? HAHAHHAHAHA
Also you said you can take criticism but it seems like you're trying to get me to leave the thread.....COME ON DUDE, if you can't take someone reporting bugs and ACTUALLY providing you with fixes then you're nothing but a hypocrite!
Have to have my phone functional tonight cause my womans in the hospital but tomorrow I'll definitely be flashing this and trying it out. I love MIUI but can't run the ICS version due to needing ffc and netflix (BAH) so this will be great. Thanks Team Vendetta for doing something new with MIUI for the people that love the rom.
and now i know why i quit coming to xda
Kreatur3 said:
Have to have my phone functional tonight cause my womans in the hospital but tomorrow I'll definitely be flashing this and trying it out. I love MIUI but can't run the ICS version due to needing ffc and netflix (BAH) so this will be great. Thanks Team Vendetta for doing something new with MIUI for the people that love the rom.
Click to expand...
Click to collapse
No prob. What you said is EXACTLY why we're bringing back; Netflix, FFC, etc. Nice to have that stuff working.
This is what I'm talking about, why the hell all the drama!!! How about we we drop it here guys, I don't know what the hell is going on between all these damn teams lately, but you guys fight like damn school kids man. How about you guys pm'ed out between the whole of you, and leave the threads alone with all the bs. We as members like all of your sh*t because most of us can't do it, no matter what TEAM you're from. Keep the drama between yourself man.
Sent from my PC36100 using xda premium
Sounds great but I really wish some can just like post a rom that's great fully working no bugs smooth for example Cyanogen mod 7 stable and myns warm two point two. Like if your gonna post a rom then make sure it works and its reasonable for FFC and other stuff not to work on a ics rom because the evo Never got ics with HTC updates and if you need testers ask someone like pm people or try it out on free time I made a mistake posting my rom which isn't a full rom like iI didn't do all the work I just added/remove apps and edited build props and took some stuff other stuff out which I'm not gonna do again until I really know hoe to build from source and or heavily theme roms like cm9 or cm7 and edit 9.PNG correctly and I'm available anytime for testing on the weekends and I wish someone will teach me the correct way to build up roms and edit language codes like Java and C++ or at least set me to the right path
I will be flashing this rom some time
Sent from my PC36100 using xda premium
lreyes said:
Sounds great but I really wish some can just like post a rom that's great fully working no bugs smooth for example Cyanogen mod 7 stable and myns warm two point two. Like if your gonna post a rom then make sure it works and its reasonable for FFC and other stuff not to work on a ics rom because the evo Never got ics with HTC updates and if you need testers ask someone like pm people or try it out on free time I made a mistake posting my rom which isn't a full rom like iI didn't do all the work I just added/remove apps and edited build props and took some stuff other stuff out which I'm not gonna do again until I really know hoe to build from source and or heavily theme roms like cm9 or cm7 and edit 9.PNG correctly and I'm available anytime for testing on the weekends and I wish someone will teach me the correct way to build up roms and edit language codes like Java and C++ or at least set me to the right path
I will be flashing this rom some time
Sent from my PC36100 using xda premium
Click to expand...
Click to collapse
Dude, I just gotta ask this - How is it the + key works on your keyboard but not the . or the , keys?
Ferenczy68 said:
Dude, I just gotta ask this - How is it the + key works on your keyboard but not the . or the , keys?
Click to expand...
Click to collapse
Haha I'm using my phone and I'm a 13 yr old teenager which is unbelievable, and I don't type right with the phone I just type and wish it sound great and makes sense.
Sent from my PC36100 using xda premium
lreyes said:
Haha I'm using my phone and I'm a 13 yr old teenager which is unbelievable, and I don't type right with the phone I just type and wish it sound great and makes sense.
Sent from my PC36100 using xda premium
Click to expand...
Click to collapse
I gotcha, cool beans then!
Once this is ok atleast I will keep as daily because I like MIUI and gingerbread because its amazingly delicious
Sent from my PC36100 using xda premium
lreyes said:
Sounds great but I really wish some can just like post a rom that's great fully working no bugs smooth for example Cyanogen mod 7 stable and myns warm two point two. Like if your gonna post a rom then make sure it works and its reasonable for FFC and other stuff not to work on a ics rom because the evo Never got ics with HTC updates and if you need testers ask someone like pm people or try it out on free time I made a mistake posting my rom which isn't a full rom like iI didn't do all the work I just added/remove apps and edited build props and took some stuff other stuff out which I'm not gonna do again until I really know hoe to build from source and or heavily theme roms like cm9 or cm7 and edit 9.PNG correctly and I'm available anytime for testing on the weekends and I wish someone will teach me the correct way to build up roms and edit language codes like Java and C++ or at least set me to the right path
I will be flashing this rom some time
Sent from my PC36100 using xda premium
Click to expand...
Click to collapse
This will get to that. This version is simply a test version and a chance for feedback.
I wish I knew coding from source. I'm trying to learn as I go along with this, since it's ambitious as it is, combining GB & ICS
Ok, if you MUST know, I made simple mistake; copied the newest SU to /system/app/ but forgot to copy the newest SU, Busybox and dexdump over to /xbin/, so there was a compatibility error. Simple as that. An easier fix is to just uninstall SU on anyone that got the first version, reboot, then d/l and install SU.
Since this is my first attempt at doing any type of work on ROM, give me a break, would ya??
Now, back to the topic, please....

[DEV] AnyKernelEpic - flash any kernel without changing ramdisk

AnyKernelEpic​
MTD ONLY!! Try at your own risk. It should work, but its not my fault if you have to bring out ODEN. As always, backup first.
Inspired by AnyKernel by koush
https://github.com/koush/AnyKernel
I've noticed most of the kerne's for the Nexus 7 are using AnyKernel now, and its quite nice since one kernel is able to work on several different roms without the developers needing to create multiple flashable zips. Of course our epics are a bit more complicated so it couldn't be ported directly over. I was able to use the dump_image tool from AnyKernel to read our boot image, but that's about all. Those of you familiar with building kernels will know that the epic uses a python script to assemble the boot image, which is actually a combination of the kernel zImage and two ramdisks. Since python isn't really an option in recovery, I wrote a small C program which is able to separate our boot image into its three parts, replace the kernel, and then put it back together into a new boot image to be flashed. All this can run from a flashable zip, which from my limited testing seems to work pretty well.
Feel free to use this in your own projects and make any changes as you see fit
INSTRUCTIONS:
Build your kernel as usual until you have your zImage and any modules.
Put zImage in zip
Remove any old modules from zip/system/lib/modules and replace with yours
Run build_zip.sh to create flashable zip
HOW IT WORKS:
Previously flashing a kernel required it to be combined with ramdisk from a
specific rom.
This will load ramdisk from phone, take it apart, replace the kernel, then
reflash it.
New modules can also be flashed to /system if needed.
WHERE TO GET IT:
https://github.com/zman0900/AnyKernelEpic
The kernel and modules currently in my repo are from my own build of CM10 on the evening of 9/25. I haven't made any modifications, so it should be the same as the nightly.
Sweet, does this mean that one of our talented kernel devas will be able to make a samurai kernel to work with jellybean? I would be happier than a pig in....well you get the picture,lol
Sent from my SPH-D700 using Xparent SkyBlue Tapatalk 2
Nashdogg said:
Sweet, does this mean that one of our talented kernel devas will be able to make a samurai kernel to work with jellybean? I would be happier than a pig in....well you get the picture,lol
Sent from my SPH-D700 using Xparent SkyBlue Tapatalk 2
Click to expand...
Click to collapse
Well I think Jellybean pretty much needs the 3.x kernel, but if someone were to port all that stuff forward to 3.x, it should work. But I wouldn't be too suprised if a 3.x jellybean kernel would work on ICS... I'm not going to test it though, so if there's an ICS person reading this, feel free to try and let us know how many of the things in your house catch fire .
zman0900 said:
Well I think Jellybean pretty much needs the 3.x kernel, but if someone were to port all that stuff forward to 3.x, it should work. But I wouldn't be too suprised if a 3.x jellybean kernel would work on ICS... I'm not going to test it though, so if there's an ICS person reading this, feel free to try and let us know how many of the things in your house catch fire .
Click to expand...
Click to collapse
bbelos once mentioned having a 3.x temp boot kernel for ICS, so I'm pretty sure its very possible
joemossjr said:
So if we ahbe a 3.xx kernel on cm10 what about cm9??
Click to expand...
Click to collapse
bbelos said:
I actually have an updated cm9 kexec kernel that I will post for those not wanted to run cm10 yet. It has not been put through the same tests recently as the cm10 version, but it should be up to speed with all the same fixes.
Click to expand...
Click to collapse
Twas broken, now fixed
If anyone happened to try this out yesterday, you may have noticed it didn't actually work. Well I noticed that too, and I've made some changes. I've tested it quite a bit better and now I can confidently say that it is working!
Damn you! I was planning on porting this over!
Thanks
Sent from my Galaxy Nexus using Tapatalk 2
Very nice work, seems like more and more people are learning to dev.
MДЯCЦSДИT said:
Damn you! I was planning on porting this over!
Thanks
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
Haha, turned out to not be much of a port. Everything in it I either wrote myself or took from the cyanogenmod flashable. But it was my first experience writing C for arm (besides a few lines of kernel stuff) so that was fun.
By the way, does anyone happen to know if there's source for bml_over_mtd somewhere?
Sent from my SPH-D700 using xda premium
zman0900 said:
Haha, turned out to not be much of a port. Everything in it I either wrote myself or took from the cyanogenmod flashable. But it was my first experience writing C for arm (besides a few lines of kernel stuff) so that was fun.
By the way, does anyone happen to know if there's source for bml_over_mtd somewhere?
Sent from my SPH-D700 using xda premium
Click to expand...
Click to collapse
Is this it? http://www.google.com/url?sa=t&rct=...id_-I2uryfTN2sJag&sig2=PkFTFfMI7TAFKBUQwaN5Qw
xboxfanj said:
Is this it? http://www.google.com/url?sa=t&rct=...id_-I2uryfTN2sJag&sig2=PkFTFfMI7TAFKBUQwaN5Qw
Click to expand...
Click to collapse
Looks right to me. Not that anything really needs done with it, but its interesting to see how it works.
Sent from my Nexus 7 using xda premium
Yeah weird how it's part of Google's AOSP tools. Why would they have that?
xboxfanj said:
Yeah weird how it's part of Google's AOSP tools. Why would they have that?
Click to expand...
Click to collapse
Did we just reveal Google's secret plans to undermine and destroy touchwiz?
Sent from my SPH-D700 using xda premium
Good Shi-Stuff man.

[Q&A]{Kernel}Moretz/Marla

This thread was created at the request of CvD.
This thread is for questions you have about the moretz and marla kernels, I'm sure CvD will pop in from time to time and I will as well. I will update this as i go with common issues if project mayhem deems it so.
Keep it clean and keep it intelligent, if you haven't read the stickies and the kernels thread you have no business posting here and will recieve no assistance.
Keep in mind:
CvD only supports cm10.1 officially so other rom's support is probably going to be guided by other users.
CvD has made it clear that he is not one to support a ton of 3rd party control apps so those questions about said apps will likely be directed by other users just a heads up.
If you can get logs do it.
Be as detailed as possible if you come in here saying oh the kernel doesn't work I will likely hurt you emotionally.
Thanks dude. I now have two CM10.1 kernels published, they are very similar to each other so below a quick description of the differences ...
Marla:
This is intended to be a very stock feeling kernel, no CPU over clocking, no voltage control. Miminal bells and whistles. What is there, is specifically tweaked to enhance the stock kernel and provide excellent performance and battery life. Use either the SmartassV2 or OnDemand governors after you flash and you are done. You shouldn't have to underclock this kernel to save battery, nor should you have to apply a bunch of other tweaks and changes.
Moretz:
This is for the over clockers and tweakers. It is the test bed for changes and udpates for me, many subsystem changes make it from here to Marla after they are proven to work. This kernel will probably be updated more frequently with a wide variety of stuff for everyone to screw with. Once I lock in some good settings and tunings, they will move into Marla as pre-configured changes.
Project mayhem
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
Can somebody tell me about the Marla kernel? What is it? What is it for, etc.?
The XDA search didn't help nor did Google.
Thanks!!
The best I could find on google was the return "Ferron: Driver static.musicstag.com/album/Ferron/Driver/... Soundtrack Bernard Herrmann; Amt Jan Driver; The Completeist Car vs. Driver ... Cathi Bruns; Rose Polenzani; Frazey Ford; Stephen Fearing; Marla Hansen ..."
See?! It has Car vs. Driver and Marla!
http://static.musicstag.com/album/Ferron/Driver/
Edit: Yup, it's here! Going to DL it now
Locoman_ said:
Can somebody tell me about the Marla kernel? What is it? What is it for, etc.?
The XDA search didn't help nor did Google.
Thanks!!
The best I could find on google was the return "Ferron: Driver static.musicstag.com/album/Ferron/Driver/... Soundtrack Bernard Herrmann; Amt Jan Driver; The Completeist Car vs. Driver ... Cathi Bruns; Rose Polenzani; Frazey Ford; Stephen Fearing; Marla Hansen ..."
See?! It has Car vs. Driver and Marla!
http://static.musicstag.com/album/Ferron/Driver/
Click to expand...
Click to collapse
Hold your breath. It's coming.
Sent from my SAMSUNG-SGH-I727 using xda app-developers app
jd1639 said:
Hold your breath. It's coming.
Sent from my SAMSUNG-SGH-I727 using xda app-developers app
Click to expand...
Click to collapse
Yeah, quite literally ... running a release build now. Should be a new thread in 30-45 minutes once I know it is working as intended.
I had one of the boot loops that has been talked about in the mortez thread. If I pulled a log cat after I booted up would this contain information to help CvD of it was actually a boot loop?
Sent from my SAMSUNG-SGH-I727 using xda app-developers app
I need the log cat run as the loop happens, otherwise it likely won't have any of the relevant errors.
Sent from my SAMSUNG-SGH-I727 using xda premium
Which version or release date of moretz and marla can you use for CM10 if that's possible? I looked thru a bunch of threads before asking, so my bad if it's been answered already. Thanks for your time.
TyJones916 said:
Which version or release date of moretz and marla can you use for CM10 if that's possible? I looked thru a bunch of threads before asking, so my bad if it's been answered already. Thanks for your time.
Click to expand...
Click to collapse
I believe that this is a cm10.1 based kernel so I don't think you can use either. I may be wrong though.
Sent from my Slimmed out Skyrocket
bps119 said:
I believe that this is a cm10.1 based kernel so I don't think you can use either. I may be wrong though.
Sent from my Slimmed out Skyrocket
Click to expand...
Click to collapse
Correct ... The op in each thread states they are for cm10.1 builds after 4/24/13
Sent from my SAMSUNG-SGH-I727 using xda premium
Not necessarily sure if this applies but it definitely relates: I've tried several times (~50 actually) to compile a kernel for the Skyrocket using 7 different toolchains and combinations of ramdisks, branches from your source, other sources, CM's source, basically any I could find and I get the same result every time whereby the phone gets past the initial Samsung splash but never starts the boot animation and usually reboots due to a kernel panic. I managed to look through a last_kmsg once and it said that the memory address for initrd overlapped (it gave 0x41400000 as the beginning address) and I've tried changing the base address, including a ramdisk address, standing on my head, swearing profusely et cetera. I have successfully compiled many, many kernels in the past as I prefer an uncommon set of schedulers and governors and I have never encountered a problem like this before. I haven't been making any modifications to the sources to rule out having inadvertently introduced something myself and based on unpacking all of the boot images I can find the base address is 0x40400000 and the page size is 2048.
Given the above information, my question is simple: WTF am I missing?
Thanks for your time and I appreciate your time and assistance, and I assure you I have searched until I no longer found any related information (none in English or translated into any semblance of English I could comprehend, anyway)
The cleanest way to do it, is to setup a CM10.1 build environment and build it within that framework to ensure consistency. There are numerous integration points between the OS and the kernel (such as Audio-CAF and Display-CAF) that have to be factored in. Check the rookie thread (link in my sig) to see how to setup that environment.
Once you've done that, you can run a kernel build with the following commands:
$> repo sync -j16
$> breakfast cm_skyrocket-userdebug
$> make clean && mka bootimage
That will give you your kernel modules and boot.img in the out/ directory. Just make sure you are pulling the correct kernel source in your repo and update the cm.dependencies script to remove the stock kernel dependency; otherwise it'll update your repo and pull the kernel from cyanogenmod.
I am currently using the Moretz kernel. It's fast and stable. Thank you guys for awesome kernels to choose from! ?????
Sent from my SAMSUNG-SGH-I727 using xda app-developers app
Not sure if it's just me, I have had two freeze/reboots in the last couple of days, both times while managing apps, once during an update in Google Play and once while looking at installed apps via ROM Toolbox Pro. I didn't have that prior to using Marla. I'm on CM10.1 latest nightly, has anyone else seen this?
Both Marla 2.0.9 and Moretz 3.0.9 have been super stable for me, maybe a recent commit to cm10.1 is to blame
Hey guys, loving the Moretz 3.0.9 Kernal, seems really stable, and snappy. Being my first custom kernal in a while, I'm a little behind and rusty on what the different Governor and IO Schedular effects/behaviors are. Can anyone point me to a guide that might explain them a little more in depth, or did I somehow miss this information in a post?
What are you all setting yours to? I using PAC-man 7/16 nightly, so any suggestions on what works would be great as well. Thanks!
Edit: Nevermind, finally found the guide. Got pushed to the second thread of the 1stop newbie info post. http://forum.xda-developers.com/showthread.php?t=1950084
Newbie here. I am currently using Moretz on top on CM10.1. I am not a overclocker/tweaker.... given that would Marla be better in terms of battery life?
panny2 said:
Newbie here. I am currently using Moretz on top on CM10.1. I am not a overclocker/tweaker.... given that would Marla be better in terms of battery life?
Click to expand...
Click to collapse
Don't quote me on this but I would say yes because of less overhead? Try it and see.
Sent from my SAMSUNG-SGH-I727 using Tapatalk 4 Beta
panny2 said:
Newbie here. I am currently using Moretz on top on CM10.1. I am not a overclocker/tweaker.... given that would Marla be better in terms of battery life?
Click to expand...
Click to collapse
If you're not a tweaker, I'd suggest marla. Same kernels but marla doesn't have all the options moretz does.
Sent from my SGH-I727 using xda app-developers app

Categories

Resources