Related
Is it possible for me to edit my kernel to allow higher clock frequencies? I am trying to achieve 1700-1800mhz
Can i extract the kernel from my ROM zip?
Do I simply edit 'scaling_available_frequencies','cpuinfo_max_freq' & 'UV_mV_table'?
If so how can I gain write access to this file? Any info appreciated!
SGSII
Latest cm7 nightly
13pointseven said:
Can i extract the kernel from my ROM zip?
Yes just open in win zip win rar etc and extract zimage .
jje
Click to expand...
Click to collapse
How do I open zimage
Sent from my GT-I9100 using xda premium
You can't unzip the zImage and make changes. You'll need to compile the kernel from source yourself.
Ok thanks for the reply. I am currently downloading the cm7 source code from github. Can you help with regard to overclocking?
Sent from my GT-I9100 using xda premium
You could try looking at the original overclocking commit and modifying it.
Why would you ever want 1.8GHz though? It'll almost certainly be unstable.
Sent from my GT-I9100
OK so what I've sussed out so far is as Oxygen ROM is cm7 based I can extract the boot.img from stable cm7 ROM (which is the kernel) and replace it with the Oxygen boot.img thus creating oxygen 2.3.1/wolverine, clockable to 1.6ghz.
I have found a tut on unpacking ramdisk, is this the boot.img?
If so can anybody tell me how id go about further increasing clock speed once unpacked?
Any help appreciated, cheers Andy
Sent from my GT-I9100 using xda premium
Like I said, it's not possible to change the available frequency steps in a compiled kernel. You can't unpack it and make changes, you've got to build it from source.
Thanks for the reply, I believe I have the source and instructions on compiling unsure what to edit. Am I rite in saying the kernel is generic to all devices and need tailoring to suite? Please forgive the noobness I like to dive in deep end. Hopefully studying comp sci in sept if I get my grades so maybe then ill be able to contribute to the forum a little better
Sent from my GT-I9100 using xda premium
As for why, my device runs real smooth even at 500mhz but have a friend who likes to gloat over a cf bench result id like to smash, that and learning more and as much as I can on android OS.
Sent from my GT-I9100 using xda premium
i got a rooted phone. how do i remove a kernel from my phone without flashing another rom?
Flash another kernel.
why do you remove kernel??
if you remove it must be brick.
You mean "change" kernel??
Sent from my SHW-M250S using XDA App
ragepekr said:
why do you remove kernel??
if you remove it must be brick.
You mean "change" kernel??
Sent from my SHW-M250S using XDA App
Click to expand...
Click to collapse
well, i want to install the unity v9 kernel on my rooted phone running virtuous unity. in case something goes wrong with this kernel, i want to be able to remove it. but since you say you can only change it, how can i revert back (or change) to the kernel i had previously on my rom?
Make a nandroid backup so if you want to revert to your previous setup just restore the backup. You could also download the original kernel that came with your rom so you can flash back.
jr67 said:
Make a nandroid backup so if you want to revert to your previous setup just restore the backup. You could also download the original kernel that came with your rom so you can flash back.
Click to expand...
Click to collapse
hi jr67... i got a question.. i already installed the unity v9 kernel. so how can i adjust it?
binlad said:
hi jr67... i got a question.. i already installed the unity v9 kernel. so how can i adjust it?
Click to expand...
Click to collapse
What are you wanting to adjust? The only way to adjust a kernel is ti do it when its compiled from source code.
You cant remove a Kernel. You can ONLY change it.
Make a nandroid backup of your current kernel and flash a new kernel.If anything goes wrong just revert it.
ragepekr said:
why do you remove kernel??
if you remove it must be brick.
You mean "change" kernel??
Sent from my SHW-M250S using XDA App
Click to expand...
Click to collapse
If i remove my kernel how work my arc s ?
Flashing the rom over itself (without wiping data) will keep your user apps intact and restore the kernel that came with the rom.
In the future it's a good idea to do a backup any time you flash a new rom or kernel. You can always delete old backups to save space.
Supersonic Evo 4G | MIUI | Tapatalk
If you're talking about overclocking, undervolting, governors, etc. read the Unity v9 Kernel thread. I also recommend reading droidphile's excellent cpu tweaking faq/tutorial:
http://forum.xda-developers.com/showthread.php?t=1369817
2 kernels
Hi all.. I hve flashed siyah 6.0 kernel and the rom is alliance jb. my prewive kernel is dorimanx after flashed siyah kernel I have checked the kernel in setting about phone it shows 3.1.0- r57-siyah-dorimanx v7.38-ics-jb-sg2-pwr-core... if check using cwm it shows dorimanx kernel only... I need siyah kernel wht to do now
nexus4
hello! i am using PA3.99 n i flashed a franco kernel over it......so i want to go back to my PA rom kernel.....how should i?
muzaffarkhan95 said:
hello! i am using PA3.99 n i flashed a franco kernel over it......so i want to go back to my PA rom kernel.....how should i?
Click to expand...
Click to collapse
Extract kernel out of parom.zip, then flash in fastboot
fastboot erase boot
fastboot flash boot.img
Sent from my Nexus 4 using XDA Premium 4 mobile app
Nexus 4
demkantor said:
Extract kernel out of parom.zip, then flash in fastboot
fastboot erase boot
fastboot flash boot.img
Sent from my Nexus 4 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
sorry can u please please explain me in detail...i dint get you!
muzaffarkhan95 said:
sorry can u please please explain me in detail...i dint get you!
Click to expand...
Click to collapse
Take the ROM you originally downloaded and use 7zip to extract the contents. Inside here you should find the kernel (boot.img) but not always in .img format so if you don't see it let me know.
Then use fastboot to flash this kernel to your phone, more info on that here
http://forum.xda-developers.com/showthread.php?t=2277112
Sent from my Nexus 4 using XDA Premium 4 mobile app
Nexus 4
demkantor said:
Take the ROM you originally downloaded and use 7zip to extract the contents. Inside here you should find the kernel (boot.img) but not always in .img format so if you don't see it let me know.
Then use fastboot to flash this kernel to your phone, more info on that here
http://forum.xda-developers.com/showthread.php?t=2277112
Sent from my Nexus 4 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
cant i flash that PA kernel in CWM recovery?
Sure if there is a recovery flashable .zip out there, you'll have to search for one or create your own. If you search my other threads i have one on creating flashable .zips but it will be more work than just flashing in fastboot.
Let me know if you need a hand either way
Sent from my Nexus 4 using XDA Premium 4 mobile app
Nexus 4
demkantor said:
Sure if there is a recovery flashable .zip out there, you'll have to search for one or create your own. If you search my other threads i have one on creating flashable .zips but it will be more work than just flashing in fastboot.
Let me know if you need a hand either way
Sent from my Nexus 4 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
see i have extract files from the rom i am using, in my pc! so i got a file name boot....u can see it in the image
Good, at this point the fastest/easiest way is to flash with fastboot
Sent from my Nexus 4 using XDA Premium 4 mobile app
hell_lock said:
Click to expand...
Click to collapse
You upgrade a kernel version, by upgrading the kernel updates for that version.
lithid-cm said:
You upgrade a kernel version, by upgrading the kernel updates for that version.
Click to expand...
Click to collapse
Can u elaborate sir?
Sent from my GT-S5360 using XDA
hell_lock said:
Can u elaborate sir?
Sent from my GT-S5360 using XDA
Click to expand...
Click to collapse
It is pretty self explanatory.if you want a 3.0+ kernel, then merge a 3.0+ kernel into your source. Most aosp kernel track from the linux kernel. I am not going to get into the step by steps about it, that you can google.
lithid-cm said:
It is pretty self explanatory.if you want a 3.0+ kernel, then merge a 3.0+ kernel into your source. Most aosp kernel track from the linux kernel. I am not going to get into the step by steps about it, that you can google.
Click to expand...
Click to collapse
But the 3.xx kernel sources are not released for my phone so what should I do?
Sent from my GT-S5360 using XDA
hell_lock said:
But the 3.xx kernel sources are not released for my phone so what should I do?
Sent from my GT-S5360 using XDA
Click to expand...
Click to collapse
One of 4 things, Wait, merge from the linux kernel, merge from a 3.0+ device with similar hardware, or cry about it.
lithid-cm said:
One of 4 things, Wait, merge from the linux kernel, merge from a 3.0+ device with similar hardware, or cry about it.
Click to expand...
Click to collapse
I will choose option 3. Do u know what files should be changed?
Sent from my GT-S5360 using XDA
hell_lock said:
I will choose option 3. Do u know what files should be changed?
Sent from my GT-S5360 using XDA
Click to expand...
Click to collapse
No, pending your source, and the other source, there are way to many different changes that could take place. I would use a tool like beyond compare and diff the folders to see what files are different, then based on your experience, start making changes, compile test, rinse and repeat.
lithid-cm said:
No, pending your source, and the other source, there are way to many different changes that could take place. I would use a tool like beyond compare and diff the folders to see what files are different, then based on your experience, start making changes, compile test, rinse and repeat.
Click to expand...
Click to collapse
I am ready to do that.. Can u tell me how can I reduce the chances of hard brick by doing this intensive testing?
Sent from my GT-S5360 using XDA
hell_lock said:
I am ready to do that.. Can u tell me how can I reduce the chances of hard brick by doing this intensive testing?
Sent from my GT-S5360 using XDA
Click to expand...
Click to collapse
Before you start working on it, nandroid backup your system. Its just the kernel, so you can always revert via recovery. Though you should already know that.
lithid-cm said:
Before you start working on it, nandroid backup your system. Its just the kernel, so you can always revert via recovery. Though you should already know that.
Click to expand...
Click to collapse
One wrong step in kernel can hard brick my phone right? Seniors in my forum have taught me not to mess with a kernel unknowingly cuz it has high chances of hard bricking the phone.
Sent from my GT-S5360 using XDA
hell_lock said:
One wrong step in kernel can hard brick my phone right? Seniors in my forum have taught me not to mess with a kernel unknowingly cuz it has high chances of hard bricking the phone.
Sent from my GT-S5360 using XDA
Click to expand...
Click to collapse
That is crap the kernel gets initialized during boot, unless your kernel is flashing a recovery as well, or your using a device without a dedicated recovery?
What do you mean by a dedicated recovery? I am using a samsung phone and we have a recovery mode and a download mode. We have both a permanent cwm and a zip fiw cwm(temporary).
Sent from my GT-S5360 using XDA
the dedicated recovery is a partition on is own, so lets say your mtd/emmc is structured like this
boot
recovery (this should be the dedicated recovery)
system
data
therefore you will be able to delete/flash/reflash the boot without affecting the tablet/system/other partitions
There are some devices that have a different recovery structure (tablets based on the rockchip soc)
Thanks for the help you both! I will learn more about partitions in my phone and come back on this thread.
Sent from my GT-S5360 using XDA
I guess most Samsung phones doesn't come as a recovery partition, it comes as an extra ramdisk as mentioned here.
Anyways I've flashed boot.img which I've compiled, and the first boot was a bootloop, of course. And after doing some changes, compiled again and flashed, and it was a success. So I don't think Kernels can hard-brick the device (IMO though).
For samsung...as long as you have download mode your in the clear...with download mode you can use Odin or heimdall to flash a working kernel or even stock software to return to stock.
Samsungs do not have a partition for recovery...its its own ramdisk..."recovery-ramdisk.img" so you can lose both recovery and boot with a kernel but with download mode and heimdall all you have to get is a working kernel with a working recovery, open terminal and type "heimdall flash --kernel kernelnamehere.includinganyfileextention" so "heimdall flash --kernel boot.img"
Sent from my SGH-I997 using Tapatalk 2
You guys rightly said! We have a ramdisk included with a zImage in a boot.img. I have also seen cases where the recovery mode doesnt come but the download mode is still intact.
A guy from our forum once flashed a s2 kernel on my Y and he hard bricked it. No modes were opening on his phone but according to the theory given by you guys, atleast the download mode should have been working! Care to explain me why that happened? I think the same thing will happen with me when I use sources of other phone for my kernel.
Sent from my GT-S5360 using XDA
So what I read from this thread, if you don't have a recovery dedicated for your device you would hard brick it???
Coz I tried n tested some kernels
They didn't work out -but it was a soft brick
Not a hard brick
I had not made those
Now I'm willing to try once I get some hold on building kernels
And I have a Sony Xperia Neo V
It doesn't have stock recovery like Samsung so if I make or atleast try to make kernels on my own, would I risk my phone getting hard bricked???
Or just soft brick?
Ty for your time!
Sent from my MT11i using xda premium
Hi,
Im developing my kernel for Neo V. And after three days of soft bricking my neo v, i unbricked it with success to know and understand fully how flashtool works.
I have started sourcing and building but am still unsure of many things. Firstly, after building the kernel, may i ask how to build to boot.img? I dont seem to find a universal ramdisk source code but anyways it will be based on ICS. Please help if you know. Also, please preach me on making the boot.img work as it has failed me before in my previous works ive done privately.
Sent from my GT-I9100 using Tapatalk 2
Toolchain also
Sent from my GT-I9100 using Tapatalk 2
Tried searching for guides?on how to proceed further?
Sent from my MT11i using xda premium
brunomars said:
Hi,
Im developing my kernel for Neo V. And after three days of soft bricking my neo v, i unbricked it with success to know and understand fully how flashtool works.
I have started sourcing and building but am still unsure of many things. Firstly, after building the kernel, may i ask how to build to boot.img? I dont seem to find a universal ramdisk source code but anyways it will be based on ICS. Please help if you know. Also, please preach me on making the boot.img work as it has failed me before in my previous works ive done privately.
Sent from my GT-I9100 using Tapatalk 2
Click to expand...
Click to collapse
This might help you mate http://forum.xda-developers.com/showthread.php?t=1748297
Not these! i need to inject my zImage into the boot.img. doesent work even if i try. just does not flash. flashtool keeps failing.
brunomars said:
Not these! i need to inject my zImage into the boot.img. doesent work even if i try. just does not flash. flashtool keeps failing.
Click to expand...
Click to collapse
there is a bug in the semc S1 bootloader... sometimes if the boot.img isnt of a correct size then the device will not boot... the workaround is to add a "filler" file (which is say 512KB file with junk data) to the ramdisk so as to increase the size of the final boot.img file...
Sent from my MT11i using xda premium
Ghostfreak NB said:
there is a bug in the semc S1 bootloader... sometimes if the boot.img isnt of a correct size then the device will not boot... the workaround is to add a "filler" file (which is say 512KB file with junk data) to the ramdisk so as to increase the size of the final boot.img file...
Sent from my MT11i using xda premium
Click to expand...
Click to collapse
Shall add CWM
Sent from my GT-I9100 using Tapatalk 2
Almost every custom kernel includes a recovery!
So you should as well do it!
Just my suggestion
Sent from my MT11i using xda premium
Check it out its out
i want to extract a boot.img but everytime i try it doesnt get the ramdisk folder out.. is there a boot.img in which i can easily extract the zimage and ramdisk folder just using dsxdia's kitchen?
i cant seem to extract the zimage and ramdisk folder from any kernel?..
galaxys3lover said:
i want to extract a boot.img but everytime i try it doesnt get the ramdisk folder out.. is there a boot.img in which i can easily extract the zimage and ramdisk folder just using dsxdia's kitchen?
i cant seem to extract the zimage and ramdisk folder from any kernel?..
Click to expand...
Click to collapse
Just use android kernel kitchen by Championswimmer. It is truly amazing and does the job very well.
Sent from my LT26i using xda app-developers app
abcdjdj said:
Just use android kernel kitchen by Championswimmer. It is truly amazing and does the job very well.
Sent from my LT26i using xda app-developers app
Click to expand...
Click to collapse
i tried .. it still says zimage not found.. can u please explain to me how to for example use kappa or lupus kernel into a rom?
i am creating a rom using stock .ftf file and i want to include a custom kernel into this rom.. how do i go about it??? please help?!
galaxys3lover said:
i tried .. it still says zimage not found.. can u please explain to me how to for example use kappa or lupus kernel into a rom?
i am creating a rom using stock .ftf file and i want to include a custom kernel into this rom.. how do i go about it??? please help?!
Click to expand...
Click to collapse
Oh no no. You are going the Samsung way I guess. In all Sony phones, we dont have a recovery partition. That means that we can't flash kernels from CWM. The only way is fastboot. So no way to include kernel in your rom zip file. Sorry. At the most you can only recommend users to use a particular kernel.
Sent from my LT26i using xda app-developers app
abcdjdj said:
Oh no no. You are going the Samsung way I guess. In all Sony phones, we dont have a recovery partition. That means that we can't flash kernels from CWM. The only way is fastboot. So no way to include kernel in your rom zip file. Sorry. At the most you can only recommend users to use a particular kernel.
Sent from my LT26i using xda app-developers app
Click to expand...
Click to collapse
OHHHH!!... but in the tutorial by nero young on how to build a custom rom .. he has a sk17i and he uses his own custom kernel when he builds the rom... http://forum.xda-developers.com/showthread.php?p=26283930
so if i cant use a custom kernel .. how do i extract the kernel.sin into the rom?
Basically you just can't flash kernel with the phone.
Usual practive in our phones is to include th boot.img in the rom file and ask it to be extracted and flashed via fastboot through pc.
Hope it helps
Don't know about the tuto
galaxys3lover said:
OHHHH!!... but in the tutorial by nero young on how to build a custom rom .. he has a sk17i and he uses his own custom kernel when he builds the rom... http://forum.xda-developers.com/showthread.php?p=26283930
so if i cant use a custom kernel .. how do i extract the kernel.sin into the rom?
Click to expand...
Click to collapse
You don't have to worry about the kernel when building a rom on stock rom. Just work on the system and you should have a proper working rom.
Sent from my LT26i using xda app-developers app
abcdjdj said:
You don't have to worry about the kernel when building a rom on stock rom. Just work on the system and you should have a proper working rom.
Sent from my LT26i using xda app-developers app
Click to expand...
Click to collapse
THANK YOU SO MUCH FOR YOUR HELP!!
so i just skip the step when he says i have to add a custom kernel... and not add any kernel at all??..
i mean should i atleast extract the kernel.sin into the working folder ..??
am using dsxdia's kitchen..
galaxys3lover said:
THANK YOU SO MUCH FOR YOUR HELP!!
so i just skip the step when he says i have to add a custom kernel... and not add any kernel at all??..
i mean should i atleast extract the kernel.sin into the working folder ..??
am using dsxdia's kitchen..
Click to expand...
Click to collapse
Yes. Kitchen requires a kernel for the working folder. Btw why do you need kitchen? If you need any help for developing your rom, just pm me.
Sent from my LT26i using xda app-developers app
I am just learning ROM development.. and I saw this tutorial by Nero young and thought that was the way to do it .. what other way to do it??
Sent from my GT-I9300 using Tapatalk 2
galaxys3lover said:
I am just learning ROM development.. and I saw this tutorial by Nero young and thought that was the way to do it .. what other way to do it??
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
Dude you can directly add root and busybox.and whatever you want. Check your pm.
Sent from my LT26i using xda app-developers app
Hi,
You can use the attached META-INF folder. It has only the basic stuff like basic symlinks and permissions required for the rom to work properly. Just check the comments in the updater-script to know where to add your tweaks.
Good luck developing
abcdjdj