yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 Android Development] xelliance:
How to remove?

I cannot make use of cifs_3 after reboot. The CIFSManager failes to start and even after removing and reinstalling the app I cannot use it. So I wanted to remove cifs_3. I found I shoud use rmmod but this happens:

# rmmod cifs

rmmod cifs

rmmod: delete_module 'cifs' failed (errno 16)

Now I am stuck with it and that should not be I suppose. Anyone knows how to remove it correctly?

Thanks

edit-

While I'm at it, since JPC is being very populair as I noticed, could someone tell if there is a compatible cifs.ko? Or is that not possible since 2.2 is not yet on the opensource samsung site? -Thanks
[Galaxy S I9000 Android Development] nCoder:
Is there someone that could please post step-by-step instructions?

Did anyone had any success with the European Galaxy S? How did you do? What module did you use?

Please ? :)

PS: Working now (It required at least the Username - in my case "guest")
[Galaxy S I9000 Android Development] kanemari:
can someone compile a cifs.ko that will work on the froyo JPC firmware? i had this working on 2.1 and forgot how crap it is without avi streaming over wifi.

would really appreciate it. thanks.
[Galaxy S I9000 Android Development] TDO:
As froyo itself has not ben released, so has not the source for the kernel.

So how?
[Galaxy S I9000 Android Development] rob151515:
Just in case it helps somebody, I was getting the invalid format message with the first cifs.ko with JM7 but the cifs_3.ko posted somewhere in this thread worked.
[Galaxy S I9000 Android Development] Bhonka:
thanks, this one works on mine

jm5 + samset 1.9f + voodoo beta kernel
[Galaxy S I9000 Android Development] 0x000:
@xelliance

try the following instead of "-t smbfs"

busybox mount -t cifs //192.168.222.1/shares /sdcard/network/shares

furthermore, it was necessary on my SGS to specify a username otherwise it would result in an error message. mount -o username=guest -t cifs //server/share /mnt

i've compiled my own cifs.ko module as the ones here didn't work for me (the first one has missing symbols, the other ones just freezed insmod and didn't respond anymore).

i used arm-2010q1-188-arm-none-eabi-i686 toolchain with the samsung opensource kernel. it takes about 10 seconds to load the module on my SGS.

my european (amazon.de) SGS came with firmware JM1 and my kernel version is "Linux version 2.6.29 (umts_scm@S1-BUILD05)".

now streaming movies works great over a wlan mounted cifs share :) (except from the unstable wireless, but that's another thread..)

i still have to figure out why cifsmanager doesn't autoload the module although i have the correct path specified. if the module is not loaded and i try to mount a share through cifsmanager it results in the error "No such device".

loading the module in adb shell or terminal and then mounting the share through cifsmanager works fine!
[Galaxy S I9000 Android Development] quangmach:
confirmed ! this working on mine too, jm5+samset 1.9f

thanks :)
[Galaxy S I9000 Android Development] Holy Kiprits:
I tried to install cifs.ko for my Samsung I9000 with firmware JM7, core 2.6.29root @ SE-S603 # 2.

I used about 10 cifs.ko, found here (maybe it will work). they do not work to mount a share CifsManager.

Where can I find the correct cifs.ko for my kernel?
[Galaxy S I9000 Android Development] nCoder:
What error do you have?
[Galaxy S I9000 Android Development] Holy Kiprits:
CifsManager: "Mounting the sharehas failed with

an error. No such device"
[Galaxy S I9000 Android Development] 0x000:
@Holy Kiprits:

did you see my last post where i said this:

seems related. try to manually load the cifs module and then check whether cifsmanager is able to mount a share.
[Galaxy S I9000 Android Development] Holy Kiprits:
I tried but it did not work for me too:

Filed (operation not permitted)

I do not know what to do in this case.

Maybe the kernel version is not correct?

If you can just write the right command, I'll be happy.
[Galaxy S I9000 Android Development] 0x000:
copy cifs.ko to your sdcard and use adb or some terminal app to enter commands.

./adb shell
su
insmod /sdcard/cifs.ko ## path to where you copied cifs.ko
lsmod | grep cifs ## verify that module is loaded, if it didn't then post the last lines of the command "dmesg"

now you can try cifsmanager and enter your share information (don't forget to add a username parameter) or directly mount at the commandline to see if it works:

# mount -o username=guest -t cifs //IP/share /mnt

i have to manually load the module after each reboot of phone. auto-loading the module in cifsmanager resulted in a lockup of the SGS here..
[Galaxy S I9000 Android Development] Holy Kiprits:
Many thanks for your help!

Not everything worked for me, but I was able to mount a network share.

I have not studied the adb command: (this is why very few understand them).

Here is my log:

Grep command does not work?

I did not mount a network share directly from the command line, because I do not know how to write to mount a share with a password.

I just mounted a network share through Cifsmanager. It works! :)

I can watch the video over wi-fi directly to a network drive at home! I am very happy!

For a complete joy I want to understand why cifs.ko not run through Cifsmanager?

What should I do to get it?

Use adb to load cifs.ko not very convenient, is not it?

How to solve this problem?
[Galaxy S I9000 Android Development] Hubert Mazanek:
/ insmod | grep cifs /

wrong

lsmod | grep cifs
[Galaxy S I9000 Android Development] quangmach:
Here is the one work for me.i tested with jm8 +root by update.zip without any custom rooms.

Download and unzip.put it in sdcard,run CifsManager->Settings->Load via insmod->Path to your unzipped cifs_3.ko and restart app.It will work now

Hope it works for u guys.

*i got this cifs module from 1 of this post in this thread so credit to him.
[Galaxy S I9000 Android Development] Holy Kiprits:
I copy that file, reboot my Galaxy and mount a network share from Cifsmanager.

It works!!!

No adb, no command promt! I am very happy!

Thanks for help!
[Galaxy S I9000 Android Development] HKcow:
I am using xxJP2 2.2 rom, and it is not working giving an error "No such device", any idea if this will work?
[Galaxy S I9000 Android Development] r3loaded2010:
This module is for Eclair only. Froyo has a new kernel (2.6.32) and Samsung hasn't released the source code for that yet because Froyo hasn't officially been released. That's why other kernel-level goodies like Voodoo are not available for Froyo.

If you're in dire need, downgrade to JM8.
[Galaxy S I9000 Android Development] Squishie:
Is there a custom cifs.ko for i9000m JH2 (Kernel 2.6.29)

I have the Backlightnotification plus Voodoo Lagfix installed, otherwise stock with root.

Using the cifs_3.

ADB

#insmod /sdcard/cifs.ko

insmod: can't insert '/sdcard/cifs.ko': File exists
[Galaxy S I9000 Android Development] ethanfel:
Hi, since we have now the froyo jpm source, did someone know how to compile a cifs.ko for froyo ?
[Galaxy S I9000 Android Development] darkbyt3:
Added module for froyo in OP (tested on JPK)
[Galaxy S I9000 Android Development] ultravox:
Not working with JPH. Can browse shares but can't open files.
[Galaxy S I9000 Android Development] darkbyt3:
Yes, it seems there is a problem with seek()

E/MortPlayer Music( 5564): java.io.IOException: Invalid argument

E/MortPlayer Music( 5564):	at org.apache.harmony.luni.platform.OSFileSystem.seek(Native Method)

E/MortPlayer Music( 5564):	at java.io.RandomAccessFile.length(RandomAccessFile.java:283)

E/MortPlayer Music( 5564):	at java.io.RandomAccessFile.skipBytes(RandomAccessFile.java:777)

Unfortunately cifs.ko from 2.6.32 uses <linux/slow-work.h> and the kernels from samsung don't have SLOW_WORK config active.

I though I could borrow fs/cifs from 2.6.31 but it seems it doesn't work for seek().

This means that a full kernel must be compiled...
[Galaxy S I9000 Android Development] HKcow:
Sorry.. where is OP?
[Galaxy S I9000 Android Development] darkbyt3:
Ok,

I managed to include slow_work into cifs.ko and reposted the module in OP.

I tested this with JPM and now opening files works fine.
[Galaxy S I9000 Android Development] darkbyt3:
attached to the first post (OP - original post)
[Galaxy S I9000 Android Development] HKcow:
Thanks! I will give it a try!
[Galaxy S I9000 Android Development] ethanfel:
don't work with jp6

"no such device".
[Galaxy S I9000 Android Development] vitalij:
Hi, could you explain how you included slow_work? I'm getting same problem while compiling ext4 module.
[Galaxy S I9000 Android Development] darkbyt3:
Can you please post the result of a

dmesg | grep cifs

right away after an insmod?
[Galaxy S I9000 Android Development] ethanfel:
I just flash jpm :) the community and modder seems more "jpm ready" than jp6.
[Galaxy S I9000 Android Development] darkbyt3:
I copied kernel/slow_work.c, kernel/slow_work.h, include/linux/slow_work.h into cifs directory, then I've modified the sources of cifs module to include these files and to define CONFIG_SLOW_WORK.

Also you must add to Makefile slow_work.o to be compiled.

Another step is to make sure you call the __init method of slow_work.c from you module's __init method.

Another possible solution will be to compile slow_work as a kernel module. I didn't find any config that will make that possible but from what I've seen in slow_work.c it should be because all methods needed for a kernel module are present.
[Galaxy S I9000 Android Development] r3loaded2010:
There's a bug where folders with accented characters come out corrupted and appear as files instead of folders (unicode issue?). It means I can't access any of my Röyksopp or Sigur Rós albums :/
[Galaxy S I9000 Android Development] darkbyt3:
Add in CifsManager in Options field: iocharset=utf8
[Galaxy S I9000 Android Development] r3loaded2010:
Yep, that did the trick! Thanks very much! :D
[Galaxy S I9000 Android Development] StNickZA:
I'm quite excited about this app, even though I have had a great experience with AllShare and media player. But I've found that AllShare plays a lot better overall. I get regular stuttering over my wireless network using cifs that I don't get with AllShare. Anyone else experienced similar?
[Galaxy S I9000 Android Development] ethanfel:
the cifs.ko we have for now make the process very slow.

before, with android 2.1, that was blazzing fast :)
[Galaxy S I9000 Android Development] StNickZA:
Alright, thanks for the reply. Will keep an eye on this thread in the hope that a new version fixes things!
[Galaxy S I9000 Android Development] HKcow:
It worked and I think the performance is ok. Did not tried 2.1 so not sure how's the previous performance.
[Galaxy S I9000 Android Development] ultravox:
Thx for your work.

I'll try it tonight with JPH.Following that I'll try with JPM :p

I'm surprised with the low interested on this feature. No one uses network shares?:confused:
[Galaxy S I9000 Android Development] darkbyt3:
I've attached a new version (froyo.zip).

slow-work.ko should be inserted first:

insmod slow-work.ko
insmod cifs.ko
[Galaxy S I9000 Android Development] darkbyt3:
Attached in froyo.zip a new kernel module: slow-work.ko. You can use this to resolve the missing symbols.
[Galaxy S I9000 Android Development] vnuh:
Sorry for my noob question. Can I simply copy the .ko files to /system/lib/modules/ folder. If I need to use insmod to install it, can you kindly show me the syntax. Thanks a bunch. I love to have this installed but failed to make it run properly on my froyo.
[Galaxy S I9000 Android Development] sploony:
Froyo is released!

Right now there are two official firmware versions:

- I9000XWJP6

- I9000XXJPM

www(dot)samfirmware.com

If only someone could be so kind to put a compiled version of cifs.ko here:)

I use this a lot for streaming 720 to my galaxy.

Thanks in advance!
[Galaxy S I9000 Android Development] vitalij:
Thanks a lot! Now I have working ext4 on JP6!
[Galaxy S I9000 Android Development] kaah:
I cant get this to work on JPM :(

I have copied the two files from froyo.zip to /mnt/sdcard. The I rebooted.

Then I do the following commands in Android Terminal (while in su)

insmod /mnt/sdcard/slow-work.ko

insmod /mnt/sdcard/cifs.ko

Then I start CifsMangager (latest version) and try and mount 192.168.0.199/media on /mnt/sdcard/mediaserver.

I get the following error: "Mounting the share has failed with an error. mount: invalid argument"

Please help!
[Galaxy S I9000 Android Development] darkbyt3:
Try to mount by hand:

#mount -t cifs -o username=USER,password=PASSWORD //192.168.0.199/media /mnt/sdcard/mediaserver

Also please make sure cifs is loaded (run "lsmod")
[Galaxy S I9000 Android Development] toon_nufc:
Nice 1 m8
[Galaxy S I9000 Android Development] Hrc4u:
nice! got it working on my sgs froyo :)

thanks!
[Galaxy S I9000 Android Development] kaah:
Thanks. I will try this when I get home. The mount is NFS. Just for clarification; On my Popcorn Hour I mount it via nfs://192.168.0.199:/media but here the correct way is to use //192.168.0.199/media ?
[Galaxy S I9000 Android Development] darkbyt3:
cifs.ko is for SMB/CIFS (Windows shares) http://en.wikipedia.org/wiki/Server_Message_Block

NFS is another protocol: http://en.wikipedia.org/wiki/Network_File_System_(protocol)
[Galaxy S I9000 Android Development] Khenke:
Works like a charm (after some time to get it working).

Plays 720p over WiFi on my Galaxy S with Froyo with no problem what so ever.

Using froyo.zip

Thanks, I sooo wanted this. Now I can watch my TV-shows anywhere with WiFi (not tried over 3G yet :) ).
[Galaxy S I9000 Android Development] XoRDy:
Hi.

How can i copy the .ko files?

I've got "Terminal Emulator", but it's not executed as root, so I can't do a insmod (it says Operation not permitted)

I use ROM Darky's Raw Steel Edition v2.2

http://xdaforums.com/showthread.php?t=814091
[Galaxy S I9000 Android Development] remolo:
Does it work on Galaxy Tab?
[Galaxy S I9000 Android Development] darkbyt3:
No, only for GT-i9000
[Galaxy S I9000 Android Development] sunwee:
sorry for a newbie question

rather than all the manual work, can i just copy cifs.ko to the system/lib/modules directory and let CifsManager do the rest?
[Galaxy S I9000 Android Development] darkbyt3:
On 2.1 you just need to give the full path of cifs.ko to CifsManager.

For 2.2 unfortunately the kernel is not compiled with "slow work" support so you need to load first slow-work.ko. I use OCLF so I've added the insmod's to userinit.sh to be automatically loaded at startup.
[Galaxy S I9000 Android Development] tracemonkey:
so glad I found this thread. Great work darkbyt3. Works like a charm. One thing,

when you say "I use OCLF so I've added the insmod's to userinit.sh...." did you mean to say that OCLF somehow enabled that? If so how? I'm using OCLF 2+ and don't see the connection to modifying userinit.sh
[Galaxy S I9000 Android Development] darkbyt3:
OCLF is using /system/bin/userinit.sh script to mount what it needs at start up. So you can append commands to that file and have those run at boot time.

For more information you could search for playlogo hack.
[Galaxy S I9000 Android Development] tracemonkey:
Understood, thanks again.
[Galaxy S I9000 Android Development] NeoXTC:
for some reason my "videos" folders appears empty. Other folders shows documents correctly but videos just doesn't show up :(
[Galaxy S I9000 Android Development] NeoXTC:
seems to be I'm having this bug...

http://forums.fedoraforum.org/showthread.php?t=127615
[Galaxy S I9000 Android Development] ultravox:
Could you please be so kind to provide those commands?
[Galaxy S I9000 Android Development] darkbyt3:
cat /system/bin/userinit.sh:

...
/system/bin/insmod /sdcard/cifs/slow-work.ko &&
/system/bin/insmod /sdcard/cifs/cifs.ko;
sync;

Don't ask why first && and then ; and after sync; :)
[Galaxy S I9000 Android Development] ultravox:
Thank you. I'll try to take a look at it during the weekend.

Cheers
[Galaxy S I9000 Android Development] PowerPC:
Just suggestion. Is it possible for you to compile nls_utf8.ko as well? It's useful for people who have filename/folder in non-latin characters.

Thanks.
[Galaxy S I9000 Android Development] TiBiSMART:
Request

Can you compile the nfs.ko, please?
[Galaxy S I9000 Android Development] darkbyt3:
Load sunrpc.ko, lockd.ko and nfs.ko in this order.
[Galaxy S I9000 Android Development] NeoXTC:
dark do you have any idea why the cifs module doesn't let me look at my network folder that is bigger than a certain size?
[Galaxy S I9000 Android Development] darkbyt3:
It seems there is a bug in cifs. Maybe this:

https://bugzilla.samba.org/show_bug.cgi?id=7619
[Galaxy S I9000 Android Development] TiBiSMART:
Thank You!

but i have this error message: Invalid argument

Maybe the kernel is not support the nfs?

I found this in another forum: (hxxp://xdaforums.com/showthread.php?t=781765)

Need this module load for nfs mounting:

1: sunrpc.ko

2: lockd.ko

3: exportfs.ko

4: auth_rpcgss.ko

5: nfs_acl.ko

6: nfs.ko
[Galaxy S I9000 Android Development] darkbyt3:
Forgot to ask: are you using froyo? Because those modules are for android 2.2 (froyo) not for eclair(2.1)
[Galaxy S I9000 Android Development] TiBiSMART:
yes my android is 2.2(froyo) of course

i can load this modules (sunrpc.ko, lockd.ko, nfs.ko) without error, but when i mount with this command: "mount -t nfs 192.168.1.1:/nfsShare /sdcard/mnt"

I get this error: " mount: mounting 192.168.1.1:/nfsShare on /sdcard/mnt failed: Invalid argument"

i think need this module too:

exportfs.ko

auth_rpcgss.ko (or auth_gss.ko)

nfs_acl.ko (or nfsacl.ko)

can you compile these, please?
[Galaxy S I9000 Android Development] darkbyt3:
Those three should be enough(ok maybe you'll need nfs_acl.ko)

The rest are from nfs server but I've attached them to this post.
[Galaxy S I9000 Android Development] bullyfrog:
Sorry for the newbie question. I'm trying to get CIFS to work on my Galaxy Tab. I've pulled down the tablet source from Samsung and was able to compile the cifs.ko. However, I can't find any documentation on how to compile the slow-work.ko

Any chance you can share how your Makefile looked like? Or how you compiled it?

Much appreciated
[Galaxy S I9000 Android Development] darkbyt3:
Unfortunately I don't have the source code anymore :(

You'll need to change kernel/slow-work.c to be compiled as a module which is not very hard:

move kernel/slow-work.c in fs/slow-work/slow-work.c

remove "config SLOW_WORK" from init/Kconfig

create fs/slow-work/Kconfig with config SLOW_WORK as tristate and add it to fs/Kconfig (source fs/slow_work/Kconfig)

create fs/slow-work/Makefile with obj-$(CONFIG_SLOW_WORK) += slow-work.o and add it to fs/Makefile: obj-$(CONFIG_SLOW_WORK) += slow-work/
[Galaxy S I9000 Android Development] bullyfrog:
Thanks. I think I get what you are trying to convey. Will give it a shot later
[Galaxy S I9000 Android Development] daniel.weck:
Hi bullyfrog, could you please share the cifs modules for the Tab ? I have been trying different methods, to no avail. Many thanks ! Dan
[Galaxy S I9000 Android Development] nCoder:
Using CifsManager it doesn't work with JPA/JPP :(

mount: no such device
[Galaxy S I9000 Android Development] madfix:
It's OK for me, read the way I've activated it, here :

http://xdaforums.com/showthread.php?t=822756&page=221

Working on both JPA/JPO.

[ Edit: New way to do with Hardcore's SpeedMod K10b kernel ]
[Galaxy S I9000 Android Development] madfix:
CIFS support on startup with Hardcore's K10c kernel

Hi everybody,

That's done. Fully working and supported within ClockWorkMod Recovery's activation.

The kernel is available from any Stock of Modded 2.2 ROM for our SGS.

More info here : Hardcore Kernels

I've also putted a few historical here.

Technicals infos about how Hardcore done it : read that post.

Enjoy access to your network's shares within any Android application.
[Galaxy S I9000 Android Development] mattbuffey:
My experience with this is that mkv (even 720p) and mp4 video files play flawlessly using the SGS default video player. However, playing avi files from a mounted folder is jerky and ultimately kicks me out with an error (file not compatible or something). Hard to see this as a network error given that the mkv / mp4 files play well. Then again, i've played the offending avi files on my phone from local storage and they play fine.

Anyone had any experience of this?

Other than that, it's quite brilliant and thanks to the OP.

Matt
[Galaxy S I9000 Android Development] darkbyt3:
Probably because MKV is better than AVI for playing non-local files.

From http://www.mkvfilms.com/

Matroska (MKV) is designed with the future in mind. It incorporates features you would expect from a modern container format, like:

Fast seeking in the file , Chapter entries , Full metadata (tags) support , Selectable subtitle/audio/video streams , Modularly Expendable , Error resilience (can recover playback even when the stream is damaged) , Streamable over the internet and local networks (HTTP, CIFS, FTP, etc) , Menus (like DVDs have)
[Galaxy S I9000 Android Development] mattbuffey:
Then I shall embrace the future!
[Galaxy S I9000 Android Development] lipsin:
I am having the same problem with the jerky videos. It was pretty smooth on Eclair before this.
[Galaxy S I9000 Android Development] yohojones:
I'm a newbie.

I have my phone rooted using super one click and I have the cifs.ko file stored in /sdcard/cifs.ko. I'm able to switch to super user with Terminal Emulator and it gives me the pop up asking to allow, But when I try to run the insmod command and give it the /sdcard/cifs.ko path it says "no such file or directory." I'm able to cd to the directory and can see the file but can't seem to make the program see it.

Any suggestions?
[Galaxy S I9000 Android Development] precurse:
Mind if I ask how you built the slow-work.ko module?

When I try setting it to =m in my kernel config, it says that 'm' isn't an option.

Thanks
[Galaxy S I9000 Android Development] sorna:
perhaps you should try /mnt/sdcard/cifs.ko ?
[Galaxy S I9000 Android Development] sorna:
I had same issue with Froyo as well. Now I am on Darkyy's rom (Based on 2.2.1). Seems that AVIs play much better now.

You might want to try rock player in software encoding mode. It was playing AVI files from network shares smoothly all along.

Cheers.
[Galaxy S I9000 Android Development] alwarr:
Try Act 1 video player it plays most files flawlessly
[Galaxy S I9000 Android Development] darkbyt3:
I modified the kernel source for that. Somewhere in this thread I explained how in more detail.
[Galaxy S I9000 Android Development] bobtheamazing:
You, Sir kick so much ass it isn't even funny.

I was dieing to get my SMB shares working, and worried I was going to have to do exotic kernel rebuilding just to make it all work. Turns out, the cifs support was already in my kernel, and I just needed the module. Worked right away, by simply placing it in /system/lib/modules and enabling the insmod support for the cifsmanager app.

Thanks a million!
[Galaxy S I9000 Android Development] 9point6:
Yeah, That'd be great. Does anyone know how I'd go about doing that?
[Galaxy S I9000 Android Development] eboIa:
jvk version?

hello, could anybody help me with one jvk/2.3.3 compatible version? sorry but I'm totally unfamiliar in compile it for myself:-(

thank you in advanced
[Galaxy S I9000 Android Development] giantroxx:
Hi,

I need also a 2.3.3 compatible version!

Thanks
[Galaxy S I9000 Android Development] jps1974:
These should work for stock XXJVK / XWJVB.

JVB version works for me, JVK version untested.

Use at your own risk, do not blame me if they break your phone

update 20110510: JVH, untested.

update 20110523: JVO, untested.

update 20110611: added JVI and JVP

update 20110702: JVQ