Samba mount - cifs kernel module for Milestone

Compiled from Motorola kernel sources.

Allows to mount a samba (windows) share, so you can e.g. play avi movies over wi-fi directly from a remote shared folder using e.g. RockPlayer.

Unlike the samba support in the ES Explorer, no downloading to a temp file on the SD card takes place and there's no waiting for the download to finish before the playback begins. When using this kernel module, from the applications' point of view, there's no difference between the network files and the local files on the SD card.

Usage:
mount -t cifs //<ip>/<share> /<mount point> -o username=<user>,password=<password>

Example:
insmod /system/lib/modules/cifs.ko
busybox mount -t cifs //192.168.1.3/avi /sdcard/samba -o username=guest

then watch some movies... and later unmount it to save the battery:
busybox umount /sdcard/samba

I recommend to use the GScript application for the mount and umount scripts, then you can put them as GScript shortcuts somewhere on your screen...

Update: There is a new application CifsManager that simplifies the mounting and loading of the module:
http://forum.xda-developers.com/showthread.php?t=756158

AttachmentSize
cifs.zip112.02 KB

Comments

buergi

After finally getting it working on my defy i upgraded my baby to froyo which runs 2.6.32
Hopefully there will be a working cifs and nls_utf8 modules soon. This would be so great.
Thanks a lot for your work!

plz send file

i want cifs for my defy..
Plz send me cifs files
My email add is 'jjangho105@gmail.com"

could you please give

could you please give instruction how to make it work in froyo.

thank

Rebooting on mounting

Hi!

Sorry for my English...

I got this module and loaded it successfully, no errors, via "adb shell" and insmod, in the Stock Motorola Milestone.
Using CifsManager, it seems that will work, but the phone reboots.
The only change made before installing cifs.ko module was "a kind of app2sd" used here in Brazil, which separates some sdcard space, formatted to ext2 for apps, that is working very well.
Is really possible use this module without flashing or installing any kind of modding in the phone?

Thanks!

what about froyo 2.2 with cifs

what about froyo 2.2 with cifs , will there is a new module compiled ??

2.6.32 kernel

Though I managed to revert the CIFS module to work without the need for a slow worker support (the kernel is unfortunately compiled with CONFIG_SLOW_WORK disabled) and it can be loaded without an error, there is a kernel panic during mount. I'm currently out of ideas on how to fix it and the kernel sources are not available yet from Motorola.
Also the nfs and ext2 modules cause kernel panic during mount...
I've started this thread, hoping for some ideas from other developers: http://forum.xda-developers.com/showthread.php?t=811132

Can it support utf8?

I can mount the shared folder on my MS, but the folder's name is "??".

When i mount the folder with iocharest=utf8, it shows the error message.

it seems to need nls_utfs8.ko

it seems to need nls_utfs8.ko module.

Can you add it to kernel, please?

how to use utf8 support on

how to use utf8 support on milestone

Issues

Hey! Thanks for posting the instructions. I'm looking forward to getting this all working. Unfortunatly, when I try to run insmod, I get this:
insmod: init_module '/system/lib/modules/cifs.ko' failed (Exec format error)
Running CyanogenMod 6 RC2 on a Motorola Droid/Milestone.
Any ideas?

exec format error

Same here, I have not found anything in the web... I get the same for the NFS modules.

Mount not work

Hello,

i have GIT Firmware 2.36 installed.

CIFS.KO loaded

Busybox installed

But mounting failed.

error message?

what is the exact error message?