[Q], kernel help? - Nexus 7 Q&A, Help & Troubleshooting

Basically I've never flashed a custom kernel before so I'm trying to do some research so if someone could give me some incite or point me in the right direction I'd really appreciate it.
The only thing I'm not sure of is if I flash a custom kernel will it prevent me from receiving any future ota updates? If so, any ideas where to find a flashable stock kernel? I couldn't find one. I really want to stay with the stock rom. Had my fill of custom roms on my phone.
Sent from my Nexus 7

Y u not like roms?!
nick2418 said:
Basically I've never flashed a custom kernel before so I'm trying to do some research so if someone could give me some incite or point me in the right direction I'd really appreciate it.
The only thing I'm not sure of is if I flash a custom kernel will it prevent me from receiving any future ota updates? If so, any ideas where to find a flashable stock kernel? I couldn't find one. I really want to stay with the stock rom. Had my fill of custom roms on my phone.
Sent from my Nexus 7
Click to expand...
Click to collapse
Let's see. AFAIK yes, non-stock kernels will prevent you from getting those long-awaited OTAs (not sure though as the first thing I did after getting my N7 was to flash PA ).
If you really like the stock experience but still want a custom kernel, you must flash a custom recovery to flash kernels. The latest TWRP touch is what you need.
After you've flashed the recovery, just download the kernel zip, reboot to recovery, flash, profit.
As for a kernel, you can go with M-Kernel, DerKernel, franco.Kernel, Faux and so on and so forth. I love M-Kernel personally. You can tweak it with TricksterMOD for a smokin' good overclock as well as purty good battery life
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Also, just asking, what do you mean by a "a flashable stock kernel"? If you already have the stock kernel, why flash the same over it?
AFAIK updates to stock kernel are provided by OTAs.

I guess I was looking for a way to return to the stock kernel if need be. I have my recovery and understand that part. Just trying to make sure I understand kernels better before I brick my n7. Thanks for the help!
Sent from my Nexus 7

i also need a stock flashable kernel..just in cased i wan to revert back...
Sent from both my sexy galaxy nexus and nexus 7 X)

nick2418 said:
I guess I was looking for a way to return to the stock kernel if need be. I have my recovery and understand that part. Just trying to make sure I understand kernels better before I brick my n7. Thanks for the help!
Sent from my Nexus 7
Click to expand...
Click to collapse
Oh, ok. If you flash the stock ROM, it flashes the kernel as well (but it's a lot of work reflashing a ROM just for the kernel )
What you can do is this: extract the stock ROM zip and flash the boot.img you get.
Here's a link to the stock ROM: https://dl.google.com/dl/android/aosp/nakasig-jop40d-factory-efcec044.tgz
Edit: I figured I'd explain the rest as well...
After you download that file, untar it: nakasig-jop40d-factory-efcec044.tgz will untar to a folder probably named:nakasig-jop40d-factory-efcec044
Open that folder. You will find a zip (probably image-nakasig-jop40d.zip or something like that), unzip it.
You'll find four files. boot.img is the one you need. Flash it to your device with fastboot.
If you wan a flashable zip, unzip any custom kernel, replace the awesome custom boot.img with the boring stock one and rezip. You should be able to flash it from TWRP or CWM.
Note that the stock kernel nukes CWM on first boot. I assume you don't have root. Do this:
1. Connect the N7 to your PC. [you should have debugging enabled in dev options]
2. Open an adb shell and type this: mv /system/recovery-from-boot.p /system/recovery-from/boot.p.bak
3. ???
4. Profit
[If you do have root, open a file manager, remount /system as read/write and rename /system/recovery-from-boot.p to something.]
Click thanks if I helped!

That's why I was hoping to find the JOP40D stock kernel as a flashable zip. But I'll give the boot. I'm a shot. Thanks again!
Sent from my Nexus 7

nick2418 said:
That's why I was hoping to find the JOP40D stock kernel as a flashable zip. But I'll give the boot. I'm a shot. Thanks again!
Sent from my Nexus 7
Click to expand...
Click to collapse
I added some stuff, see if it helps.
It would be nice if you clicked "thanks" below my post

stock flashable 4.1.2 kernel for grouper(put up by faux as a "reset" kernel) http://faux.androidro.ms/grouper-faux123-reset-kernel-4.1.2.zip (should be fine on 4.2.1)
flashable in twrp or cwm recovery. no hoops to jump through flashing or after flashing this. it doesnt nuke your recovery.

simms22 said:
stock flashable 4.1.2 kernel for grouper(put up by faux as a "reset" kernel) http://faux.androidro.ms/grouper-faux123-reset-kernel-4.1.2.zip
flashable in twrp or cwm recovery. no hoops to jump through flashing or after flashing this. it doesnt nuke your recovery.
Click to expand...
Click to collapse
Will that work with OP's 4.2.1?

Awesoham said:
Will that work with OP's 4.2.1?
Click to expand...
Click to collapse
yea. i occasionally run a 4.1.2 trinity kernel on my 4.2.1 rasbean jelly rom

Related

[Q] [REQ] Flashable Stock 4.1.2 Kernel ZIP

I flashed Trinity kernel and like an idiot I didn't nandroid. Now my tablet is making really weird noises out of the speaker at random. So if anyone has or can make a flashable zip file of the stock 4.1.2 kernel I would VERY MUCH appreciate it!
Your last resort could be to flash the stock image. You also didn't mention which rom you are using.
Soapy77 said:
Your last resort could be to flash the stock image. You also didn't mention which rom you are using.
Click to expand...
Click to collapse
Completely stock 4.1.2 rooted. Only real change is the kernel.
nickhernandez said:
I flashed Trinity kernel and like an idiot I didn't nandroid. Now my tablet is making really weird noises out of the speaker at random. So if anyone has or can make a flashable zip file of the stock 4.1.2 kernel I would VERY MUCH appreciate it!
Click to expand...
Click to collapse
Flashable kernel from 4.1.2 JZO54K http://dl.dropbox.com/u/12008411/kernel-grouper-jzo54k.zip
Sometimes a custom kernel will install a few drivers into /system, so back up when you can. Just for future reference, the poster above got you covered for now
Sent from my Nexus 7 using xda app-developers app
Thanks guys!
Sent from my Nexus 7 using XDA Premium HD app
I had the same problem! i can get into fastboot mode and im sorry about the noob question, but i cant figure out for the life of me how to flash a kernel with a zip using team win recovery if my tablet is stuck in fastboot or endless boot! i cant mount it so how am i supposed to flash the zip if i cant put the file in the source? please someone help haha i cant live without my tablet. Its also my phone

How do i get stock kernel back?

Im gonna go for it and leap on Franco Milestone 1 to try out a custom kernel for the first time on stock rom. But i wanted to know how would i go back to the stock kernel if i decided i didnt like it or just wanted to go back? Im on The latest update Stock jellybean. Thanks for any help!
Nocturnal86 said:
Im gonna go for it and leap on Franco Milestone 1 to try out a custom kernel for the first time on stock rom. But i wanted to know how would i go back to the stock kernel if i decided i didnt like it or just wanted to go back? Im on The latest update Stock jellybean. Thanks for any help!
Click to expand...
Click to collapse
Here you go https://www.dropbox.com/s/9zl70f9w8x1ojok/boot.img, kernel for 4.2.2. Just flash in fastboot: fastboot boot boot.img.
gee2012 said:
Here you go https://www.dropbox.com/s/9zl70f9w8x1ojok/boot.img, kernel for 4.2.2. Just flash in fastboot: fastboot boot boot.img.
Click to expand...
Click to collapse
Thank you! So i cant flash that in a custom recovery or the toolkit? or is there a flashable zip available to do that?
Nocturnal86 said:
Thank you! So i cant flash that in a custom recovery or the toolkit? or is there a flashable zip available to do that?
Click to expand...
Click to collapse
No, i would use adb for that, look in my sig how to set it up. Adb is much more reliable than a toolkit and you`ll learn something
Oh ok im a little iffy with adb i was hoping there was a way to flash stock just like you can the custom... But i guess if i have to ill look at how to do it that way.
You use fastboot not adb
Sent from my Nexus 4 using xda app-developers app
cwm flashable: http://goo.im/devs/paranoidandroid/roms/mako/pa_mako-Kernel422_GoogleStock.zip

Nexus 4 lag after kernel restore

Hi Everyone,
I have stock rom with franco kernel. Yesterday I reverted back to stock kernel and noticed that it lags now when I wake it from the unlock screen. I did a factory reset, but the lag is still there. This was never there when I had it from the begining. Should I flash the factory image?? Can the backup stock kernel get corrupted?
delf0s said:
Hi Everyone,
I have stock rom with franco kernel. Yesterday I reverted back to stock kernel and noticed that it lags now when I wake it from the unlock screen. I did a factory reset, but the lag is still there. This was never there when I had it from the begining. Should I flash the factory image?? Can the backup stock kernel get corrupted?
Click to expand...
Click to collapse
Try _motley's reset kernel, it restores other files that may have been changed too
http://forum.xda-developers.com/attachment.php?attachmentid=1737875&d=1361118181
Edit.. Note the link is the 4.2.2 version, check his thread if you need 4.2.1 reset.
delf0s said:
Hi Everyone,
I have stock rom with franco kernel. Yesterday I reverted back to stock kernel and noticed that it lags now when I wake it from the unlock screen. I did a factory reset, but the lag is still there. This was never there when I had it from the begining. Should I flash the factory image?? Can the backup stock kernel get corrupted?
Click to expand...
Click to collapse
after using franco kernel, you have to reflash your rom then kernel. franco kernel hides tweaks inits ramdisk. flashing another kernel on top will not change this ramdisk, so you have to flash your rom first(no wiping anything).
As I stated above...can I just fastboot then flash the factory image??
delf0s said:
As I stated above...can I just fastboot then flash the factory image??
Click to expand...
Click to collapse
absolutely. then youll need to reroot. its MUCH easier to flash a rooted stock(thats what im guessing you are using) rom though.
simms22 said:
absolutely. then youll need to reroot. its MUCH easier to flash a rooted stock(thats what im guessing you are using) rom though.
Click to expand...
Click to collapse
I would have to flash a custom recovery...then download a CWM stock rom and flash, huh? I currently have stock recovery
delf0s said:
I would have to flash a custom recovery...then download a CWM stock rom and flash, huh? I currently have stock recovery
Click to expand...
Click to collapse
You can fastboot flash the OEM boot.img; I'm guessing you fastbooted Franco's kernel?
http://forum.xda-developers.com/attachment.php?attachmentid=&d=1361814949
Flash this reset kernel which has the INITFRAMS.
all will be ok.
You don't have to reflash the whole phone.
Cheers
Sent from my Nexus 4 using xda premium
CMNein said:
You can fastboot flash the OEM boot.img; I'm guessing you fastbooted Franco's kernel?
Click to expand...
Click to collapse
No...I flashed the Franco kernel using the updater app.
mariosraptor said:
http://forum.xda-developers.com/attachment.php?attachmentid=&d=1361814949
Flash this reset kernel which has the INITFRAMS.
all will be ok.
You don't have to reflash the whole phone.
Cheers
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
Link is broken
delf0s said:
No...I flashed the Franco kernel using the updater app.
Click to expand...
Click to collapse
Either way, you can just flash the stock boot.img via fastboot and you're good to go.
CMNein said:
Either way, you can just flash the stock boot.img via fastboot and you're good to go.
Click to expand...
Click to collapse
I suppose I can...however....I currently have a chromebook (ARM)...dunno if I can use fastboot with it. I wanted a solution I could do straight on my phone, like, flashing CWM recovery, then downloading the stock (rooted, CWM flashable) ROM...and flashing it.
Get it from here http://forum.xda-developers.com/showthread.php?t=2101488
First post at attachments
Sent from my Nexus 4 using xda premium
---------- Post added at 11:50 PM ---------- Previous post was at 11:49 PM ----------
delf0s said:
I suppose I can...however....I currently have a chromebook (ARM)...dunno if I can use fastboot with it. I wanted a solution I could do straight on my phone, like, flashing CWM recovery, then downloading the stock (rooted, CWM flashable) ROM...and flashing it.
Click to expand...
Click to collapse
Just cause i am curious, why did you changed from Franco's?
Sent from my Nexus 4 using xda premium
simms22 said:
absolutely. then youll need to reroot. its MUCH easier to flash a rooted stock(thats what im guessing you are using) rom though.
Click to expand...
Click to collapse
Could you clarify this for me, If in the future I need to do it? So, after leaving franco kernel, i.e. If I'm using franco kernel and wanna go back to completely stock again; before flashing stock I'll need to re-flash the current rom that I'm using, to re-flash the rom's kernel and this way replace the ramdisk to the stock from rom? If I'm wrong, please correct me; you guys are awesome!
vjales said:
Could you clarify this for me, If in the future I need to do it? So, after leaving franco kernel, i.e. If I'm using franco kernel and wanna go back to completely stock again; before flashing stock I'll need to re-flash the current rom that I'm using, to re-flash the rom's kernel and this way replace the ramdisk to the stock from rom? If I'm wrong, please correct me; you guys are awesome!
Click to expand...
Click to collapse
yes, kinda. reflashing your rom will replace francos ramdisk. all the other kernels use anykernel, so dont have ramdisk included. generally, its only after using franco kernel do you want to do this, the other kernels you can flash right over each other. anykernel kernels grab the available ramdisk. theres plenty of stock/aosp rooted roms here on xda, any of them should work for you.

Loki'd Slim Bean Won't Boot

Anyone else have the issue of it just continuously trying to boot? I'm using the CWM auto-loki that's in the development section.
Reflashed it three more times. Now it freezes @ Samsung battery screen when charging, or if I wait long enough it'll unfreeze. Still loops at Slim Bean startup, what sucks though is that for one thing it mounts as an MTP device so it seems like it's on but just not initializing, another thing is that the original flash I was able to get to the slim bean battery charging screen (but obviously still couldn't turn it on)
Thinking it might be a kernel issue, since I installed ktoonsez's AOSP kernel when I installed it. Any recommendations of a kernel to use? I'm using the CWM recovery that has auto loki so, I could probably use ones made for 9500,9505, etc.
(Pasted this from the Slim Bean thread, haven't gotten an answer in like 5 hours and it's a little urgent xD. I'm on the AT&T S4 of course, any other information I'll be glad to provide. Hopefully this is just a simple fix)
I bet is related to the kernel. I have been using Slim Bean flawlessly, with none of the issues you mention. Using TWRP to flash and recover.
Sent from my SGH-I337 using xda app-developers app
Spunjah413 said:
I bet is related to the kernel. I have been using Slim Bean flawlessly, with none of the issues you mention. Using TWRP to flash and recover.
Sent from my SGH-I337 using xda app-developers app
Click to expand...
Click to collapse
What kernel are you on then, just stock?
Stock Kernel.
Sent from my SGH-I337 using xda app-developers app
I installed Slim Bean with Ktoon kernel and it worked fine. Just make sure to wipe system and the caches. It did take a little longer to boot the first time but after that it was all good.
Sent from my SGH-I337 using xda app-developers app
Isn't ktoonsez kernel for a Touchwiz based ROM?
Slim Bean is AOSP, therefore i'm not sure they jive correctly, which would clearly explain the OP's problem.
EDIT: Didn't realize he updated an AOSP based Kernel. In anycase OP, I would still attempt using the stock kernel to see if you problems get fixed.
Slim is already LOKI patched, so don't use the CWM that auto-patches, use TWRP
LostInMyHead said:
Slim is already LOKI patched, so don't use the CWM that auto-patches, use TWRP
Click to expand...
Click to collapse
Patching a patched kerenel changes nothing. Dan said if you run loki on a patched recovery or kernel it just send the original to the output. Nothing happens.
Sent from my AT&T S4 running an international ROM.
_Dennis_ said:
Patching a patched kerenel changes nothing. Dan said if you run loki on a patched recovery or kernel it just send the original to the output. Nothing happens.
Sent from my AT&T S4 running an international ROM.
Click to expand...
Click to collapse
Thanks for clarification.
LostInMyHead said:
Slim is already LOKI patched, so don't use the CWM that auto-patches, use TWRP
Click to expand...
Click to collapse
I know someone else clarified this already, but when I downloaded Slim it actually wasn't Loki patched for whatever reason, and I couldn't boot without reinstalling stock. I did download the one in the right thread, it just didn't have a boot.lok in it for whatever reason. Anyways, I'm gonna try reflashing and wiping /system another time, wish me luck. I don't have the original kernel backed up though because I'm an idiot, so does anyone have a link to that? If not I could probably scour it out somewhere, but just wondering for convenience's sake.
iKat said:
I know someone else clarified htis already, but when I downloaded Slim it actually wasn't Loki patched for whatever reason, and I couldn't boot without reinstalling stock. I did download the one in the right thread, it just didn't have a boot.lok in it for whatever reason. Anyways, I'm gonna try reflashing and wiping /system another time, wish me luck. I don't have the original kernel backed up though because I'm an idiot, so does anyone have a link to that? If not I could probably scour it out somewhere, but just wondering for convenience's sake.
Click to expand...
Click to collapse
In advanced restore boot is the kernel.
Download the ROM and addons again, you shouldnt have any issues... If you are currently on stock, do a comprehensive wipe, a manual format of system and data
LostInMyHead said:
In advanced restore boot is the kernel.
Download the ROM and addons again, you shouldnt have any issues... If you are currently on stock, do a comprehensive wipe, a manual format of system and data
Click to expand...
Click to collapse
No files found :/ I guess I'll reinstall stock, back stuff up, and do the comprehensive wipe like you said. I really, really want Slim, lol.
Edit: Well, ****. Reinstalled stock with Odin and now no matter how many times I reboot I only have a status bar.. phone is fairly hot too. So, now I don't even have access to recovery ;-;
iKat said:
No files found :/ I guess I'll reinstall stock, back stuff up, and do the comprehensive wipe like you said. I really, really want Slim, lol.
Edit: Well, ****. Reinstalled stock with Odin and now no matter how many times I reboot I only have a status bar.. phone is fairly hot too. So, now I don't even have access to recovery ;-;
Click to expand...
Click to collapse
Flash back to stcok with ODIN
Use the one click tool to get LOKI recovery
The ROM and addons are in the OP of the SLIM LOKI Thread
LostInMyHead said:
Flash back to stcok with ODIN
Use the one click tool to get LOKI recovery
The ROM and addons are in the OP of the SLIM LOKI Thread
Click to expand...
Click to collapse
Oh my lord, thank you good sir. Slim Bean is up and working as of right now ^^;. May be a little bit before I apply a custom kernel though o.o

[Q] [HELP] I flashed wrong kernel file and now my device don`t boot

So, i was in a hurry and i downloaded the wrong kernel. I wanted to download the linaro franco kernel for android 4.4, but instead i downloaded this one "franco.Kernel-nightly-r14-linaro.zip". this is an old version.
So now, my device does not boot and i cant install the correct kernel file.
What should I do?
Use a toolkit like wug and install through it the stock or any custom kernel you want.
Unleashed by my Nexus 4
But...
But, there is a way to only replace the kernel or i have to re-install the ROM?
Re-install only the kernel may affected something?
Thanks a lot.
Marcelo Diniz said:
But, there is a way to only replace the kernel or i have to re-install the ROM?
Re-install only the kernel may affected something?
Thanks a lot.
Click to expand...
Click to collapse
Didn't make a nandroid before you flashed it?
Start fresh... In the future make a nandroid and make dam sure you have correct files before you flash
Sent from my Nexus 4 using XDA Premium HD app
fastboot flash boot kernel.img
OK
I flashed the stok room again using WugFresh toolkit.
Totaly woks.
Thaks for help.

Resources