Kernel dev - HTC EVO 3D

I've managed to compile the latest source for our lovely device using a tutorial for the Thunderbolt. Is there a general guide related to our devices? Need to know folder structure and such for the 3D.
Sent from my PG86100 using xda premium

thedawn2009 said:
I've managed to compile the latest source for our lovely device using a tutorial for the Thunderbolt. Is there a general guide related to our devices? Need to know folder structure and such for the 3D.
Sent from my PG86100 using xda premium
Click to expand...
Click to collapse
HTC hasn't released the latest source for the kernel in 2.17.651.5 yet. What folder structure are you talking about? Compiling a kernel gives you zImage and the modules that work with the kernel you compile. You can use koush's anykernel updater zip which will place zImage into boot.img (kernel+RAMDisk) and copy the modules to \system\lib\modules.

mwalt2 said:
HTC hasn't released the latest source for the kernel in 2.17.651.5 yet. What folder structure are you talking about? Compiling a kernel gives you zImage and the modules that work with the kernel you compile. You can use koush's anykernel updater zip which will place zImage into boot.img (kernel+RAMDisk) and copy the modules to \system\lib\modules.
Click to expand...
Click to collapse
Not folder structure, I wasnt clear my apologies. I have anykernel updater. I was just seeing if there was any specific folder that listed all the compiled modules or if I had to go and manually pull them from each folder. I've been practicing with the .3 source just to get a feel of basic kernel dev.
Sent from my PG86100 using xda premium

Related

Editing a custom kernel

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

Boot.img extract?

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

[Q] Extract Kernel from Rom To Another Rom

How do I extract a kernel from one rom to another rom?
I did do a search and from what I have read you can download both zips and extract the boot.img from one rom and put it in the other rom. Is this correct, a step by step on PC or phone would be nice. Or just extract boot.img from one rom then install the other rom and flash the other boot.img in TWRP on top of that rom. Again a step by step guide would help me. If I could get the source is there a easy way to make a flashable zip? Or if there is another method.
EDIT: I'm S-Off and 3.16 without touchpanel and trying to take one CM10 kernel from a rom and place it in another CM10 rom then flash.
headpiece747 said:
How do I extract a kernel from one rom to another rom?
I did do a search and from what I have read you can download both zips and extract the boot.img from one rom and put it in the other rom. Is this correct, a step by step on PC or phone would be nice. Or just extract boot.img from one rom then install the other rom and flash the other boot.img in TWRP on top of that rom. Again a step by step guide would help me. If I could get the source is there a easy way to make a flashable zip? Or if there is another method.
Click to expand...
Click to collapse
Have you tried this? : https://play.google.com/store/apps/details?id=com.joeykrim.flashimagegui
Are you s-on?
If so, after extracting boot.img got to your folder that has your fastboot and adb exes in cmd and put your phone in fastboot usb and place your boot.img then issue the command: fastboot flash boot boot.img
Good luck!
Sent from my EVO using xda app-developers app
Yes I am S-Off. Also with the program you linked to it looks like it is for S-On and most of the instructions that I find are for S-On. If I am wrong could you point me in the right direction with a guide for Flash Image GUI.
headpiece747 said:
Yes I am S-Off. Also with the program you linked to it looks like it is for S-On and most of the instructions that I find are for S-On. If I am wrong could you point me in the right direction with a guide for Flash Image GUI.
Click to expand...
Click to collapse
If you are s-off you can use the same commands or flash custom kernels, depending on the rom version you are using you just need to place the zip in your sd card and flash through twrp... Can you give more details of your setup and what kernel rom are u using or which one are you trying /want to flash?
For 3.16 you can use either thicklizard's Arc Reactor Kernel or flas2's Bulletproof... And depending on the rom you are running overclock/underclock - change schedulers or change voltage values using scripts or apps like setcpu, android tuner, etc...
Sent from my EVO using xda app-developers app
jocarog said:
If you are s-off you can use the same commands or flash custom kernels, depending on the rom version you are using you just need to place the zip in your sd card and flash through twrp... Can you give more details of your setup and what kernel rom are u using or which one are you trying /want to flash?
For 3.16 you can use either thicklizard's Arc Reactor Kernel or flas2's Bulletproof... And depending on the rom you are running overclock/underclock - change schedulers or change voltage values using scripts or apps like setcpu, android tuner, etc...
Sent from my EVO using xda app-developers app
Click to expand...
Click to collapse
He's using AOSP, so those kernels won't work.
Sent from my EVO using xda premium
FinZ28 said:
He's using AOSP, so those kernels won't work.
Sent from my EVO using xda premium
Click to expand...
Click to collapse
My bad I didn't read the edit...
Sent from my EVO using xda app-developers app
jocarog said:
My bad I didn't read the edit...
Sent from my EVO using xda app-developers app
Click to expand...
Click to collapse
No sweat
Sent from my EVO using xda premium
jocarog said:
If you are s-off you can use the same commands or flash custom kernels, depending on the rom version you are using you just need to place the zip in your sd card and flash through twrp... Can you give more details of your setup and what kernel rom are u using or which one are you trying /want to flash?
For 3.16 you can use either thicklizard's Arc Reactor Kernel or flas2's Bulletproof... And depending on the rom you are running overclock/underclock - change schedulers or change voltage values using scripts or apps like setcpu, android tuner, etc...
Sent from my EVO using xda app-developers app
Click to expand...
Click to collapse
I am trying to take the Evervolv kernel from its rom and put on the ChameleonOS. Thanks for the replies.
Used your sig to give more info:
Device: HTC EVO 4G LTE
ROM: ChameleonOS by TroNit
Kernel: Stock ChameleonOS
Radio: 1.12.11.1210
PRL:25014
HBOOT: 2.09
S-OFF: DirtyRacun
What did you end up doing?
Sent from my EVO using xda premium
I just gave up for the time the being tried all the CM10/AOSP roms on here and Evervolv kernel/rom is only rom that bluetooth on my vehicle like the Sense roms I used. I tried to use Flash Image GUI and it extracted the kernel I think but it put ChameleonOS on boot animation and would not load. Then I took the boot.img out of the Evervolv rom and replace it in the ChameleonOS and flashed and it would not load so it is either not compatible or I am doing something wrong.
Sounds like they aren't compatible.
Sent from my EVO using xda premium
headpiece747 said:
I just gave up for the time the being tried all the CM10/AOSP roms on here and Evervolv kernel/rom is only rom that bluetooth on my vehicle like the Sense roms I used. I tried to use Flash Image GUI and it extracted the kernel I think but it put ChameleonOS on boot animation and would not load. Then I took the boot.img out of the Evervolv rom and replace it in the ChameleonOS and flashed and it would not load so it is either not compatible or I am doing something wrong.
Click to expand...
Click to collapse
Did you check the Linux version? I'm using komodo with cm10.1 inverted rom from tronit without any issue, I've flashed the kernel stabilizer as well...
Sent from my EVO using xda app-developers app
I tried Komodo with Jellybam and the bluetooth was the same so I abandoned it but I think I will try to flash the boot.img from Evervolv again with this a see if it does anything.
headpiece747 said:
I tried Komodo with Jellybam and the bluetooth was the same so I abandoned it but I think I will try to flash the boot.img from Evervolv again with this a see if it does anything.
Click to expand...
Click to collapse
And what's wrong with your bluetooth?
Sent from my EVO using xda app-developers app
The bluetooth pauses every few seconds and the audio is sped up.

[Q] Perform ./extract-files.sh without device?

I am trying to compile a kernel for LGE-P690 from CM ICS source but i don't have the device in my hand i searched all over the net for vendor files but i was unsuccessful in finding vendor files for ics but i found one for gingerbread so is there anyway i could perform ./extract-files.sh without device or can i convert gingerbread vendor files to ics if so how elaborate and tell me please. I am in desperate need for help.
Sent from my LG-P350 using Tapatalk 2
Chain Hacker said:
I am trying to compile a kernel for LGE-P690 from CM ICS source but i don't have the device in my hand i searched all over the net for vendor files but i was unsuccessful in finding vendor files for ics but i found one for gingerbread so is there anyway i could perform ./extract-files.sh without device or can i convert gingerbread vendor files to ics if so how elaborate and tell me please. I am in desperate need for help.
Sent from my LG-P350 using Tapatalk 2
Click to expand...
Click to collapse
If theres not already a master ICS source for your phone(No device tree),then yes you have to use the custom ICS rom on your phone so it can copy the right proprietary files to the source you repoed,or it will not run,you will get bootloops or a soft brick.
eugeneeaster18 said:
Hey, do you have a noobs guide on making a device tree. I know how to compile cyanogenmod, but I have this low legacy device, the Samsung Dart, and it doesnt have a device tree. I want to make ics or jb for it, but have not a clue how to make a tree, all my other phones are htc and samsungs, they already have some.
Click to expand...
Click to collapse
http://linux-sunxi.org/Starting_a_CyanogenMod_device_tree
I have the device tree my question is how to perform ./extract-files.sh without device or is there a way to convert gingerbread vendor files to ics.
Sent from my LG-P350 using Tapatalk 2
Anyone help me please
Sent from my LG-P350 using Tapatalk 2
Ignore this post
Sent from my LG-P350 using Tapatalk 2
Ignore this post
Sent from my LG-P350 using Tapatalk 2

How To Make Cwm Recovery From Stock Recover On Windows

hi guys is there anyway to compile cwm on windows plz help me
i have cygwin installed
touseefiqbal said:
hi guys is there anyway to compile cwm on windows plz help me
i have cygwin installed
Click to expand...
Click to collapse
Unfortunately you can't compile Android or the Cyanogenmod source code that contains the Clockworkmod Recovery source code on Windows using Cygwin. Repo for example on the the critical tools for compiling from source doesn't work on Cygwin. Overall for compiling Clockworkmod Recovery from source a Unix based operating system such as Linux or OSX is needed.
Sent from my SCH-I535 using xda premium
shimp208 said:
Unfortunately you can't compile Android or the Cyanogenmod source code that contains the Clockworkmod Recovery source code on Windows using Cygwin. Repo for example on the the critical tools for compiling from source doesn't work on Cygwin. Overall for compiling Clockworkmod Recovery from source a Unix based operating system such as Linux or OSX is needed.
Sent from my SCH-I535 using xda premium
Click to expand...
Click to collapse
but how the guy rua1 put auto port script in mtk droid tools it port cwm automatically on windoiws?
touseefiqbal said:
but how the guy rua1 put auto port script in mtk droid tools it port cwm automatically on windoiws?
Click to expand...
Click to collapse
From what I can tell his script takes a base already made CWMR for MTK processor devices and then modifies it through a series of hex edits to be compatible with that devices specific recovery partition block layout.
Sent from my SCH-I535 using xda premium
shimp208 said:
From what I can tell his script takes a base already made CWMR for MTK processor devices and then modifies it through a series of hex edits to be compatible with that devices specific recovery partition block layout.
Sent from my SCH-I535 using xda premium
Click to expand...
Click to collapse
Yes you are right bro.

Categories

Resources