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
Related
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
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?
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
Hello guys, I'm havking some problems trying to make my phone read NTFS sd card. It is using NTFS-3g and fuse.ko, my problem is with fuse.ko which is placed in /system/lib/modules (yea it's chmod-ed already), which can't be loaded to the kernel: I am trying to insmod it and it says initmodule '/system/lib/modules/fuse.ko' failed (Exec format error). I've tried to make it a executable file, it didn't worked, I've checked it and it's for .587, the fw I am on, and the kernel is .587 battery patched. I am having the same problem with other modules too like overclock or utf-8.
I'm not a pro, but I wouldn't like to be treated like a total noob(no retard questions like "are you sure you're writing the correct location" or things like that).
P.S.: If you can't help me, I'll try to integrate the module into the kernel next time I compile it, but I'm lazy to do this.
Dmesg output attached.
Nvm, it was all a kernel problem(when I've compiled it, the kernel version was appearing 2 times).
Please delete this post.
On Samsung phones I guess you can turn root on/off by changing the variable in default.prop, but I have my phone rooted and it says ro.secure=1. How would I modify the bootloader? What would I look for to find out what I'm talking about?
I would like to try compiling my own kernel too. XDA University has information about compiling the kernel, but it is kind of unclear about how to put the actual package together though, or at least confusing. It says just zip the image and .ko files together and then it is good to flash, but then gives a file structure tree with unknown files? I downloaded a kernel to test from this site and the file structure was different, and it also reset the whole phone to get the job done.