[Q] Pulling kernels from roms? - EVO 4G Q&A, Help & Troubleshooting

As the title says Can you pull a kernel from a ROM and flash the kernel to another ROM?
i ask because the current ROM im on..well my phone does not like the kernel i get total crap battery life. i Narrowed it down to being the kernel or the battery the batteries are fine checked em both twice they work fine and dandy.
im sure its the kernel as the other ROM i was on i got PHENOMINAL battery life as in my phone lasted a good 2 or 3 days on a single charge. and with the current kernel im on i get 3-9 hours max . the ROMS are virtually the same both jellybean both running same apps same cpu govenor same cpu clocks
SO please someone help me out XD
[OR if you can point me to where i can get this kernel "2.6.38.8-evervolv-acies-ics+" would save me loads of trouble]

Just look for the zImage. My Rom has a folder called 'kernel' inside of the zip. Inside that is a file called zImage. Once you get it out, just use flash image GUI to flash it. Not sure if your old Rom had a folder called kernel
Sent from my PC36100 using xda app-developers app

You could use dsixda's kitchen to extracted the kernel zImage.

Sieze said:
As the title says Can you pull a kernel from a ROM and flash the kernel to another ROM?
i ask because the current ROM im on..well my phone does not like the kernel i get total crap battery life. i Narrowed it down to being the kernel or the battery the batteries are fine checked em both twice they work fine and dandy.
im sure its the kernel as the other ROM i was on i got PHENOMINAL battery life as in my phone lasted a good 2 or 3 days on a single charge. and with the current kernel im on i get 3-9 hours max . the ROMS are virtually the same both jellybean both running same apps same cpu govenor same cpu clocks
SO please someone help me out XD
[OR if you can point me to where i can get this kernel "2.6.38.8-evervolv-acies-ics+" would save me loads of trouble]
Click to expand...
Click to collapse
Like Evil said,use dsixda's kitchen to extract the kernel from the rom,grab only the zimage and the modules folder from the rom,its in system/lib.

Old rom not kernel pull..able :<
no sign of a kernel in the zip think it may be in boot img
cant open the boot img so no idea whats in it other than boot related things

Sieze said:
no sign of a kernel in the zip think it may be in boot img
cant open the boot img so no idea whats in it other than boot related things
Click to expand...
Click to collapse
The kernel zimage is contained within the boot.img
Like Diablo and others said use dsixdas kitchen.
Set up a working folder with the ROM you want the kernel from.
Use advanced options then to extract the boot image. then you can get to the zimage. If you want to replace it then do so and build the boot.img again

Robobob1221 said:
Use advanced options then to extract the boot image. then you can get to the zimage. If you want to replace it then do so and build the boot.img again
Click to expand...
Click to collapse
ive tried but im very un familiar messing with ROM's oi just flash em... i gave the android kitchen a spin on my linux machine and got completely lost. havnt touched linux in a long time so aside from being vaguely unfamiliar. i have no clue wtf im doing. so i am not touching anything tell i get a better understanding.

If you're on Linux use Tommy Tomato's android utility very user friendly
An enviousOG

Sieze said:
ive tried but im very un familiar messing with ROM's oi just flash em... i gave the android kitchen a spin on my linux machine and got completely lost. havnt touched linux in a long time so aside from being vaguely unfamiliar. i have no clue wtf im doing. so i am not touching anything tell i get a better understanding.
Click to expand...
Click to collapse
If your having trouble understanding things,or wondering what they are,go here and read up on my thread,it will give you the basic knowledge you need to work with android.

Related

[REQUEST] Need a kernel update.zip converted to a boot.img

I am in a bit of a pickle. I'm one of the unfortunate souls who's brand new Evo doesn't take kindly to flashing. I am rooted and running sprintlovers Rom, but would like to try some overclock goodness, not to mention having the framerate unlocked. My thought is that, though I can't flash anything from recovery (when you try to flash anything, it just bootloops right back into recovery when you restart), I may be able to flash an OC'd kernel through fastboot. I looked into how to do this myself, but it still seems a bit over my head. Is there a kind soul out there who would make me a boot.img out of either or both of these???
netarchy-toastmod-4.1.9.1-cfs-NoHAVS-universal
netarchy-toastmod-4.2.1-cfs-bfq-havs-less-smartass-universal (Less Aggressive Undervolting)
Thanks a lot for your help!!!!!
Richard
you can't flash anything from recovery?
Put it on your PC, open up the .zip and you may find a little surprise in there...
xHausx said:
you can't flash anything from recovery?
Click to expand...
Click to collapse
Nope. I have S-off, I am running sprintlovers and have root, but when I boot to recovery, flash something, and then reboot.....all I get are bootloops. Yesterday, I opened up logcat just before booting. Here us the one and only log entry:
Code:
C:\A>adb logcat
- waiting for device -
link_image[1995]: failed to link /system/bin/sh
CANNOT LINK EXECUTABLE
Igotsanevo4g said:
Put it on your PC, open up the .zip and you may find a little surprise in there...
Click to expand...
Click to collapse
Lol, I may be new to the evo, but I'm not a total n00b. That was the first thing I checked. There is no flashable boot.img file in the kernel folder. Now, maybe one of the files in that folder just needs to be renamed, I'll admit my ignorance right upfront. I did do research before I made this thread, but when they started talking hex editing (of which I've only done a little) and running prl scripts, I knew I was getting over my head.
EDIT: BTW, I have tried both clockwork and Amon-Ra recoveries. Both have the same basic logcat readout, just a slight variation in syntax.
Afternoon bump
tejasrichard said:
Afternoon bump
Click to expand...
Click to collapse
if its the new evo u cant flash a kernel or any rom that isnt based on the latest OTA's. Its because they have a few different drivers and the kernels dont support them yet so thats why u cant flash anything really. so just sit tight with a rom like sprint lovers or Vaelpak and you should be good for now
Use the Android kitchen in the chef's forums. It will inject that kernel into whatever boot.img you want real fast
May be a dumb reply but did you wipe and clear cache?
You can strip the zimage file out of the .zip and push it to the phone using adb...

[Q] Problem Flashing kernel

Whats up guys,
got a quick question. i just downloaded the fresh 3.5 Rom yesterday and have no problems with it what so ever, very fast and responsive. out of curiousity ive been looking around at kernels, and have realized that i can get my phone even faster. i know that fresh's Rom already comes with a kernel, but like i said, out of curiousity im looking to see if i can get it even faster. i place the folder onto the sd card, and wipe the cach and douch (whatever its called), and go to flash the file under recovery mode only to find myself searching through the files within the kernel folder (kernel, system, and META-INF) instead of actually installing the kernel itself. what am i doing wrong here?
:FYI i am also using a mac if that makes a difference at all
It sounds like you extracted the zip file.
Try downloading the zip using the xda app or tapatalk.
And don't unzip it just put it on the root, if using Amon_RA 1.8 or leave in downloads if using 2.1.1 or Clockwork
Sent from my PC36100 using Tapatalk
Well what i did was download the file straight from the xda forums, and dragged it from the downloads list once it was finished and onto the root. I didnt unzip anything on purpose, but maybe it does it automatically?
And i am using Clockwork, what exactly do u mean leave in the downloads?
Flash the kernel in exactly the same way that you flashed fresh's rom. If you used rom manager to flash the rom then these instructions don't apply. Try downloading the kernel with your phone, and then reboot to clockwork and go to flash zip. From there navigate the folders until you get to your chosen kernel. It will be in "downloads" or "my downloads" or "tapatalk downloads" or something along those lines.
Thanks a bunch man, helped me figure out my problem. I flashed the 4.1.9.1 netarchy-toastmod and it runs very nice. I ended up getting the zip off of xda and downloading it straight to the root, flashing it and rebooting sucessfully. Thanks againA
Excellent glad it worked out for you.
Glad it worked for ya
When flashing the kernel from stock, say HTC #15 to something else (ziggy, net, etc.), and then flashing back to HTC #15, will those other kernels leave anything behind that can cause trouble for the HTC kernel?
I'm thinking settings/temp files/other files that one kernel leaves behind aside from cache/dalvik.
Does that happen?
snovvman said:
When flashing the kernel from stock, say HTC #15 to something else (ziggy, net, etc.), and then flashing back to HTC #15, will those other kernels leave anything behind that can cause trouble for the HTC kernel?
I'm thinking settings/temp files/other files that one kernel leaves behind aside from cache/dalvik.
Does that happen?
Click to expand...
Click to collapse
Modules will more than likely be left behind. Possibly other files such as a vdd folder if the kernel adjusts vdd on the fly. It all depends on what the kernel installs when flashed and what it does when running.
So far I have overclocked htc #15, added all the governors minus userspace, undervolted it on the lowest frequencies (at the kernel), and the only modules it uses are the stock ones for wifi and wimax.

Stock Kernel (JRO03C) ?

Hi all,
i´m testing francos kernel for now. But if i want to get back to Stock, where i can download it ? Searched all thru but found nothing.
Thanks for help!
peste
peste76 said:
Hi all,
i´m testing francos kernel for now. But if i want to get back to Stock, where i can download it ? Searched all thru but found nothing.
Thanks for help!
peste
Click to expand...
Click to collapse
If you want to go back to stock, either reflash the stock ROM, or extract the .zip file and then use fastboot to flash boot.img in it "fastboot flash boot boot.img"
kyokeun1234 said:
If you want to go back to stock, either reflash the stock ROM, or extract the .zip file and then use fastboot to flash boot.img in it "fastboot flash boot boot.img"
Click to expand...
Click to collapse
ahh, boot.img - how noobish from me Thanks a lot.
Yes boot.img. If you want to go back to stock... If you want ONLY kernel, you should search it up, because I don't know which file does that...
Let me explain it a little bit more. boot.img is ramdisk+kernel. There's another file I believe that only handles kernel. But if you want to go back to stock, you'll need to flash ramdisk too (Since Franco uses its own ramdisk). I hope that helped you
boot.img = ramdisk+zImage
zImage = kernel
thanks kyokeun1234.
One thing you guys need to keep in mind is that some custom kernels (like franco's) change some files on your ROM (i.e., system partition), so flashing just the stock boot image is not going to be enough. (Don't ask me which files, as I can't remember right now, but there is a few, i.e., 1-3.)
efrant said:
One thing you guys need to keep in mind is that some custom kernels (like franco's) change some files on your ROM (i.e., system partition), so flashing just the stock boot image is not going to be enough. (Don't ask me which files, as I can't remember right now, but there is a few, i.e., 1-3.)
Click to expand...
Click to collapse
Yeah, I always forget that, but actually I am aware of some kernels tweak/place init.d scripts, for example, and that could conflict with stock or any other kernel.
I'll be sure to add that to the usual procedure, making a mental note. thanks efrant.
efrant said:
One thing you guys need to keep in mind is that some custom kernels (like franco's) change some files on your ROM (i.e., system partition), so flashing just the stock boot image is not going to be enough. (Don't ask me which files, as I can't remember right now, but there is a few, i.e., 1-3.)
Click to expand...
Click to collapse
So basically flashing the whole Rom is the only choice
Swyped on my Galaxy Nexus running AOKP with Franco Kernel, overclocked to 1.4GHz
You can use franco's app to restore your stock kernel without re flashing your rom.
Sent from my Galaxy Nexus using Tapatalk 2
kyokeun1234 said:
So basically flashing the whole Rom is the only choice
Swyped on my Galaxy Nexus running AOKP with Franco Kernel, overclocked to 1.4GHz
Click to expand...
Click to collapse
It depends on the kernel. What I would do personally is: before flashing a custom kernel, open up the file that you are flashing, and see which files it is replacing (aside from boot.img). Then I would back those up. That way, if you ever want to go back to stock, you just have to replace those files.
Sent from my Galaxy Nexus using Tapatalk 2
efrant said:
It depends on the kernel. What I would do personally is: before flashing a custom kernel, open up the file that you are flashing, and see which files it is replacing (aside from boot.img). Then I would back those up. That way, if you ever want to go back to stock, you just have to replace those files.
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
Oh thanks! It's been long time since I've learned a new thing I'll keep that in mind!
Swyped on my Galaxy Nexus running AOKP with Franco Kernel, overclocked to 1.4GHz

boot loop pliz help fast dont have alot of battery!!!

hey. just now i unlocked my device and want toflashe rom cm10 in this forum,i didnt do root ,i flashed the kernal faux 0010b4 and flashe the rom and the gapps,i did all this ,iand not its in boot loop alot of time,i tried to restore to hwat i backed up- ,and still in boot loop... what i can do? pliz help.
Can you get into recovery? You can charge it there.
Sent from my HTC One X using xda app-developers app
you sure?
you sure in that? because i dont see red light when i am in recovery...
bardahan123 said:
hey. just now i unlocked my device and want toflashe rom cm10 in this forum,i didnt do root ,i flashed the kernal faux 0010b4 and flashe the rom and the gapps,i did all this ,iand not its in boot loop alot of time,i tried to restore to hwat i backed up- ,and still in boot loop... what i can do? pliz help.
Click to expand...
Click to collapse
Did you repack the kernel for the ROM.
Dude, I got to where you are a couple of weeks ago and I panicked. 10 minutes later I was sorted.
Download the rom and kernal again (prolly best to use a kernel already packed for the ROM you want to take a variable out of the equation). May I recommend Tripndroids CM10 ROM and the kernel that comes with it. This will be fast to flash before your battery dies and I am very familliar with flashing it so I'll be able to help more easily. You can always start again when you've charged. Alternatively, Use the boot.img from any ROM you like. Stick to a matching ROM and kernel for now as it saves the repack and a couple of steps in flashing.
Copy ROM zip to your SD (using ADB is easy: adb push yourfile.zip /sdcard/yourfile.zip)
Extract the boot.img from the rom zip (on your PC)
Go into fastboot and connect USB
fasboot flash boot boot.img
fastboot erase cache
Full wipe in recovery
erase cache and dalvik in recovery
Flash the ROM in recovery
Reboot - First boot will take a while.
very ty
hey, ty for the good explain ,now i tried another kernal and its worked,mabey the kernal just was fail,but now the phone is work ,very ty.
just 1 question,which rom is good and stable? and if good life battery that you can tell me? because i saw all the roms in this forum and i dont know which one is the best
ty for the help
bardahan123 said:
hey, ty for the good explain ,now i tried another kernal and its worked,mabey the kernal just was fail,but now the phone is work ,very ty.
just 1 question,which rom is good and stable? and if good life battery that you can tell me? because i saw all the roms in this forum and i dont know which one is the best
ty for the help
Click to expand...
Click to collapse
That's very subjective but I like TripNRaVeRs CM10 Endeavour Unleashed. It comes with a completely stable 2.x kernal and there is an almost totally stable 3.x kernel and an experimental (not at all stable) 3.x kernel. All cna be flashed without the re-pack.
BTW. If you ever get to panic stations again you can charge by going into fast boot and choosing power down. Then you can charge for a while before starting again.
BTW agian, there is a thanks button. You could click it if you wanted!
if you want to use other kernel (faux, ncx) than the one supplied in rom you should always repack it using online repacker http://nibble.cc/repack/
if not you will be 90 % stuck in bootloop

[Q] How to flash ROM when not recognized by ODIN?

I am trying to flash the SuperNexus 3.0 ROM to my D710 E4GT
http://forum.xda-developers.com/showthread.php?t=2208729
I downloaded the file and tried to open it in the PDA tab of ODIN like I normally would when flashing a device.
There isn't a TAR or MD5 file to open inside of the ZIP file.
I know that I'm missing something and I've searched around but I haven't found anything that points me in the correct direction.
Could somebody point me to what I am missing? Is there a tutorial for installing ROMS from a ZIP that I missed?
Thanks!
-Mike
You're probably the only person I know that doesn't flash using zips lol. Just boot up recovery and install zip. Pretty simple to navigate. This will explain it better http://forum.xda-developers.com/showthread.php?t=1761666
Sent from my SPH-D710 using Tapatalk 4
FuMMoD said:
You're probably the only person I know that doesn't flash using zips lol. Just boot up recovery and install zip. Pretty simple to navigate. This will explain it better http://forum.xda-developers.com/showthread.php?t=1761666
Sent from my SPH-D710 using Tapatalk 4
Click to expand...
Click to collapse
Thanks for the reply I'll check the page out that you posted.
I am a total noob. I've crept the forums and used Odin to flash a lot.
I guess, I'm surprised by the .zip comment. Not because I know anything about anything (By now this should be obvious) but because when you look at a tutorial on flashing your phone, it always points at using odin.
It's one thing to root your phone with Odin and another to flash a custom Rom. All the custom roms are zip files and in the original post of the threads they tell you exactly the best way to flash the Rom.
Sent from my SPH-D710 using Tapatalk 4
FuMMoD said:
It's one thing to root your phone with Odin and another to flash a custom Rom. All the custom roms are zip files and in the original post of the threads they tell you exactly the best way to flash the Rom.
Sent from my SPH-D710 using Tapatalk 4
Click to expand...
Click to collapse
OK. That makes sense. I'm reading that now in the thread you handed to me.
Thanks again!
I knew the info existed, I needed some help getting to it and wrapping my head around it.
It's refreshing to ask an honest question because I'm over-whelmed and not get flamed out.
Yeah the instructions in that thread are not noob friendly. I hope the sticky can help you out. Use the el26 or el29 kernel packed with clockwork mod available in the kernel repo. You can find it in the Android development forum at the top. Use that kernel and recovery combo to safely flash any rom. Also going to jb you need to do an Odin rooted restore of a stock jb Rom in order to partition everything correctly. You'll be able to find this in Android development too. Sorry I can't provide much links im on my phone at work so it'll take me a bit to link.
Sent from my SPH-D710 using Tapatalk 4
FuMMoD said:
Yeah the instructions in that thread are not noob friendly. I hope the sticky can help you out. Use the el26 or el29 kernel packed with clockwork mod available in the kernel repo. You can find it in the Android development forum at the top. Use that kernel and recovery combo to safely flash any rom. Also going to jb you need to do an Odin rooted restore of a stock jb Rom in order to partition everything correctly. You'll be able to find this in Android development too. Sorry I can't provide much links im on my phone at work so it'll take me a bit to link.
Sent from my SPH-D710 using Tapatalk 4
Click to expand...
Click to collapse
So I went to the Kernel Download Page and all of the links to el26 with CWM were dead.
I dug around some more and found this:
w w w. rwilco12.com/Files/Devices/Samsung%20Galaxy%20S2%20%28Sprint%29%20%28SPH-D710%29/Tutorials/SPHD710-Root. p h p
[Can't post URL, new user]
I went with Chris41g's EL26 Stock CWM5 Repack
It looked like what I needed to root with recovery so that I could install the SuperNexus ROM.
Now, my phone has been stuck at the Samsung Galaxy S II screen with the yellow triangle for a half an hour.
Did I miss something else?
HighSeraphim said:
So I went to the Kernel Download Page and all of the links to el26 with CWM were dead.
I dug around some more and found this:
w w w. rwilco12.com/Files/Devices/Samsung%20Galaxy%20S2%20%28Sprint%29%20%28SPH-D710%29/Tutorials/SPHD710-Root. p h p
[Can't post URL, new user]
I went with Chris41g's EL26 Stock CWM5 Repack
It looked like what I needed to root with recovery so that I could install the SuperNexus ROM.
Now, my phone has been stuck at the Samsung Galaxy S II screen with the yellow triangle for a half an hour.
Did I miss something else?
Click to expand...
Click to collapse
Pull your battery, put it back in, hold the vol up and power until it loads up in recovery. Clean cache, then clean Dalvic cache(in Advanced Menu), Find the zip you want on your sd card install zip. It should boot into your new rom. The CWM repack you used is not the one I would have, but it probably is just the repack kernal and cant boot your phone.
byrdcfmma said:
Pull your battery, put it back in, hold the vol up and power until it loads up in recovery. Clean cache, then clean Dalvic cache(in Advanced Menu), Find the zip you want on your sd card install zip. It should boot into your new rom. The CWM repack you used is not the one I would have, but it probably is just the repack kernal and cant boot your phone.
Click to expand...
Click to collapse
Sweet! I'm figuring some things out now!
I actually had GB on the device. I got it from the factory yesterday. Apparently it had a higher OS on it. So I had to go put a GB kernel on it.
I couldn't find the one with CWM but this one has AGAT
HighSeraphim said:
Sweet! I'm figuring some things out now!
I actually had GB on the device. I got it from the factory yesterday. Apparently it had a higher OS on it. So I had to go put a GB kernel on it.
I couldn't find the one with CWM but this one has AGAT
Click to expand...
Click to collapse
once you get the phone set up, get Mobile Odin and keep this .tar files on your sd card. If I Mobile Odin back to this .tar then I can get a clean install on any new rom. this is the name of the file you are looking for, we have been requested not to provide direct links
StockCWM-EL26.tar.md5
If you phone boot loops again have thie zip as well. Pull batt, then press vol up and power to get to CWM recovery then clean and flash
EL26_StockCWM.zip
As you will see when you get more experienced, there is more than one way to skin the cat. This is what I do and it works every time.
byrdcfmma said:
once you get the phone set up, get Mobile Odin and keep this .tar files on your sd card. If I Mobile Odin back to this .tar then I can get a clean install on any new rom. this is the name of the file you are looking for, we have been requested not to provide direct links
StockCWM-EL26.tar.md5
If you phone boot loops again have thie zip as well. Pull batt, then press vol up and power to get to CWM recovery then clean and flash
EL26_StockCWM.zip
As you will see when you get more experienced, there is more than one way to skin the cat. This is what I do and it works every time.
Click to expand...
Click to collapse
That's great! Thank you!
I picked up the Stock EL26 loads.
To make sure I understand when you say that you can get a clean install on any new rom, you mean that you can install StockCWM-EL26 first and then throw the ROM on and it works right?
Also as a note, I have gotten the SuperNexus ROM running on my machine. I don't have 3G data yet. I'm still working on it. I installed the latest ICS modem and changed the xml file that was suggested. I then updated the permissions on the file to what the other files in the directory had and rebooted. Still nothing... I'm not sure if this is your wheel-house and you've already helped me tremendously! I'm digging around trying to find answers.
(I can't post on the SuperNexus dev forum yet. I'm going to look for a support forum or something to post on.)
HighSeraphim said:
That's great! Thank you!
I picked up the Stock EL26 loads.
To make sure I understand when you say that you can get a clean install on any new rom, you mean that you can install StockCWM-EL26 first and then throw the ROM on and it works right?
Also as a note, I have gotten the SuperNexus ROM running on my machine. I don't have 3G data yet. I'm still working on it. I installed the latest ICS modem and changed the xml file that was suggested. I then updated the permissions on the file to what the other files in the directory had and rebooted. Still nothing... I'm not sure if this is your wheel-house and you've already helped me tremendously! I'm digging around trying to find answers.
(I can't post on the SuperNexus dev forum yet. I'm going to look for a support forum or something to post on.)
Click to expand...
Click to collapse
First - Yes, when I want to change roms, I use mobile odin to flash the .tar EL26 CWM kernal. Pull Batt if needed and then Vol up and power to get to CWM. Then I follow the ROM developer's instructions. reboot and almost always get a good clean install.
Second - I use my phone all day for work so I dont mess with the AOSP Roms much. I like them a lot, but I cant have data/connection issues interfere with my lively-hood so I mostly stay on the TW side of things. Cant help you there, sorry...
HighSeraphim said:
That's great! Thank you!
I picked up the Stock EL26 loads.
To make sure I understand when you say that you can get a clean install on any new rom, you mean that you can install StockCWM-EL26 first and then throw the ROM on and it works right?
Also as a note, I have gotten the SuperNexus ROM running on my machine. I don't have 3G data yet. I'm still working on it. I installed the latest ICS modem and changed the xml file that was suggested. I then updated the permissions on the file to what the other files in the directory had and rebooted. Still nothing... I'm not sure if this is your wheel-house and you've already helped me tremendously! I'm digging around trying to find answers.
(I can't post on the SuperNexus dev forum yet. I'm going to look for a support forum or something to post on.)
Click to expand...
Click to collapse
In this step for SN, what rom did you get the xml from? "NAVIGATE TO system/etc and look for apns-conf.XML and delete it. Then grab one from another ROM that has working data then paste it into the same directory and fix permissions and reboot".
That might be the issue. You need to make sure that a) you have an ICS modem(FL24) is the latest, and make sure you're not flashing it through mobile Odin, it won't take, and b) you have a working apn-conf.xml file from a rom with working data. Dastin15's Wild For The Night is also 4.2.2, and last I checked, had working data. Might give that a go. Good luck!
Sent from my SPH-D710BST using xda premium

Categories

Resources