Why no kernel cleaning script - AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin

Is there no script for cleaning out the old kernel b4 flashing a new one.I used a kernel cleaning script with my I777 S2 all the time.is it cause the bootloader being locked on are I337 S4
Sent from my GT-I337 using xda premium

jball said:
Is there no script for cleaning out the old kernel b4 flashing a new one.I used a kernel cleaning script with my I777 S2 all the time.is it cause the bootloader being locked on are I337 S4
Sent from my GT-I337 using xda premium
Click to expand...
Click to collapse
With the S2, and I777, the kernel and recovery were packaged, so sometimes things were left behind and the script could be used before flashing another.
S3, and S4 have seperate partitions for the kernel and recovery, it's no longer needed.

Ol' Dirty Bastard said:
With the S2, and I777, the kernel and recovery were packaged, so sometimes things were left behind and the script could be used before flashing another.
S3, and S4 have seperate partitions for the kernel and recovery, it's no longer needed.
Click to expand...
Click to collapse
This is exactly right. And to slightly expand on this:
Because the kernel is on its own partition, nearly all flashable kernel zips will simply overwrite the whole kernel partition from a kernel image file (boot.img), therefore no need to wipe it first.

Related

Flashing Custom ROM on the Note. I have specific needs.

Hi,
I know there are dozens of threads around about flashing Custom ROMS on the Note, but I have specific requirements to be met before attempting to flash a ROM on my Note. Its not that I'm new to flashing ROMS, its just that since I know that the Note is the "most vulnerable" device when it comes to the emmc bug, I want to be on the safer side. My Note is just around a month old and I dont want to brick it due to any foolishness from my side warranty in India sucks, In simple words, even if I'm eligible for warranty, I would receive my Note in a scratched, scuffed and abused manner though in a "working" condition, God knows for how long after a freaking month or two. Well, thats warranty here in India. So, as my loss is my loss alone, I created this thread to be safe.
Coming back to the topic, I'm running Stock ICS DDLPA on Speedmod Kernel K3-7 and want to move to Paranoid Android 0.5 which I believe is a CM9 based ROM.
1) As I am on ICS (speedmod kernel k3-7), is it safe to flash a Gingerbread ROM via PC ODIN?
2) If the 1st one is a go, I do not want to increase my binary counter while rooting gingerbread or installing Paranoid. I know about TriangleAway but since it requires the CF Kernel, flashing many kernels(on the NOTE) freaks me out at the moment. So I just want to flash the ROM without any increase in binary counter.
3) In the video guide on installing Paranoid Android, I see that the person goes into CWM recovery in the Gingerbread Kernel and flashes the Paranoid ZIP file and GAPPS and then proceeds to Wipe Data\Factory Reset. But once the paranoid android ZIP file is flashed, isnt he on an ICS kernel? Correct me if I'm wrong.
4) I see that Paranoid Android uses the CM9 kernel. Is it guaranteed Safe to Wipe using this kernel? Does it have the MMC_CAP_ERASE disabled like the speedmod kernels?
5) Last, incase if I ever want to revert back to Stock ICS for any reason, is it safe to flash back to Stock ICS using PC Odin while still on the CM9 Kernel or do I need to flash the Stock Gingerbread first over the existing CM9 kernel?
It would be really helpful if my queries are answered in the same manner as I have asked above.
I have gone through all the warnings and guides here in the forum but none of them seems to specifically satisfy my needs. I would have just flashed away but since its a "NOTE" again, I really want to be on the safer side.
Thanks in advance.
Flash Abyss Kernel.
Reboot in Recovery (under advanced) <= important
Flash ROM
Flash Gapps
Full wipe (factory reset, cache + dalvik cache)
Reboot and enjoy.
To come back to Sammy ICS => PC ODIN
****
You're the first guy on this forum wanting to flash something with "specific needs". I wish you all the best. Good luck!
****
paranoid on android - galaxy note n7000
I'm sorry, all the issues which popped up lately regarding the emmc bug as kept me on stock till now. If that nasty bug wasn't there, this thread wouldn't be there in the first place. I've never run on stock on any of my phones and this is the first time that I've stayed this long on stock. Its not that I'm new to flashing or anything. I've been doing that since the Symbian and WinMo 6.5days. Its just that its a "Note" and I wish to avoid a brick anytime soon.
But why not just ask in the ROM thread. I am sorry, but every day someone opens a thread which could - looking at the very specific needs of everyone - just be handled as a post (in your case in PA by imilka) instead of its own thread.
Nevertheless I am glad to see that you informed yourself.
If you felt better, then install one of the per rooted GB Roms.
paranoid on android - galaxy note n7000
satishp said:
1) As I am on ICS (speedmod kernel k3-7), is it safe to flash a Gingerbread ROM via PC ODIN?
2) If the 1st one is a go, I do not want to increase my binary counter while rooting gingerbread or installing Paranoid. I know about TriangleAway but since it requires the CF Kernel, flashing many kernels(on the NOTE) freaks me out at the moment. So I just want to flash the ROM without any increase in binary counter.
3) In the video guide on installing Paranoid Android, I see that the person goes into CWM recovery in the Gingerbread Kernel and flashes the Paranoid ZIP file and GAPPS and then proceeds to Wipe Data\Factory Reset. But once the paranoid android ZIP file is flashed, isnt he on an ICS kernel? Correct me if I'm wrong.
4) I see that Paranoid Android uses the CM9 kernel. Is it guaranteed Safe to Wipe using this kernel? Does it have the MMC_CAP_ERASE disabled like the speedmod kernels?
5) Last, incase if I ever want to revert back to Stock ICS for any reason, is it safe to flash back to Stock ICS using PC Odin while still on the CM9 Kernel or do I need to flash the Stock Gingerbread first over the existing CM9 kernel?
It would be really helpful if my queries are answered in the same manner as I have asked above.
Thanks in advance.
Click to expand...
Click to collapse
1.flashing stock rom with pc odin is safe. Irrespective of rom you are having.
2.flashing stock rom.doesn't raise flash counter.
3. B'coz it now running on cm9 kernel which is safe.
4.yes emmc erase cap driver is.diabled, but.if you talking in terms of 'guaranteed' then even developers also not using this term still on ics
5. my answer 1 hav already answered this.
Sent from my GT-N7000 using xda premium
Trust me I was just as cautious as you are. But as long as you use a safe kernel, reboot recovery and then perform 3 wipes you will be fine.
I'm pretty sure speedmod is a safe kernel. Someone correct me if I'm wrong.
Good luck!! I go through more roms on my phone then I do underwear haha
Sent from my GT-N7000 using xda app-developers app
AA1973 said:
Flash Abyss Kernel.
Reboot in Recovery (under advanced) <= important
Flash ROM
Flash Gapps
Full wipe (factory reset, cache + dalvik cache)
Reboot and enjoy.
To come back to Sammy ICS => PC ODIN
****
You're the first guy on this forum wanting to flash something with "specific needs". I wish you all the best. Good luck!
****
paranoid on android - galaxy note n7000
Click to expand...
Click to collapse
If I flash Abyss Kernel using MobileODIN, I wont be able to boot into my existing ICS ROM as it is a gingerbread based kernel, am I right? Then, how do I confirm I'm on Abyss Kernel while in recovery?
dr.ketan said:
1.flashing stock rom with pc odin is safe. Irrespective of rom you are having.
2.flashing stock rom.doesn't raise flash counter.
3. B'coz it now running on cm9 kernel which is safe.
4.yes emmc erase cap driver is.diabled, but.if you talking in terms of 'guaranteed' then even developers also not using this term still on ics
5. my answer 1 hav already answered this.
Sent from my GT-N7000 using xda premium
Click to expand...
Click to collapse
Thanks for your quick reply. To be frank, I wanted to hear from you as I've seen all your guides.
My question no2 is not about flashing stock rom but will rooting the stock gingerbread with custom recovery raise counter? I do not want to increase the binary count. Would flashing the above mentioned AbyssKernel also do the job?
If you follow my guides to root gingerbread it won't raise counter. In my guide i have never mentioned any procedure which can raise counter.
Just one suggetion, if you want to flash gingerbread as only for switching purpose, then go with prerooted rom(find from my signature) and flash using pc odin. After flashing you will have gb rom +root+cwm
Sent from my GT-N7000 using xda premium
I used this guide, it's so simple and there are all of the steps including rootable GB rom.
http://forum.xda-developers.com/showthread.php?t=1763151
Sent from my GT-N7000 using xda app-developers app
dr.ketan said:
If you follow my guides to root gingerbread it won't raise counter. In my guide i have never mentioned any procedure which can raise counter.
Just one suggetion, if you want to flash gingerbread as only for switching purpose, then go with prerooted rom(find from my signature) and flash using pc odin. After flashing you will have gb rom +root+cwm
Sent from my GT-N7000 using xda premium
Click to expand...
Click to collapse
Is there any complications flashing the AbyssKernel instead? Is it safe to flash with MobileODIN? Would it increase binary counter as I'm moving to a Gingerbread based custom kernel from ICS?
satishp said:
.....
1) As I am on ICS (speedmod kernel k3-7), is it safe to flash a Gingerbread ROM via PC ODIN?
Click to expand...
Click to collapse
Yes.
satishp said:
2) If the 1st one is a go, I do not want to increase my binary counter while rooting gingerbread or installing Paranoid. I know about TriangleAway but since it requires the CF Kernel, flashing many kernels(on the NOTE) freaks me out at the moment. So I just want to flash the ROM without any increase in binary counter.
Click to expand...
Click to collapse
If it's completely stock, it won't increase your binary counter, also flashing kernels is 100% safe, even with the emmc bug.
satishp said:
3) In the video guide on installing Paranoid Android, I see that the person goes into CWM recovery in the Gingerbread Kernel and flashes the Paranoid ZIP file and GAPPS and then proceeds to Wipe Data\Factory Reset. But once the paranoid android ZIP file is flashed, isnt he on an ICS kernel? Correct me if I'm wrong.
Click to expand...
Click to collapse
No, unless you reboot right after flashing the rom, you're still on whatever kernel you used to flash, also CM9 kernels are safe.
satishp said:
4) I see that Paranoid Android uses the CM9 kernel. Is it guaranteed Safe to Wipe using this kernel? Does it have the MMC_CAP_ERASE disabled like the speedmod kernels?
Click to expand...
Click to collapse
Yes.
satishp said:
5) Last, incase if I ever want to revert back to Stock ICS for any reason, is it safe to flash back to Stock ICS using PC Odin while still on the CM9 Kernel or do I need to flash the Stock Gingerbread first over the existing CM9 kernel?
Click to expand...
Click to collapse
Yes, but keep in mind stock ICS has the bug, so unless you're using a different kernel on it (SpeedMod, etc), you're not safe.
I dont get ur.question,Y u need to flash abyss kernel?
Sent from my GT-N7000 using xda premium
dr.ketan said:
I dont get ur.question,Y u need to flash abyss kernel?
There's a galaxy note website, not sure I should mention it or not, where the guy uses abyss 4.2 all the time to "safely" flash new ICS roms. He flashes this kernel in recovery and then advance reboots into abyss recovery. Once in recovery he does the dalvik/cache wipes and factory resets before installing an ICS rom. I guess he uses this method as a way to avoid using pc odin to save time.
Sent from my GT-N7000 using xda premium
Click to expand...
Click to collapse
Yes you can use it, abyss kernel is GB kernel.
To test if I had the EMMC bricking bug I just flashed a rom. Hahaha.
Sent from my GT-N7000 using xda app-developers app
Thanks a lot for all your support guys. I'm running Paranoid 0.5. The black clipping\crush is worst on the CM9 kernel and its everywhere. even in the UI. It really bothers me.
Could anyone suggest me a Good kernel with the least clipping and also any "Visually Pleasing" ROM (like MIUI) for the note? Paranoid looks mostly stock as its CM9 based but the tablet mode is just brilliant.on the Note. Its like the best of both worlds.

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

loki rom on canadian i337m ?

HI
Anyone have tried a loki rom on a canadian i337m ,
I think if you flash a canadian kernel before reboot , it should be ok ?
Correct me if im wrong..
zild8 said:
HI
Anyone have tried a loki rom on a canadian i337m ,
I think if you flash a canadian kernel before reboot , it should be ok ?
Correct me if im wrong..
Click to expand...
Click to collapse
i337m does NOT need a loki kernel, it is easy to remember, if you have a locked bootloader you need loki, it is simple as that.
TheAxman said:
i337m does NOT need a loki kernel, it is easy to remember, if you have a locked bootloader you need loki, it is simple as that.
Click to expand...
Click to collapse
I know, cause i want to use mint jelly rom ( on older version mint jelly was not loki rom ,and now it is )
If the loki patch is in the kernel that come in the rom ,i gess i have to flash a kernel(for my device) that is not loki andd i should be ok?
the bootloader of the canadian s4 are not lock so we have less choice !!
zild8 said:
I know, cause i want to use mint jelly rom ( on older version mint jelly was not loki rom ,and now it is )
If the loki patch is in the kernel that come in the rom ,i gess i have to flash a kernel(for my device) that is not loki andd i should be ok?
the bootloader of the canadian s4 are not lock so we have less choice !!
Click to expand...
Click to collapse
Mint jelly works. Just flash a I377m kernel before rebooting. You can also check out roms for 9505 , long as you flash the proper kernel before rebooting.
Sent from my SGH-I337M using xda app-developers app
Bigbabyjesus said:
Mint jelly works. Just flash a I377m kernel before rebooting. You can also check out roms for 9505 , long as you flash the proper kernel before rebooting.
Sent from my SGH-I337M using xda app-developers app
Click to expand...
Click to collapse
This is correct.
Sent from my SAMSUNG-SGH-I337 using xda premium

[Q] How to flash I9505 TW rom to I9505G?

I know that the partitions are a bit different between the Touchwiz I9505 and the Google Edition I9505G -- does anyone know what needs to be done to a CWM flashable or otherwise to get a Touchwiz ROM booting on a I9505G? I've tried changing the updater-script without any luck. Do I just need to flash the system tar using heimdall instead of using TWRP?
tublah said:
I know that the partitions are a bit different between the Touchwiz I9505 and the Google Edition I9505G -- does anyone know what needs to be done to a CWM flashable or otherwise to get a Touchwiz ROM booting on a I9505G? I've tried changing the updater-script without any luck. Do I just need to flash the system tar using heimdall instead of using TWRP?
Click to expand...
Click to collapse
I'm wondering the same thing. The partition layout does create its own challenges but getting an updater-script working would be the first hurdle.
Sent from my GT-I9505G using Tapatalk 2
I've successfully modified the updater script, however it never boots. Maybe the i9505 kernel isn't compatible?
Sent from my Nexus 10 using XDA Premium HD app
I am surprised by the lack of info
tublah said:
I know that the partitions are a bit different between the Touchwiz I9505 and the Google Edition I9505G -- does anyone know what needs to be done to a CWM flashable or otherwise to get a Touchwiz ROM booting on a I9505G? I've tried changing the updater-script without any luck. Do I just need to flash the system tar using heimdall instead of using TWRP?
Click to expand...
Click to collapse
I really thought the the i9505G would be easier to work with since is is stripped down. I can not believe how little information there is on roming this device. I see that plenty of people are asking but no one has an answer. Everyone has figured out how to go from a touchwiz rom to pure stock like the i9505 but we can not go the other way. HELP!!!!!!!

Running Other ROMs (i9505, T-Mobile, etc) Steps?

Do i have the steps correct? (was going to try the 4.3 GE ROM from i9505 Android Development)
- Recovery
- Wipe (Factory reset/wipe cache/dalvik)
- Install ROM Zip
- Loki-Doki Zip
- Flash Kernel? (KT or MK3 Kernel?)
- Reboot
Its all good except the loki doki part. Only use loki doki if you dont flash an att s4 section kernel.
For example:
Use loki doki time
1: wipe phone
2: install i9505 google edition 4.3 rom
3. Use loki doki if you are sticking to a i9505 section rom with its stock kernel.
4: reboot
Dont use loki doki
1: wipe phone
2: install i9505 google edition 4.3 rom
3: install kt 4.3 touchwiz/google edition kernel from att section.
4: reboot.
I hope that makes sense.
Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
Febby said:
Its all good except the loki doki part. Only use loki doki if you dont flash an att s4 section kernel.
For example:
Use loki doki time
1: wipe phone
2: install i9505 google edition 4.3 rom
3. Use loki doki if you are sticking to a i9505 section rom with its stock kernel.
4: reboot
Dont use loki doki
1: wipe phone
2: install i9505 google edition 4.3 rom
3: install kt 4.3 touchwiz/google edition kernel from att section.
4: reboot.
I hope that makes sense.
Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
Click to expand...
Click to collapse
Got it, thank you! Now, it's just a question whether or not i use the i9505 kernel or choose an AT&T specific one.
not sure what recovery you are on
but I always wipe System/Caches/Data 3x
never an issue
also if you flash a different kernel you need to wipe caches and fix permissions before rebooting
rugmankc said:
not sure what recovery you are on
but I always wipe System/Caches/Data 3x
never an issue
also if you flash a different kernel you need to wipe caches and fix permissions before rebooting
Click to expand...
Click to collapse
The whole wiping 3x times is a very outdated myth. I believe a few high end devs said all it does is lower the life span of the internal storage, but if it works for you and you like it, more power to you. Definitely look into the whole 3x wiping.
As for fix permissions, cwm no longer supports fix permissions as it was causing more issues than fixing in new firmwares I think but some older recoveries have it still and the exception being twrp.
For kernel flashing though, yes always clear cache and dalvik to be sure.
Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
---------- Post added at 06:10 PM ---------- Previous post was at 06:08 PM ----------
pmpntl said:
Got it, thank you! Now, it's just a question whether or not i use the i9505 kernel or choose an AT&T specific one.
Click to expand...
Click to collapse
Id stick to an att section recovery as they're generally the same but just loki'd.
Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
the 3x is supported by some and not others, i don't feel the phone totally wipes card of all data remnants on one run. kinda like a quick format as opposed to full. but, it is something i have always done and i have no flashing issues on any of these roms. imho
not sure what recovery OP is on, was just citing what i recommend on twrp
hope OP's flashing goes well--
rugmankc said:
the 3x is supported by some and not others, i don't feel the phone totally wipes card of all data remnants on one run. kinda like a quick format as opposed to full. but, it is something i have always done and i have no flashing issues on any of these roms. imho
not sure what recovery OP is on, was just citing what i recommend on twrp
hope OP's flashing goes well--
Click to expand...
Click to collapse
I sure hope. No issue there. Just spreading information I've learned from the top notch developers. ))
Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
Febby said:
I sure hope. No issue there. Just spreading information I've learned from the top notch developers. ))
Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
Click to expand...
Click to collapse
NP Febby, that's a topic for a whole other thread. If it ain't broken, don't fix it. Kinda like wearing a certain clothe item/color whenever doing a certain sports event. It works for me and I ain't changing--
i'm using twrp...

Categories

Resources