Is there any reason why something as useful as CIFS is not so famous on android?
Is there any alternative?
I would like to listen music or watch movies shared on my LAN from my HTC Desire by streaming the files.
I'm searching for cifs for cyanogenmod on my HTC Desire, but it seems there are very few versions and not anything for the latest cyanogenmod.
I'm not sure I understand what you mean?
On Cyanogenmod, the cifs module is located at
/system/lib/modules/cifs.ko
and can be loaded with
CifsManager
or
Code:
insmod /system/lib/modules/cifs.ko
mount -t cifs -o username=[user],password=[password] //path/to/share /mnt/pt
crachel said:
I'm not sure I understand what you mean?
On Cyanogenmod, the cifs module is located at
/system/lib/modules/cifs.ko
...
Click to expand...
Click to collapse
Code:
# ls /system/lib/modules
bcm4329.ko
I have the latest cm (cyanogenmod 7.1).
I also did a find as super user and didn't find any 'cifs.ko'
I have an HTC Desire.
Did you install a custom kernel?
If not, I didn't realize that cifs support varied across CM devices. Try installing a custom kernel that offers cifs support.
crachel said:
Did you install a custom kernel?
Click to expand...
Click to collapse
no
crachel said:
If not, I didn't realize that cifs support varied across CM devices. Try installing a custom kernel that offers cifs support.
Click to expand...
Click to collapse
I would need some homework...
ok, in fact CIFS is compiled into the kernel, so the module will not appear in the system tree. I managed to get cifs manager working. It all works fine.
heavytull said:
ok, in fact CIFS is compiled into the kernel, so the module will not appear in the system tree. I managed to get cifs manager working. It all works fine.
Click to expand...
Click to collapse
Could you provide details on what you did?
any dev can build for galaxy young ??
Related
I just finished building a cifs.ko module for my motorola defy from source.
As the module has some dependencies to slow-work.ko you will need to load this prior to cifs.ko.
I finished testing it on my Motorola Defy Stock Froyo ROM (Linux version 2.6.32.9-ga28fcc4) and it worked fine. I was able to listen to music from my pc via a network share.
have fun.
tuxx
p.s. i will merge slow-work and cifs into a single module in order to be compatible with single module loading programs such as cifsmanager.
Hi,
cant wait for the merge
How about adding the nls_utf8.ko ?
nls_utf8.ko
i havent had time yet to merge cifs and slow-worker however i took a minute to build nls_utf8.ko...
i haven't tested it so please let me know if it works.. and if not i'll try to fix it (dont forget to post dmesg log)
tuxx
Thanks but... cifs.ko was already working on defy. In THIS thread its asked, and HERE said how make it work.
I did a cwm3+ flasheable zip for my own use, which I am attaching here, which I had working in CM7 until they were included.
To avoid problems with utf8 characters, in cifsManager settings, load via insmod and use path:
"/system/lib/modules/slow-work.ko:/system/lib/modules/nls_utf8.ko:/system/lib/modules/cifs.ko"
Do you really need to work to merge the files? Isn't it enough?
Perilla_ said:
Thanks but... cifs.ko was already working on defy. In THIS thread its asked, and HERE said how make it work.
I did a cwm3+ flasheable zip for my own use, which I am attaching here, which I had working in CM7 until they were included.
To avoid problems with utf8 characters, in cifsManager settings, load via insmod and use path:
"/system/lib/modules/slow-work.ko:/system/lib/modules/nls_utf8.ko:/system/lib/modules/cifs.ko"
Do you really need to work to merge the files? Isn't it enough?
Click to expand...
Click to collapse
thanks for the tip.
however I dont know how the cifs.ko of the other thread was compiled.. the thread you pasted says that a hex editor was used to change the kernel version string in the binary!?! That doesn't sound like a very nice solution. Also.. i had to port a few functions such as round_jiffie() which i saw in other build instructions was simply commented out due to laziness.. I prefer a clean build in which round_jiffie() is implemented (as i presume this is for latencies and will probably play a role for battery life etc.).
However I was unaware that you can ':' separate modules with cifsmanager. Thanks for that tip.
tuxx
p.s. if anyone is interested, i just built GNU screen for android.
Well... no, the cifs I uploaded in the zip, are from the thread that the solution said (this solution), which are from the milestone 2. HERE are the cifs for milestone 2 thread, they works with defy.
tuxx42 said:
i havent had time yet to merge cifs and slow-worker however i took a minute to build nls_utf8.ko...
i haven't tested it so please let me know if it works.. and if not i'll try to fix it (dont forget to post dmesg log)
tuxx
Click to expand...
Click to collapse
Hi,
going to test it this evening on a stock 2.6.32.9-ga28fcc4. I ll try to use the "multi:module" functionality of CIFSManager.
Perilla_ said:
Thanks but... cifs.ko was already working on defy. In THIS thread its asked, and HERE said how make it work.
Click to expand...
Click to collapse
Hi,
i thought this module was for the .29 kernel and is broken for stock 2.2.2 ?
Thats why i never bothered to try...
I used those cifs from eclair to CM7 ginger!
Hello,
I'm interested in compiling the tun.ko driver necessary for OpenVPN. However, I got stuck when trying to pull the config.gz file from /proc/ since Motorola didn't include it as an option.
I'm not great with all this and was just following a guide. Has anyone created a working .config file that I could use instead?
Thanks
Isn't any config included?
have you tried make oldconfig?
pajn said:
Isn't any config included?
have you tried make oldconfig?
Click to expand...
Click to collapse
I thought you needed the config.gz file (and the resultant .config) pulled from the phone to use make oldconfig?
Yes. But there should be one included or else we have to complain to Motorola.
The config is included in the binary so it have to be provided together with the source to follow GPL
The default configuration in the kernel source should be okay.
I'll compile that later for you
kholk said:
The default configuration in the kernel source should be okay.
I'll compile that later for you
Click to expand...
Click to collapse
Awesome thank you.
Emh, as the default kernel configuration says, the TUN/TAP interface driver is already included into the kernel. You don't need a module.
kholk said:
Emh, as the default kernel configuration says, the TUN/TAP interface driver is already included into the kernel. You don't need a module.
Click to expand...
Click to collapse
So you're saying even though I don't see tun.ko listed in the filesystem that I should be able to initiate TUN when configuring OpenVPN?
Thanks
try it,it working for my razr.
Kernal 2.6.35.7
View attachment tun_gb.ko.zip
Yes you're able to create a TUN/TAP device without tun.ko.
kholk said:
Yes you're able to create a TUN/TAP device without tun.ko.
Click to expand...
Click to collapse
My apologies. On my last phone I had to have a tun.ko module. My understanding after searching these past few days is most phones require it to be built. Is the RAZR different by having it built into the stock kernel?
By the way, finally got OpenVPN working today.
Thanks
Yup, it seems Moto wanted to include support for VPNs on stock!
What does this do? Sorry not familiar with this
Sent from my DROID RAZR using xda premium
blkghost22 said:
What does this do? Sorry not familiar with this
Sent from my DROID RAZR using xda premium
Click to expand...
Click to collapse
It lets you setup a VPN connection from your phone to another server. Basically, your phone encrypts all your data before going to Verizon, etc. then it arrives at (in my situation) my home router which decrypts it then sends the request out to the internet, and back to my phone encrypted and so on.
It's useful for:
1) I can access my home network from anywhere as if I were at home connected to my router over Wifi
2) If I'm out at a hotel or something and I want to use the Wifi to access a bank account or something without worrying about someone else on the network stealing my password.
Just to name a few.
Has anyone gotten cisco annyconnect working on the razr?
Noob Friendly section
Warning: I will take no responsibility for data loss or corruption that may occur on NTFS drives, though ntfs-3g has been known to be safe.
Steps to get NTFS full read-write working:
1. Install attached .zip via recovery (or push the file )
2. Reboot
3. To mount OTG drives, use the script attached with "Script Manager" app (as root)
(Even NTFS microsd cards can be mounted with minor changes)
4. To unmount, just press "Unmount" in USB OTG helper
This will be built in USB OTG helper app soon!
Download
1. ntfs-3g-cwm-install_v2
2. Mount NTFS script (remove .txt)
More details
Important update! Please upgrade!!
Does it support all kernels/ROMs? :good:
I am using the package posted by DooMLoRD on Arc forum, does this one have any difference ?
Will ntfs-3g need recompile for kernels with custom version string ? (iirc it does not)
t105 said:
Does it support all kernels/ROMs? :good:
Click to expand...
Click to collapse
All based on Sony ICS Beta or ICS kernels
adridu59 said:
I am using the package posted by DooMLoRD on Arc forum, does this one have any difference ?
Will ntfs-3g need recompile for kernels with custom version string ? (iirc it does not)
Click to expand...
Click to collapse
1. Where is that package? Any link? I do not know of that package
2. No need (it is compiled for linux-gnueabi ) Fuse may be specific for the kernel
shardul_seth said:
1. Where is that package? Any link? I do not know of that package
Click to expand...
Click to collapse
http://forum.xda-developers.com/showpost.php?p=22031795&postcount=2297
shardul_seth said:
2. No need (it is compiled for linux-gnueabi )
Click to expand...
Click to collapse
Well thats the TC prefix.. so ntfs-3g is standalone, nice.
shardul_seth said:
Fuse may be specific for the kernel
Click to expand...
Click to collapse
It actually is... seems like I'll have to do a modules package with it.
adridu59 said:
http://forum.xda-developers.com/showpost.php?p=22031795&postcount=2297
Well thats the TC prefix.. so ntfs-3g is standalone, nice.
It actually is... seems like I'll have to do a modules package with it.
Click to expand...
Click to collapse
Maybe ntfs-3g is not mentioned in that thread.. That is why my search did not return anything
Anyway, this is the latest stable ntfs-3g (Jan 2012), but maybe DoomLorDs is also same.. ( if i had found earlier, it would have saved me some work )
Sorry for this noob Q' but is there a pre installed tun.ko file on every custom roms here (Viking Rom v7.2 in particular)?
tried searching the system using root explorer but i cant seem to find it, tried installing tun.ko installer from apps store but it wont install.
thanks in advance. . .
Assuming Samsung didn't change anything from update4->5 (unlikely since the update5-based kernel I'm running still has it enabled), you don't need a tun.ko module because the support is built into the kernel by default: https://github.com/sgs3/GT-I9300_Kernel/blob/master/arch/arm/configs/m0_00_defconfig#L1318
qwerty12 said:
Assuming Samsung didn't change anything from update4->5 (unlikely since the update5-based kernel I'm running still has it enabled), you don't need a tun.ko module because the support is built into the kernel by default: https://github.com/sgs3/GT-I9300_Kernel/blob/master/arch/arm/configs/m0_00_defconfig#L1318
Click to expand...
Click to collapse
thanks a lot for this info. it really helps. :good:
i'm a total noob when it comes to andriod glad theres a forum like this for andriod users :highfive:
CIFS.ko
MD4.ko
With the compiled modules we will get the well-known great network features:
cifs.ko & md4.ko when loaded allow cifs (aka samba, windows) network shares to be mounted and viewable as local media.
Then we could mount-points to our samba-shared NAS ... Perfect for our DX and all music lovers with music on a smb-share.
Click to expand...
Click to collapse
These are compiled with my prototype kernel.
@Steffen_2009 here you go bro
prototype-U said:
CIFS.ko
MD4.ko
These are compiled with my prototype kernel.
@Steffen_2009 here you go bro
Click to expand...
Click to collapse
Cool! So, what command do we use to mount the shares? mount -t cifs?
Sent from my Nexus 7 using Tapatalk 4
Stereo8 said:
Cool! So, what command do we use to mount the shares? mount -t cifs?
Click to expand...
Click to collapse
I processed the insmod (from my low-level point of knowledgle) with the app mountManager and cifsManager.
From the apps I get the feedback "share sucessfully mounted"
But ...
opening mount-point results in an empty folder.
I can not navigate or see my samba-shared path or folder.
When opening the mount-point in ESfileexplorer from mountManager the folder is empty,
returning to mountManager I see a grey mountPoint.
Has mountManager lost the mount point ?
Does someone have an idea how to process it sucessfully ?
Something about permissions ?
What is a possible mount-point path, is
/storage/sdcard0/cifs/music
Click to expand...
Click to collapse
ok ?
Sorry for posting similar things two times ...
Once I thought the modules are only for the mySENSEDX+RC3.0,
but perhaps they are possible for all similar ROMs.
Anyway ... the compiling from prototype-U is the best thing for my Desire X I have seen for many weeks,
(thanks again), so lets get the samba-shares work sucessfully.
Any ReiserFS support for kernel models ?
I can't find any source code so far ...
Really want that so
Sent from my HTC Desire X using xda premium
Mounting with the compiled cifs.ko not possible yet
@prototype-U,
today I spent about 4 hours with the new modules for our D :cyclops:X.
I was testing the new modules with cmds in the DX terminal, app CIFSManager and MountManger.
The insmod was sucessfully and works without problems.
But the mount-command to the share
SU
Click to expand...
Click to collapse
mount -t cifs //192.168.x.x. /storage/sdcard0/cifs/media
Click to expand...
Click to collapse
results with "mount: invalid argument"
Perhpas I am making a mistake here.
So also the mountManager isn't processing sucessfully :crying:.
The mount smb:// on my desire x with the app mountmanager results in "Failed to connect to server"
ESfileManager has no problem finding the samba-share (with no pw) ...
Do the compiled modules work on your X ?
How do you mount a samba-share with the new compiled modules then ?
Really want to know how this has to be done...
Steffen_2009 said:
@prototype-U,
today I spent about 4 hours with the new modules for our D :cyclops:X.
I was testing the new modules with cmds in the DX terminal, app CIFSManager and MountManger.
The insmod was sucessfully and works without problems.
But the mount-command to the share
results with "mount: invalid argument"
Perhpas I am making a mistake here.
So also the mountManager isn't processing sucessfully :crying:.
The mount smb:// on my desire x with the app mountmanager results in "Failed to connect to server"
ESfileManager has no problem finding the samba-share (with no pw) ...
Do the compiled modules work on your X ?
How do you mount a samba-share with the new compiled modules then ?
Really want to know how this has to be done...
Click to expand...
Click to collapse
Can you try also fulmix.Kernel? I added CIFS support, please test.
xpirt
Steffen_2009 said:
@prototype-U,
today I spent about 4 hours with the new modules for our D :cyclops:X.
I was testing the new modules with cmds in the DX terminal, app CIFSManager and MountManger.
The insmod was sucessfully and works without problems.
But the mount-command to the share
results with "mount: invalid argument"
Perhpas I am making a mistake here.
So also the mountManager isn't processing sucessfully :crying:.
The mount smb:// on my desire x with the app mountmanager results in "Failed to connect to server"
ESfileManager has no problem finding the samba-share (with no pw) ...
Do the compiled modules work on your X ?
How do you mount a samba-share with the new compiled modules then ?
Really want to know how this has to be done...
Click to expand...
Click to collapse
I will release a kernel which can actually run cifs.ko. I think its not working because the kernel you are using doesn't expect cifs running on it. But my logic seems wrong so m nt so sure abt it
Can you tell me the procedure of testing it?
prototype-U said:
I will release a kernel which can actually run cifs.ko. I think its not working because the kernel you are using doesn't expect cifs running on it. But my logic seems wrong so m nt so sure abt it
Can you tell me the procedure of testing it?
Click to expand...
Click to collapse
Yes, prototype-U, it seems to inter-act with the kernel.
Procedure of testing.
There are three scenarios of testing.
1. test with app MountManager
2. test with app CIFSManager
3. cmd-test with commands in terminal
Details to 1.
In the app (from play store market) it is possible to define serveral details.
Details can be:
which modules
when process loading (start of app/boot/not at all)
path to cifs.ko and md4.ko on the DX
After definition of the details, checking of loaded modules is possible.
If no cifs.ko is loaded, processing further mounting steps have little chances
Then processing the mount to an external stick/HDD running a samba-share
Last step is checking the mount point with different file managers like ESfileExplorer and totalCommander.
If okay the path should be also usable in any app.
Details to 2.
Similar to 1. ,
but is not having detailed check-possibilies like loaded module-checking.
Is to verify the result of 1.
Details to 3.
"classic" cmds in a terminal
SU
Click to expand...
Click to collapse
then to load from cmd line
insmod /path/to/cifs.ko
insmod /path/to/md4.ko
Click to expand...
Click to collapse
Last
mount -t cifs //IPaddress/path/to/share/on/server /path/where/you/want/to/access/it/on/the/phone
or
mount -t cifs -o username=USERNAME,password=PASSWD //IPaddress/path/to/share/on/server /path/where/you/want/to/access/it/on/your/phone
Click to expand...
Click to collapse
A kernel with working integrated Samba-access for our Desire X's would be a gorgeous dream !
Hi xpirt,
thanks for your information about fulmix kernel.
I am not 100% sure if I processed everything correctly.
So I did it three times with two different combinations
Can you try also fulmix.Kernel?
Click to expand...
Click to collapse
Yes, ... I came from [ROM] mySENSEdx+ RC3.0 (JB | Sense 4+).
Today I installed also the breathless-theme and a battery-mod.
Then I flased the fulmix#2 kernel-image on that.
added CIFS support, please test.
Click to expand...
Click to collapse
Yes ... I love to be the first to try it
Result.
There was no loaded cifs.ko and md4.ko in mountManager.
So it seems to be not working yet.
Not possible (for me) to mount with cifsManager, not possible to mount with mountManager
Then I tried to load the files from prototype-U with MountManager.
Only loading the md4 was possible, not the cifs.ko any more.
Then flashed the recovery of mySENSE without breathless-theme and without battery-mod.
Then I tried again to load the files from prototype-U with MountManager.
Loading was possible again.
But mounting a share didn't process sucessfully yet.
So it is really gorgeous news to read of a kernel with integtrated cifs.ko
Try using those modules on my latest kernel.
Where can i find your latest Kernel?
Sent from my HTC Desire X using xda app-developers app
Steffen_2009 said:
Where can i find your latest Kernel?
Sent from my HTC Desire X using xda app-developers app
Click to expand...
Click to collapse
in my thread
original dev section
Thanks
... Is
http://forum.xda-developers.com/showthread.php?p=44641531 with built 55 the right Kernel?
I am not really sure... Sorry
Sent from my HTC Desire X using xda app-developers app
Steffen_2009 said:
Thanks
... Is
http://forum.xda-developers.com/showthread.php?p=44641531 with built 55 the right Kernel?
I am not really sure... Sorry
Sent from my HTC Desire X using xda app-developers app
Click to expand...
Click to collapse
Yep, that's correct
I flashed built #55 kernal on [ROM] [17.07.13] mySENSEdx+ RC3.0 and tested with modules from
http://forum.xda-developers.com/showthread.php?p=45132569#post45132569
Result:
Now I am able to load cifs.ko and md4ko sucessfully again.
Mounting a samba-share is still not possible (for me) using cifsMansger or Mountmanager
error:
Mount:Invalid argument
What can we do , is someone able to process a sucessfull samba-mount ?
Steffen_2009 said:
I flashed built #55 kernal on [ROM] [17.07.13] mySENSEdx+ RC3.0 and tested with modules from
http://forum.xda-developers.com/showthread.php?p=45132569#post45132569
Result:
Now I am able to load cifs.ko and md4ko sucessfully again.
Mounting a samba-share is still not possible (for me) using cifsMansger or Mountmanager
error:
Mount:Invalid argument
What can we do , is someone able to process a sucessfull samba-mount ?
Click to expand...
Click to collapse
You've used it on any other phone? Does it work there?
Sorry, i just have my HTC dx to test it.
If we are compiling a kernel isn't it important to spezify for which mobile?
Sent from my HTC Desire X using xda app-developers app
Steffen_2009 said:
Sorry, i just have my HTC dx to test it.
If we are compiling a kernel isn't it important to spezify for which mobile?
Sent from my HTC Desire X using xda app-developers app
Click to expand...
Click to collapse
no m saying.. have u used this feature on some other phone? Maybe the way you are doing is wrong? Just wanted to check if you know what u are doing..
You are sure your samba share is working correctly? When I have time, I'll try it myself.
Maybe the way you are doing is wrong? Just wanted to check if you know what u are doing..
Click to expand...
Click to collapse
dansou901 said:
You are sure your samba share is working correctly?
Click to expand...
Click to collapse
This samba-share is accessed from my ubuntu-pc and from my windowsXP-PC without any problems.
With ESfile explorer it is also possible to access any files on the smb with DX phone.
Of course the way I do it could be wrong. I am not 100% sure ....
want to learn, if I make a mistake somewhere.
When I have time, I'll try it myself
Click to expand...
Click to collapse
That would be nice and really a great help :good:
... at the moment I feel something like "being alone out there"
Hi prototype-U,
I am still hoping you as a really talented guy is
able to create a working samba-share access for our dx.
These are compiled with my prototype kernel.
@Steffen_2009 here you go bro
Click to expand...
Click to collapse
Is it possible to find the missing point ?
Has someone managed to access ROM/kernel native a smb device ?