How to flash a kernal - Samsung Galaxy Nexus

Title says it all. How do I flash a kernal like say Franco of ezeekles kernal?
1.Should I have a custom from or can I flash it on the stock one?
2.should I use a custom recovery aka cwm or is it OK if I have the stock one?
3. Finally after downloading the kernal file what is the code on fast boot to pull the original one and the code to push the new one?
Thank you in advance guys .
Sent from my Galaxy Nexus using XDA

1. As long as you're unlocked and rooted, you can flash a custom kernel to any rom
2. Yes, flash through cwm revovery, or;
3. Extract the boot.img from the Kernel.zip file you downloaded. Command is "fastboot flash boot boot.img"
If you're not familiar with adb/ fastboot, option 2 is the safest

Another possibility if you want to flash Franco or Lean Kernel is Francos app (franco.Kernel updater) from the market.
With that app you can download and flash the kernel.
Of course you need root for that.

M7amad90 said:
Title says it all. How do I flash a kernal like say Franco of ezeekles kernal?
1.Should I have a custom from or can I flash it on the stock one?
2.should I use a custom recovery aka cwm or is it OK if I have the stock one?
3. Finally after downloading the kernal file what is the code on fast boot to pull the original one and the code to push the new one?
Thank you in advance guys .
Sent from my Galaxy Nexus using XDA
Click to expand...
Click to collapse
1. You can have any ROM and flash a custom kernel (although some kernels require you have 4.0.3 or higher).
2. You can use CWM and it is recommended that you do. Just place the kernel's .zip somewhere on your SD card and then go into recovery and install from SD card.
3. There is no need to do anything with fastboot as the recovery flashes .zips and does everything. However if you want a back-up the original kernel, you can download the factory images from Google (assuming you have a yakju device or you can swap to yakju if you're not on a CDMA network) and you'll have the copy of the kernel.

Thank you a lot guys .. that was helpful and now I can flash a custom kernal easily
Sent from my Galaxy Nexus using XDA

M7amad90 said:
Thank you a lot guys .. that was helpful and now I can flash a custom kernal easily
Sent from my Galaxy Nexus using XDA
Click to expand...
Click to collapse
Just for future reference , it's kernel not kernal.
Sent from my Galaxy Nexus using xda premium

Thanks for correcting me.
Sent from my Galaxy Nexus using XDA

Related

Stock kernel ??

Hi guys...i just want the stock kernel of the IMM76D build (not the IMM76I build) ....please..... thank you.......
Sent from my Galaxy Nexus using xda premium
Flash IMM76D? Lol
Sent from my Galaxy Nexus using xda premium
Flash the boot.img or boot zip file from the factory image provided by google.
https://developers.google.com/android/nexus/images
Isn't there the kernel only......?????
Sent from my Galaxy Nexus using xda premium
You need to unzip the gzip file and pick out the boot.img
Don't be afraid to extract files from a zip and flash them yourself. For the most part, the zips that you flash are just a file in a folder and an extremely basic script that says "copy this directory from this zip to the phone". Play with it a bit and have a backup in case you screw something up, but don't just assume it's prohibitively dangerous to get your hands dirty a little bit.
That said, both faux and imoseyon (leankernel) have links to stock kernels in their kernel threads. I don't know if they maintain their xda threads actively, but if you can't find it here, look on rootzwiki. Google the obvious terms if you aren't familiar with the site. ("leankernel rootzwiki"/"faux rootzwiki")
walidhiphop said:
Isn't there the kernel only......?????
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Yes, its in the zip file. Pull the boot img and flash it. That's the kernel.
the build of the image is IMM76I.......i want the IMM76D....thank you
I haven't deleted the IMM76D kernel for maguro from my computer yet, so I've attached the boot.img.
rlmaers said:
I haven't deleted the IMM76D kernel for maguro from my computer yet, so I've attached the boot.img.
Click to expand...
Click to collapse
Thanks man.....i really appreciate it.......

How to revert to stock kernel?

Hi guys,
How do I revert to stock kernel? I'm using Trinity for now.. where can I download the stock kernel to flash?
Sent from my Galaxy Nexus using Tapatalk 2
You can download the factory image for whatever version of Android you're using, extract boot.img from it, and flash it with "fastboot flash boot boot.img". Or if you're using a custom ROM, use the boot.img from that.
Is there any .zip that I can use to flash straight from Clockwork?
Search in the gsm dev section for bigxie's ota jb rom. IIRC look in the 2nd post
Sent from my Galaxy Nexus using Tapatalk 2
bryant_16 said:
Is there any .zip that I can use to flash straight from Clockwork?
Click to expand...
Click to collapse
I am wondering the same thing
Got it. Thanks!

Which file is kernal in stock package, how to to flash in Odin?

My brother has a At&t gs3 that needs to be sent for warranty. He still has stock firmware except that it's rooted and has a custom recovery. I assume all he has to do is flash the stock kernal to get rid of root and recovery, right? I Downloaded DLK3 http://forum.xda-developers.com/showthread.php?t=1968625. The packed contents show 2 .img files, boot.img and recovery.img. Can these be flashed in odin, and is the boot.img the kernal and the recovery.img the recovery? I know that at least from the previous galaxy s models that the kernal was around 5.3 mb. But I may have mistakenly though that the recovery was part of the kernal.
Start with looking here:
http://forum.xda-developers.com/showthread.php?t=1725839
diablo009 said:
Start with looking here:
http://forum.xda-developers.com/showthread.php?t=1725839
Click to expand...
Click to collapse
Thank you for your reply. There is a guide to flash the complete package using odin. However, I am not trying to do that. Because where he is currently at, he does not have the bandwidth to download the 730+mb package, thus I am trying to just get him access to the kernal/recovery, so that he can flash that using Odin.
memphian said:
My brother has a At&t gs3 that needs to be sent for warranty. He still has stock firmware except that it's rooted and has a custom recovery. I assume all he has to do is flash the stock kernal to get rid of root and recovery, right? I Downloaded DLK3 http://forum.xda-developers.com/showthread.php?t=1968625. The packed contents show 2 .img files, boot.img and recovery.img. Can these be flashed in odin, and is the boot.img the kernal and the recovery.img the recovery? I know that at least from the previous galaxy s models that the kernal was around 5.3 mb. But I may have mistakenly though that the recovery was part of the kernal.
Click to expand...
Click to collapse
You will be flashing a .tar file in odin. Look here: http://forum.xda-developers.com/showthread.php?p=33570269#post33570269
Re: Which file is kernal, how to to flash in Odin?
BAM1789 said:
You will be flashing a .tar file in odin. Look here: http://forum.xda-developers.com/showthread.php?p=33570269#post33570269
Click to expand...
Click to collapse
Yes. I am able to download that file, but he is not. It's too big. Is there a way to flash just the kernel/recovery, pulled from this archive?
Sent from my Nexus 4 using xda app-developers app
memphian said:
Yes. I am able to download that file, but he is not. It's too big. Is there a way to flash just the kernel/recovery, pulled from this archive?
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
A different recovery can be flashed with the .img file through a terminal emulator on the phone. I am unsure about flashing anything else.
Okay, i found a couple tutorials on making odin flashable files, http://forum.xda-developers.com/showthread.php?t=1484304 and http://www.sxtpdevelopers.com/showthread.php?t=155. I'm just not sure which of the files in the stockfirmware package is the kernel. I'm used to zImage, but don't see that in the list. There is a boot.img whish is 5.48mb, so i assume this is it, but not sure.
memphian said:
Okay, i found a couple tutorials on making odin flashable files, http://forum.xda-developers.com/showthread.php?t=1484304 and http://www.sxtpdevelopers.com/showthread.php?t=155. I'm just not sure which of the files in the stockfirmware package is the kernel. I'm used to zImage, but don't see that in the list. There is a boot.img whish is 5.48mb, so i assume this is it, but not sure.
Click to expand...
Click to collapse
The boot.img is separate from the kernel. DO NOT mess with that.. you will definitely brick the phone.. Im no expert on any of this, but really the best way to go about this is with Odin. There is a mobile version of Odin in the play store. Mobile ODIN
Not sure if this is useful to you guys.
Re: Which file is kernal, how to to flash in Odin?
The plan is a odin flash. Just trying make a odin flashable file of just stock dlk3 kernel and recovery.
Sent from my Nexus 4 using xda app-developers app
memphian said:
The plan is a odin flash. Just trying make a odin flashable file of just stock dlk3 kernel and recovery.
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
Just make sure you know exactly what you're flashing before you do it.
BAM1789 said:
Just make sure you know exactly what you're flashing before you do it.
Click to expand...
Click to collapse
Thank you. That's what I'm trying to figure out. I'm pretty sure boot.img is the kernel. Just not sure.
Sent from my Nexus 4 using xda app-developers app
Here is a copy of the stock recovery.
https://www.dropbox.com/s/x2ct7aqkmivt6fv/ATT_recovery_I747UCDLK3.tar.md5
Sent from my SGH-I747 using xda premium

Error flashing in Cw

Hey guys root the phone using galaxy's root3. I was able to create a back up. When I go to flash task rom or any rom I get this error in the photo any ideas?
Sent from my SAMSUNG-SGH-I747 using xda premium
los0325 said:
Hey guys root the phone using galaxy's root3. I was able to create a back up. When I go to flash task rom or any rom I get this error in the photo any ideas?
Sent from my SAMSUNG-SGH-I747 using xda premium
Click to expand...
Click to collapse
The answers you got in Task's threads still stand. It's either that you have to update your cwm (make sure it's d2att) or you'll have to use TWRP.
You can also redownload or
cut out a line in the updater script but I don't suggest that.
los0325 said:
Hey guys root the phone using galaxy's root3. I was able to create a back up. When I go to flash task rom or any rom I get this error in the photo any ideas?
Sent from my SAMSUNG-SGH-I747 using xda premium
Click to expand...
Click to collapse
You need to update your recovery. Either use rom manager or, if you can't boot up, download an cwm flashable zip located at the bottom of post #2 in my signature link. Place it on a micro sd card and flash it in recovery. Go to advanced and reboot recovery. Flash rom and gapps again
Either your recovery is outdated, or you are trying to flash a device that isn't displaying itself as an i747 (d2att). This could be because your using a Canadian version of the s3, or your trying to flash the att Rom on a tmo,vzw, or Sprint version of the phone.

Kernels for MIUI v5

Has anyone been able to successfully us a kernel other then the incorporated one on miui v5?
Sent from my SPH-L710 using xda app-developers app
michaelg117 said:
Has anyone been able to successfully us a kernel other then the incorporated one on miui v5?
Sent from my SPH-L710 using xda app-developers app
Click to expand...
Click to collapse
Interesting link on Rootz about this even though its for a Verizon Galaxy Nexus-click here. Looks like you can, but kernal has to be placed in specific folder. Don't hold me to this, as Galaxy Nexus is a different species.
You can use any kernel, but the boot.img/ramdisk/init.rc/bootclasspath variable has to be modified for MIUI.
Sent from my buttered S3
CNexus said:
You can use any kernel, but the boot.img/ramdisk/init.rc/bootclasspath variable has to be modified for MIUI.
Sent from my buttered S3
Click to expand...
Click to collapse
Check yo' PM
Sent from my Sony Xperia Z Ultra using XDA Premium HD
CNexus said:
You can use any kernel, but the boot.img/ramdisk/init.rc/bootclasspath variable has to be modified for MIUI.
Sent from my buttered S3
Click to expand...
Click to collapse
And how do you do that..?
Sent from my SPH-L710 using xda app-developers app
You have to unpack the boot.img then make the edits then repack. Post what kernel you want and I'll do it later
Sent from my SPH-L710 using xda app-developers app
Notorious said:
You have to unpack the boot.img then make the edits then repack. Post what kernel you want and I'll do it later
Sent from my SPH-L710 using xda app-developers app
Click to expand...
Click to collapse
I was looking at BMS and dkp kernels ! Thanks a TON.
Sent from my SPH-L710 using xda app-developers app
But if you only want to do one BMS would take priority!
Sent from my SPH-L710 using xda app-developers app
Beat ya @Notorious
@michaelg117
Download this zip: http://db.tt/gIQ702Z8
Then REPLACE the boot.img that is in there with the new boot.img/kernel you want to flash (AKA, unzip, replace boot.img with kernel you want, then rezip)
Now flash in recovery and you will be running any kernel you wish
Technical details of my swapKernel.zip: unpacks current boot.img to temporary folder, unpacks boot.img you wish to flash, swaps ramdisk, repacks NEW zImage (of kernel you want to use) with current ramdisk (of kernel that is currently on the device) and then flashes that new boot.img
Sent from my buttered S3
Wait. So download the kernel I want, and replace the boot.IMG in the kernel with the one in that zip?
Sent from my SPH-L710 using xda app-developers app
michaelg117 said:
Wait. So download the kernel I want, and replace the boot.IMG in the kernel with the one in that zip?
Sent from my SPH-L710 using xda app-developers app
Click to expand...
Click to collapse
Download kernel you want
Take the boot.img you just downloaded and REPLACE the boot.img that is in my zip above and flash
So
Download boot.img
Download zip above
Unzip zip above
Replace boot.img in zip with boot.img you want
Rezip
Flash in recovery
Profit
Sent from my buttered S3
CNexus said:
Beat ya @Notorious
@michaelg117
Download this zip: http://db.tt/gIQ702Z8
Then REPLACE the boot.img that is in there with the new boot.img/kernel you want to flash (AKA, unzip, replace boot.img with kernel you want, then rezip)
Now flash in recovery and you will be running any kernel you wish
Technical details of my swapKernel.zip: unpacks current boot.img to temporary folder, unpacks boot.img you wish to flash, swaps ramdisk, repacks NEW zImage (of kernel you want to use) with current ramdisk (of kernel that is currently on the device) and then flashes that new boot.img
Sent from my buttered S3
Click to expand...
Click to collapse
Okay, I'll try this and get back to you. Thanks!
Sent from my SPH-L710 using xda app-developers app
CNexus said:
Download kernel you want
Take the boot.img you just downloaded and REPLACE the boot.img that is in my zip above and flash
So
Download boot.img
Download zip above
Unzip zip above
Replace boot.img in zip with boot.img you want
Rezip
Flash in recovery
Profit
Sent from my buttered S3
Click to expand...
Click to collapse
It seems to have worked. thank you a ton! but one last question, what app do you recommend to make kernel tweaks?
And i dont know what it is.. but it seems to have broken wifi?
Try rebooting
If it persists, you'll need to flash the other original kernel back
Try another version/kernel maybe?
The Trickdroid kernel app is great (play store, free)
CNexus said:
Try rebooting
If it persists, you'll need to flash the other original kernel back
Try another version/kernel maybe?
The Trickdroid kernel app is great (play store, free)
Click to expand...
Click to collapse
so.. what if the kernel has no boot.img..?
michaelg117 said:
And i dont know what it is.. but it seems to have broken wifi?
Click to expand...
Click to collapse
Ah, I know what it is
Flash the zip of the kernel you want WITHOUT the boot.img inside (so that you're modded boot.img isn't replaced)
The thing is, each kernel also comes with modules and other built specially for that kernel, so those need to be flashed along with the kernel (but since you don't want to flash the entire boot.img for MIUI, you need to first do the steps in my post above and then flash the zip for the new kernel WITHOUT the boot.img to keep your special boot.img)
Sent from my buttered S3
CNexus said:
Ah, I know what it is
Flash the zip of the kernel you want WITHOUT the boot.img inside (so that you're modded boot.img isn't replaced)
The thing is, each kernel also comes with modules and other built specially for that kernel, so those need to be flashed along with the kernel (but since you don't want to flash the entire boot.img for MIUI, you need to first do the steps in my post above and then flash the zip for the new kernel WITHOUT the boot.img to keep your special boot.img)
Sent from my buttered S3
Click to expand...
Click to collapse
When i try to flash without the boot.img it fails
michaelg117 said:
When i try to flash without the boot.img it fails
Click to expand...
Click to collapse
should i try flashing it with the boot.img then imidiately flashing the swap zip so that only the boot.im is replaced?
okay i dont know exactly why but i did a clean instal of miui and then installed gapps and the swap zip with boot.img from BMS kernel, and everything is working.

Categories

Resources