[Q]cifs module for Jetstream - HTC Jetstream

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.

Related

OpenVPN on P500 - Tun(/TAP) module needed!

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.

[Q] Need help with compiling modules for Dell Streak Froyo stock kernel

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?

[Q] How to compile atrix wifi drivers?

I am building an Atrix CM7 image with a kernel based on faux123's github kernel-MB860. That kernel builds and works fine. The wifi drivers however, are not working. I have also cloned faux123's atrix-wifi-dev project and built the dhd module by:
Code:
cd open-src/src/dhd/linux
make ANDROID_BUILD_TOP=~/projects/android/system LINUXSRCDIR=~/projects/android/kernel-MB860 BCM_INSTALLDIR=~/projects/android/system/device/motorola/olympus/modules CROSS_COMPILE=$CCOMPILER dhd-cdc-sdstd
I get "Error" from the enable wifi option in network settings. I tried insmod'ing the dhd.ko from the adb shell:
Code:
insmod /system/lib/modules/dhd.ko firmware_path=/system/etc/wl/sdio-ag-cdc-full11n-minioctl-roml-pno-wme-aoe-pktfilter-keepalive.bin nvram_path=/system/etc/wl/nvram.txt
insmod: init_module '/system/lib/modules/dhd.ko' failed (Invalid argument)
dmesg shows:
<4>[ 310.662019] Dongle Host Driver, version 4.218.248.31
<4>[ 310.662023] Compiled in /home/bricea/projects/android/atrix-wifi-module/open-src/src/dhd/linux/../.. on Feb 16 2012 at 11:30:24
<7>[ 310.972212] mmc1: queuing CIS tuple 0x91 length 3
<6>[ 310.972246] mmc1: new SDIO card at address 0001
<4>[ 322.653577] dhd_module_init: sdio_register_driver timeout
Am I building this correctly? Has anyone successfully rebuilt the kernel and dhd driver?
Did you ever figure this out?
Did you (or anyone) figure out how to build the wifi module for CM7? Where do you get the source?
I have successfully built both the kernel and the filesystem, but have not been able to get the wifi module built.
Okay, so apparently this is some sort of secret because I had no luck finding the proper way to build the driver module.
Well, I finally got tired of trying the same thing ('make dhd-cdc-sdstd') over and over only to get nowhere. I went into the makefile and looked around at what kind of options it had for building the module. Turns out there are about 2 dozen different options.
The default option is 'dhd-cdc-sdmmc-oob-gpl' and what it will build if you just type 'make' in the proper folder. Finding that it was probably just as likely as any other option, I did that.
It WORKED!
So the proper command is 'make dhd-cdc-sdmmc-oob-gpl' or just 'make'.
I hope no one minds me digging up an older thread, but I thought I might share if anyone else wanted to try cooking their own kernel. I flailed around with this issue for two days trying desperately to find the answer before I finally figured it out.

[Q] Loading CPU govenors at boot using init.d. Possible or not?

Hi
I want more than the 4 govenors that my kernel offers. I know the way this is done is by compiling them in the kernel, however, my noname tablet has no sources for its kernel. Ive tried a couple of kernels but they fail to build and anyway I dont know what all the hardware is so tricky to make a build that will work
I dont want much, just some more govenors and io schedulers. I had an idea to compile them all as modules and load them at runtime via an init.d script. Would this work? When compiling the govenors, what dependencies does it require? Im sure the govenors dont care what screen ive got or what bluetooth i have. Im guessing its just cpu stuff that it needs.
Ive compiled some govenors and put them in /system/lib/modules/ (No simlink in root on my tab, does that matter?) but when I insmod them I get file not found error. Any ideas why this is?
Is this even going to work? All I want is some new govenors and I figured this is the best way but if there is any other way please elaborate?
Any help would be really handy
Chris
ok. I know it can be done.
Ive compiled the modules and put them in system/lib/modules but when insmod them I get this error in dmesg for io schedulers
<4>[ 4355.772594] sio_iosched: Unknown symbol _GLOBAL_OFFSET_TABLE_ (err 0)
and this for cpu govenors
<4>[ 4422.664742] cpufreq_smartass2: Unknown symbol _GLOBAL_OFFSET_TABLE_ (err 0)
<4>[ 4422.664878] cpufreq_smartass2: Unknown symbol nr_running (err 0)
Any ideas how to get past this?

Cifs module for the V10?

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?

Categories

Resources