Is it possible to add cpu governors eg ondemand.ko into /system/lib/module and ismod them in init.grouper to allow different governors on a stock kernel
and if so does anyone have the modules or can point me in the right direction of how to build, create, and learning materials books, sources on the android kernels and modules
now i know a little bit about a little bit when it comes to android now im assuming that the android kernel is just a branch of the linux kernel and shouldn't be much different from it however im not sure what i should be looking for or reading
the kernel modules for cpu governors will help be finish my rom for the nexus 7 however if it turns out that some good resources comes up and i can pick up on it quickly i will have a custom kernel for the rom as well
am i right/wrong in saying the nexus kernel tree inc. drivers etc for tegra3 can be pulled via git from googles kernel repo
Related
Hi,
I am trying to modify a kernel for Samsung Galaxy 3. I have successfully compiled stock kernel from Samsung Sources.
I am new to kernel development and want to add new features to it like overclocking etc.
Can any one please suggest me links or give info regarding how to go about it.
For example, how to modify the frequencies supported by kernel or bus speed in the source code?
Thanks,
Abhijeet
Check github for modifications to the base. I don't know about Samsung kernels, but a quick search of github shows plenty, like this:
https://github.com/kangsterizer/android_kernel_samsung
click on the comments to see only files affected by OC/UV mods like this from the above example:
https://github.com/kangsterizer/and...mmit/1817cd02de8165a4f96746d4dddec3ef4347cb2d
See if you can move those changes into your own kernel.
Hi,
I really need the cp210x.ko module, but I couldn't successfully build it properly for my Iconia A500 with 3.2.1 and 2.6.36.3+ kernel.. I get the following when I tried insmod my cp210x.ko build using ubuntu cross compiler approach:
cp210x: version magic '2.6.36.3+ preempt mod_unload ARMv5 ' should be '2.6.36.3+ SMP preempt mod_unload ARMv7 '
A little search showed that I need to build it in ARMv7, and need to set the kernel config to build SMP kernel. In this thread I saw a few modules offered but couldn't post reply as a new xda-developers user, so I post here. My A500 has already been rooted via the su (version 3) method posted few days ago.
Please help me build the cp201x.ko module - I am kinda stuck..
Bill
Bill,
Might I suggest you look at loading one of the many custom ROM's that will have what you want? If you are rooted, then install CWM (ACER Recovery from the marketplace) which should allow you to load custom ROM's. In order to load the cp201x.ko module you'd have to recompile the kernel and people doing this type of work normally are building custom ROM's.
Anyway, just my 2ยข
Thanks for the advice. I am testing Thor ROM at the moment. Cool..
From what I can read and see within various ROMs /system/lib/modules, very few (out of total possible) kernel modules made it to these custom ROMs - mostly to get game controller to work, extra filesystems, or networking protocols. USB-to-serial modules are rare and certainly my search didn't turn up cp210x.
Cross-compiling the kernel source on Gentoo is mentioned to be better supported then ubuntu, due to its crossdev toolkit, as I'm trying to figure out how to specify target ARMv7 instead of ARMv5 I'm defaulting to when cross compiling from Ubuntu's arm-linux-gnueabi-*
I'm wondering if various nice ROM cooks have releases of their modified kernel source - or might be willing to help me build the just the cp210x as a .ko module, e.g. in the .config, "CONFIG_USB_SERIAL_CP210X=m" - I've found a post few months ago where a successful build and insertion of cp210x module was done but he had some problems when initiating communication on it - I fear the worst but hope for the best, and would like to try that myself as I've successfully talked to my device through the cp210x module on Linux.
Or, if any tips on how to build kernel (just the modules really) properly e.g. As Thor's ROM version number hints at need for some custom and virtualized build environment, I'm looking for the quick and dirty solution if cooking ROMs/kernel/ko's has steep learning curve..
Any help much appreciated!
Bill
It looks like I was speeding down the the wrong track last few days
Apparently the /proc/config.z copied off the a500 device was missing something - and how strange that is - so I had to enable SMP and choose Tegra 2 ARM processor using "make menuconfig" to get the vermagic on the build module (e.g. modinfo after successful make modules) to show ARMv7 and SMP, build from my Ubuntu cross-compiling setup. I haven't tested this new cp210x.ko on a500 yet (as it's currently running one of the customized ROMs that has different EXTRAVERSION/vermagic to the stock Acer kernel source version 2.6.36.3 that I'm based on.
I think it'd be really wonderful if various Android kernel and kernel module makers release their kernel config, sync'ed to each ROM or kernel release, so people like me may independently build special purpose kernel modules with more efficiency and accuracy (to target their customized kernel), and we can recontribute back to to a growing list of tested and working modules for corresponding devices.
Bill
Hmm... Silly. It looks like Thor's ROM already has cp210x build-in, not as a loadable module but compiled in. My device is reported to attach to ttyUSB0! How nice
Thanks!
Bill
For those who are interested, the cp210x.ko module build using latest mentioned approach, e.g. modified kernel config.z, generate module that appear to insert correctly into lightspeed and taboonay roms (neither has this USB-to-serial module) - with a little modification of the EXTRAVERSION variable in the Makefile.
Bill
CP210x and GT-P7500
Has anyone got CP210x module working with Samsung Tab GT-P7500? My problem is that the connected USB-device doesn't create node dev/ttyUSB*. I have spent lot of time trying to figure this one out.
I have tried 1) Manually compiling the linux kernel that has cp210x support as a module. After compiling the module I tried insmoding the cp210x.ko to a running kernel, but even though it seemed to load and unload all right, it did not give me the wanted results. It does not create device node /dev/ttyUSB*. I have also tried modifying ueventd.rc for adding this row, but I am guessing it is only relevant for permissions after the node is created.
Also 2) loading cyanogenmod 10 (which should have cp210x support) to tablet but it doesnot create the desired /dev/ttyUSB* node. I can see device file under dev/bus/usb/001/ but the node does not exist.
I am going to try making needed files for building custom kernel and inserting to tablet. However, I have 0 experience on this, I think it can be tough one.
Any help would be welcome, thanks.
Hello there,
I'm looking for a way to mount nfs shares of my NAS and (debian wheezy) server in the filesystem for access of my media files.
I thought for long that it would be the most natural thing to do for my (linux based) mobile devices in a linux server environment, but it seems I'm far off.
So far I have been unable to mount these nfs shares of mine to the Nexus 7 (grouper) device running a Carbon ROM 4.4.2 Nightly Build from march this year (CARBON...20140302-0433.zip) with CifsManager, most likely due to its lack of kernel support (version 3.1.10--g90cc2cb1 bigshotrob...).
May one of you recommend a kernel that supports nfs, cifs and utf-8 for this build? I restrain from updating it as it is running smoothly and without problems (Remember? Never change a...) and I don't like to invest much time for the reconfiguration and other related stuff.
I know there is M-Kernel (http://forum.xda-developers.com/showthread.php?t=2168787) out there that claims to have exactly the requested support and compliance to the CarbonROM series. But I'm unable to sort out what version of the kernel would match my build of the ROM.
I understand that the most actual release is for versions 4.4.4, but the changelog and >200 posts I've browsed do give no hint which release was compiled for 4.4.2 ROMs.
Please note, I would ask directly in that respective thread in the development section if I could, but owing to the (imho pretty stupid) 10 post restriction of newcomers I am unable to post there.
Edit: Not necessary anymore, got my postings ...
Accordingly, my second question would be, if someone with more than 10 posts would be so kind and ask the following questions for me in the given thread?
Namely:
What version of the kernel would fit my 4.4.2 CarbonROM Build and where could I obtain it?
Does anyone had success to mount nfs shares with it (or cifs, if not) ?
Edit end
That and any alternative ways/hints to get nfs going would be highly appreciated!
Thank you very much,
Nix
Specs Summary:
Nexus 7 2012 Wifi only
Carbon ROM 4.4.2 Nightly Build (CARBON...20140302-0433.zip)
Kernel 3.1.10--g90cc2cb1 bigshotrob...
Simple. Give my kernel a shot. It uses an AnyKernel installer, which then works with both ext4/f2fs ROMs. If you don't want experimental dt2w/s2w, flash 1.6.1.
Edit
http://vp-zp.com/snuzzo/kernels/grouper/
Forgot my link lol
Snuzzo said:
Simple. Give my kernel a shot. It uses an AnyKernel installer, which then works with both ext4/f2fs ROMs. If you don't want experimental dt2w/s2w, flash 1.6.1.
Click to expand...
Click to collapse
Thank you for the reply snuzzo,
would you mind to give some details where to learn more of its features and where to find it?
Then I'll have a look at it.
EDIT:
Thanks for the link! But exactly what version do I have download for my Carbon ROM build above, if I'd decide to use it that is?
Presumably .../kitkat/Funky...??
BTW, are there some feature lists or such things? I'll probably browse the forum a bit, I suppose?
Cheers, Nix
Anykernel Installer. You can flash it on either an ext4/f2fs rom for /data compatibility
Overclock with 1.3Ghz max default
Under/overvolt
IO Scheduler additions: SIO BFQ ROW
CPU Governor additions: Lazy Lagfree Scary Lulzactive Wheatley (could be few more but thats from memory)
DoubleTap2Wake/Sweep2Wake in 1.6.2, disabled in 1.6.1(experimental)
Kexec Hardboot for MultiRom
Dynamic Fsync Control
Stock Google 4.7GCC prebuilt toolchain.
CIFS.
Theres a few other tweaks I made for overall UI performance other than that it follows CM-11.0 source. I build these for my own personal use but upload to share them for those who want what I run. You will want 1.6.2 or 1.6.1.
Snuzzo said:
Anykernel Installer. You can flash it on either an ext4/f2fs rom for /data compatibility
Overclock with 1.3Ghz max default
Under/overvolt
IO Scheduler additions: SIO BFQ ROW
CPU Governor additions: Lazy Lagfree Scary Lulzactive Wheatley (could be few more but thats from memory)
DoubleTap2Wake/Sweep2Wake in 1.6.2, disabled in 1.6.1(experimental)
Kexec Hardboot for MultiRom
Dynamic Fsync Control
Stock Google 4.7GCC prebuilt toolchain.
CIFS.
Theres a few other tweaks I made for overall UI performance other than that it follows CM-11.0 source. I build these for my own personal use but upload to share them for those who want what I run.
Click to expand...
Click to collapse
Sounds great, although most of it are books with seven seals for me
What about nfs support? And its definitely for 4.4.2 based ROMs?
Thx again,
Nix
Yes to both. It has NFS and CIFS support.
And v.1.6 is the one you'd suggest?
Nixblicker said:
And v.1.6 is the one you'd suggest?
Click to expand...
Click to collapse
Yes.
Snuzzo said:
Yes.
Click to expand...
Click to collapse
One more question, please - do I have to activate or load those modules manually or will they be loaded at bootup by default?
Where may I find them to insmod/modprobe them manually, if not?
Thanks for the help once more,
Cheerio,
Nix
They will load by default.
I have omni sources cloned and setup to build the kernel for my Xperia V.
The kernel sources are cloned from the dev of the rom I am using NeoWave 1.2.2 for xperia V
I can build a fully working kernel fine, but when adding new cpu governors, they just don't show up...
everything is included in all the relevant files, Kconfig, Makefile,cpufreq.h, cpufreq_xxx, and ....defconfig..
strange thing is if I run a standard make ARCH=arm CROSS_COMPILE=....../arm-eabi- on the same source, they show up and work fine, the only problem being that my build doesn't use the vendor/blobs for my device..
Does anyone know something simple I'm missing, or alternatively a way I can add the vendor blobs directly to my source and just do a standard make?
I'm fairly new to all this...
To answer my own question, it seems that the governors also need to be specified in the cm_xxxx_defconfig file.. That confused me as i have added a module to <device>_defconfig file and it built fine!!
Hi all,
I like to try tweaking and hacking my phone. I've tried some ROMs on my kugo for some time, but I figured I wanted to make my own personalized build. Right now, I'd like to use the 'Night Light' app from F-Droid, which requires KCAL support. In order to enable KCAL I'd need to edit the stock kernel (I know this can be done, it was the case for Genesis Kernel on Nougat).
Hence I'd want to learn to compile a kernel, but I can't get to the end of Sony's tutorial. I've downloaded the kernel source but I am totally lost with defconfig files. How should I configure the kernel ? There is no obvious choice for a defconfig, and I can't get past point #6 in the tutorial..
Given that I've just discovered kernel compilation today, would someone be kind and take some time to maybe point me to useful doc, give me a clue as to what my next step could be, or teach me how they compile kernels for their device ?
Many thanks for any help,
Cheers
TLDR. How to compile a kernel? I have Sony's source for kugo, but don't understand how to configure the kernel compilation.