Related
I want to mount some cifs or even better nfs mounts. I Found the cool cifs app, but I'm having no luck loading the cifs driver.
I have a rooted x10a
firmware 1.6
Kernel 2.6.29-rel semc-android semc 2
Build r1fa014
so what do I have to do? I have looked high and low for a x10 cifs.ko, and tried a ton of others with the app and insmod. Do I need to upgrde the kernel? build?
Current links to what I have to do would be apreciated.
Thanks
check the kernel compiling topic, I posted cifs kernel module for X10 there.
Thanks for the info
I have found your main post: # 716360, Compiling X10 kernel sources.
And I have downloaded your cifs.zip, put it on my x10. I can insmod or use the cifsmanager gui to load the module, and it appears to be running with no errors, lsmod even shows it.
But when I go to mount I still get the "No Such Device" error. Do i need to upgrade my phone first from the above specs?
I don't want to hijack the other post, so ill reply here.
Thanks
bango123 said:
Thanks for the info
I have found your main post: # 716360, Compiling X10 kernel sources.
And I have downloaded your cifs.zip, put it on my x10. I can insmod or use the cifsmanager gui to load the module, and it appears to be running with no errors, lsmod even shows it.
But when I go to mount I still get the "No Such Device" error. Do i need to upgrade my phone first from the above specs?
I don't want to hijack the other post, so ill reply here.
Thanks
Click to expand...
Click to collapse
use the same command line i used on the kernel topic,
also the destination directory must exists.
last but not least, busybox mount instead of the native android mount
if you succeed, please provide compiled module
After some work, I got it to work, and in the end it was not to complicated at all.
1. Get the CIFS module (driver) for the X10, I have attached a copy I am now using for version 1.6. It was compiled by alx5962 and put on these forums in another thread "Compiling X10 kernel sources". There is more info there. I just added "X10" to the name of his file to avoid confusion and posted it here in case of a search engine brought others here for help.
Unpack and save the file somewhere on your SD card, write down where it is at.
2. Install the CIFS Manager from apps, it will need root access to load the cifs module ("Superuser Permissions" app manages this very well), there is lots of info and this is a easy fix. Should be easy to find.
In settings:
Check "Load cifs module"
Check "Load via insmod"
the under path point it to where you saves the cifs modile (something like /sdcard/cifsx10/cifs.ko)
Then setup your share, for example:
Share Path:
192.168.0.1/Share
Mount Point:
/mnt/cifs/Share
Username"
me
Password:
mepassword
Don't worry about any of the options
And that should do it. I did try the command line mounting in the shell, that worked well too, I even made some scripts with a script app. But the CIFS Manager once i figured out my problem(read my note below), worked very well and very easy.
*NOTE* My big problem was an error when mounting "invalid argument". What I found is even if I have the share open to anyone with no password, it will spit out an error if you leave the username and password blank. I just put in "me" and "pw" (or anything really) and i was up and running in one foul swoop!
can i ask what is the point to all this?
mootmaina said:
can i ask what is the point to all this?
Click to expand...
Click to collapse
CIFS also called SMB is the network file sharing used by windows mostly, this would then let you share a folder on you sdcard over you wifi to your home pc leting you copy files to and from your phone without connectinig USB
I haven't tried to share any folders on the sdcard, but I use it to mount shares that are on the network on my pc. ES File Explorer is a nice app to browse the network, but some files wont open well using this.
My main use is to play media, mainly DIVX movies that are stored on my pc. By mounting a share on cifs ( smb - samba, or windows file sharing, both more or less same thing) I can open my DIVX movies with rockplayer and they play like a charm. I have heard of some other apps that have the same issue.
But now I can have access to all of my media stuff when i want.
you can also use webdrive - windows program for mounting ssh filesystems, and launch ssh daemon on android.
Anyone tried this on 2.1? Do we need a new cifs.ko?
Bump.
Anyone got any info on cifs and 2.1? Id like to upgrade but don't want to lose this use.
[sorry] Bump [/sorry]
I tries some of the cifs.ko files i found trying to use the same kernel version (2.6.29), but insmod gave me errors.
Please, if anyone found a working version of cifs.ko for X10 2.1 kernel, post it - or give us a hint ...
(yes i know, compiling it myself would be a way, ... - i promise i will try, but why reinvent the wheel?)
THANKS,
Bax
Bumpito
Still no news about the new cifs.ko ?
Thanks !
Sony Ericsson haven't released the sources for 2.1 yet, so no "cifs.ko" until then. (It seems SE are breaking the GPL license by not releasing their Linux kernel source code)
And is there a way without using cifs.to to play files (such as mp3 or avi) directly from a samba share on 2.1 or we have to wait ?
Bump
Anyone have any luck with 2.1 yet?
hhave we gotten this yet?
cifs.ko experia x10 2.1 rooted
dutchschultz said:
hhave we gotten this yet?
Click to expand...
Click to collapse
In this thread,
http://forum.xda-developers.com/showthread.php?t=716360&highlight=cifs&page=12
Many thanks to alx5962
goto page 1 for instruction, or just use cifsmanager for market
Hi Folks.. need some input.. I'm still a noob at this but getting better n better everyday.
After doing lots o diggin, i cannot find any conclusive fix for adding CIFS towards a TNT Lite Rom (or if there's even a fix ) .
The closest thing to a potential fix is
http://forum.xda-developers.com/showthread.php?t=889088
But i'm a little reluctant to pull the trigger on it.
So far TNT lite 4.4.0 for me is perfect... less the CIFS / streaming video I want to do from my xp share.
Any input or comments on this topic would be welcome.
Thanx for your support! You guys rock!
M
I got CifsManager from the Market for my samba shares. Seems to work fine.
Is that what you are looking for? I am on TNT Lite 4.4
TnT Lite 4.4 uses Clemsyn's kernel which has CIFS support. All you need is an app or script to mount your share. I used to use CIFS Manager. Should be available in the market.
Thanx for the quick feedback .. trying CIFS Manager
Step 1) appears that you have 1 shot at setup once you download CIFS Manager..now that it's installed and I muffed my settings .. i try to go back to the CIFS Manager app and i get "Application is not installed on your phone"..but settings show that it IS infact installed. Re-downloading it from app store (after you have uninstalled it) gives you your change again.
Step 2) configuring it correctly to my XP shares of pix movies and music.
Question: when installing CIFS Manager (with the intention of accessing Windows share on XP)... do i need to go into Settings of CIFS Manager.. and load cifs module on startup?
2ndly .. I don't have CIFS.KO on my system ... and in Path to CIFS.KO (setting).. it's looking for it in System/lib/modules/cifs.ko
Do i need this module to make this work?
Where do i get it if i do?
Am i making this more complicated than it should be?
Off to bed.. enuf tweaking for tonite.. but any input is welcome.
Thanx again folks.
M
I haven't touched Menu -> Settings, so I have everything unchecked/default there.
I added my shares using Menu-> Add New Share and I just open Cifsmanager and mount/unmount the shares when needed.
With this setup, the mounts don't survive a reboot.... which is fine with me.
--
Some Kernels include cifs.ko as a separate module that you load/unload as needed. My assumption is this method saves memory, etc by not running modules that aren't actively needed.
I use pershoot's kernel (with Vegan Ginger) and it's set up this way. So I have to point CIFS Manager at my cifs.ko and it will load the module as necessary.
My understanding is that Clemsyn's kernel includes all of the "extra" modules precompiled in. No loading of extra modules. Therefore, you shouldn't have to worry about the path to cifs.ko or anything like that.
Don't get used to this, btw - I plan to go back to stock after the next firmware update. I used clem's this one time to minimize the sleep issue.
I prefer to leave TNT Lite as stock, and let the user decide if they want to add a customized kernel or not. I personally use one, but I felt that keeping it closer to stock is the better idea.
Maverick_120 said:
Thanx for the quick feedback .. trying CIFS Manager
Step 1) appears that you have 1 shot at setup once you download CIFS Manager..now that it's installed and I muffed my settings .. i try to go back to the CIFS Manager app and i get "Application is not installed on your phone"..but settings show that it IS infact installed. Re-downloading it from app store (after you have uninstalled it) gives you your change again.
Step 2) configuring it correctly to my XP shares of pix movies and music.
Click to expand...
Click to collapse
That's a stock Launcher bug - I've seen the same thing. You'd need an alternate launcher to correct (again, a user option - I personally add Launcher Pro as soon as I re-flash my own device. I dislike the stock Launcher).
Thanx Roebeet...
K so this is the plan when i can get my mittens on my tab afterwork.
1) fix the application issue by adding launcher pro (doofus i am, i just figured out its on the market for me to download to apply this potenial fix to my woes.
2) Try CIFS Manager install again .. "as is" sans modules .. and see if i can hit my shares and stream a video or 2... which would be ..friggin awww someee !!
My circle of life will then be complete.
Thanx for your feedback and support guys n gals !
K Update...
1) done... added launcher pro and it did fix the error from CIFS Manager.
2) problem.. installed CIFS manager but not sure how to get to share.
My share on XP is called "movies" in mount point i'm putting /mnt/cifs/movies
put user and pw that has admin rights... no go.
"mounting the share has failed with an error. mount: Invalid Argument"
Any ideas what i may be doing wrong?
M
GOT IT !
In CIFS Manager ..
ipaddress/sharename = 192.168.1.100/movies
Sharepoint
/mnt/cifs/movies <-- believe this mimics a local drive but is really the share
AWEESOME ...
Thanx again folks.
M
I'll add some comments later with the bumps i get on my journey.
I have tnt lite 4.4 but if I do a command in
terminal:
mount -t cifs //192.168.0.5/video /mtn/cifs/video
I get the error
mount: Invalid argument
But the kernel with tnt lite 4.4 has cifs built in,
doesn't it?
EDIT: the problem was simply that I need to add "guest" as username for
a freely browsable share ...
I've seen a few posts from people wanting native network file support for our Primes. I'm attaching the cifs.ko kernel module for 2.6.39.4 (ICS on the Prime).
CifsManager (search for in market) makes mapping shares and retaining them very easy and is free...busybox mount can be painful.
You must have root to use the module.
cifs.zip contains cifs.ko and cifs.ko_debugon.
the debug_on module has extra extensions/functionality/debug capability. It's not needed, but I included just in case anyone needs it.
great.. now, can you fix the loss of ad hoc network support for tethering we lost in ICS
What is the best way to autoload the md4 module when the cifs module is loaded. cifsmanager could not mount the share unless I manually loaded the md4 module from a shell.
Lock-N-Load said:
great.. now, can you fix the loss of ad hoc network support for tethering we lost in ICS
Click to expand...
Click to collapse
I wish...for now I'm using my EVO's hotspot.
ChrisDos said:
What is the best way to autoload the md4 module when the cifs module is loaded. cifsmanager could not mount the share unless I manually loaded the md4 module from a shell.
Click to expand...
Click to collapse
I'll be honest, I'm new to development in Android. I've been developing and using Linux for a long time, and these phones/tabs aren't exactly built up the way a real linux box is. On our Primes, the init files appear to be baked into the bootloader, so even if you modify one to add insmod calls, its wiped on a reboot.
Once we get the bootloader unlocked.....
Your best bet is to download ScriptManager or an app from the market which you can set to run a custom script after a reboot.
you just need to create something like:
# LoadModules.sh
# Load my kernel modules
insmod /system/lib/modules/cifs.ko
insmod /system/lib/modules/md4.ko
# end file
Have ScriptManager run this at startup.
Is there also a cifs.ko for Kernel 2.6.36.3 (Honeycomb)?
We german USer have to wait for ICS so an interimssolution woud be great...
reagrds
MrLee
cifs module for HC
Mr99Lee said:
Is there also a cifs.ko for Kernel 2.6.36.3 (Honeycomb)?
We german USer have to wait for ICS so an interimssolution woud be great...
reagrds
MrLee
Click to expand...
Click to collapse
I can't test this, but here you go. Please let me know if it works
Lock-N-Load said:
great.. now, can you fix the loss of ad hoc network support for tethering we lost in ICS
Click to expand...
Click to collapse
Mine appears fine?
ChrisDos said:
What is the best way to autoload the md4 module when the cifs module is loaded. cifsmanager could not mount the share unless I manually loaded the md4 module from a shell.
Click to expand...
Click to collapse
Works fine in combination with CifsManager. In CifsManager settings I checked "Load cifs module", checked "load via insmod" and in "Path to cifs.ko" I wrote both modules - /system/lib/modules/cifs.ko:/system/lib/modules/md4.ko
I just want to say thanks for this...in case anyone's wondering, having the Cifs capability will allow you to run an app like CifsManager to make Samba share folders (for example, the shared folders on a windows network) show up like they're on a drive on your tablet. That means that any file you can open from a memory location on your tablet can be opened from across the network. Apps such as ES File explorer offer a limited capability to open certain types of files directly, if your tablet has an app to open them, but it only works for file types the dev's put into it (in general, movies, music, pictures and pdf's). With Cifs support, anything that can be opened directly on the tablet can be opened over the network, without an intermediary app like ES File Explorer.
sklid said:
I can't test this, but here you go. Please let me know if it works
Click to expand...
Click to collapse
Great!!!!!
Works like a charm. Here comes my 10tb tablet.
Thank you very much!
bis denne
Mr.Lee
ParaTr00per said:
Works fine in combination with CifsManager. In CifsManager settings I checked "Load cifs module", checked "load via insmod" and in "Path to cifs.ko" I wrote both modules - /system/lib/modules/cifs.ko:/system/lib/modules/md4.ko
Click to expand...
Click to collapse
Yea, I did the same thing. I'll give it another reboot and do some more digging.
This probably explains why CIFSManager wouldn't work for me last night
Added the needed 2 modules and provided path to the program, will test when I get home!
Thanks!
ParaTr00per said:
Works fine in combination with CifsManager. In CifsManager settings I checked "Load cifs module", checked "load via insmod" and in "Path to cifs.ko" I wrote both modules - /system/lib/modules/cifs.ko:/system/lib/modules/md4.ko
Click to expand...
Click to collapse
Works very well, thanks for the tip. I have used Cifs Manager before and it always works well.
Just out of curiosity what tool chain are you using to compile these?
scook9 said:
This probably explains why CIFSManager wouldn't work for me last night
Added the needed 2 modules and provided path to the program, will test when I get home!
Thanks!
Click to expand...
Click to collapse
Worked. Thanks!
still a aos newb...
so, i just extract the files from the zip (3) and move them to - system/lib/modules/ with root explorer?
think this works, but what is the file path for ics? mnt/ isn't correct? i keep getting error saying no such file or directory....
fuzzer said:
still a aos newb...
so, i just extract the files from the zip (3) and move them to - system/lib/modules/ with root explorer?
think this works, but what is the file path for ics? mnt/ isn't correct? i keep getting error saying no such file or directory....
Click to expand...
Click to collapse
I had the same problem and after messing with it for a while, I got it to work.
You do place those files in the system/lib/modules/ folder. You need to make sure those modules get loaded by going to a terminal emulator (available in the market) and typing these lines,
Code:
insmod /system/lib/modules/cifs.ko
insmod /system/lib/modules/md4.ko
After that, the Cifs manager app should work, or you can just type the command for it. Cifs manager app basically just uses this command to mount your drive.
Code:
busybox mount -t cifs //192.168.x.xxx/<Share> /mnt/cifs/<Share> -o username=<username>,password=<password>
You can just put those commands in a script to run each time it boots as well with script manager, but I haven't yet gotten that to work. It seems that app is buggy and crashes a lot on my prime.
Thanks, now how about the folder structure? I tried to put it in removable, and it created a new folder on the root?
is it case sensitive?
also, is it becausae of ICS that some apps don't see "Removble"...i hope they fix this, kinda sux not being able to use the removable sd card for everything....
fuzzer said:
Thanks, now how about the folder structure? I tried to put it in removable, and it created a new folder on the root?
is it case sensitive?
also, is it becausae of ICS that some apps don't see "Removble"...i hope they fix this, kinda sux not being able to use the removable sd card for everything....
Click to expand...
Click to collapse
Are you using the Cifs manager app (or command line)? I have only mounted mine to /mnt/cifs/<Share>. Root explorer can get you to that directory. I just added the video directory (e.g. /mnt/cifs/<Share>/Movies) to Mizuu. Mizuu is amazing if you are using the network drive to stream movies from. Then I don't have to worry about getting to that directory anymore.
You should be able to tell any media player app where to look. I will have to try a different folder location to see if I can get it to mount anywhere else though. I am at work right now though...
when i move the files from the sdcard using root explorer
and try to run it i get
insmod: init_module '/system/lib/modules/cifs.ko' failed (File exists)
What could be the problem?
Edit: it seames to be that the module is alredy loaded, and my problem was the mount pont, all is working now!
Has anyone tried CIFS manager with CM7DX2? I'm trying to get it working but it doesn't want to mount with error "no such device" which the dev for CIFS manager says:
"Your current kernel or rom lacks the necessary CIFS support. Try to find a matching kernel module (cifs.ko) or use a rom with explicit CIFS support."
So does anyone know if CM7DX2 has CIFS support?
Tried adding a cifs.ko from another ROM with same kernel version but it won't load in either cifs manager or mount manager.
Nobody is using this? Any ideas then on how I could mount a shared drive on my PC to have access to it like the files were on my phone?
Sent from my MB870 using XDA
smallzfsu said:
Tried adding a cifs.ko from another ROM with same kernel version but it won't load in either cifs manager or mount manager.
Nobody is using this? Any ideas then on how I could mount a shared drive on my PC to have access to it like the files were on my phone?
Sent from my MB870 using XDA
Click to expand...
Click to collapse
Whew boy! How far do you really want to dig into this? First, with out locked boot loader, replacing the kernel is next to impossible, however, you can inject ko modules into the running kernel, however they must be configured against the original kernel's source code... If you find one from a SIMILAR kernel, it MIGHT work. There is no guarantee. The command to use would be insmod or modprobe. Depending on how you wanted to load the module. If I am over your head with this, then it's best you stop here... If you really want to forge ahead, then by all means, please do so. Google "linux insmod use" or "linux modprobe use" Or, if you have a Linux box handy, "man insmod" or "man modprobe". I'm not going to get into the details of how to do this, because if you do things wrong, you can have some very screwy results that I would be able to triage in PM's or posts.
Anyhow, that, in a nutshell, is what you are looking at. To succinctly answer your question, yes, it's possible. Is this something that I want to tackle? Ummmm... No. If you want someone to bounce stuff off of, feel free to hit me up! Good luck!
Ciao!
Compiled cifs modules for Gingerbread kernel (Droid X2)
smallzfsu said:
Has anyone tried CIFS manager with CM7DX2? I'm trying to get it working but it doesn't want to mount with error "no such device" which the dev for CIFS manager says:
"Your current kernel or rom lacks the necessary CIFS support. Try to find a matching kernel module (cifs.ko) or use a rom with explicit CIFS support."
So does anyone know if CM7DX2 has CIFS support?
Click to expand...
Click to collapse
Today i've compiled some modules, that essential for sharing support through CIFS Manager.
View attachment dx2_gb_cifs.7z (LZMA2 inside, update your 7zip archiver, before unpacking)
Modules compiled for 2.6.32.9-00005-g2440aba kernel, which i found in my device (firmware 4.5.1A-DTN-150-30).
Does anybody know how to get CIFS working on ICS on the Rezound?
This GB kernel appears to be the only one that supports CIFS.
http://forum.xda-developers.com/showthread.php?t=1506892&highlight=cifs
I detailed my method below:
1. Go to Terminal Emulator and type "su", then "cifs enable"
2. Install Busybox 1.18.2
3. Copy cifs.ko and slow-work.ko modules into a folder called "cifs" on the SD card (these can be put anywhere, I just prefer the SD card because its fast and easy)
4. Install CIFS Manager
5. In CIFS Manager settings, check "Loads cifs module" and "Load via Insmod" checkboxes
6. In CIFS Manager settings, type "/sdcard/cifs/slow-work.ko:/sdcard/cifs/cifs.ko" into the the "Path to cifs.ko[:<modpath>]*" field.
7. In CIFS Manager, create a new share and enter the fields- example with computer IP address of 192.168.1.100 with network share called "share" and computer username and password "user" and "password" respectively.:
Share Path:
192.168.1.100/share
Mount Point:
/mnt/sdcard/convert
Username:
user
Password:
password
8. Save Share and restart phone
9. In CIFS Manager, click on a share to mount it
10. Profit!
In any case, you'll note that the modules I used above were for Froyo. I was able to get them to work on the Droid Charge with a Gingerbread ROM.
I tried those Froyo modules to no avail (expected failure.)
I then download md4.ko and cifs.ko ICS modules for some other device to no avail.
I was curious if anybody might have any clues.
CIFS is the sickness!
*EDIT*
I presume that my attempts are in vein until we get kernel that supports CIFS. I suppose we may have to wait until the OTA. That is just my guess.
xdadevnube said:
Does anybody know how to get CIFS working on ICS on the Rezound?
This GB kernel appears to be the only one that supports CIFS.
http://forum.xda-developers.com/showthread.php?t=1506892&highlight=cifs
I detailed my method below:
1. Go to Terminal Emulator and type "su", then "cifs enable"
2. Install Busybox 1.18.2
3. Copy cifs.ko and slow-work.ko modules into a folder called "cifs" on the SD card (these can be put anywhere, I just prefer the SD card because its fast and easy)
4. Install CIFS Manager
5. In CIFS Manager settings, check "Loads cifs module" and "Load via Insmod" checkboxes
6. In CIFS Manager settings, type "/sdcard/cifs/slow-work.ko:/sdcard/cifs/cifs.ko" into the the "Path to cifs.ko[:<modpath>]*" field.
7. In CIFS Manager, create a new share and enter the fields- example with computer IP address of 192.168.1.100 with network share called "share" and computer username and password "user" and "password" respectively.:
Share Path:
192.168.1.100/share
Mount Point:
/mnt/sdcard/convert
Username:
user
Password:
password
8. Save Share and restart phone
9. In CIFS Manager, click on a share to mount it
10. Profit!
In any case, you'll note that the modules I used above were for Froyo. I was able to get them to work on the Droid Charge with a Gingerbread ROM.
I tried those Froyo modules to no avail (expected failure.)
I then download md4.ko and cifs.ko ICS modules for some other device to no avail.
I was curious if anybody might have any clues.
CIFS is the sickness!
*EDIT*
I presume that my attempts are in vein until we get kernel that supports CIFS. I suppose we may have to wait until the OTA. That is just my guess.
Click to expand...
Click to collapse
My question is why you would want a persistent CIFS share mounted on your phone. Most of the file managers have the ability to access CIFS/Samba shares. Really the first time you're out of range of that share(ie away from your wireless) you'd have to remount when you came back in range anyway. Sounds like way too much work for little gain.
CIFS can be useful for a number of reasons. For instance, some media apps cannot browse the network, but they will be able to find media if it is mounted as a folder in the filesystem.
Unfortunately, the CIFS module must be compatible with the kernel. My guess is the kernel source for ICS would be required before a module for the Rezound can be compiled. That said, you may have some luck if you can find another phone with the same hardware that does have a compiled ICS CIFS module. It may work, but it also may not.
What does this offer over noop?
fix-this! said:
What does this offer over noop?
Click to expand...
Click to collapse
has nothing to do with NOOP, which is an io scheduler. CIFS refers to network fileshares, and the module referred to in the OP lets Android mount a shared folder on the network to the local filesystem on your phone, so apps without cifs/smb support can see it.
In other words, a random share on your network could be mounted to a path on your phone such as /sdcard/networkmusic
Yeah, I'm spoiled by using CIFS on my Charge. I can stream any movies, music, docs etc when I'm on Wifi. It is nice for watching DVDs or HD content, as well as streaming lossless CD rips. It sure beats DLNA. It is nice to have everything on tap, very fast, organized, and easy.
Generally, I've had luck on kernels that explicitly state that they have CIFS support. Even with the extra modules I downloaded, I think the kernel has to support it.
We had working CIFS on some of the custom Charge kernels that were based on leaks. I think that few devs do kernel development. I don't want to annoy them, but perhaps I'll politely suggest looking at CIFS support in the future.