You are on page 1of 15

Menu

Remember Me? Forgot your password?


Sign in
Register
Login
News
Forum
XDA Assist
XDA TV
Apps
Tablets
Watches
Security
Youtube
Google+
Facebook
Twitter

Buy and sell phones


xda-developers Barnes & Noble Nook Tablet Nook Tablet Android Development SMB/CIFS/NFS
Network Shares with CifsManager by succulent
FORUMS
Nook Tablet Android Development
Nook Tablet General
Nook Tablet Q&A, Help & Troubleshooting
Nook Tablet Accessories
Nook Tablet Themes and Apps

Most Thanked
ALL-TIME
RECENT
3 Added cifs/tun modules support for CM7 alpha. Hopefully TEAM-B+
succulent OP2012-Feb-19 22:58
3 How to compile modules (cifs.ko, slow-work.ko, nls_utf8.ko, and
succulent OP2012-Feb-04 17:05
2 I'm on windows 7 x64, using FileZilla 0.9.37 beta. Also have my
tgraves2012-Feb-10 10:39
2 I've compiled cifs, nls_utf8, slow-work, and tun modules for CM7,
succulent OP2012-Feb-09 23:13
1 (quote) You're not giving me enough information here. Are you
succulent OP2012-Mar-05 18:26
1/15

XDA PORTAL POSTS


XDA PORTAL POSTS

Sunday Debate: How Can We Get a No-Compromise Phone?


Join us in a fun Sunday Debate on Compromises. Come with your opinions and more
02 Aug 2015
By Mario Toms Serrafero

PSA: You Can Optimize Your Note 4s Recents Menu & RAM
The Note 4 never had the fastest Recents Menu, and despite its 3GB of RAM, more
01 Aug 2015
By Mario Toms Serrafero

XDA Picks: Best Apps of the Week (July 25 Aug 1)


Apps are at the front and center of any smartphone experience, and with over a more
01 Aug 2015
By Mario Toms Serrafero

2/15

Voices Of XDA: Orbiting The Earth With Android


Editors note: This weeks feature has been written by forum more
01 Aug 2015
By Mathew Brack

Tweet
Like
+1

SMB/CIFS/NFS Network Shares with CifsManager


241 posts
Thanks Meter: 448
By succulent, Senior Member on 4th February 2012, 09:44 PM
View Profile View Forum Posts
Post Reply Subscribe to Thread Email Thread
Page 1 of 3 1 2 3
Hello,

WARNING: Perform at your own risk. This won't brick your Nook Tablet
I've added NFS modules.
I've compiled cifs, nls_utf8, slow-work, and tun modules for CM7 Alpha. They're down in the attachment.
Stock modules are also in the attachment.
If you have audio lag while streaming 720p/1080p, it's because of software encoding and didn't add
CIFSMaxBufSize=130048 to option. I've tested videos in stock with hardware video decoding and there was
no audio lag with HD movies. 1080p videos might have a few stutters. CM7 Alpha/Beta, in my test does not
support H/W decoding yet.
I've been using cifs built in to the kernel for a while with CM7 beta, it's better than using modules. I've talked
to Celtic, and Gonz will have cifs/tun built into the kernel in later release.
I've tested HW decoding in CM7 and both 720p/1080p struggled. CIFS transfer over wifi is slow and it's
suggested that you use NFS.
3/15

*UPDATE in CM7: For 720p/1080p MP4 videos, streaming through ES File Explorer is perfectly fine.
Through CIFS, the videos stutter. You can try to play around with options like rsize=130048,wsize=4096.
130048 (127x1024) is the max size.
HW Decoding is limited to 3GP, 3G2, MP4, M4V, MKV, WEBM, H.264 (Baseline/Main/High profile) up to
1920x1080, MPEG-4 Simple/Advanced Simple profile up to 1920x1080, & H.263

https://market.android.com/details?i...er.cifsmanager
Description
Access your CIFS/NFS network shares with your Android device. (root needed)
Manage your cifs/nfs network shares on your Android device (root access needed). This little app allows you
to conveniently mount/unmount your network accessible file resources and access your data transparently via
your favourite Android app (playing music / videos, accessing documents etc.).
credit - f3d0r
How to setup cifsmanager,
http://iamafanof.wordpress.com/2010/...h-cifsmanager/
In the settings,
path to cifs.ko -> /PATH/slow-work.ko:/PATH/cifs.ko:/PATH/nls_utf8.ko
change PATH to the location where you put your *.ko files. I'd recommend putting the modules on your
sdcard root. It's much easier to enter the location.
When creating new share,
Options -> iocharset=utf8,directio,CIFSMaxBufSize=130048
*no spaces between comma
If you want your mount point to be on your sdcard,
Mount Point -> /sdcard/PATHNAME
change PATHNAME to your desired folder name.
I've attached tun.ko to the attachment. It load via insmod, but not tested.

4/15

5/15

For NFS modules, you can insmod them or use CIFSManager to load them.
By terminal insmod
Open up terminal
# su *give superuser access
# cd sdcard
# insmod exportfs.ko
# insmod sunrpc.ko
# insmod lockd.ko
# insmod auth_rpcgss.ko
# insmod rpcsec_gss_krb5.ko
# insmod nfs.ko
Alternatively using cifsmanager to load module

path to cifs.ko ->


/sdcard/exportfs.ko:/sdcard/sunrpc.ko:/sdcard/lockd.ko:/sdcard/auth_rpcgss.ko:/sdcard/rpcsec_gss_krb5.ko:/sdcard/nfs.
change PATH to the location where you put your *.ko files. I'd recommend putting the modules on your
sdcard root. It's much easier to enter the location.
I don't know if auth_rpcgss.ko and rpcsec_gss_krb5.ko are needed. I've never used NFS before. These
modules loaded via insmod, but I can't test them.
-- specify the Share Path as <server>:<path> (e.g. 192.168.1.17:/mnt/Spajz)
-- Username and Password fields are ignored in this case
You can use terminal to mount NFS,
$ su
$ busybox mount -o nolock,ro,hard,intr,vers=3 -t nfs 192.x.x.x:/your/nfs/share /mnt/sdcard/share

cm7_mods_2.6.35.7-TEAM-B+.zip <- contains cifs, nls_utf8, tun, and slow-work modules for CM7 Alpha
(NEW)
cm7_mods_2.6.35.7-ge8ff105.zip <- contains cifs, nls_utf8, tun, and slow-work modules for CM7 Beta
(OLD)
cm7_mods_2.6.35.7 <- contains cifs, nls_utf8, tun, and slow-work modules for stock 1.4x.
nfs-cm7-2.6.35.7-TEAM-B+ <- contains exportfs, sunrpc, auth_rpcgss, rpcsec_gss_krb5, lockd, and nfs
modules for CM7 Alpha (NEW)
nfs-cm7-2.6.35.7 <- contains exportfs, sunrpc, auth_rpcgss, rpcsec_gss_krb5, lockd, and nfs modules for stock
1.4x.
Attached Files
cm7_mods_2.6.35.7-ge8ff105.zip - [Click for QR Code] (115.8 KB, 236 views)
stock_mods_2.6.35.7.zip - [Click for QR Code] (115.8 KB, 235 views)
cm7_mods_2.6.35.7-TEAM-B+.zip - [Click for QR Code] (110.5 KB, 231 views)
nfs-cm7-2.6.35.7-TEAM-B+.zip - [Click for QR Code] (177.2 KB, 253 views)
nfs-stock-2.6.35.7.zip - [Click for QR Code] (177.1 KB, 321 views)
Last edited by succulent; 6th March 2012 at 12:55 AM. Reason: Update details
Reply
6/15

The Following 11 Users Say Thank You to succulent For This Useful Post: [ View ]
brentb636(10th February 2012), edwardxi(18th March 2012), iCE-dOGG(10th February 2012), kenblat(5th
February 2012), Kuzma30(8th June 2012), lavero.burgos(7th February 2012), M0nkey(8th March 2012),
meghd00t(1st March 2012), obijon77(10th February 2012), servergod(4th February 2012), slgooding(6th
February 2012)

succulent
View Profile View Forum Posts
4th February 2012, 10:05 PM |#2

OP Senior Member
Thanks Meter: 448
More
241 posts
Join Date:Joined: Dec 2010
Less

How to compile modules (cifs.ko, slow-work.ko, nls_utf8.ko, and tun.ko).


I am assuming you know how to install tools and dependency packages for compiling kernel source.
Toolchain: CodeSourcery compiler version Sourcery G++ Lite 2010q1-202 for ARM GNU/Linux
Build Host OS: Ubuntu 11.10 in Oracle VM Virtualbox
Source: nook_tablet_1-4.tar.gz
My toochain path -> /HOME/arm-2010q1/
My Nook Tablet source path -> /HOME/distro/
In Ubuntu terminal,
> export CROSS_COMPILE=$HOME/arm-2010q1/bin/arm-none-linux-gnueabi> export ARCH=arm
> cd $HOME/distro/kernel/android-2.6.35/
> make android_4430BN_defconfig
# Create a .config file
> make
# This can take a while, depending on your processor(s). It will compile your kernel, zImage.
# You can add -j(cpu+1), -j3 or j5
> cp kernel/slow-work.* fs/cifs
> gedit fs/cifs/slow-work.c
# Change the following two lines of code in slow-work.c and save.
Code:
round_jiffies(jiffies + SLOW_WORK_CULL_TIMEOUT));
->
jiffies + SLOW_WORK_CULL_TIMEOUT);
round_jiffies(jiffies + SLOW_WORK_OOM_TIMEOUT));
->
jiffies + SLOW_WORK_OOM_TIMEOUT);

7/15

> gedit /fs/cifs/Makefile


# Add slow-work.o
Code:
obj-$(CONFIG_CIFS) += cifs.o slow-work.o

> make menuconfig


Code:
Device Driver ->[*] Network device support -> <M> Universal TUN/AP
File systems ->[*] Network File Systems - > <M> CIFS support
File systems ->[*] Network File Systems - > <M> NFS client support
File systems -> -*- Native language support -> <M> NLS UTF-8

> make modules


# cifs.ko location -> fs/cifs/cifs.ko
# slow-work.ko location -> fs/cifs/slow-work.ko
# nls_utf8.ko location -> fs/nls/nls_utf8.ko
# nfs.ko location -> fs/nfs/nfs.ko
# tun.ko location -> drivers/net/tun.ko
# To reduce modules size, we need Android NDK.
> $HOME/NDKPATH/linux-x86/bin/arm-linux-androideabi-strip --strip-debug PATH/MODULE.ko
# Manual loading modules
> insmod /PATH/cifs.ko CIFSMaxBufSize=130048 cifs_mic_rcv=1 cifs_max_pending=20 forcedirectio=1
# Manual remove modules
> rmmod MODULENAME *ie rmmod cifs, rmmod slow-work
# View loaded modules
> lsmod
# Modify network throttling in Windows 7
# Open regedit
# HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Multimedia\SystemProfile
# Edit entry NetworkThrottlingIndex" (default value is 10); set it to FFFFFFFF
# Reboot
# Disable RDC in Windows 7
# Go to Programs and features > Turn Windows features on or off > Uncheck Remote Differential
Compression
# Loading NFS modules
> insmod /PATH/sunrpc.ko
> insmod /PATH/lockd.ko
> insmod /PATH/nfs_acl.ko
> insmod /PATH/nfs.ko
> busybox mount -t nfs -o nolock,ro,hard,intr,tcp,vers=3,rsize=32768 IP:/SHAREPATH /MOUNTPATH

Source credits,
http://forum.xda-developers.com/showthread.php?t=837170
Last edited by succulent; 6th March 2012 at 12:25 AM. Reason: errors
Reply
8/15

The Following 3 Users Say Thank You to succulent For This Useful Post: [ View ]
lavero.burgos(20th February 2012), M0nkey(8th March 2012), slgooding(6th February 2012)
slgooding
View Profile View Forum Posts
6th February 2012, 11:29 PM |#3
Senior Member
Thanks Meter: 35
More
173 posts
Join Date:Joined: Oct 2011
Less
Thanks a ton for this!!! It works great.
However, I have trouble unmounting... Is there a trick to doing this? It says that it is unable to...
Also, how does the mounting work after your device goes to sleep? Does everything connect as it should?
Reply
succulent
View Profile View Forum Posts
6th February 2012, 11:48 PM |#4

OP Senior Member
Thanks Meter: 448
More
241 posts
Join Date:Joined: Dec 2010
Less
Quote:
Originally Posted by slgooding
Thanks a ton for this!!! It works great.
However, I have trouble unmounting... Is there a trick to doing this? It says that it is unable to...
Also, how does the mounting work after your device goes to sleep? Does everything connect as it should?
Hey,
Un-mounting work when the file from the share is no longer access. If the file is still being used, it will not
un-mount, so you have close the app you're using. I do have problem un-mounting when viewing image with
PerfectViewer. For some reason the image is still being used even if you close the app but I've had that
problem even with NC. To un-mount, just press menu and un-mount all or long press on the share you want to
un-mount.
When your NT sleeps, the Wi-Fi get disabled. It will reconnect once Wi-Fi get reestablish.
Everything work, I can stream videos, books, images, apps, musics. etc..
9/15

Reply
slgooding
View Profile View Forum Posts
7th February 2012, 12:09 AM |#5
Senior Member
Thanks Meter: 35
More
173 posts
Join Date:Joined: Oct 2011
Less
Fantastic. I was able to get it to unmount after rebooting (after mounting again after boot). I must have had an
app that was stubborn.
I'm surprised that more people aren't interested in this app. I guess they don't understand what they can do
with it?

Reply
lavero.burgos
View Profile Visit Homepage View Forum Posts Follow on Twitter Donate to Me
7th February 2012, 06:45 AM |#6

Senior Member
Guayaquil
Thanks Meter: 1,327
Donate to Me
More
2,533 posts
Join Date:Joined: Mar 2011

Less
Omg I just realized about this, im interested in the tun.ko. module so I can set up a vpn ill test tomorrow. Can
someone confirm is working?
Edit1: I confirm that the .ko files work with cifsmanager flawlesly
, testing tun.ko now first with
DroidVPN and OpenVPN after, will report back.
Edit2: tun.ko WORKS!!! woohoo, eather if i put it in /sdcard/modules/ or /system/lib/modules/ works and
cifsmanager does the job loading all the .ko files via insmod
Pandora right now.
~ Veronica
Sent from XDA premium using my Nook Tablet :P
Last edited by lavero.burgos; 8th February 2012 at 01:15 AM.
Reply
lavero.burgos
10/15

. Tested with DroidVPN and im using

View Profile Visit Homepage View Forum Posts Follow on Twitter Donate to Me
9th February 2012, 08:40 PM |#7

Senior Member
Guayaquil
Thanks Meter: 1,327
Donate to Me
More
2,533 posts
Join Date:Joined: Mar 2011

Less
Ok im all setup via LAN for stream my media succesfully but now i want to stream my media anywhere with
a wireless connection (WAN).
I have been doing my research for 2 days and so far i have tried setting up a FTP filezilla server with a no-ip
host ip on windows pc but it doesn't work neather with cifsmanager nor ES file explorer FTP tab, vpn is not a
go for me because stream videos can be choppy, anyway what i want is to find a reliable way to do this at list
for music and videos, i have been searching but all i find is how to do it "local" which i already have setup and
running. So big question here is does anybody know a reliable way to reach this - Windows to Android
media streaming?
~ Veronica
Reply
slgooding
View Profile View Forum Posts
9th February 2012, 08:57 PM |#8
Senior Member
Thanks Meter: 35
More
173 posts
Join Date:Joined: Oct 2011
Less
Choppy is a generic term. The video player could cause it to play choppy (VPlayer is choppy for me, while
MX Player is smooth).
Unfortunately there are a LOT of variables that will affect the performance. The VPN itself shouldn't really
have an impact on how smooth the video plays (at least not on the tablet). The issue is most likely related to
your internet connection and the software you are using to stream the video.
We would need a lot more details to determine what is going on, and you should probably create a new thread
for this question.

Quote:
Originally Posted by lavero.burgos
11/15

Ok im all setup via LAN for stream my media succesfully but now i want to stream my media anywhere with
a wireless connection (WAN).
I have been doing my research for 2 days and so far i have tried setting up a FTP filezilla server with a no-ip
host ip on windows pc but it doesn't work neather with cifsmanager nor ES file explorer FTP tab, vpn is not a
go for me because stream videos can be choppy, anyway what i want is to find a reliable way to do this at list
for music and videos, i have been searching but all i find is how to do it "local" which i already have setup and
running. So big question here is does anybody know a reliable way to reach this - Windows to Android
media streaming?
~ Veronica
Reply
lavero.burgos
View Profile Visit Homepage View Forum Posts Follow on Twitter Donate to Me
9th February 2012, 09:38 PM |#9

Senior Member
Guayaquil
Thanks Meter: 1,327
Donate to Me
More
2,533 posts
Join Date:Joined: Mar 2011

Less
Quote:
Originally Posted by slgooding
Choppy is a generic term. The video player could cause it to play choppy (VPlayer is choppy for me, while
MX Player is smooth).
Unfortunately there are a LOT of variables that will affect the performance. The VPN itself shouldn't really
have an impact on how smooth the video plays (at least not on the tablet). The issue is most likely related to
your internet connection and the software you are using to stream the video.
We would need a lot more details to determine what is going on, and you should probably create a new thread
for this question.
Thanks but your answer does not help my question is explicit, anyways im going to try with VLC and report
back, i know in the end i will figure it out. I could probably make a tutorial once i figure it out if anyone is
interested.
~ Veronica
Reply
The Following User Says Thank You to lavero.burgos For This Useful Post: [ View ]
LiuAnshan(9th February 2012)
LiuAnshan
12/15

View Profile View Forum Posts


9th February 2012, 09:50 PM |#10
Senior Member
San Antonio
Thanks Meter: 10
More
121 posts
Join Date:Joined: Dec 2010

Less
Quote:
Originally Posted by lavero.burgos
Thanks but your answer does not help my question is explicit, anyways im going to try with VLC and report
back, i know in the end i will figure it out. I could probably make a tutorial once i figure it out if anyone is
interested.
~ Veronica
I'd be interested once you figure it out.
Sent from my Nexus S 4G using Tapatalk
Reply
slgooding
View Profile View Forum Posts
9th February 2012, 11:08 PM |#11
Senior Member
Thanks Meter: 35
More
173 posts
Join Date:Joined: Oct 2011
Less
Have you looked into NeoRouter? It's sort of like a vpn (like Hamachi) and may have less overhead than the
VPN you tried. I have it running on my windows machine along with my android devices.
Reply
Read More
Post Reply Subscribe to Thread
Page 1 of 3 1 2 3
Previous Thread Next Thread
Thread Tools

Search this Thread


Search this Thread:

Show Printable Version


Email this Page

Advanced Search
Display Modes
Linear Mode
13/15

Switch to Hybrid Mode


Switch to Threaded Mode

Top Threads in Nook Tablet Android Development by


ThreadRank
[ROM][UNOFFICIAL] CM-12.1 Builds for Acclaim 1GB-Ram/16GB-Nand 21/07
6th July 2015
Nook Tablet Android Development
Theme your phone like a boss.
Find unique themes for your phone!
New Method : How To Install Windows 10 for Phone in any unsupported Lumia device
3rd March 2015
Windows Phone 8 General
[OFFICIAL THREAD] Lenovo K3 NOTE [CWM/ROOT]
8th May 2015
Miscellaneous Android Development
Best way to modify your UI
Get Xposed framework, the fastest and easiest way to customize every aspect of your phone's UI.
[SUPER MOD][4.3+/5.1.1/M][ v4.2.3 ] XTREMEMusic THE SOUND THAT YOU'VE NEVER
HEARD!
13th February 2015
Android Software Development
[cm12]Colors Themes+[Dark Theme] updated[27/1/2015]
18th January 2015
Android Themes
[APP] Heart Rate OS for Android Wear with Google Fit sync
16th February 2015
Android Wear General
xda-developers Barnes & Noble Nook Tablet Nook Tablet Android Development SMB/CIFS/NFS
Network Shares with CifsManager by succulent

XDA Developers was founded by developers, for developers. It is now a valuable resource for people who
want to make the most of their mobile devices, from customizing the look and feel to adding new
functionality.
Are you a developer?

Sitemap

More info
Contact
Rules
Change Log
Suggest Content
Privacy Policy
14/15

XDA App
Root Any Device

Copyright xda-developers. Hosted by Leaseweb


We're Social

15/15

You might also like