[Q] Kernel modules, how do they work? - Samsung Galaxy Nexus

I recently loaded the GLaDOS kernel for one reason: USB audio.
However, the function in set as a module:
- Added support for USB audio as module (need to load modules snd-hwdep.ko, snd-rawmidi.ko, snd-usbmidi-lib.ko and snd-usb-audio.ko in this order with insmod; for example 'insmod /system/modules/snd-hwdep.ko')
Click to expand...
Click to collapse
I'm wondering if anyone can help me out with this? How does one load these modules?
Thanks! Your help will be greatly appreciated.

Bumping this up.
I used Root Explorer and modify the init.rc file. I can't seem to get the modification to stick, it would always revert back to the original file. I'm adding the following lines to the end of the file:
# USB Audio
insmod /system/modules/snd-hwdep.ko
insmod /system/modules/snd-rawmidi.ko
insmod /system/modules/snd-usbmidi-lib.ko
insmod /system/modules/snd-usb-audio.ko
Thoughts?

Related

Compiling tun.ko

Alright, so I am a VPNC user and avid Fresh user.. I just got the latest Fresh 3.4.0.1 and now need a tun.ko for that. Instead of asking other dev's for it, I thought I would try to compile my own... I found this link
http://android.modaco.com/content/h.../howto-compiling-tun-tap-driver-for-htc-hero/
which has very good directions for compiling tun.ko for the hero. I followed those steps, but used the Supersonic 2.6.32 source code. Everything seemed to work well, I was even prompted if I wanted to create the TUN module. I said 'Y', and the process completed.. no tun.ko to be found..
So, I post here in order to find some help with compiling tun.ko, does anyone have any expertise that can tell me what possibly might be going wrong, or maybe suggestions to do this another way..? Thanks
moved to q&a
the module(s) will be found in the directory make prints. just scroll up in ur terminal and ull see the tun.ko and itll give a full path to it.
thanks toast
I eventually got this to work, did a 'make -j4' then a 'make modules'. After the 'make modules' it put tun.ko in the correct spot and I was able to get VPNC to work (kinda..). App still causes the phone to freeze + reboot when I try to disconnect

[Q]This tun.ko file for Cisco VPS software

I have a rooted EVO4g (Mik 2.x ROM) and i couldn't get it to run (able to download the rooted program, but gave me the TUN error before)
I did a search and found this tun.ko file, and it looks like I needed to place it in the system/lib/module folder, but even with root explorer, it wouldn't let me extract it to that folder.
Can anyone help a noob?
Use es file explorer,settings,root settings/root explorer-check/mount file system-check. Then try placing again.
Sent from my nike hating evo!
Still got an error; thanks for the help though;
it reads:
This device does not meet min requirements to run this software. A TUN/TAP driver could not be located. Please ensure a TUN/TAP module is compiled with your kernal or located in data/local/kernal_modules.
This seemed like an easy fix, but this directory doesn't exist (in the local folder, kernal_modules didn't exist)
Should I just create the directory?
any resolution here? I am having the same issue and am thinking that we are missing this TUN/TAP module as it was not compiled in the kernel... do we have a flat file option to put into kernel_modules?
anyone?

[Q] Startup/Shutdown Sounds

I have been searching the forums and webs and have tried some methods/apps to add this, but to no avail so far.
Phone: GSM GNexus - Rooted
Rom: 10-20120808-SKANK-maguro
Recovery: CWM
Currently no startup/shutdown sounds - would like to have some!
I have tried:
Using Boot sound changer from the marketplace
Manual install PowerOn.wav to system/etc and Shutdown.ogg to system/media/audio/ui.
and some other stuff I cannot recall right now.
Any suggestions or anyone know if it even possible?
Thanks in advance.
Cheers in advance.
Bump
Trying to revive this thread... I have also tried the exact same things on stock, AOKP-M2 and CM10.1.2 ROM's to no avail.
I suspect something needs to be changed in the init scripts (and a bin file in /system/bin) for these sounds to play...
Or can anyone shed light on where exactly is "rc.local" (or equivalent script) located in AOKP ROM's as that's what I am using right now?
Anyone?
Update... please view this thread:
http://forum.xda-developers.com/showthread.php?t=1096068
As I suspected, the rc.local init scripts need to be changed. Problem is that I am running AOkP that does not use the same scripts (or atleast the init scripts are kept in a different directory.
The executable "stagefright" exists in the /system/bin and is invoked using the command:
$> stagefright -a -o /system/media/android_audio.mp3
It should work but doesn't.
Anyone want to give this a try on CM10 and report??

Loading Android Kernel modules

After weeks of mucking around i have (i think) successfully compiled g_hid.ko (USB Gadget HID module) for my Samsung Galaxy S3 but have been unable to test it. If i try and use insmod from the directory it is stored in i get insmod: can't insert 'g_hid.ko': No such device I'm new to this but i think this means that i should have loaded something else that g_hid is dependent on first. Any one know what this would be or how i can find out?
Also when trying to use rmmod i receive the following error rmmod: chdir(/system/lib/modules): No such file or directory which is true, that directory doesnt exist, as far as i can tell, my modules are stored in /lib/modules but this is a read only file system so i cant add my modle there. I also get the same error if i try and use modprobe.
I have been able to load a helloworld module threw insmod and that loaded correctly.
So how can i load a module with modprobe? How can i find the dependencies for g_hid? And how can i remove modules?
Thanks for any kelp you can offer
The only help I can offer is for you to post Questions in the Q&A section. This section is for development not questions.
Sorry about that, will do. Thanks

Loading Android Kernel modules error

After weeks of mucking around i have (i think) successfully compiled g_hid.ko (USB Gadget HID module) for my Samsung Galaxy S3 but have been unable to test it. If i try and use insmod from the directory it is stored in i get insmod: can't insert 'g_hid.ko': No such device I'm new to this but i think this means that i should have loaded something else that g_hid is dependent on first. Any one know what this would be or how i can find out?
Also when trying to use rmmod i receive the following error rmmod: chdir(/system/lib/modules): No such file or directory which is true, that directory doesnt exist, as far as i can tell, my modules are stored in /lib/modules but this is a read only file system so i cant add my modle there. I also get the same error if i try and use modprobe.
I have been able to load a helloworld module threw insmod and that loaded correctly.
So how can i load a module with modprobe? How can i find the dependencies for g_hid? And how can i remove modules?
Thanks for any kelp you can offer

Categories

Resources