Changing M4 Aqua CPU clock (Kernel mod.) - General Questions and Answers

Good afternoon. I appoligise for the noob question but is there a way I can edit (I want to add overclock to a kernel) an already made (compiled?) kernel instead of having to completely build the kernel from source? For example, is there a way I can unpack a boot.img and modify the kernel, repack the boot image, and flash it instead of (in my case) going to Sony Developer World and compiling an AOSP kernel from source, I can just modify the frequencies of the CPU in the kernel the phone is currently running and reflash it? Sorry for the complicated and stupid question, i'm very new to kernel modifying... Thanks for any responses and/or help. ^^

Here: http://forum.xda-developers.com/showthread.php?t=1659584

Related

Building Kernel for Dream

Hello
As the prebuilt Kernel which comes with the dream-open project is not as cutting edge es I'd like it to be, I wanted to build the Kernel myself and checked out the sources for 2.6.29.
Now I've got some questions and problems:
Are there any known problems of using this kernel with the master branch? Are there any special/manual changes needed?
What are the best settings for the .config file to get a performance oriented and good kernel? Is msm_defconfig any good? (Maybe someone has a .config he could share with me?)
Are there any build time optimizations which would increase perfomance? (I read something about -O2)
Does only the WiFi Module have to be rebuilt?
When I played around, I got an error that a file (elf.h) is missing. How would I correct that/Which file is meant/Where would I get it?
It would be great if someone could answer these questions
Thank you very much

[Q] Kernel Compile

Hey guys, I want to install a custom kernel, razrqcom-dev-team kernel, on my XT925 - Carbon ROM(0614) but I dont find any information about how to procede.
I downloaded the repository android_kernel_motorola_msm8960-common(razrqcom-dev-team). Someone has a good instruction or know a good tutorial to share?
My apologies about my poor english
Cheers,
Just to clarify: Are you looking for the pre-compiled kernel or do you want to learn how to build android from source?
If you only want a precompiled kernel, then you shouldn't worry, as the right one is already built in line with the rom you chose.

Adding Swap support to JB 4.1 kernel

Hi developers
I want add swap support to my MTK android 4.1 kernel 2.6.35 thanks to members of the forum to tell me how
Compiling the kernel from source adding the line CONFIG_SWAP=y in config file. and them swaon script (am I right?)
I'm following ubuntu terminal tutorials for it.
But What should I do if I dont want use a open source kernel code??
I mean if I wanna use the same kernel from the phone, IS there
any way to open and modify the existing kernel??
I read its can be dangerous for a MTK use another kernel, and I found a mtk6575 open source kernel but it isn't specific to my phone
so, I dont wanna use another!
I hope I can use my original kernel and add it swap support
by the way I have 2 diferents backup from my phone, If I can use it wich one?

[dev][kernel][sgp512] 17.1.1.a.0.402

SGP512 Kernel, first attempt since I just got the device yesterday.
- close to stock
- disabled a few modules which are rather not going to be used
- disabled debug
- integrated wlan driver & configured so that it loads properly
- integrated exFAT
Instructions:
- unzip contents, copy over the modules to /system/lib/modules (remember to set the correct permissions)
- reboot into bootloader & flash the kernel
Code:
fastboot -i 0x0fce flash boot boot.img
fastboot -i 0x0fce reboot
Download binaries: https://drive.google.com/file/d/0B8rpJsF4EG0YMFNHYWZhSHQ5VW8
source
Er... nice that someone starts developing for this device... but:
- what is wrong with the stock WiFi driver? I don't see any problems...
- exFAT is already integrated, no need of special kernel...
Doesn't seem very flash-worthy
I would really appriciate a custom kernel for the Tablet so that we can undervolt the cpu and change frequencies and governors.
But wouldn`t it be the best and easiest way to port (of course with the approval of doomlord) his already existing doomkernel from the Z2 phone?
hasenbein1966 said:
Er... nice that someone starts developing for this device... but:
- what is wrong with the stock WiFi driver? I don't see any problems...
- exFAT is already integrated, no need of special kernel...
Doesn't seem very flash-worthy
Click to expand...
Click to collapse
You won't be able to use the stock modules if you start messing too deep with the kernel & there is no in-kernel (3.4.0) driver for the bcm4339 which the Z2 uses, unless you want to mess with the brcmfmac driver.
Try using the compiled kernel I attached without copying over the associated wifi driver.
Frankus99 said:
I would really appriciate a custom kernel for the Tablet so that we can undervolt the cpu and change frequencies and governors.
But wouldn`t it be the best and easiest way to port (of course with the approval of doomlord) his already existing doomkernel from the Z2 phone?
Click to expand...
Click to collapse
You can already change the freqs & governors with tools like PerformanceControl.
The only part which would need coding is UV control & a sysfs interface for it.
I'll do it sooner or later in my free time, but seeing as I don't have much of the latter, you'll surely see the features being implemented by other devs. Or you can code/port it yourself ;]
This post was never intended to being a starting point for developing a kernel for the community. I got the device 2 days ago & prepared my base for private kernel development & since I didn't see any posts related to a kernel base for the Z2 Tablet I wanted to share it so that interested parties could have a good starting point.
It was NEVER intended for end users.
adwinp said:
You won't be able to use the stock modules if you start messing too deep with the kernel & there is no in-kernel (3.4.0) driver for the bcm4339 which the Z2 uses, unless you want to mess with the brcmfmac driver.
Try using the compiled kernel I attached without copying over the associated wifi driver.
You can already change the freqs & governors with tools like PerformanceControl.
The only part which would need coding is UV control & a sysfs interface for it.
I'll do it sooner or later in my free time, but seeing as I don't have much of the latter, you'll surely see the features being implemented by other devs. Or you can code/port it yourself ;]
This post was never intended to being a starting point for developing a kernel for the community. I got the device 2 days ago & prepared my base for private kernel development & since I didn't see any posts related to a kernel base for the Z2 Tablet I wanted to share it so that interested parties could have a good starting point.
It was NEVER intended for end users.
Click to expand...
Click to collapse
ok, sony released the kernel code on git some time ago, any news with your kernel?
spider623 said:
ok, sony released the kernel code on git some time ago, any news with your kernel?
Click to expand...
Click to collapse
I release this kernel since there were none at that time, at least none integrating the wifi driver & exfat.
Till then, the kernel development for the Z2 tablet took off, so there's no need to keep this post updated.
adwinp said:
I release this kernel since there were none at that time, at least none integrating the wifi driver & exfat.
Till then, the kernel development for the Z2 tablet took off, so there's no need to keep this post updated.
Click to expand...
Click to collapse
really? i haven't seen any other kernels around
spider623 said:
really? i haven't seen any other kernels around
Click to expand...
Click to collapse
Uhmmm.... me neither to be honest.
However, it's extremely nice to see people taking part in kernel development. It's not so easy as one thinks. It's a lot of "trial and error" before something can be released to the public.
(patiently awaiting my Z2 tomorrow)

[NOOB QUESTION] Can an old android phone get the newest linux kernel without baseband functionality?

i'm noob here, so... sorry if the question sound silly...
is it possible to have an old qualcomm device (msm8610) a latest linux kernel such as 5.10 or 5.11 if i don't need the baseband functionality? is all the other driver is also closed source? i'm asking this because i have an old unused phone that i want to use to learn about kernel compiling and learn about hardware and stuff, and i just don't want to waste my time if such thing is impossible (compiling latest kernel for old phone)...
pink101 said:
i'm noob here, so... sorry if the question sound silly...
is it possible to have an old qualcomm device (msm8610) a latest linux kernel such as 5.10 or 5.11 if i don't need the baseband functionality? is all the other driver is also closed source? i'm asking this because i have an old unused phone that i want to use to learn about kernel compiling and learn about hardware and stuff, and i just don't want to waste my time if such thing is impossible (compiling latest kernel for old phone)...
Click to expand...
Click to collapse
If the stock kernel source code for your device is available to the public, you can use that to compile a new custom kernel for your device. But, an old device may not be able to use the latest kernel. If the stock kernel source code for your device is not available, you can't build a new custom kernel for your device.

Categories

Resources