[Q] Where to get Stock Kernel from? - Galaxy S 4 Q&A, Help & Troubleshooting

Hi
Is there a way to get a stock kernel somewhere, in the purpose of flashing it either with CWM or in Odin? Everywhere I look, the Stock Rom packages contain the kernel, but also contain system image and recovery. I need only the kernel from this to flash, is there any way to get the kernel from each of this packages, so that I can flash it alone?

lukair1983 said:
Hi
Is there a way to get a stock kernel somewhere, in the purpose of flashing it either with CWM or in Odin? Everywhere I look, the Stock Rom packages contain the kernel, but also contain system image and recovery. I need only the kernel from this to flash, is there any way to get the kernel from each of this packages, so that I can flash it alone?
Click to expand...
Click to collapse
open the stock firmware with 7zip and copy the boot image to desktop

Thank you for taking the time.
So "boot.img" is kernel image?
If so, then once I extract the boot.img, how do I flash it using odin?

lukair1983 said:
Thank you for taking the time.
So "boot.img" is kernel image?
If so, then once I extract the boot.img, how do I flash it using odin?
Click to expand...
Click to collapse
yes boot.img is the kernel.
you can use a special tool to make it a tar file like this
if you want. attach the boot.img here in a zip and i will make it for you

Thanks samersh72. I should probably learn that myself, you did enough for me already. I should be able to take it from here. Thanks again.
Topic can be closed.

Related

[q] help! How do i go back to my stock kernel

I installed a kernel but there's a wifi bug and i don't know how to fix it. I made a backup before, but when i restore it, it doesn't go BACK!
i have i337M (4.4.2)
Someone please help me ..
I haven't personally tried this on the s4 but it should work. Grab the 4.4.2 factory tar file, rename it without the.md5, and extract it. Inside you should find a boot.img. Put that on your device and flash it with flashify from the play store.
Sent from my Nexus 5
Thanks! I will try it when I finish downloading the File from SamMobile.
Just to Clarify:
I need to remove the .md5 from the name? So just .tar? and then extract and put the boot.img on my sd and install flashify and flash from there? And my kernel will be back to stock?
If I wanted to unroot, would i just flash the .tar file through Odin? That would remove TWRP, root and custom kernel, am i correct?
Thanks.
the0nly0ne- said:
Thanks! I will try it when I finish downloading the File from SamMobile.
Just to Clarify:
I need to remove the .md5 from the name? So just .tar? and then extract and put the boot.img on my sd and install flashify and flash from there? And my kernel will be back to stock?
If I wanted to unroot, would i just flash the .tar file through Odin? That would remove TWRP, root and custom kernel, am i correct?
Thanks.
Click to expand...
Click to collapse
You made it easy to answer your questions. It's yes to all of them
Sent from my Nexus 5

how to flash my original 5.1.1 kernel ?

HI everybody
I updated my n910H to 5.1.1 , worked well and decided to flash a custom kernel . also faced to problem with wifi and now i decided to flash my original kernel.
i extracted the boot.img from update package N910HXXU1COH4_N910HOLB1COH4_N910HXXU1COH3_HOME.tar
now, im not sure how to flash it !! via odin or anything else needed
thank u for your help
any help ?????
when I had my S3 if I needed the stock kernel I would simply reflash the stock rom since they usually have the stock kernels built-in
Sent from my SM-N910H using Tapatalk
i dont want to reset my phone , i just want to flash the original kernel
mehdi.moha said:
i dont want to reset my phone , i just want to flash the original kernel
Click to expand...
Click to collapse
Never tried with samsung phones (and probably it is not possible) but with my other android devices I just extract the boot.img from the ROM and flash it with fastboot using the command "fastboot flash boot boot.img".
With a samsung device you should probably (or definitely) create a flashable .zip file with the boot.img of your stock ROM and flash it via recovery.
You need to download your original kernel from net, there are 2 types of file you’ll find, one is .zip and another one is .tar. If you download .zip file you have to flash it with recovery (CWM/TWRP) or if you download .tar file (don't try to make your own .tar file) then you can flash it with Odin tool.

Canada - How to download stock 6.01 kernel for backup purposes

Hello Canada. I'm on Rogers and updated a few days ago to the new 6.01 Marshmallow ROM. I have root. Seems to be not much development work on our device, the G900W8, wanted to try some custom kernels and see if they would work but they all seem to be for the 900F. I'm interested in battery life improvements.
So I wanted to get a stock kernel I could flash in case something goes wrong and it won't boot, or if I just don't like the kernel. Some custom kernels require you to flash from stock rather than other custom kernels.
So how do we get things like kernel and radio out of our new G900W8 download? The download I have from Rogers is G900W8VLU1DPD3_G900W8OYA1DPD3_G900W8VLU1DPD3.
Use 7zip to open archive the stock rom. Then extract boot.img. IMG files can flash via TWRP.
Did some searches, seems like Flashify will do it. Gonna give it a try.
Saquing18 said:
Use 7zip to open archive the stock rom. Then extract boot.img. IMG files can flash via TWRP.
Click to expand...
Click to collapse
Thank you. I grabbed the file boot.img from the downloaded Rogers ROM file and copied to my PC. It has a file size in Windows Explorer of 12319. I also used Flashify to extract it, copied it to the PC, it has a size of 13,312. Wonder why the size difference?

How do I restore stock kernel to my Canadian S5

I've been using a custom kernel on my G900W8 but I'm getting a lot of performance issues, so I want to go back to stock.
I do have a file I extracted called boot.img which I believe is the kernel. How do I restore it?
harry_fine said:
I've been using a custom kernel on my G900W8 but I'm getting a lot of performance issues, so I want to go back to stock.
I do have a file I extracted called boot.img which I believe is the kernel. How do I restore it?
Click to expand...
Click to collapse
Wait until you get an expert opinion. I was looking here and there for threads to extract and flash the stock kernel but ended up bricking my device. (No recovery, No bootup, THANK GOD I could access download mode).
I extracted the boot.img but didn't know how to flash it. There was a thread, a script that could turn .img to .tar.md5. I did that and flashed the file through Odin and boom. Stuck at bootlogo. So I try to restore the nandroid backup, but recovery keeps bootlooping.
Had to install stock rom completely through Odin...But it still isn't booting up.
User @nickpatel130285 has shared stock kernel for G900F in this post.
I flashed using that zip file and it worked like charm. So what you can do is replace the boot.img in that zip file with the one which is compatible with your variant and leave the rest as it is. Repack and Flash.
It should work but just in case if you mess things up you'll need to flash stock rom using Odin. So make sure you make a nandroid backup and have a copy on your PC (safely).
Flash at your own risk.

Issue faced in flashing kernel compiled from source

Hi Guys,
I have compiled a kernel for note 4 from opensource samsung.
I have got zimage in two locations , one in output which is less than 10mb and one in main kernel boot folder which is 20 mb.
When i try to flash using odin i , get the error , unsupported dev type.
I have firmware N910GDTS1DRH2 N910GODD1DRD1 downloaded from sammobile.
Also after compiling i have got some modules which i didnot touch.
I downloaded source from http://opensource.samsung.com/reception/receptionSub.do?method=sub&sub=F&searchValue=n910g
I have tried 3 mm versions, but all give same error.
Any help will be appreciated.
I also tried making boot.img with perl script but phone doesnot boot up using that.
Thanks and Regards,
Ankit
I use AIK to unpack the stock boot image. Take the zImage from output/arch/arm/boot/ and replace the original one in the new split_img folder that AIK creates. Be sure to rename it what AIK names it (boot.img-zImage if I remember right). Then repack it flash the new image via TWRP. The new-image should be close to 15.8 mb.
Edit- forgot to hit reply button @xdauserherewithnote4
Is TWRP neccessary
kevintm78 said:
I use AIK to unpack the stock boot image. Take the zImage from output/arch/arm/boot/ and replace the original one in the new split_img folder that AIK creates. Be sure to rename it what AIK names it (boot.img-zImage if I remember right). Then repack it flash the new image via TWRP. The new-image should be close to 15.8 mb.
Edit- forgot to hit reply button @xdauserherewithnote4
Click to expand...
Click to collapse
Thanks for your reply, i was wondering if i can flash using odin or i have to use twrp? zimages are convertible to tar files that odin can flash but the problem i am facing is odin mode showing unsupported dev type.
xdauserherewithnote4 said:
Thanks for your reply, i was wondering if i can flash using odin or i have to use twrp? zimages are convertible to tar files that odin can flash but the problem i am facing is odin mode showing unsupported dev type.
Click to expand...
Click to collapse
Yeah, you could make it in to .tar if you'd like but it needs to be in a boot.img form. The only way I know how to directly flash a zImage is with anykernel or a tool similar to that.
Kernel flash was success but phone is not stable now !
kevintm78 said:
Yeah, you could make it in to .tar if you'd like but it needs to be in a boot.img form. The only way I know how to directly flash a zImage is with anykernel or a tool similar to that.
Click to expand...
Click to collapse
Ok i was able to flash boot.img by converting into tar (having new zimage) , but system is rebooting again and again after sometime.
I was able to flash after making boot.img using AIK. Thanks for advice.

Categories

Resources