[Discussion] Kernel Modules - HTC Desire 601

Dicking around my phone, i believe that we have the ability to use kernel modules on our phone, though I am using xXminiWHOOPERxX's kernel, I have downloaded the source from HTC and it seems that CONFIG_MODULES, CONFIG_MODULE_UNLOAD, and CONFIG_MODULE_FORCE_UNLOAD are set to "y". Looking around the net, I found a few places that shows how to compile kernel modules along with pulling the list of kernel functions.
Here's what I found:
-[Tutorial] How to compile a kernel module outside the kernel
-kallsyms on Android
Figured that this might be useful for those who want to make kernel modules for the Desire 601.

Related

Kernel sources

I have a Garminfone and have done a lot of Rom hacking with it so far, enough that I want to port cyanogen to it now. In the config.gz file there are references to Garmin specific items... how do I go about figuring what is included in the kernel and if the stock one might work with the right config settings. I know that they load a few ko modules at boot, but I don't know the requirements for when they must release kernel sources and what to do with it if they do.
I know they have released some in the past for the a10 but not the a50, and none for the 2.1 build.
I do know that they use the 2.6.29 kernel so is there a chance that I could use the current kernel with froyo?
Any assistance would be appreciated.

How do I build my own version of pershoot's kernel?

Hi everyone,
The forum didn't let me post in the relevant thread, so I hope I'll get noticed here.
For starters, I've successfully built and used additional modules with pershoot's kernel so I have the basics down.
Next, I'd like to use oprofile, unfortunately oprofile can't be loaded as a module unless the kernel is rebuilt with profiling enabled. Inspired by this tutorial I built a full kernel, grabbed boot-cm_2636.4_ux-oc-xtra-vfpv3-d16_fp-091311.zip and replaced zImage, dhd.ko and scsi_wait_scan.ko in the zip and flashed it with CWM.
Unfortunately it doesn't work, when booting the tab shows the logo and padlock, there it gets stuck and nothing more happens. Using the original kernel config without any changes doesn't help either.
The procedure I used to build the kernel (using codesourcery 2010.09) is in short:
git clone git://github.com/pershoot/galaxy-2636.git
make pershoot_samsung_p4wifi-ux_defconfig
make -j8 ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
Kernel modules from the build can be insmoded and used on the device. Any suggestions on how to get the entire custom built kernel up and running is greatly appreciated.
/Lakristrolle
OPROFILE is already enabled in this kernel:
grep OPROFILE arch/arm/configs/pershoot_samsung_p*
arch/arm/configs/pershoot_samsung_p3_defconfig:CONFIG_HAVE_OPROFILE=y
arch/arm/configs/pershoot_samsung_p4lte_defconfig:CONFIG_HAVE_OPROFILE=y
arch/arm/configs/pershoot_samsung_p4-ux_defconfig:CONFIG_HAVE_OPROFILE=y
arch/arm/configs/pershoot_samsung_p4wifi_defconfig:CONFIG_HAVE_OPROFILE=y
arch/arm/configs/pershoot_samsung_p4wifi-ux_defconfig:CONFIG_HAVE_OPROFILE=y
Hi pershoot,
Tanks for your reply. That option doesn't enable oprofile, I have no idea what it does. This can easily be verified with "grep oprofilefs /proc/filesystems" on the tab, it comes up blank when running your kernel.
To enable it for real, add the following to the config:
CONFIG_PROFILING=y
CONFIG_OPROFILE=y (or m)
If you could do this in your kernel builds it would be awesome!
Otherwise, I'd really appreciate it if you can give some instructions or point me to a tutorial on how to make my own kernel.
/lakristrolle
i will enable profiling in the next update.
pershoot said:
i will enable profiling in the next update.
Click to expand...
Click to collapse
Thanks a million!
In the mean time I'll be off on the next adventure, finding or building the user-space oprofile tools.
/lakristrolle
Did we just get a second kernel dev! Hooray GT10 developers!
Feature request: I'd like the next kernel to "pop" and taste great smothered in butter.

Are HTC ICS DVB-T Modules (.ko files) available ?

I'm trying to get together all the files I need to have a go at getting a DVB-T tuner working with the 3D - I have all the DVB-T modules, but for a lower kernel revision, and from what I've read they probably wont work with this kernel.
I'm really not looking forward to compiling these myself as I use Windows 7 and am aware that there are issues with compiling Linux on a Windows system and being new to Android/Linux cross compiling I could cause myself more problems than I solve.
So the question is, has anyone got info on a repository for these modules compiled for ICS at our kernel revision?

[Q] nls_utf8.ko for Rage Kernel v3.0 (GB)

Hello,
I've installed Rage Kernel v3.0 just to have cifs support. It works like a harm except of special characters in folder/file names are not displayed and thus I have no access to those resources. I know I need nls_utf8.ko module but don't know where to find it for my kernel. Maybe I can use module form other kernels but I'm not sure of that so I'm asking here. Or maybe it's compiled into my kernel but I don't know how to enable it. I hope someone will give me good directions to solve this problem.

[help] wifi and camera not working on kernel built from source.

I'm working on a stock kernel for my Moto X xt1095. I've got the kernel compiled and it boots but the camera and WiFi are not working. I've tried building the modules but this is where I seem to be stuck. Where do the modules go exactly? In the ramdisk? Any help would be appreciated. I've never built a kernel before and I've been reading several guides but I just can't seem to get this part to work.

Categories

Resources