Hi guys!
I would like to have cifs support on LG Optimus One but since I have not found any cifs.ko module for our kernel I compiled it using LG source code and android-ndk-r4b.
The problem is that when I try to load it with "insmod cifs.ko" i have this error:
Code:
insmod: init_module 'cifs.ko' failed (No such file or directory)
(obviously cifs.ko is in the working directory, i'm root and I mounted /system as RW)
This is the dmesg log:
Code:
<4>[20460.381143] cifs: Unknown symbol slow_work_register_user
<4>[20460.383240] cifs: Unknown symbol slow_work_enqueue
What can I do?
I am attaching the cifs.ko file so someone can try.
supergiox said:
Hi guys!
I would like to have cifs support on LG Optimus One but since I have not found any cifs.ko module for our kernel I compiled it using LG source code and android-ndk-r4b.
The problem is that when I try to load it with "insmod cifs.ko" i have this error:
Code:
insmod: init_module 'cifs.ko' failed (No such file or directory)
(obviously cifs.ko is in the working directory, i'm root and I mounted /system as RW)
This is the dmesg log:
Code:
<4>[20460.381143] cifs: Unknown symbol slow_work_register_user
<4>[20460.383240] cifs: Unknown symbol slow_work_enqueue
What can I do?
I am attaching the cifs.ko file so someone can try.
Click to expand...
Click to collapse
Here a thread with the same problem for cifs. It seems that something is missing, such as support for some cpu governor. What kernel/ROM are you using?
there is no module attached to previous post.
Sorry, I thought I had attached the file.
I'm using Official Optimus One ROM and ThunderG-Kernel-4a30c33.
I've tried and I got the same error. I think that some requirement is missing in the kernel.
Where do you get this module? Is it for other phone?
****full said:
I've tried and I got the same error. I think that some requirement is missing in the kernel.
Where do you get this module? Is it for other phone?
Click to expand...
Click to collapse
No, this module is compiled by me from this kernel source (for Optimus One)
I also tried with the kernel source released directly by LG... with same result!
****full said:
I've tried and I got the same error. I think that some requirement is missing in the kernel.
Where do you get this module? Is it for other phone?
Click to expand...
Click to collapse
A guy is helping me in this thread.
Come along so we can talk better
supergiox said:
A guy is helping me in this thread.
Come along so we can talk better
Click to expand...
Click to collapse
Ciao, siete riusciti a compilare il kernel con il supporto a cifs per caso?
Lo condividerete?
Grazie in anticipo
Hi, have you successfull built the kernel with cifs support?
Can you share?
Thanks in advance
vocione said:
Ciao, siete riusciti a compilare il kernel con il supporto a cifs per caso?
Lo condividerete?
Grazie in anticipo
Hi, have you successfull built the kernel with cifs support?
Can you share?
Thanks in advance
Click to expand...
Click to collapse
Ciao! Sono riuscito a compilare cifs.ko ma non funziona... bisogna fare qualche altra modifica al kernel ma non ho capito come farla!
Hi! I managed to compile cifs.ko but does not work ... must make some other changes to the kernel but I have not figured out how to do it!
Related
Hi all!
I'm trying to connect my p500 to my OpenVPN server, but i can't 'cause i can't find the tun.ko module compiled for my p500!
Already tried with another .ko file taken from another phone, but when i try to insmod it, dmesg say i can't 'cause " magic" is wrong (something like it is compiled for another cpu)
Could someone help me?
Auto-reply
Taken from Drellisdee' kernel!
have your openvpn now working?
P500 OpenVPN
I am trying to connect to 12vpn.com service
Authenticates and connects fine but no traffic is sent through the VPN it just stays on normal connection.
I attempt to install the tun.ko manually but get the following
# insmod /sdcard/tun.ko
insmod /sdcard/tun.ko
insmod: init_module '/sdcard/tun.ko' failed (File exists)
#
you can find tun.ko here...
/system/lib/modules/tun.ko
it works fine on my P500
Ginger555 said:
I am trying to connect to 12vpn.com service
Authenticates and connects fine but no traffic is sent through the VPN it just stays on normal connection.
I attempt to install the tun.ko manually but get the following
# insmod /sdcard/tun.ko
insmod /sdcard/tun.ko
insmod: init_module '/sdcard/tun.ko' failed (File exists)
#
Click to expand...
Click to collapse
That means the tun module is already loaded.
Can anyone supply me with the latest kernel source to the Official GingerBread Kernel? The current one linked in the first post is for 2.6.35.10-perf, which is the stock one for 2.3.3. Or atleast a working tun.ko, that works with 2.6.35.13-V4. It would be nice though to have it included in the default kernel, haven't seen anyone suggesting it. Would have posted this on the dev forum but this is my first post over here
Seems that this thread is dead, but who happened to find it and is having the same issue - get francos kernel instead, it includes the tun module and works! http://forum.xda-developers.com/showthread.php?t=1148196
OpenVPN
The franco kernel is no longer compatible with the latest stable mik's cyanogen mod, 6.5.7
However, there is a VPN setup screen in the network settings screen
Not sure if it works yet, or where to drop the OpenVPN files.
Need help with compiling modules for Dell Streak kernel.
Because i could not find cifs.ko module for mounting network shares for Dell Streak stock Froyo 318, i decided to make it on my own.
I did not have any clue how can it be done, but with lot of googling and reading forum posts on xda and modaco, i got vague idea how i can do it.
There was lots of trial-and-error attempts until i learned how to use all comands and tools, and here is final list of things id did to make it:
Already had VMWare workstation with Ubuntu 10.10 instalation, i got Android Froyo source tree from net, replaced kernel with Dell Streak 3.09 kernel (from opensource.dell.com) which is also Froyo, i think, and is closest to my kernel version (318).
Got toolchains from codesourcery.com
Extracted my phone config from /proc/config.gz, renamed to .config, uncommented and changed option for CONFIG_CIFS=m. Did same for tun.ko module which i did not need, but just for comparison. Placed .config file in kernel root.
Did comand:
Code:
make ARCH=arm CROSS_COMPILE=/path-to-toolchains/bin/arm-none-eabi- modules
after confirming some options (irellevant to this), and some compiling in terminal, all went ok without errors and did produce modules in fs/cifs and drivers/net
i also did some debugging to reduce filesize, bud also had tried module without debugging with same result (see below)
transferred modules to my phone in /system/lib/modules and tried to load them via insmod.
loaded tun.ko without problem (i dunno whteher is working because i have no means to try it and have no need for it). i compiled it just to see whether it will be loaded in phone kernel. it DID load without error messages.
when tried to load cifs.ko via insmod cifs.ko, got this error message:
Code:
insmod: init_module 'cifs.ko' failed (no such file or directory)
dmesg provided following errors:
Code:
cifs: Unknown symbol slow_work_register_user
cifs: Unknown symbol slow_work_enqueue
found in similar thread for Galaky Tab that i need to compile slow_work module and load it before because of that dependancies, Found another thread with instructions for compiling slow-work, followed them:
copied all slow-work files in cifs, Remove the calls to round_jiffies in fs/cifs/slow-work.c: round_jiffies(jiffies + SLOW_WORK_CULL_TIMEOUT)); changed to
jiffies + SLOW_WORK_CULL_TIMEOUT); AND round_jiffies(jiffies + SLOW_WORK_OOM_TIMEOUT)); TO jiffies + SLOW_WORK_OOM_TIMEOUT);
edited fs/cifs/Makefile and added slow-work.o to the obj-$(CONFIG_CIFS) += cifs.o line: obj-$(CONFIG_CIFS) += cifs.o slow-work.o.
Ran make command from above, got both modules (cifs.ko and slow-work.ko) in fs/cifs directory without errors.
Copied them to phone, done insmod and got error for slow-work:
Code:
insmod: init_module 'slow-work.ko' failed (no such file or directory)
dmesg provided following message:
Code:
slow_work: module licese "unspecified" taints kernel
slow_work: Unknown symbol mutex_lock_nested
Now i'm clueless (like i haven't been all the time :-D).
All modules compiled without errors, tun.ko will load, cifs.ko apparently need slow-work to run, slow-work compiled, but can't load.
So, if somebody can help, or point me where is possible error, i will be very grateful.
UPDATE:
Found references for missing slow_work modules in cifsfs.c and misc.c, deleted them and ran make.
produced cifs.ko without error.
LOADED cifs in phone without error!!!! With lsmod it shows that module is loaded!
BUT, does not work! Cannot mount anything. When tried with cifsmanager or manually via terminal get error message "No such device" which points that there is no valid cifs.ko module in kernel.
So, module is produced and loaded in phone without errors, BUT DOES NOT WORK. It looks like Streak Froyo need slow-work module after all...
I'm desperate, please if somebody did compiling cifs.ko for Streak, or use cifs mounting with found module, share your thoughts and experiences.
Thanks everybody.
CIFS and Slow worked - compiled
I was able to successfully compile both the slow work module and the CIFS module for the most recent 4G EVO. Took me a couple of days, but I think I could walk you through the specifics fairly easily. Let me know if you want the details.
of course I do!
please write your way.
Sent from my Dell Streak using XDA Premium App
dmandic, did you ever get this working? I went through similar pains doing this for the xperia arc, and did manage to get it working. I have some thoughts about your situation if you want to discuss further.
please, any help is appreciated.
i'm open to any kind of suggestions.
write your thoughts here.
Sent from my Dell Streak using XDA Premium App
Hmm. I originally stumbled upon this thread because I was searching for others who compiled a cifs.ko against a kernel with version "2.6.32.9-perf" (from the android about phone menu), hoping to avoid going through figuring out how to do this. I saw that others with the Dell Streak also had this kernel, and then I found your thread.
Anyway, I was thinking that maybe the kernel you got from the dell website had a slightly different version than your phone (because your phone is 3.18 vs 3.09), and that's why you're getting runtime symbol errors. I thought maybe there's a chance you needed exactly 2.6.32.9-perf and I could offer you mine. However, I downloaded the dell 3.09 kernel source and found that it's also 2.6.32.9-perf... so I guess that idea's out the window. (By the way, is this what your phone shows?)
Well just for kicks, I actually compiled slow-work and cifs from the dell kernel and loaded it on my xperia arc phone and they worked (was able to use CIFSManager).
It's a long shot but just in case there's something about the way you're compiling them, I attached them here - give it a try. [Edit: Duh, I forgot I need your .config file. Email it to me and I'll re-post these]
I tried out the Xperia files from the thread [DEV]TUN, CIFS modules files on my Streak 5. It did not go well, these are my messages from dmesg.
Code:
<4>[ 341.187030] tun: Unknown symbol dynamic_debug_enabled
<4>[ 341.190600] tun: Unknown symbol dynamic_debug_enabled2
<4>[ 341.219513] slow_work: module license 'unspecified' taints kernel.
<4>[ 341.220411] slow_work: Unknown symbol mutex_lock
<4>[ 341.638099] cifs: Unknown symbol mem_section
<4>[ 341.638397] cifs: Unknown symbol mutex_lock
<4>[ 341.641609] cifs: Unknown symbol slow_work_register_user
<4>[ 341.642835] cifs: Unknown symbol slow_work_enqueue
Looks like the kernel is differently compiled and or still some modules missing.
I noticed that in another thread Samba/CIFS for Motorola defy froyo nls_utf8.ko also has been required, however I do not have the 2.6.32.9-perf version of this to try it out.
How has the progression been for you guys?
Hi mates,
Lately I got myself a HTC Jetsteam since it seems to be one of the most cost-effective tablets who support stylus. It has the latest stock rom (htc_jetstream_emr_update_1.30.502.1_us.exe) installed, rooted through cwm. So far I'm happy with it. However one feature I miss most is the ability to mount network drive. As I coundn't find cifs module for this model, I decide to compile myself. I download the kernel source from htcdev(tried both "puccini_lte_crc-2.6.35-4612ecf.tar.gz" and "puccini_lte_crc-2.6.35-4612ecf.tar.gz").
I manage to compile the modules (on ubuntu and osx) however I couldn't insert them. It throw "insmod: init_module 'cifs.ko' failed (Exec format error)". It seems I mismatched the kernel. Anyone have a clue? I really appreciate it. It's been a frustrating weekend...
I checked dmesg
the reason cifs.ko can't be insmod is:
<4>[ 7069.498929] cifs: Unknown symbol slow_work_register_user (err 0)
<4>[ 7069.499997] cifs: Unknown symbol slow_work_enqueue (err 0)
However no information in dmesg explains why slow-work.ko can't be insmod.
I attached files (kernel version: 2.6.35.10-g01487c4), maybe someone can give a try...
greetings
My mistake. I ignored one warning while make the module - turns out it matters.
Now the cifs module works properly on my tablet. Feel free to try.
cheers
whats a cifs module?
guru_shastri said:
whats a cifs module?
Click to expand...
Click to collapse
CIFS stands for common Internet file system. Samba utilizes this protocol for network file sharing. Many UNIX folks use Samba to access Windows files over their networks.
I am assuming that you can place these under /system/lib/modules and it will just work. Does anyone know any differently? I don't have a means of testing at the moment.
Normally on Linux you would insmod <module>, but the things are a little different on Android.
Hello, I am trying to find a way to mount my home smb network shares to my V10. I've seen many different threads for the nexus devices about kernel modules for cifs that allow mounting to a folder path on the filesystem that all apps or file managers can access. Is there a module or similar solution for the V10?
I have compiled the module myself from the lolipop kernel source, but when I attempt to load cifs.ko, I get
Code:
insmod: init_module 'cifs.ko' failed (Required key not avaliable)
I have tried compiling with the pplus_tmo_us_defconfig and the pplus_tmo_us-perf_defconfig.
Does LG provide a signing key in the source? If so, how can I use it?
Hello, i'm trying to add cifs.ko kernel's module to my rooted (with Magisk) Redmi Note 9 Pro (Joyeuse Global).
On my Ubuntu computer, i've cloned smb3-cifs-linux-stable-backports (linux 4.14, the same kernel version as my phone run) and compiled the cifs.ko module using
Code:
make -C . M=fs/cifs ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-
The kernel module compiled successfully, then I've created a Magisk module which load into /vendor/lib/modules the compiled cifs.ko, but I get
Code:
insmod: failed to load cifs.ko: Required key not available
, but my compiled kernel module isn't signed and i've checked a factory kernel module : isn't signed too.
I don't know what i've done wrong, if someone can tells me how to do and how.
Thanks
could you resolve this? I want to add cifs in the same kernel (v4.14.180). do you have the cifs.ko file? thank you!