Jump to content

cifs.ko and nls_utf8.ko for our liquid. Mount SAMBA sharing folder directly on you phone


Recommended Posts

Posted (edited)

THANKS TO xPashkin we now have cifs module for our liquid!!

working on froyo LCR 1.1.2 kernel 2.6.29.

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

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

DOWNLOAD LINK: link

MIRROR: megaupload

CifsManager download

Market direct link

Usage:

mount -t cifs //<ip>/<share>/<mount point> -o username=<user>,password=<password>
e.g. mount
insmod /system/lib/modules/cifs.ko

mount -t cifs //192.168.1.100/public /sdcard/public -o username=guest
unmount
umount /sdcard/public
you can use GScript application for the mount and umount scripts e.g. CifsManager configuration
- Just copy *.ko files to /system/lib/modules/ (you have to create this directory: "makedir -p /system/lib/modules/" ).

- configure CifsManager to use insmod instead of modprobe to load the module and set the path to cifs.ko to /system/lib/modules/cifs.ko


- add a share point e.g.:

Share Path:  192.168.1.100/public			(without // at start)

Mount Point:  /sdcard/share/public			(create the directory with "makedir -p /sdcard/share/public" )

Username:	samba username				 (use "guest" user if no autentication required.. error if not)

Password:	 samba password				  (leave blank if no password required)

Option:

Edited by skakz
Guest snootched
Posted
on xda i found that it's possible to mount a samba folder on a android device but we need a module in the kernel cifs.ko.

I'm wondering if there is any chance to have this module in our device, maybe in cyanogen rom or LCR.

I know that we don't have source for new froyo kernel.. but can't we just take this module from another kernel with same arch?

Depending on what your goal is here - ES File Explorer can already browse CIFS shares. I've copied files over wireless from my linux box to the liquid via CIFS without issue. There's a little button in the top right of the app.. for local/LAN/FTP/Bluetooth.. choose LAN.

Posted
Depending on what your goal is here - ES File Explorer can already browse CIFS shares. I've copied files over wireless from my linux box to the liquid via CIFS without issue. There's a little button in the top right of the app.. for local/LAN/FTP/Bluetooth.. choose LAN.

my goal is live playing video/music on android device from a samba folder in another computer via wifi.. you can't do it with ES File Explorer.. instead you have to mount the folder

Guest snootched
Posted
my goal is live playing video/music on android device from a samba folder in another computer via wifi.. you can't do it with ES File Explorer.. instead you have to mount the folder

Gotcha. Well one option (which I've not looked into..) but you can probably do this with uPNP.

Posted

do you mean something like andromote ? yes it should work with a UPnP AV media server.. but I only have a samba server..

Guest snootched
Posted
do you mean something like andromote ? yes it should work with a UPnP AV media server.. but I only have a samba server..

Yes, exactly something like that. You will need to install uPNP server software on your samba server - or is this just a NAS appliance? If it's a windows/linux/mac box you have several options for uPNP servers that you can install. You can run uPNP and samba simultaneously if you want - just depends on what your source of this samba server is.

I think uPNP is probably the easiest to implement at this point without native samba share mounting available by default.

Posted

i've tryed to setup a mediatomb upnp mediaserver on my linux machine and tryed to play video on phone with andromote but didn't work..

it copies video locally first and then play it..

Posted

You can try install uShare on your linux server. It's a uPnP server. I use it sometimes to stream to my 360, which also requires uPnP server.

Guest snootched
Posted
i've tryed to setup a mediatomb upnp mediaserver on my linux machine and tryed to play video on phone with andromote but didn't work..

it copies video locally first and then play it..

I'll try when I get a chance.. but I think what you need is a uPNP renderer + uPNP server. I think xbmc does rendering, but cannot recall off the top of my head.. I'll try to give it a go when I get home.

Posted

tryed also uShare.. but i need a DLNA client player.. (a working one).. maybe uMediaPlayer on the market does the job but i've to try..

Guest reekotubbs
Posted
Yes, exactly something like that. You will need to install uPNP server software on your samba server - or is this just a NAS appliance? If it's a windows/linux/mac box you have several options for uPNP servers that you can install. You can run uPNP and samba simultaneously if you want - just depends on what your source of this samba server is.

I think uPNP is probably the easiest to implement at this point without native samba share mounting available by default.

I have the same issue, but my device is a NAS applicance. I put andromote on my phone and it won't find my device. My device is a UPnP and dlna server with a web interface, but it also allows browsing by cifs.

I am trying to busybox insmod cifs, but I guess my kernel does not have the cifs.ko.

Can we add this functionality with just an install?

Posted
I have the same issue, but my device is a NAS applicance. I put andromote on my phone and it won't find my device. My device is a UPnP and dlna server with a web interface, but it also allows browsing by cifs.

I am trying to busybox insmod cifs, but I guess my kernel does not have the cifs.ko.

Can we add this functionality with just an install?

in order to insmod a module, your kernel need to have been compiled with the feature declared as module. Moreover the module need to have been compiled with the kernel you are using

Guest reekotubbs
Posted
in order to insmod a module, your kernel need to have been compiled with the feature declared as module. Moreover the module need to have been compiled with the kernel you are using

Thanks. I am on stock rooted froyo 2.2 software 3.29. are there any roms with cifs built into the kernel?

Posted (edited)
Thanks. I am on stock rooted froyo 2.2 software 3.29. are there any roms with cifs built into the kernel?

no, there is not. But as soon we will be able to have a really well working custom kernel, we will try integrate it in Liquid Community Rom (+other modules i miss)

Edited by malez
Posted
no, there is not. But as soon we will be able to have a really well working custom kernel, we will try integrate it in Liquid Community Rom (+other modules i miss)

whould be great :)

  • 4 weeks later...
Posted

in the meantime we wait kifs.ko for our liquid I managed to watch streaming video with AndroStream. It use a VLC server to stream video to your phone. The AndroStream server application is avaiable for Windows computer's but, since vlc is avaiable for Linux, I succesfully compiled vlc (without X or qt interface) for my linux box and just started it with default http interface.

Guest xaueious
Posted

oc kernels are from kernel source. hop on irc and you should be able to figure out what we need.

Posted
oc kernels are from kernel source. hop on irc and you should be able to figure out what we need.

please explain better.. are you talking about froyo kernel sources for acer liquid?

Guest Delnar_Ersike
Posted
please explain better.. are you talking about froyo kernel sources for acer liquid?

The boot.img's with overclocking enabled are all community-made and built from source. Because of this, missing modules within the kernel can be added as well to these community kernels. As for IRC, that's where a lot of the ROM devs gather (phhusson, vache, malez, koudelka, xian, etc.), so if you need any information or have information related to ROM/kernel development, you'll most likely get it answered or have it acknowledged on IRC (I think it's on freenode, and the channel is acer-liquid).

  • 2 weeks later...
Guest xPashkin
Posted (edited)

Two days of googling "how to compile android modules for your phone" and voila! B)

Tested on my Acer Liquid with official Eclair 2.1 (2.100.07), maybe with Liquid E will work too.

*UPD* for download link watch first post.

Edited by xPashkin
Posted
Two days of googling "how to compile android modules for your phone" and voila! B)

Tested on my Acer Liquid with official 2.100.07, maybe with Liquid E will work too.

yeeess :)

it's working with cifmanager from market!!!!!

thank you man!!!

please it would be great if you provide how do you managed to have this modules build for our device..

thank you again!! you really made my day!!!

Guest xPashkin
Posted (edited)

For compiling modules we need:

1) installed linux (i'm install ubuntu into VirtualBox)

2) kernel sources

( for Acer Liquid 2.100.07 called App Guide B)

http://global-download.acer.com/GDFiles/Do...&SC=EMEA_23 )

3) toolchains

http://www.codesourcery.com/public/gnu_too...nux-gnu.tar.bz2

- unpack kernel [kernel sources folder] (for example ~/acer/kernel)

- unpack toolchains [toolchains folder] (~/acer/toolchains)

export ARCH=arm

export CROSS_COMPILE=[toolchains folder]/arm-2009q3/bin/arm-none-linux-gnueabi-

cd [kernel sources folder]

make help

- search defconfig for our device (acer-q8k-a1-dvt_defconfig)

make acer-q8k-a1-dvt_defconfig

- then enable cifs и nls-utf8 modules

make menuconfig

*UPD exclude some debug info to reduce size

Kernel hacking ->

[ ] Compile the kernel with debug info

File Systems -> Network File Systems ->

switch

<M> CIFS support (advanced network filesystem, SMBFS successor)

[*] Support legacy servers ...

[*] CIFS extended attributes

[*] CIFS POSIX Extensions

File Systems -> Native language support ->

switch

<M> NLS UTF-8

- quitting with save config

make modules_prepare

- then make our modules

make M=fs/cifs

make M=fs/nls

compiled modules you find in [kernel sources folder]/fs/cifs/cifs.ko and [kernel sources folder]/fs/nls/nls_utf8.ko

Edited by xPashkin

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.