• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

cifs.ko + tun.ko + nls_utf8.ko for stock 2.6.32.17-g9a2fc16 kernel

Status
Not open for further replies.

ap42

Lurker
I compiled these from the latest source on developer.htc.com so I could use vpn & samba/cifs file sharing on my home network.

I thought I would post them in case anyone else likes the stock kernel included with 3.1.0 but needs these modules.

The cifs source was edited to remove any refs to slow_work, so it now works fine with the stock kernel. Watched an episode of Family Guy with no issues on my phone, so I consider cifs working. I recommend "cifs manager" for mounting/unmounting the shares & loading the module with insmod.

Also, make sure you unmount your shares when you leave your network area. I did not, and when I tried to fire up astro or root explorer it would soft reboot my phone. Took me a few minutes to remember that they were last pointing to my cifs share, which was now unavailable. Doh.
 

Attachments

I can finally stream all my videos on my phone directly from my PC! Just pointed CIFSManager to the CIFS.KO, mounted my media folder onto my sd card, and can play from RockPlayer! Thank you!!
 
This sounds like something I would love to do. Can you give a little more instruction on how to use insmod to install the modules? I see how the shares are created with the mount.sh file in the zip but am curious about how insmod works...

Thanks!!!
 
I'm glad someone else finds it useful. Rockplayer + cifs turns the DInc into a great portable media player around the house. I just need to remember to turn off the share when I go to work to avoid the reboot issue when I open astro/root explorer.

bmabry - install CifsManager from the market. Open it. Hit menu button, then Settings. Turn on "Load cifs module". Turn on "Load via insmod". Set the path to where you put the cifs.ko module (I use /sdcard/cifs/263217/cifs.ko).

Now set up the shares. Menu->Add New Share.

Share path: 192.168.1.100/tv2 <your PCs IP/shareName>
Mount point: /sdcard/share/tv2 <I made a dir called share on my sdcard for this>
Username: guest <since I have simple shares from my PC - no password>
Save the share.

Press the share to activate it. If all is well, it will be mounted & you can browse to it with rockplayer/astro/etc and see your files.

I think that should set you up. The mount.sh is how I used to manually mount the dirs via "adb shell" before I had CifsManager set up.
 
This is great ap42! Thanks for the instructions! I plan to set it up this weekend and will let you know how it goes...

Thanks again!
 
I can confirm that these modules work on stock EVO kernel 2.6.32.17-gee577fd if the files are edited such that all occurrences of the string g9a2fc16 within all files ending in .ko are replaced with gee577fd (I used the "vi" editor on my EVO to adjust the .ko files, and it worked just fine!)

The editing is necessary to adjust the version strings of the modules so that they are compatible (in the eyes of the module loader) with the running kernel version (in this case 2.6.32.17-gee557fd).

Hope that helps someone somewhere...

Cheers,
-The--Captain
 
Status
Not open for further replies.
Back
Top Bottom