Hi Guys!
I had my first experience installing a Kernel the other night. It was a HAVS kernel to go with my CM6 install.
Well, the Kernel didn't work out too well, and it was a learning process to get things back the way they were.
Right now I am back with Cyanogen 6 RC1 and its stock kernel, which appears to be 2.6.35.7-cyanogenmod [email protected]#1
My first question is, where can I download the above kernel raw, in case I want to revert back to it? (Last time I had to do a full wipe to be sure the old kernel was gone, with a stock boot.img, then a cm6 install, and a nandroid backup of my previous CM6 install, to get my original kernel back and make things non "stuttery" again)
Big thanks if you can link me to that!
My second question is...how do you guys install and overwrite kernels elegantly, without having to go through noobish drama like i did? you know..try new ones and such?
I'm not very sure if there is individual CM Kernel download, but I know at least Pershot's kernel should always work with CM:
http://droidbasement.com/db-blog/
Sometimes a kernel may contain a new Wifi driver, so my suggestion is to disable Wifi before flashing any new kernel. Also making a Nandroid backup may be necessary cause if something goes wrong, you can Nandroid restore back
Thanks houzuoguo! I like the link!
So is it safe to say that a nandroid backup restores the kernel too? (I heard that the kernel is what tells the hardware how to react to the software...so my thinking was that a nandroid backup would just be the software above say, a bios hardwritten..?)
Kernel is a part of operating system Nandroid backs up everything including kernel~
The kernel is a part of the boot.img and is backed up by nandroid, yes. You could just fastboot flash boot boot.img from your nandroid if you don't feel like restoring the entire backup.
You also need to replace your wlan kernel module with the one matching your kernel. Basically, every time you recompile the kernel after any changes you need to recompile the wlan module too since they are tightly linked.
Related
after rooting and flashing ROMS, im confused on somethings. When flashing a new ROM do you ALWAYS have to wipe? Also, when you make a Nandroid back up, wipe and flash a new ROM, can you restore from that backup so you dont have to download all your apps//set up your screens all over again? Please help.
If you are switching to a completely new rom, then yes, you have to do a complete wipe. If you are upgrading a rom, adding mods or something similar then you don't need to do a data wipe. If you are switching from a rom that uses apps2sd from one that uses it you should probably wipe your ext partition as well.
To answer your second question, a nandroid backup backs up EVERYTHING on your phone, so using a nandroid restore will knock out your new rom and put everything back the way it was, including apps and settings. If you nandroid back from your new rom (lets say your phone gets stuck in a boot-loop or something...) you should do a data wipe and wipe ext partition, then nandroid.
one-of-four said:
If you are switching to a completely new rom, then yes, you have to do a complete wipe. If you are upgrading a rom, adding mods or something similar then you don't need to do a data wipe. If you are switching from a rom that uses apps2sd from one that uses it you should probably wipe your ext partition as well.
To answer your second question, a nandroid backup backs up EVERYTHING on your phone, so using a nandroid restore will knock out your new rom and put everything back the way it was, including apps and settings. If you nandroid back from your new rom (lets say your phone gets stuck in a boot-loop or something...) you should do a data wipe and wipe ext partition, then nandroid.
Click to expand...
Click to collapse
what does wipe ext partition wipe
also...
I want to use stock Android 2.1 ROM but want to use SetCPU to overclock. I tried flashing this kernel: http://forum.xda-developers.com/showthread.php?t=690238 but was stuck on the white/green HTC Screen. I then tried this kernel: http://forum.androidcentral.com/162759-post49.html and it got rid of super user permission so I couldnt use SetCPU. Is there another kernel I can use? If so can you PLEASE provide download link? One more thing, how do I compile this: http://forum.xda-developers.com/show...ghlight=kernel
shamrock11 said:
what does wipe ext partition wipe
Click to expand...
Click to collapse
It has your apps2sd info in it, hence wiping before changing roms because most use different versions of a2sd.
one-of-four said:
It has your apps2sd info in it, hence wiping before changing roms because most use different versions of a2sd.
Click to expand...
Click to collapse
I want to use stock Android 2.1 ROM but want to use SetCPU to overclock. I tried flashing this kernel: http://forum.xda-developers.com/showthread.php?t=690238 but was stuck on the white/green HTC Screen. I then tried this kernel: http://forum.androidcentral.com/162759-post49.html and it got rid of super user permission so I couldnt use SetCPU. Is there another kernel I can use? If so can you PLEASE provide download link? One more thing, how do I compile this: http://forum.xda-developers.com/show...ghlight=kernel ?
shamrock11 said:
I want to use stock Android 2.1 ROM but want to use SetCPU to overclock. I tried flashing this kernel: http://forum.xda-developers.com/showthread.php?t=690238 but was stuck on the white/green HTC Screen. I then tried this kernel: http://forum.androidcentral.com/162759-post49.html and it got rid of super user permission so I couldnt use SetCPU. Is there another kernel I can use? If so can you PLEASE provide download link? One more thing, how do I compile this: http://forum.xda-developers.com/show...ghlight=kernel
Click to expand...
Click to collapse
Ok... I'll give you what info I can, but I'm somewhat new to this myself... the first kernel you tried to flash has to be used in tandem with the rom listed at the top of the thread (darchdroid...) the second needs to be used with damage control's rom. I don't understand why you lost su permissions by flashing the second one, but again I'm new to this.
I hope you made a nandroid backup (always do this, otherwise some people around here will flame you...) I would restore, try installing the rom for the kernel you want to use and then re-flash it.
Something you might like is freshtoast (check: http://geekfor.me/new-release/fresh-toast-v21/) it has a stable rom (fresh 2.1.x) and all the overclocking goodies you're looking for. That way you won't break your phone / lose root in the process.
P.S. your link is broken for your last question, so I can't answer it
one-of-four said:
Ok... I'll give you what info I can, but I'm somewhat new to this myself... the first kernel you tried to flash has to be used in tandem with the rom listed at the top of the thread (darchdroid...) the second needs to be used with damage control's rom. I don't understand why you lost su permissions by flashing the second one, but again I'm new to this.
I hope you made a nandroid backup (always do this, otherwise some people around here will flame you...) I would restore, try installing the rom for the kernel you want to use and then re-flash it.
Something you might like is freshtoast (check: http://geekfor.me/new-release/fresh-toast-v21/) it has a stable rom (fresh 2.1.x) and all the overclocking goodies you're looking for. That way you won't break your phone / lose root in the process.
P.S. your link is broken for your last question, so I can't answer it
Click to expand...
Click to collapse
I don't want to use a rom. I was told I can overclock if I use a custom kernel. Which kernel should I download from the second link and heres the last link: http://forum.xda-developers.com/showthread.php?t=684838&highlight=kernel
Sorry for the delay... long day(s) at work!
For your kernel problems, please read this guide: http://forum.xda-developers.com/showthread.php?t=622916
It gives you step by step instructions on how to compile and install (probably the wrong term, but whatever...) the kernel you want.
In order to use setCPU you'll need a custom kernel, the CDMA Hero doesn't support it straight out of root.
This thread seems like it may contain your answer: http://forum.xda-developers.com/showthread.php?t=699792
I also highly recommend heading to following link, it has tons of guides and will answer most of your questions: http://forum.xda-developers.com/showpost.php?p=6738713&postcount=1
Hope this helps, but as far as more in-depth kernel questions, you'll need to find someone else to ask, I'm all out of ideas
This update zip will simply replace the boot partition with the exact image from the 8/1 leak (2.6.32.15-g5e1ad8b). The boot image is the exact binary provided to us in the leak, I have changed absolutely nothing. So, if you want to try the Hydra or King kernels and decide you want to revert back to the default 8/1 leak kernel, this is a quick way to do it.
Before anyone asks, why not nandroid restore boot? These kernels place modules in /system/lib/modules which need to be reverted as well. Thus restoring just boot would be insufficient, one would have to restore /system as well.
Download:
http://www.fourty.net/ftp/public/android/rmk-stock_kernel-inc_froyo_0801.zip
Thanks. Much appreciated.
Thanks rmk40. Just to clarify, the issue is only when doing a partial nandroid right? If you do a full nandroid there should not be a problem?
Just to make sure.. Skyraider has kernels on Rom Manager - isn't one of those a the newer/8-1 version of stock? If so that would also be an easy way to flash back
s197 said:
Thanks rmk40. Just to clarify, the issue is only when doing a partial nandroid right? If you do a full nandroid there should not be a problem?
Click to expand...
Click to collapse
That is correct.
So I have tried many times to restore my phone from a backup made by recovery manager, but it never seems to work. It will always make it to the desktop, but either restart constantly or everything will constantly crash making it unusable. Is there something I'm doing wrong?
Sent from my SAMSUNG-SGH-I896 using XDA App
Is your back up the same base as what toy are on. Meaning 2.1 to 2.1. Are you trying to restore a stock backup over 2.2?
mcord11758 said:
Is your back up the same base as what toy are on. Meaning 2.1 to 2.1. Are you trying to restore a stock backup over 2.2?
Click to expand...
Click to collapse
No. The ROM I was running when doing the backup was Serendipity 3.0. I flashed back to Serendipity 3.0, then ran my restore. Everything constantly crashes.
EDIT: I've found uninstalling and reinstalling the applications works, but then there's no point in making a nandroid backup. I might as well just flash back to the ROM I was on and use TiBu in that case.
Anyone else have any ideas?
I'd really like to experiment more with ROMs and custom projects, but I don't want to unless I can basically go back to what I had with one click.
Get titanium backup pro. lts $5, but well worth it. Everything restores with one click.
Sent from my SAMSUNG-SGH-I897 using XDA App
sixstringsg said:
Get titanium backup pro. lts $5, but well worth it. Everything restores with one click.
Sent from my SAMSUNG-SGH-I897 using XDA App
Click to expand...
Click to collapse
Yeah, I guess I'll just backup absolutely everything with TiBU Pro and keep the installation files around for each ROM, since CWM backups do not seem to work properly.
Auridran said:
Yeah, I guess I'll just backup absolutely everything with TiBU Pro and keep the installation files around for each ROM, since CWM backups do not seem to work properly.
Click to expand...
Click to collapse
CWM backups work fine as long as you have matching firmware versions (2.1-2.1, 2.2-2.2, or 2.2.1-2.2.1)
also you need to be aware of lagfixes in the rom that you may currently be running, they are not always compatible between roms
nandroid does not backup your kernel or modem which is why you need to be moving within the same firmware versions
you cant make a stock nandroid backup, flash a 2.2 rom, then restore from that backup immediately. you will need to do a couple of things first.
keep a stock 2.1 cwm flashable kernel and modem on your sdcard
revert any lagfixes your phone may have prior to trying to restore your nandroid of stock
once lagfixes are removed, flash your kernel and modem (same firmware version as your nandroid backup)(its possible to have this set up within ONE zip file)
once you are rebooted back into CWM, restore your nandroid...reboot and profit
Pirateghost said:
CWM backups work fine as long as you have matching firmware versions (2.1-2.1, 2.2-2.2, or 2.2.1-2.2.1)
also you need to be aware of lagfixes in the rom that you may currently be running, they are not always compatible between roms
nandroid does not backup your kernel or modem which is why you need to be moving within the same firmware versions
you cant make a stock nandroid backup, flash a 2.2 rom, then restore from that backup immediately. you will need to do a couple of things first.
keep a stock 2.1 cwm flashable kernel and modem on your sdcard
revert any lagfixes your phone may have prior to trying to restore your nandroid of stock
once lagfixes are removed, flash your kernel and modem (same firmware version as your nandroid backup)(its possible to have this set up within ONE zip file)
once you are rebooted back into CWM, restore your nandroid...reboot and profit
Click to expand...
Click to collapse
Well like I said, I made a backup on my Serendipity 3.0 ROM I had going, flashed to something else, then even flashed back to Serendipity 3.0 before restoring and it still didn't work properly. All the apps I had installed just force-closed until I reinstalled them, or force-closed somewhere during use.
Hi all
Is Nandroid backing up all the apps I've got at that moment? Or it just saves system files?
Like a complete and exact "photo" or are there things that I should do on my own if I mean to recover exactly as it was...
I assume that no wipe is necessary...
Thanks!
What's the truth about Nandroid backup?!
i guess there's no need to open a new topic, because i got kinda the same question
before you guys start to redirect me to the "search" function, i want to assure you that i have been using it, but i have found myself in a very strange situation, one question, two different answers... and because i'm new to the whole root stuff, i want to learn everything correctly before starting to make modifications to my phone
The question is: Nandroid backup, does it also back up the kernel or not?
I mean, if i root and install a custom rom that also comes with a custom kernel, will i be able to use my previous Nandroid backup to restore my phone to the old rom & kernel?
Searching the forums, i have found 2 totally different answers!
Answer 1: Nandroid does not backup the kernel: http://forum.xda-developers.com/showthread.php?t=806340
Answer 2: Nandroid does backup the kernel: http://forum.xda-developers.com/showthread.php?t=844352
So, please make me and all of us root noobs understand once and for all, does it backup the kernel or not?, will we be able to restore from a custom rom+kernel in case we need to?
and does it backup apps?
OK...As I understand it....
What does Nandroid Backup?
The ROM Itself..Obviously.
All your system settings, emails, SMSes, etc
All the Apps you have installed, so no need for TB
The Kernel you have installed (though there is controversy about this, and to be honest, I have never restored a nandroid backup when I had a different kernel already installed...however it really doesn't matter since kernels are easy to flash)
What does Nandroid NOT backup - This is VERY IMPORTANT
The modem (not a big deal)
The File System setting (A BIG DEAL)
This I think is where the confusion arises concerning the kernel being included in the nandroid backup. For many people the kernel is all about the lagfix. If you have installed a lagfix on your phone via the kernel, say changing the file system to Ext4, and then flash a Nandroid backup that includes a stock kernel or other kernel that does NOT support Ext4, you are in for a world of hurt...and in this case hurt means endless bootloops.
The way you avoid this is, if you need to flash a Nandroid with a kernel that does not support your lagfix...go into recovery, disable whatever lagfix, tell it when it asks that you wish to REBOOT INTO RECOVERY after the change....then flash the nandroid you wish.
This is why it is very important to keep regular nandroid backups, and to wait and see if a ROM/Kernel are stable for you before applying lagfixes or other tweaks.
So, let me see if i got this right, Nandroid does backup up my current kernel along with my rom, but if i apply any changes (lagfix) to my kernel afterwards or change it with a custom one with lagfix, nandroid won't be able to restore it anymore...
so the whole problem here is that nandroid is not able to backup / restore The File System setting, this being the rfs / ext4 transition
If this is the case, it seems that the Nandroid type backup is not as powerful as i thought, you can't really change from one rom to another in just a few clicks, but then again i guess that all the customs roms already come with some type of lagfix and you can make a nandroid restore between them, the problem would be when you want to revert back to a stock kernel, then you'll have to disable the lagfixes or simply flash a stock kernel and then restore the stock nandroid backup
so, i got this right guys?
maranello69 said:
So, let me see if i got this right, Nandroid does backup up my current kernel along with my rom, but if i apply any changes (lagfix) to my kernel afterwards or change it with a custom one with lagfix, nandroid won't be able to restore it anymore...
so the whole problem here is that nandroid is not able to backup / restore The File System setting, this being the rfs / ext4 transition
If this is the case, it seems that the Nandroid type backup is not as powerful as i thought, you can't really change from one rom to another in just a few clicks, but then again i guess that all the customs roms already come with some type of lagfix and you can make a nandroid restore between them, the problem would be when you want to revert back to a stock kernel, then you'll have to disable the lagfixes or simply flash a stock kernel and then restore the stock nandroid backup
so, i got this right guys?
Click to expand...
Click to collapse
Yes as I understand it.
You see Nandroid can't convert your file system or change anything, all it can do is flash a disc image onto your phone. If that image can work with your file system, you are golden. If not, it is like flashing a Mac OS image onto a Windows machine....nothing will work right.
However the good news is that most custom kernels support Ext4...so really the only problem comes when you try to flash back to a stock image...or vice versa.
got it then, thanks for your answers
and, if i still got your attention, maybe one more question
i just downloaded a stock firmware from samfirmwares.com, and all i got is a .tar file, can i use it somehow to flash just the kernel from it or i have to flash the whole firmware?
if i flash the whole firmware, will it also change my PHONE and CSC?, because the .tar file must be put just in the PDA section in odin
maranello69 said:
got it then, thanks for your answers
and, if i still got your attention, maybe one more question
i just downloaded a stock firmware from samfirmwares.com, and all i got is a .tar file, can i use it somehow to flash just the kernel from it or i have to flash the whole firmware?
if i flash the whole firmware, will it also change my PHONE and CSC?, because the .tar file must be put just in the PDA section in odin
Click to expand...
Click to collapse
Yes, it will flash the PDA, csc, modem and kernel...the whole shooting match. The single file firmwares are designed like that to avoid mismatches and issues. Once you flash it, flash a kernel that supports cwm (I suggest speedmod or something by CHAINFIRE) via odin, then flash a new csc and modem if you wish from recovery.
Remember that installing a new csc will do a factory reset so do it before reinstalling apps.
Sent from my GT-I9000 using XDA Premium App
great stuff man
finally i got enough info and i can start my root & flash procedure, guess i'll also learn a few other tricks along the way, this community is definetly the place to be if you want to learn how to "really use" your device
the whole info about the issues with the Nandroid type backup should be integrated in one of those massive info topics, so the root noobs like me know what they're dealing with
maranello69 said:
great stuff man
finally i got enough info and i can start my root & flash procedure, guess i'll also learn a few other tricks along the way, this community is definetly the place to be if you want to learn how to "really use" your device
the whole info about the issues with the Nandroid type backup should be integrated in one of those massive info topics, so the root noobs like me know what they're dealing with
Click to expand...
Click to collapse
Good luck
Sent from my GT-I9000 using XDA Premium App
Hey guys i actually used the search button (yay) and this is definitely the most informative one regarding the topic.
However i still have one more question: does it backup files and folders as well? Ie. my Nexus S storage is mainly used up by my videos and music (about 7-10GB) which are in their own folders and not tied to any apps in particular. Hence if it does include those i wouldn't have enough storage space to create a nandroid backup am i right?
Edit: thanks to the search button i didn't realise that i posted on a Galaxy S forum please forgive me, the question should still be relevant to the topic though
frenccw said:
Hey guys i actually used the search button (yay) and this is definitely the most informative one regarding the topic.
However i still have one more question: does it backup files and folders as well? Ie. my Nexus S storage is mainly used up by my videos and music (about 7-10GB) which are in their own folders and not tied to any apps in particular. Hence if it does include those i wouldn't have enough storage space to create a nandroid backup am i right?
Click to expand...
Click to collapse
As I understand it, it does save folders and files, so yes if you have large data folders on your internal SD it will make GIGANTIC nandroid backups. You may want to store such files one your external SD.
I know that there is a version of CWM that does not backup /data/media in Nandroid on the Galaxy Tab 10.1...perhaps there is something similar that I don't know about for Galaxy phones. Does anyone know?
I want to try some kernels for cm 7.1 to see if ocing could help speed up some games. If I don't like them I would like to get stock kernel back and I know I can't use sgs kernel flasher to back up current kernel because cm7 is different. I think I read that you could do a Nandroid and this would back up the current complete setup. Is this true? (sorry can't seem to search efficiently on this Tapatalk and don't have access to a computer). If so does it also backup apps, data and all? Is it done on the backup rom from rom manager or recovery? Thank you for your help.
Sent from my SGH-I897 using Tapatalk
nandroid backs up everything just as it is. definitely use cwm not rom manager.
you could also just put d/l the stable kernel as a cwm flashable zip.
2 cents
fractaline said:
nandroid backs up everything just as it is. definitely use cwm not rom manager.
you could also just put d/l the stable kernel as a cwm flashable zip.
2 cents
Click to expand...
Click to collapse
Thank you for your help. Where can I find the kernel?
Sent from my SGH-I897 using Tapatalk
Don't know for sure (I don't run cm7), but I would check the op of the cm7 thread.
fractaline said:
nandroid backs up everything just as it is. definitely use cwm not rom manager.
you could also just put d/l the stable kernel as a cwm flashable zip.
2 cents
Click to expand...
Click to collapse
nandroids do not backup kernel or modem.
have you ever made a backup of one set up and tried to restore onto a completly different rom? well if you have then you know there is a high chance that it will bootloop because of a now incompatible kernel. the procedure for a proper nandroid restore is to flash the rom it was backed up on (thus flashing the kernel that is compatible with it) and THEN restoring the nandroid. then it will be like you never flashed away from that rom at all. (this is speaking of tw roms as i have never run an aosp so i could be mistaken about it not backing up kernel on cm7)
studacris said:
nandroids do not backup kernel or modem.
have you ever made a backup of one set up and tried to restore onto a completly different rom? well if you have then you know there is a high chance that it will bootloop because of a now incompatible kernel. the procedure for a proper nandroid restore is to flash the rom it was backed up on (thus flashing the kernel that is compatible with it) and THEN restoring the nandroid. then it will be like you never flashed away from that rom at all. (this is speaking of tw roms as i have never run an aosp so i could be mistaken about it not backing up kernel on cm7)
Click to expand...
Click to collapse
Yea, I kinda thought that, but thought it worked for cm7.
Sent from my SGH-I897 using Tapatalk