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.
UPDATE: These modules were added by request to Hundsbuah's kernel here:
http://forum.xda-developers.com/showthread.php?t=2246062
______________________________________________________________________
I was not going to post this because it has limited use for most TF300T owners but it can't hurt so here it is. The attached file(ath9k.tar.gz) contains kernel modules needed to get AR9271 based usb wifi dongles working on the latest stock TF300T kernel(Asus build 10.4.2.20, kernel version 3.1.10). I have tested the modules with this dongle: TP-Link TL-WN722N.
Uncompress the file and you will get an ath9k directory. Inside are the modules, 2 scripts for easy loading and unloading of the modules, and iwconfig compiled for Android. Getting the dongle working goes something like this:
Su to root. Copy htc_9271.hw to /system/etc/firmware. Run the scripts start_ath9k and stop_ath9k to load and unload the modules.
After the modules are loaded, insert the dongle into the keyboard full size usb port and run ifconfig and iwconfig as needed. If wlan0(default android wifi) is on then iwconfig will show the dongle as wlan1.
Note: I did not post this on the Dev forum because I did not develop these modules...I only changed a few lines in 2 modules before compiling them.
ath9k
I have one mtech atab7t tablet with 4.0.4 android(rooted) and 3.0.8+ kernel [email protected] can i add the driver somehow?
kerteszalex said:
I have one mtech atab7t tablet with 4.0.4 android(rooted) and 3.0.8+ kernel [email protected] can i add the driver somehow?
Click to expand...
Click to collapse
Not very likely...you would need to get your kernel source, add ath9k driver support to the kernel config, then fix any compile errors.
bads3ctor said:
Not very likely...you would need to get your kernel source, add ath9k driver support to the kernel config, then fix any compile errors.
Click to expand...
Click to collapse
you can able to make a tutor for me? i am new in these things :/
kerteszalex said:
you can able to make a tutor for me? i am new in these things :/
Click to expand...
Click to collapse
Hmmm...kernel module compiling in 1 easy lesson....not sure it's possible.
bads3ctor said:
Hmmm...kernel module compiling in 1 easy lesson....not sure it's possible.
Click to expand...
Click to collapse
I really need this usb wifi support for my tab :/ i purchased recently more powerful antennas for my router but this tablet lost the signal on the next room :/ sorry for my bad english
kerteszalex said:
I really need this usb wifi support for my tab :/ i purchased recently more powerful antennas for my router but this tablet lost the signal on the next room :/ sorry for my bad english
Click to expand...
Click to collapse
You need the kernel source for your tablet and a way to root your tablet. I did a cursory Google search for the kernel source for your tablet and I can't find it. If you can get the kernel source code for your tablet then it might be possible to compile ath9k modules. If you can't root that tablet then kernel modules won't be useful because there would be no way to load them.
bads3ctor said:
You need the kernel source for your tablet and a way to root your tablet. I did a cursory Google search for the kernel source for your tablet and I can't find it. If you can get the kernel source code for your tablet then it might be possible to compile ath9k modules. If you can't root that tablet then kernel modules won't be useful because there would be no way to load them.
Click to expand...
Click to collapse
the tablet comes with root.i can extract the kernel from it?
kerteszalex said:
the tablet comes with root.i can extract the kernel from it?
Click to expand...
Click to collapse
You need the kernel source code from the tablet manufacturer.
Hello! I have source code for my kernel (Nexus 7 4.2.2) and I successful built module cifs.ko and cp210x.ko, but i can't build module ath9_htc. I add in my nexus_defconfig file
CONFIG_ATH_COMMON=m
CONFIG_ATH9K_HW=m
CONFIG_ATH9K_COMMON=m
CONFIG_ATH9K_HTC=m
but after make modules command only atk.ko created.
Sorry for my english.
SpulN said:
Hello! I have source code for my kernel (Nexus 7 4.2.2) and I successful built module cifs.ko and cp210x.ko, but i can't build module ath9_htc. I add in my nexus_defconfig file
CONFIG_ATH_COMMON=m
CONFIG_ATH9K_HW=m
CONFIG_ATH9K_COMMON=m
CONFIG_ATH9K_HTC=m
but after make modules command only atk.ko created.
Sorry for my english.
Click to expand...
Click to collapse
I had to comment out a few lines of code in 2 modules to get mine to compile. On the TF300T, it has to do with LED code not present in the stock kernel that is referred to in 2 of the modules. If you use my modules on the TF300T, you will get no LED blinking on the WIFI stick when data is transmitted or received.
EDIT: Newegg has an Atheros AR9271 USB stick for $9.99 with a cradle.
http://www.newegg.com/Product/Product.aspx?Item=N82E16833166068
For anyone wondering what these modules are used for, read this:
http://forum.xda-developers.com/showthread.php?t=1714300
HELP!! Need Kernel Module ath9k for GT-N5110 Galaxy Note 8.0
HELP !!!
Could really use some help. For the life of me I can't compile a kernel module driver ath9k for my USB wireless adapter TL-WN722N. So it can be used by insmod on my rooted Galaxy Note 8.0 GT-N5110 on Kernel 3.0.31 Build BMC9 running android 4.1.2. The source code is available at opensource.samsung. and is listed as the GT-N5110 NA (north america) model. If some one could help me please? I would be forever in your debt... :good:
Hello
When trying to add modules via your script, it gives me an "exec format error" for each module. How can this be fixed?
Device: Asus Padfone A66, Android 4.1.1
hi I am getting some problem with this attach file, i decompressed it and got the directory. but what are the next stapes ? sorry but i am not getting that part to copy to system/etc/firmware. will u make clear the process stapewise?
Sorry for bothering this old thread. I'm trying to get this to work on my OnePlus 3 running Oxygen OS Nougat. I installed Linux on my phone and I would like to install the TP-LINK drivers on it as the inbuilt WiFi module on my phone does not support monitor mode. I connected this WiFi adapter and trying to get it to work. Please help.
I am posting here asking for help, assistance, coaching.
It seems to me that I have all the pieces to properly modify the Sero 7 Pro ROM to accept ad hoc Wi-Fi connections. I've spent several days trying to find a simple step-by-step guide for applying github patches to existing kernels and flashable ROM. I have come to believe that no such simple guide/aid exists because the process itself appears to be complex.
The Nexus 7 CyanogenMod has been successfully modified for ad hoc Wi-Fi. My research indicates that the Sero 7 and the Nexus 7 are similar enough that the same patches should be able to be applied to the Sero 7 ROM. The Nexus 7 and Sero 7 both:
Use Android Jelly Bean 4.2.X
Have the same processor, 1.3GHz NVIDIA Tegra 3
Use the same Wi-Fi Chip, Broadcom BCM4330
Kernels use the same Driver, Broadcom bcmdhd Version 5.90.195.104
What I have is the kernel source
http://hisense-usa.com/support/firmware/Sero%207%20Pro_kernel_opensource_us.tar.gz
The full Stock ROM, latest version
https://skydrive.live.com/redir?resid=F7DECBA5BB726100%21108
Patches applied to Nexus 7 CyanogenMod ROM with detailed discussion
http://www.thinktube.com/android-tech/46-android-wifi-ibss
Briefly summarizing the discussion and code contained in the above Thinktube webpage:
The Kernel is patched making changes to the bcmdhd Wi-Fi driver
The ROM is patched making changes
to the wpa_supplicant
a few additions to the Android framework and
some changes to the Settings App
So in concept it seems pretty straightforward. Where I am struggling is the whole github process of applying the patch to the Kernel source. Then compiling the modified Kernel source. And applying the remaining patches to the ROM with the newly modified Kernel.
I need someone willing to work with me on the github piece. Or alternately coach me through that process.
So the resounding lack of response tells me either I've posted on the wrong forum or it is indeed as complex and cumbersome as I suspected.
But I may have figured out how to accomplish it myself. I have NOT figured out the github process. But I do know a little Linux and do run a virtual Ubuntu machine.
So I :
1. manually modified the Broadcom bcmdhd in the kernel source line by line.
2. swapped the wpa_supplicant file in the Sero7 stock ROM with the one from the Nexus 7 CyanogenMod ROM.
3. extracted the needed sero7_defconfig and initramfs.cpio.gz files
4. compiled the modified kernel source code and created a new boot.img
5. inserted the new boot.img to complete the modification of the Stock ROM
And if this all works, I’ll post my fix in a new thread, perhaps “Sero 7 Pro hoc Wi-Fi Fix”
wpa_supplicant
bardell3600 said:
So the resounding lack of response tells me either I've posted on the wrong forum or it is indeed as complex and cumbersome as I suspected.
But I may have figured out how to accomplish it myself. I have NOT figured out the github process. But I do know a little Linux and do run a virtual Ubuntu machine.
So I :
1. manually modified the Broadcom bcmdhd in the kernel source line by line.
2. swapped the wpa_supplicant file in the Sero7 stock ROM with the one from the Nexus 7 CyanogenMod ROM.
3. extracted the needed sero7_defconfig and initramfs.cpio.gz files
4. compiled the modified kernel source code and created a new boot.img
5. inserted the new boot.img to complete the modification of the Stock ROM
And if this all works, I’ll post my fix in a new thread, perhaps “Sero 7 Pro hoc Wi-Fi Fix”
Click to expand...
Click to collapse
Oh boy! I've been waiting to hear if someone got the ad-hoc going on the Sero 7 Pro. I've posted asking for help doing this too but never seemed to get a working answer. Did you get yours working and if so could you please post the wpa_supplicant file for the Sero? I would sure like to wifi tether to the Sero. It's the only device I have that doesn't see my phone's wifi.
Thanks a bunch!
Bob
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.
I am trying to build the latest OOS 13 kernel .
The source I am working with is https://github.com/OnePlusOSS/android_kernel_oneplus_sm8250/tree/oneplus/sm8250_t_13.0.0_op8
In the past , i've built for Samsung and Lenovo devices , although I am unsure of a few things with our oneplus8t
Which defconfig file should I be using? as I do not see a kebab config within the root directory of android_kernel_oneplus_sm8250 or arch/arm64/configs/
Google has helped , but not too much material on building OOS kernels
What is the difference between a OOS kernel and AOSP kernel ? Would I be able to take a commit from AOSP and apply to my OOS ?
Appreciate any insight , and hope to be able to release a kernel soon!
SOLUTION
Backed up my boot.img with ex-kernel manager . Brought the boot.img to my build folder. Extracted defconfig with extract-ikconfig
Hey Dude I'm on oos11..i wanna compile a new kernel..which debconf to use.. the one in the vendors or what? Kona-perf.debconf?
Please help me which debconf to use for OnePlus 8
@hightech316 any luck on building the custom kernel yet?