Go Back   Android Forums > Android Development > Developer Forums > Virtuous

test: Reply
 
LinkBack Thread Tools
Old October 6th, 2010, 10:12 PM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Oct 2010
Posts: 9
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 4 Times in 2 Posts
Default [Suggestion] cifs.ko that works with stock kernel or custom virtuous kernel?

I've tried to find a version of cifs.ko that I can load up with insmod, but they all error out for me since they apparently weren't compiled to the 2.6.32.15-gb7b01d1 kernel.

I was able to find a version of tun.ko out there that would work after I changed it's kernel version to the above with a hex editor, and now I have working VPN on my DInc. I tried doing the same to a cifs.ko I found on this thread, but it was a no-go. It would be nice to be able to mount samba(cifs) shares when I'm at home so I can stream videos over my local network.

Since it's being done for other kernels, I was hoping maybe it could be an option for Virtuous as well?

Advertisements
ap42 is offline  
Reply With Quote
sponsored links
Old October 6th, 2010, 11:32 PM   #2 (permalink)
rmk
Junior Member
 
rmk's Avatar
 
Join Date: Apr 2010
Posts: 94
 
Device(s):
Carrier: Not Provided

Thanks: 9
Thanked 44 Times in 27 Posts
Default

Reasonable request. Should be doable for the custom kernel. I'll look into it.
rmk is offline  
Reply With Quote
Old October 7th, 2010, 12:22 PM   #3 (permalink)
New Member
Thread Author (OP)
 
Join Date: Oct 2010
Posts: 9
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 4 Times in 2 Posts
Default

Thanks! It'll be great if it can be done. Would be the incentive I need to ditch the stock kernel (which has been fine for me so far).
ap42 is offline  
Reply With Quote
Old October 7th, 2010, 03:08 PM   #4 (permalink)
rmk
Junior Member
 
rmk's Avatar
 
Join Date: Apr 2010
Posts: 94
 
Device(s):
Carrier: Not Provided

Thanks: 9
Thanked 44 Times in 27 Posts
Default

Quote:
Originally Posted by ap42 View Post
Thanks! It'll be great if it can be done. Would be the incentive I need to ditch the stock kernel (which has been fine for me so far).
I was thinking about it last night and it would actually be trivial to provide this with the stock kernel, without touching the compiled binary from HTC.

My thought, for those interested, is to build the HTC kernel from source using the same EXTRAVERSION as the official binary, enabling builds of the modules we're interested in using. Then, pull only the .ko files from the result and make them available. This leaves the original binary untouched.

I'll see what I can whip up tonight.
rmk is offline  
Reply With Quote
Old October 8th, 2010, 12:46 PM   #5 (permalink)
New Member
Thread Author (OP)
 
Join Date: Oct 2010
Posts: 9
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 4 Times in 2 Posts
Default

Well now you've got me excited. It would be nice to have a portable streaming media player at home.

I'd be willing to test out cifs.ko/tun.ko if needed. Should just be a matter of loading it with insmod on my end and then trying to connect to my network shares with xmount or "busybox xmount".

I already have a hacked-up tun.ko that works for VPN, so I can just swap it out, reboot, and verify it still works.

I'm not sure what other modules folks would be interested in. Some kernels are released with a nls_utf8.ko, but I'm not sure what that's needed for. Maybe it's needed as well for cifs/samba shares?

Thanks for looking into it. Great rom.
ap42 is offline  
Reply With Quote
Old October 8th, 2010, 01:54 PM   #6 (permalink)
New Member
 
Join Date: Aug 2010
Posts: 2
 
Device(s): HTC Incredible
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by ap42 View Post
Well now you've got me excited. It would be nice to have a portable streaming media player at home.
x2 I would love to have a cifs module for stock kernel 2.6.32.15-gb7b01d1. I am using the same tun.ko as the OP, and that seems fine, but I have had no luck finding or making a cifs module. If I can use my existing rom, that's a bonus!
vr6slc is offline  
Reply With Quote
Old October 8th, 2010, 05:08 PM   #7 (permalink)
rmk
Junior Member
 
rmk's Avatar
 
Join Date: Apr 2010
Posts: 94
 
Device(s):
Carrier: Not Provided

Thanks: 9
Thanked 44 Times in 27 Posts
Default

I started working on this last night and got the modules built with matching version magic. Problem is, I have no idea what HTC used to compile the binary. Long story short, doesn't seem possible to add the modules to the stock kernel binary itself. I can, however, build a new stock kernel with the modules.

I think the better option is to add this to the custom kernel, because I want the stock kernel to really mean stock (i.e. binary untouched). That's probably what I will pursue.
rmk is offline  
Reply With Quote
Old October 8th, 2010, 07:36 PM   #8 (permalink)
New Member
Thread Author (OP)
 
Join Date: Oct 2010
Posts: 9
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 4 Times in 2 Posts
Default

If it can only be done in the custom kernel, that's fine by me. I was planning on switching to it anyway for the disabled perflock (so I don't have to manually turn it off for SetCPU to be able to crank the clock speed down when my screen is off).

In the thread I linked to in my first post, the guy mentioned having to edit the cifs source code to remove all refs to some slow_work setting to get the module to work with his stock kernel. Not just as simple as compiling it & dropping it in. So your idea of putting it the custom kernel seems the best way to go about it.
ap42 is offline  
Reply With Quote
Old October 15th, 2010, 08:37 PM   #9 (permalink)
New Member
Thread Author (OP)
 
Join Date: Oct 2010
Posts: 9
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 4 Times in 2 Posts
Default

For those interested, I was able to compile a cifs.ko that works with the stock kernel. I installed it in a virtualbox ubuntu session with the correct vermagic setting, and had to edit some files in fs/cifs to remove all reference to slow_work (the same thing the person had to do in the linked post in my OP).

I then copied the cifs.ko to my sdcard, ran 'adb shell' to connect, and loaded it with insmod. Then I mounted some local drives to my sdcard & was able to browse the shares with rockplayer. FYI my shares are simple shares from an XP machine, so I had to same -o username-guest to get a share to mount. Took me a while to figure that one out.

I just watched a tv episode with no issues on it as a test. Pretty damn sweet. I had to duplicate the mounts on /sdcard since rockplayer would only look at sdcard dirs.

I'm going to attach the *ko files I generated.
cifs.ko should be all that is needed for cifs shares.
nls_utf8.ko I believe is used for special characters in share or file names.
tun.ko is used (by me) only for VPN connections.
mount.sh just gives some examples of how you can mount with busybox or regular mount. You could use CIFS Manager as well.

Hope someone finds it as useful as I did. Who knows, maybe I'll try loading one of my compiled kernels onto my phone. For now I just did this to get a working cifs.ko for samba/cifs shares.
Attached Files
File Type: zip cifs_2.6.32.15-gb7b01d1.zip (201.5 KB, 119 views)
ap42 is offline  
Last edited by ap42; October 15th, 2010 at 08:47 PM.
Reply With Quote
The Following User Says Thank You to ap42 For This Useful Post:
MeiserHans (January 5th, 2012)
Old January 4th, 2012, 02:44 AM   #10 (permalink)
New Member
 
Join Date: Jan 2012
Posts: 2
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hi,

i read your thread and i have the same request but for a different kernel Version. I tryed it with your kernel and adapted it by editing the .ko files with a hex editor and after that it was doing it well.. I could mount my xp shares and so an browse an them with cifs manager.

But if i try to open a file..mp3 or avi or whatever the phone goes dark and i have a fulll reboot. So that means just editing the kernel label is not the full solution.

It would be very nice of you to build me the needed files (cifs.ko and nls_utf8.ko). I just started with android and linux in general and my experience is to low to do it by myself.

I have the stock HTC Kernel.

Android 2.2
2.6.32.15-g2633d94
htc-kernel@and18-2 #1

i browsing with google for 2 days now to find the files adapted to my kernel version but no luck. The only thing i found is some posts of other which have the same problems. So maybee its a help to them too.

I really would appreciate your help in that. Or let me know who i have to contact who can help me further or if you need more information...
MeiserHans is offline  
Reply With Quote
sponsored links
Old January 5th, 2012, 02:31 AM   #11 (permalink)
New Member
 
Join Date: Jan 2012
Posts: 2
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default

So, after i patched all cifs.ko i found in the net. I managed to get it working with the

cifs_bravo_2.6.32.15-gf9c0527.zip

from [KERNEL] CIFS + UTF8 NLS support for the official HTC Desire Froyo kernel - xda-developers

it working with HTC Stock ROM and Kernel 2.6.32.15-g2633d94 htc-kernel@and18-2 #1. The other utf8.ko is still not working ..but im trying..thanx for all the knowledge here
MeiserHans is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Development > Developer Forums > Virtuous
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 09:46 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.