Jump to content

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


Recommended Posts

Posted

interesting, but could you please give a more detail instruction how to apply the module to existed ROMs, such as CM6.1 or LCR?

It will be cool if some devs can integrate this module to his/her ROMs.

Guest xPashkin
Posted (edited)

delete this post

Edited by xPashkin
Posted (edited)
interesting, but could you please give a more detail instruction how to apply the module to existed ROMs, such as CM6.1 or LCR?

It will be cool if some devs can integrate this module to his/her ROMs.

updated first post, go there to see how to use this module.

Edited by skakz
  • 1 month later...
Posted

I don't know why, but every time I try to use this module my phone crashes and reboots...

I use firmware 4.504b without any cooked Rom, but got root permissions.

Something more to do to make this pretty useful module work?

Sorry for my poor English, I hope you'll understand...

Guest xPashkin
Posted (edited)
I don't know why, but every time I try to use this module my phone crashes and reboots...

I use firmware 4.504b without any cooked Rom, but got root permissions.

Something more to do to make this pretty useful module work?

Sorry for my poor English, I hope you'll understand...

it seems that 4.504b has different kernel then 4.002.14 and 2.100.07

i can only suggest you to use one of this firmwares or custom like LCR

Edited by xPashkin
Guest rjscosta
Posted

I have a problem: My samba shares work with userland programs and windows PC and it mounts successfully on my Liquid E with LCR2 however the directory where it is mounted continues blank.

Do you have any suggestions?

Posted

try to mount manually or in cifmanager use username "guest" if it is a public share without password..

Posted

to xPashkin and skakz.

I have forgotten to publicly thank you for your work (even if you are in credits it is not enough for me).

So I would like to thank you for you work that is now natively integrated into LCR-F 2.0.

Thank you

Guest rjscosta
Posted

I think it must have something to do with permissions:

Using adb shell:

# insmod /system/lib/modules/nls_utf8.ko

# insmod /system/lib/modules/cifs.ko

# mount -t cifs //192.168.1.1/p2p /sdcard/cifs/box/p2p --verbose -o username=******,password=*******

ls /sdcard/cifs/box/p2p
Then the ls command successfully list the files on the share. However, the programs on my device screen show a blank folder... Permissions as listed on ADB shell:
# ls -l 

drwxrws---   69 1000	 1001			 0 Jan 19 00:28	   p2p

The folder was created on a regular userland file manager before mounting, so, it should be accessible by userland programs. Do you have any more ideas?

Posted

Try to chmod 777 the p2p directory on the server..

However If 'ls' command shows correctly files in the mounted directory I think it should work with every other program.. at least it works for me with es file manager or rockplayer.. which program did you tried with? I can try too and let you know..

@malez: thanks to you for LCR 2, my favorite custom rom :-)

Guest rjscosta
Posted (edited)

It was es file manager I tried.

I don't want to change permissions on the server (network is shared by two households 400m apart connected by wi-fi and some folders are for exclusive use of one household), and I shouldn't need to because it works on the root shell.

As the ABD shell runs as root (I think) that might be why it works and why programs do not list the directory.

Update: It is permission related on the device.

On the Android Terminal Emulator when I try to list the directory I get permission denied. After i run "su" on the terminal emulator I can list the directory.

Update 2: It is the mount command that is changing permissions. When unmounted on ES file Manager I see the properties folder as "Readable: Yes" "Writable: Yes", after mounting the the permissions change to Readable: No" "Writable: No".

What might be wrong? Does LCR have something like fstab on desktop linux that specifies permissions to the mount command?

Edited by rjscosta
Posted

Try in es file manager settings the option 'browse as root'

Guest rjscosta
Posted
Try in es file manager settings the option 'browse as root'

Browse as root works as it should from the experience on the Terminal Emulator.

It is the mount command that is changing permissions. When unmounted on ES file Manager I see the properties folder as "Readable: Yes" "Writable: Yes", after mounting the the permissions change to Readable: No" "Writable: No".

What might be wrong? Does LCR have something like fstab on desktop linux that specifies permissions to the mount command?

Posted (edited)

Try to add -o rw to the mount command.. sorry but I'm just guessing

Edit:

Try also to create a public sharing directory with no password and mount it using as username 'guest' as described in 1st post.. just to know if it is a credentials problem..

Edited by skakz
Guest fantong
Posted

The latest 2.1 rom is 2.100.27.

But I always got reboot while mount share folder, how can I get it fixed.

Or is there any way to compile it by myself, I'm using ubuntu now and I can do some basic compilation work.

But I just see the only one version Acer source code -app guide , is this works for 2.100.27?

Guest xPashkin
Posted (edited)
The latest 2.1 rom is 2.100.27.

But I always got reboot while mount share folder, how can I get it fixed.

Or is there any way to compile it by myself, I'm using ubuntu now and I can do some basic compilation work.

But I just see the only one version Acer source code -app guide , is this works for 2.100.27?

This problem is similar to 4.504b.

IMHO all last acer liquid and liquid e firmwares have kernels with same sources, but compiled with different configs.

With kernel sources acer include only one config - acer-q8k-a1-dvt_defconfig. With minimal changes i use it to compile this modules (with 2.100.07 and 4.002.14 works perfectly)

But it seems that kernels in 4.504b and 2.100.27 compiled with changed some critical config parameters for support cifs.ko.

You can try to pick this parameters, but without knowledge this may take long time.

Edited by xPashkin
Guest xPashkin
Posted
to xPashkin and skakz.

I have forgotten to publicly thank you for your work (even if you are in credits it is not enough for me).

So I would like to thank you for you work that is now natively integrated into LCR-F 2.0.

Thank you

I'm glad that my work is useful ;)

Guest xPashkin
Posted
Does LCR have something like fstab on desktop linux that specifies permissions to the mount command?

Unlikely.. I'm just now test samba share with user/password and found no problem.

I'm use rooted 4.002.14, load cifs.ko and mount by gscript. LCR 2 based on this firmware and i don't think that problem in it.

Try to create folder for mount in root of sdcard.

How Skakz said, try to create public share without password.

Can you write more detailed configuration of your samba share?

Guest rjscosta
Posted

Solved!

I guess it has nothing to do with server permissions.

I noticed on the Terminal that all regular files/folders on /mnt/sdcard are owned by user 1000 and group 1015, so i added the options uid=1000,gid=1015 to the mount command (and on CifsManager share options) and everything works.

But I'm still wondering why the mount command without any options mounts the folder with gid=1001 and your "mount" (which busybox actually) mounts the folder with the correct uid and gid. ;)

Guest xPashkin
Posted
Solved!

I guess it has nothing to do with server permissions.

I noticed on the Terminal that all regular files/folders on /mnt/sdcard are owned by user 1000 and group 1015, so i added the options uid=1000,gid=1015 to the mount command (and on CifsManager share options) and everything works.

But I'm still wondering why the mount command without any options mounts the folder with gid=1001 and your "mount" (which busybox actually) mounts the folder with the correct uid and gid. ;)

Hmm, i have no idea why is this happening..

Thats my folder for share:

ls -l /mnt/sdcard

......

d---rwxr-x system   sdcard_rw		  2010-11-19 18:47 storage

......
system(uid=1000) sdcard_rw(gid=1015) after mounting:
......

drwxrwsrwx system   system			2010-12-22 19:44 storage

......
system(uid=1000) system(gid=1001) #adb shell mount
......

//192.168.1.1/storage /mnt/sdcard/storage cifs rw,unc=\\192.168.1.1\storage,username=guest,addr=192.168.1.1,posixpaths,acl,rsize=16384,wsize=57

44 0 0
in gscript my mount command:
mount -o username=guest,iocharset=utf8 -t cifs //192.168.1.1/storage /sdcard/storage

Guest fantong
Posted

I had flashed back to 2.100.7 and it works perfectly.

But once I added iocharset=utf8 to the options box, it said that can not access needed library.

How can get it work with utf8 encode, my filename in my local charset are all show ??? in the file explorer.

Thanks

Guest xPashkin
Posted (edited)
I had flashed back to 2.100.7 and it works perfectly.

But once I added iocharset=utf8 to the options box, it said that can not access needed library.

How can get it work with utf8 encode, my filename in my local charset are all show ??? in the file explorer.

Thanks

For support non latin characters nls_utf8.ko kernel module needed.

CifsManager can't load this module, but you can load it from gscript or adb shell:

insmod /sdcard/cifs/nls_utf8.ko

Edited by xPashkin
Posted (edited)

works great with my Liquid for a long time, 5 star!

Edited by ctos
Posted (edited)
For support non latin characters nls_utf8.ko kernel module needed.

CifsManager can't load this module, but you can load it from gscript or adb shell:

insmod /sdcard/cifs/nls_utf8.ko

I requested the feature to dev, and the latest version cifsmanager has include load multiple modules from change log. I have a quick try but couldn't find how to load multiple modules.

Edited by ctos

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.