[Q] Kernel Compilation Shell Script - Android Q&A, Help & Troubleshooting

Hey Guys.
I was wondering if anyone had a shell script for compiling a kernel that i could use?
Thanks
heinst

Check the cm build from source kernel guide. If you need a shell script to build it you probably shouldn't be building kernels...
Sent from my SGH-I777 using xda premium

Stormrader said:
Check the cm build from source kernel guide. If you need a shell script to build it you probably shouldn't be building kernels...
Sent from my SGH-I777 using xda premium
Click to expand...
Click to collapse
It makes it 30x easier and the one I built isnt working.

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

Kernel dev

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

CM10 Ramdisk

Hi guys, I compiled CM10 for galaxy5 but it did not boot because of bad ramdisk, how do I get stock CM10 ramdisk and how to add my device specific changes to it?
Please someone?
You can visit my github it is For gnex but you can use my tools.
Sent from my Galaxy Nexus using xda app-developers app
Will see, anyone else have solution?
Please someone?
dhalham said:
Please someone?
Click to expand...
Click to collapse
have you tried anarkia1976's idea?
I am 'trying'
Sent from my GT-S5830 using Tapatalk
I have the same problem with LG E400. The ramdisk that is generated when building CM10 keeps rebooting the phone. How can I build a proper ramdisk?
Using an old ramdisk from CM9 abd my new kernel and generating a boot.img from that boots the device and I can connect with adb but that's all, I have a blank screen and I can't see CM10 boot animation. Probably *.rc scripts from CM9 ramdisk aren't a good match for CM10.

Vibrate not working in a ported rom

HI all, i tried to port a rom to my device Galaxy Ace 2, it boots everything seems working fine except vibration it's not working, so anyone knows how to fix it?
Messi10 said:
HI all, i tried to port a rom to my device Galaxy Ace 2, it boots everything seems working fine except vibration it's not working, so anyone knows how to fix it?
Click to expand...
Click to collapse
With the information given, my assume option would be kernel modules. Check your lib/modules folder for vibrator.ko
Sent from my SGH-T989 using xda premium
ptmr3 said:
With the information given, my assume option would be kernel modules. Check your lib/modules folder for vibrator.ko
Sent from my SGH-T989 using xda premium
Click to expand...
Click to collapse
i have ported roms from same device and vibration was working only this rom vibration won't work so i think problem is not in kernel i can't find vibrator.ko in kernel
Messi10 said:
i have ported roms from same device and vibration was working only this rom vibration won't work so i think problem is not in kernel i can't find vibrator.ko in kernel
Click to expand...
Click to collapse
What do you mean? You mean you can't find it in the ram disk? Lib/modules? Look in your ROM . Vibrator.ko is a module put out while compiling the kernel. If the module is not incorporated in some way you will have no vibration
Sent from my SGH-T989 using xda premium
---------- Post added at 10:12 AM ---------- Previous post was at 09:56 AM ----------
My assumption is when you ported, you tepleaced the modules of your base with those of the ROM you are porting. More than likely if you get the original module from your base your vibration will be back
Sent from my SGH-T989 using xda premium
ptmr3 said:
What do you mean? You mean you can't find it in the ram disk? Lib/modules? Look in your ROM . Vibrator.ko is a module put out while compiling the kernel. If the module is not incorporated in some way you will have no vibration
Sent from my SGH-T989 using xda premium
---------- Post added at 10:12 AM ---------- Previous post was at 09:56 AM ----------
My assumption is when you ported, you tepleaced the modules of your base with those of the ROM you are porting. More than likely if you get the original module from your base your vibration will be back
Sent from my SGH-T989 using xda premium
Click to expand...
Click to collapse
still not working the only rom that vibration won't work in it
Messi10 said:
still not working the only rom that vibration won't work in it
Click to expand...
Click to collapse
Just a suggestion, I had the same problem with a rom, and it turned out to be my profile setting was on custom verses normal. So maybe try checking your profile settings.
Provide a logcat
Check tour updater-script. It may not be symlinking the modules. Make sure somewhere in your script you have this symlink
" symlink("/modules", "/system/lib/modules");"
Sent from my SGH-T989 using xda app-developers app
ptmr3 said:
Check tour updater-script. It may not be symlinking the modules. Make sure somewhere in your script you have this symlink
" symlink("/modules", "/system/lib/modules");"
Sent from my SGH-T989 using xda app-developers app
Click to expand...
Click to collapse
Be said everything is working besides vibration. If the modules are not symlinked there would be other issues like no WiFi.
Sent from my Galaxy Nexus using xda premium
lithid-cm said:
Be said everything is working besides vibration. If the modules are not symlinked there would be other issues like no WiFi.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Not necessarily. I have had kernel being bundled into a ROM that the only issue was vibration. As soon as the symlink was included vibration was fine.
Sent from my SGH-T989 using xda app-developers app
varun.chitre15 said:
Provide a logcat
Click to expand...
Click to collapse
http://www.mediafire.com/view/?h8oxgsgqcipig8d
ptmr3 said:
Check tour updater-script. It may not be symlinking the modules. Make sure somewhere in your script you have this symlink
" symlink("/modules", "/system/lib/modules");"
Sent from my SGH-T989 using xda app-developers app
Click to expand...
Click to collapse
added that and still vibration not working
No module, no symlinker ?
Hi to all,
I was following your instructions and had to realize: I have no vibrator.ko module. Also, I have no symlinker. I checked /sys/bin and used the "find" function, I have no symlink !
PLease help !
mark-o-solo said:
Hi to all,
I was following your instructions and had to realize: I have no vibrator.ko module. Also, I have no symlinker. I checked /sys/bin and used the "find" function, I have no symlink !
PLease help !
Click to expand...
Click to collapse
symlink is in updater script. its not a file.
Hi there
My SII won't vibrate any more since I'm on Supernexus B4.
I tried to change kernel (Siyah -> Dorminanx) and ROM (Supernexus -> CM 10.1), but still no vibrator...
I've been looking into updater-script from Dorimanx, but I can't see any symlink either... ??!
I'm on Qmobile Noir A10 clone of Micromax Canvas A110 i don't have vibrator.ko but my vibration works but extremely poor....plz help....
fix vibration
All solution create me but vibration not working in android after changing a custom ROM
Please give me full tutorial about this
vibration problem
i changed the custom rom of my jellybean
after changing vibration not working
and also i have find symlink in updater-script for lib/modules
but vibration not working
PLEASE GIVE ME A SOLUTION for it

[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

Categories

Resources