SlateDroid.com: Cifs Manager SAMBA Mount missing cifs.ko? - SlateDroid.com

Jump to content


  • 4 Pages +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Cifs Manager SAMBA Mount missing cifs.ko?

#1 User is offline   Enslave 

  • Advanced Member
  • PipPipPip
  • Group: Jr. Member
  • Topics: 1
  • Posts: 44
  • Joined: 28-March 11

Posted 21 April 2011 - 10:07 AM

Hello i found an app named cifs Manager to mount samba shares.

i want to mount my nas samba shares to watch films from it when i am at home.

But it fails due to not having cifs.ko in the current firmware, but it would be nice to "steal" it from some where else ^^
does any one know which tablet share the same cpu and does have the ability to mount NFS or Samba shares?

found via google:
http://forum.xda-dev...ad.php?t=837170

any one registered over XDA and does know if that .ko runs on our tablet?
or is it already inside the new firmware?

This post has been edited by Enslave: 21 April 2011 - 10:11 AM

0

#2 User is offline   desmo 

  • Advanced Member
  • PipPipPip
  • Group: Jr. Member
  • Topics: 37
  • Posts: 318
  • Joined: 12-June 10
  • LocationItaly

Posted 21 April 2011 - 11:29 AM

I some time ago I used an application to have access to my fonera 2.0N that doubles as a NAS (samba should be used as a protocol), and it worked.
Iphone 3GS
EEPC 1000Ha (Windows7+Debian)
Asus Pro57s(Ubuntu+WinVista)
HerotabC8 (Thunderstorm - ICS Alpha 1)
0

#3 User is offline   haberbe 

  • Advanced Member
  • PipPipPip
  • Group: Jr. Member
  • Topics: 3
  • Posts: 46
  • Joined: 26-March 11

Posted 21 April 2011 - 08:06 PM

i tired the zip file on the xda forum.... unless i am doing something wrong (which is always very possible) the file does not seem to work for our tab....
0

#4 User is offline   Enslave 

  • Advanced Member
  • PipPipPip
  • Group: Jr. Member
  • Topics: 1
  • Posts: 44
  • Joined: 28-March 11

Posted 22 April 2011 - 04:47 AM

@desmo ES Explorer is enought for accessing any samba share but it copy any file you want to open, to the internal flash or sd...

imagine open 700MB avi file to watch and it starts copy over wlan ouch
0

#5 User is offline   hokapoka 

  • Advanced Member
  • PipPipPip
  • Group: Jr. Member
  • Topics: 4
  • Posts: 48
  • Joined: 05-April 11

Posted 23 April 2011 - 03:22 AM

I've used astro to attach to a samba share without hitch. However that too was only copy tiny files accross to the tablet neve opening them.
0

#6 User is offline   haberbe 

  • Advanced Member
  • PipPipPip
  • Group: Jr. Member
  • Topics: 3
  • Posts: 46
  • Joined: 26-March 11

Posted 29 April 2011 - 10:34 AM

anyone solve this issue yet? Do we have a build of cifs.ko that we can use on our tab yet? I would like to be able to locally mount SAMBA shares to play video files over wifi.


I found this over on XDA.... http://forum.xda-dev...ad.php?t=837170
I am assuming we cannot make this ko yet because we do not yet have the kernal source or an otherwise booting kernal?

This post has been edited by haberbe: 29 April 2011 - 12:06 PM

0

#7 User is offline   Lubo 

  • Advanced Member
  • PipPipPip
  • Group: Jr. Member
  • Topics: 11
  • Posts: 122
  • Joined: 03-May 11
  • LocationEurope

Posted 05 May 2011 - 03:52 AM

View PostEnslave, on 22 April 2011 - 04:47 AM, said:

@desmo ES Explorer is enought for accessing any samba share but it copy any file you want to open, to the internal flash or sd...

imagine open 700MB avi file to watch and it starts copy over wlan ouch


Hi, i am trying to open avi file via smb share. From ES explorer i can view file, and i can play it :) no waiting (not sure if it copies file or not, but it starts playing instantly)

i have other problem - when i find avi file in ES explorer, it is unknown file type, so i have to tap on filename, and pop-up asks me what type is this file. I choose video and video starts to play with default internal android player. No subtitles, no extra options. I want to open it with different player. How to change default video player?
0

#8 User is offline   Lubo 

  • Advanced Member
  • PipPipPip
  • Group: Jr. Member
  • Topics: 11
  • Posts: 122
  • Joined: 03-May 11
  • LocationEurope

Posted 05 May 2011 - 10:16 AM

hi, as i understood, there is not module cifs.ko for our device yet

so, i readed whole topic about custom kernel, grabed git sources from Asure's link, and started compiling.

my steps:
1. Downloaded a copy of Sourcery G++;
2. folowed this step by steps;
3. cd into kernel directory;
4. cp config_dropad.config .config
5. ARCH=arm make menuconfig - enabled M for fs/cifs
6. ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- make prepare
7. ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- make modules_prepare
8. ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- make M=fs/cifs

compiler goes and cifs.ko is prepared quickly

9. ./adb push /usr/src/dropad/lubowork/cifs.ko /sdcard/
10. ./adb shell
11. insmod /sdcard/cifs.ko

and error in dmesg:
[13386.020586] cifs: Unknown symbol kmap
[13386.023917] cifs: Unknown symbol kunmap
[13386.025396] cifs: Unknown symbol kmap_atomic
[13386.025895] cifs: Unknown symbol kunmap_atomic

suggestions?

This post has been edited by Lubo: 05 May 2011 - 10:17 AM

0

#9 User is offline   j1nx 

  • Advanced Member
  • PipPipPip
  • Group: Jr. Member
  • Topics: 0
  • Posts: 58
  • Joined: 08-April 11

Posted 05 May 2011 - 10:28 AM

View PostLubo, on 05 May 2011 - 10:16 AM, said:

hi, as i understood, there is not module cifs.ko for our device yet

so, i readed whole topic about custom kernel, grabed git sources from Asure's link, and started compiling.

my steps:
1. Downloaded a copy of Sourcery G++;
2. folowed this step by steps;
3. cd into kernel directory;
4. cp config_dropad.config .config
5. ARCH=arm make menuconfig - enabled M for fs/cifs
6. ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- make prepare
7. ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- make modules_prepare
8. ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- make M=fs/cifs

compiler goes and cifs.ko is prepared quickly

9. ./adb push /usr/src/dropad/lubowork/cifs.ko /sdcard/
10. ./adb shell
11. insmod /sdcard/cifs.ko

and error in dmesg:
[13386.020586] cifs: Unknown symbol kmap
[13386.023917] cifs: Unknown symbol kunmap
[13386.025396] cifs: Unknown symbol kmap_atomic
[13386.025895] cifs: Unknown symbol kunmap_atomic

suggestions?


I did the exact same last week. Compiling the cifs.ko module is not that difficult. I indeed used Asure's git as well. He is the only one with a proper .config file.

Cifs.ko does not load because it first need slow-work.ko

Check the same thread for the hack to have it compile as a module. It failed for me and then time got in the way so I did not finished it.....

Maybe you can have a look.
0

#10 User is offline   Lubo 

  • Advanced Member
  • PipPipPip
  • Group: Jr. Member
  • Topics: 11
  • Posts: 122
  • Joined: 03-May 11
  • LocationEurope

Posted 06 May 2011 - 06:27 AM

ok, i need slow-work.ko

so, i made few changes in the kernel sources, and i have got compiled slow-work.ko

changes: in file kernel/Makefile replaced
obj-$(CONFIG_SLW_WORK) += slow-work.o
with
obj-m += slow-work.o

but when i do insmod slow-work.ko:

insmod: can't insert '/sdcard/slow-work.ko': invalid module format
and in dmesg:
slow_work: exports duplicate symbol slow_work_unregister_user (owned by kernel)

so, as i understood, kernel i am running on my tablet is not exactly the same as git source
My tablet runs latest c8clean

tablet uname -a: Linux localhost 2.6.32.9 #1453 PREEMPT Sat Mar 26 18:58:21 CST 2011 armv7l GNU/Linux

now i have compiled cifs.ko and slow-work.ko, but they do not load
how to continue?
0

#11 User is offline   j1nx 

  • Advanced Member
  • PipPipPip
  • Group: Jr. Member
  • Topics: 0
  • Posts: 58
  • Joined: 08-April 11

Posted 06 May 2011 - 08:26 AM

Hmm, that's exactly where I ended.

BTW: Did you compile the kernel before compiling the modules? I thought you needed to compile the kernel first to have the version reference file being created. Otherwise it can not put the kernel version into the module. (or something like that)
0

#12 User is offline   Lubo 

  • Advanced Member
  • PipPipPip
  • Group: Jr. Member
  • Topics: 11
  • Posts: 122
  • Joined: 03-May 11
  • LocationEurope

Posted 06 May 2011 - 08:38 AM

no, i didn't compile whole kernel
just module

but now i'm following dmesg errors and it seem that many of the exports declared in slow-work.c are duplicated when i try to insmod.

first was:
slow_work: exports duplicate symbol slow_work_unregister_user (owned by kernel) - i commented out this part in cource
next:
slow_work: exports duplicate symbol slow_work_register_user (owned by kernel) - comented this too
now:
slow_work: exports duplicate symbol delayed_slow_work_enqueue (owned by kernel)

it seems that these exports already loaded ?!
i will try commenting out few more :)

EDIT:
i commented out all exports in file slow-work.c and compiled
result:

# lsmod
slow_work 2720 0 [permanent], Live 0xb72a2000
pm28g_ts 7110 0 - Live 0xb7092000
IT7260_ts 4956 0 - Live 0xb708b000
uc6511 4484 0 - Live 0xb7084000
ft5x0x_asb_ts 5480 0 - Live 0xb707d000
pixcir_i2c_ts 7723 0 - Live 0xb7075000
ft5x0x_ts 5304 0 - Live 0xb706e000
mma7660 4075 1 - Live 0xb7068000
button_mid713 3313 0 - Live 0xb7062000
battery 5241 0 - Live 0xb705b000
s3c_bc 3824 0 - Live 0xb7055000
s3c_lcd 6726 0 - Live 0xb704e000
pvrsrvkm 246588 52 s3c_bc,s3c_lcd, Live 0xb7000000

but insmod cifs.ko not working again with same error:
[95741.694160] cifs: Unknown symbol kmap
[95741.697290] cifs: Unknown symbol kunmap
[95741.698707] cifs: Unknown symbol kmap_atomic
[95741.699204] cifs: Unknown symbol kunmap_atomic

so, problem have to be in those kmap/kunmap functions
these are some kind of memory management, i will try to insert them somewhere in source

can get info here

but... I will also try nfs mount. If it works, i will give up on this...


EDIT:
i guess this slow-work.ko module for other androids is patched somehow and it contains these needed functions: kmap kunmap kmap_atomic kunmap_atomic

This post has been edited by Lubo: 06 May 2011 - 09:27 AM

0

#13 User is offline   j1nx 

  • Advanced Member
  • PipPipPip
  • Group: Jr. Member
  • Topics: 0
  • Posts: 58
  • Joined: 08-April 11

Posted 06 May 2011 - 10:01 AM

Maybe I have time again this weekend to have a second look. (Not sure as the Turkey GP is also this weekend)

Maybe Asure can shine some light on the matter.
0

#14 User is offline   Lubo 

  • Advanced Member
  • PipPipPip
  • Group: Jr. Member
  • Topics: 11
  • Posts: 122
  • Joined: 03-May 11
  • LocationEurope

Posted 07 May 2011 - 11:50 AM

OK, i finaly built cifs.ko module !!!

here my lsmod:
# lsmod
cifs 231569 0 - Live 0xb72ed000
slow_work 2720 0 [permanent], Live 0xb72a2000

pm28g_ts 7110 0 - Live 0xb7092000
IT7260_ts 4956 0 - Live 0xb708b000
uc6511 4484 0 - Live 0xb7084000
ft5x0x_asb_ts 5480 0 - Live 0xb707d000
pixcir_i2c_ts 7723 0 - Live 0xb7075000
ft5x0x_ts 5304 0 - Live 0xb706e000
mma7660 4075 1 - Live 0xb7068000
button_mid713 3313 0 - Live 0xb7062000
battery 5241 0 - Live 0xb705b000
s3c_bc 3824 0 - Live 0xb7055000
s3c_lcd 6726 0 - Live 0xb704e000
pvrsrvkm 246588 52 s3c_bc,s3c_lcd, Live 0xb7000000

maybe this will help Asure: i had to disable HIGHMEM in .config !!!
after this, recompiling, insmod and it loaded!!!

now if somebody can tell how to wakeup my tablet I will test :)
my tablet sits alone in my office... i am working remotely with adb only, so i can not check :(

here modules :
cifs.ko
slow-work.ko

if anybody interested - please try!

This post has been edited by Lubo: 07 May 2011 - 11:59 AM

0

#15 User is offline   j1nx 

  • Advanced Member
  • PipPipPip
  • Group: Jr. Member
  • Topics: 0
  • Posts: 58
  • Joined: 08-April 11

Posted 07 May 2011 - 02:23 PM

Great job!

The insert fine (first slow-work then cifs). I could mount a drive via the CLI of ADB, but while browsing with ESexplorer the tablet rebooted when two folders deep.

Tried cifs-manager and have cifs-manager loaded the modules. Looks fine, but when adding a share it stops responding.

Will do some more testing .....
0

#16 User is offline   Lubo 

  • Advanced Member
  • PipPipPip
  • Group: Jr. Member
  • Topics: 11
  • Posts: 122
  • Joined: 03-May 11
  • LocationEurope

Posted 09 May 2011 - 02:05 AM

it looks like slow-work.ko is already staticaly loaded with kernel.

so, cifs.ko can be loaded alone (without slow-work.ko)

when try to start movie from cifs share, my tablet hungs and rebooted,
but i think that mount options will fix it. I had similar problems with cifs mount
from my openwrt router too. Just have to find right options...
0

#17 User is offline   Lubo 

  • Advanced Member
  • PipPipPip
  • Group: Jr. Member
  • Topics: 11
  • Posts: 122
  • Joined: 03-May 11
  • LocationEurope

Posted 25 May 2011 - 08:59 AM

it seems that nobody is interested in using cifs.ko for mounting...
never mind, i am interested, so I'm continuing to work on it with new kernel - 2.6.35.7.

@Asure if you are interested:

CONFIG_FUNCTION_TRACER - not defined
CONFIG_DEBUG_PREEMPT - not defined

with above options enabled:

insmod cifs.ko
[102263.187195] cifs: Unknown symbol add_preempt_count (err 0)
[102263.188246] cifs: Unknown symbol __tracepoint_module_get (err 0)
[102263.188710] cifs: Unknown symbol kmem_cache_alloc_notrace (err 0)
[102263.190290] cifs: Unknown symbol __gnu_mcount_nc (err 0)
[102263.190972] cifs: Unknown symbol __tracepoint_kmalloc (err 0)
[102263.194425] cifs: Unknown symbol sub_preempt_count (err 0)
[102263.200038] cifs: Unknown symbol slow_work_register_user (err 0)
[102263.206142] cifs: Unknown symbol __aeabi_unwind_cpp_pr1 (err 0)
[102263.212096] cifs: Unknown symbol slow_work_enqueue (err 0)

insmod slow-work.ko
[103536.492959] slow_work: module license 'unspecified' taints kernel.
[103536.493023] Disabling lock debugging due to kernel taint
[103536.494091] slow_work: Unknown symbol __gnu_mcount_nc (err 0)
[103536.494463] slow_work: Unknown symbol __aeabi_unwind_cpp_pr1 (err 0)


when disabling them in kernel .config:

insmod cifs.ko - OK
  ./adb shell lsmod                 
cifs 221454 0 - Live 0xbf1c3000
slow_work 10636 1 cifs,[permanent], Live 0xbf177000 (P)
ar6000 227115 0 - Live 0xbf000000


modules loaded.


I will not publish modules until do some testing

This post has been edited by Lubo: 25 May 2011 - 09:00 AM

0

#18 User is offline   j1nx 

  • Advanced Member
  • PipPipPip
  • Group: Jr. Member
  • Topics: 0
  • Posts: 58
  • Joined: 08-April 11

Posted 25 May 2011 - 09:15 AM

I am VERY interested in using cifs. Hence the reason I tried it in the first place. I succeeded building them, succeeded loading them, but opening any file made the tablet reboot.

Could not make it to work so left it for the time being.

I will try 2.3.1 tonight as I want to try to get bluetooth working with one of my dongles. Will then most likely get back into building modules.

Were did you get the kernel sources of the 35 version from?
0

#19 User is offline   Lubo 

  • Advanced Member
  • PipPipPip
  • Group: Jr. Member
  • Topics: 11
  • Posts: 122
  • Joined: 03-May 11
  • LocationEurope

Posted 25 May 2011 - 09:24 AM

View Postj1nx, on 25 May 2011 - 09:15 AM, said:

I am VERY interested in using cifs. Hence the reason I tried it in the first place. I succeeded building them, succeeded loading them, but opening any file made the tablet reboot.

Could not make it to work so left it for the time being.

I will try 2.3.1 tonight as I want to try to get bluetooth working with one of my dongles. Will then most likely get back into building modules.

Were did you get the kernel sources of the 35 version from?


From Asure's github :)
but there is no .config file...
i am using .config from old kernel 2.6.32.9 (also there)

my first few tests made the tablet hung,right after mount...
0

#20 User is offline   Asure 

  • Advanced Member
  • PipPipPip
  • Group: Hero Member
  • Topics: 23
  • Posts: 752
  • Joined: 26-May 10

Posted 26 May 2011 - 02:45 AM

The config file is right where it's supposed to be. https://github.com/A...ropad_defconfig

make ARCH=arm dropad_defconfig
make -j4


And from that config file:
# CONFIG_DEBUG_PREEMPT is not set
# CONFIG_FUNCTION_TRACER is not set


Note that we don't know exactly what Urbetter uses, so even if a module loads, it may crash later on.. :)
0

Share this topic:


  • 4 Pages +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users