Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
viulian
Old
(Last edited by viulian; 28th April 2013 at 07:41 AM.)
#1  
Recognized Developer - OP
Thanks Meter 345
Posts: 374
Join Date: Apr 2011

 
DONATE TO ME
Default [krn.modules] cifs.ko module for Galaxy S3 Stock kernel

Since I have received the JB update, I have rebuilt the cifs.ko module for my kernel version 3.0.31-256827 as well as 3.0.31-204919
If you have other kernel versions, please let me know and I will try to build the modules for that specific version.

Good news is that patchs3k is not needed anymore! Samsung did the right thing and we don't need to patch the kernel at runtime.

Per @jfrm request, UTF-8 module is now included but DO NOT FORGET to add iocharset=utf8 as options when defining the share in CifsManager.



Download

Use at your own risk!

For JB Kernel 3.0.31-368423

cifs_md4-368423.tar.gz

For JB Kernel 3.0.31-256827:

cifs_md4-256827.tar.gz

For JB Kernel 3.0.31-204919

cifs_md4-204919.tar.gz

For JB Kernel 3.0.31-566833

cifs_md4-566833.tar.gz

For JB Kernel 3.0.31-742798

cifs_md4-742798.tar.gz


------
Old topic below, related to the 4.0.1 versions / firmware

Attached you will find a bundle (including the cifs.ko module) that allows you to mount Samba shares on your Galaxy S3 phone. md4.ko module is also included.
You do not need to flash a different kernel, it works with the stock one!

Supported firmwares: XXALE8, XXALEF, ZSALED

Install

a) copy cifs_s3.tar.gz to your /sdcard folder
a) create folder /system/xbin/lib (after you remount your /system as read/write)
b) unpack the tar into that folder
c) execute script load_cifs.sh

Code:
cd /system/xbin/lib
tar xf /sdcard/cifs_s3.tar.gz 
./load_cifs.sh
The archive includes the patchs3k executable I have created that changes the live stock kernel to accept any module.
Without running the patchs3k file, no modules can be inserted ...
It means that you cannot use tools that insert the modules at reboot since they will fail if patchs3k is not executed before that.

For this, you will find the load_cifs.sh which is already written so that it can be executed from Script Manager at boot / as super user.

Then you need to use CifsManager (or other mount managers) to mount everything you want

Download

Use at your own risk!

For firmware: XXALE8, XXALEF

cifs_s3.tar.gz

For firmware: ZSALED

cifs_s3.ZSALED.tar.gz
The Following 9 Users Say Thank You to viulian For This Useful Post: [ Click to Expand ]
 
vasha100
Old
#2  
Junior Member
Thanks Meter 1
Posts: 3
Join Date: Jan 2012
ZSALED can't use it.
Unfortunatly, when I try to run insmod, I get this: insmod: init_module '/system/xbin/lib/cifs.ko' failed (Exec format error)
The Following User Says Thank You to vasha100 For This Useful Post: [ Click to Expand ]
 
viulian
Old
#3  
Recognized Developer - OP
Thanks Meter 345
Posts: 374
Join Date: Apr 2011

 
DONATE TO ME
@vasha100 - thanks for letting me know. I tested only on European one, XXALE8 ...

I will send you a PM and I can get it to run for your firmware too, not the module - the module stays as it is, but I will post another patchs3k file.
 
zsoft
Old
#4  
Member
Thanks Meter 1
Posts: 42
Join Date: Nov 2006
Location: Moscow
on firmwares: XXALEF works,
Thank you so much!
The Following User Says Thank You to zsoft For This Useful Post: [ Click to Expand ]
 
viulian
Old
#5  
Recognized Developer - OP
Thanks Meter 345
Posts: 374
Join Date: Apr 2011

 
DONATE TO ME
Thanks for the feedback, I have updated the main post - so that people could see what firmwares are supported. If the exact kernel image is used, chances are that the patchs3k will work.
 
jaidev.s
Old
#6  
jaidev.s's Avatar
Senior Member
Thanks Meter 531
Posts: 647
Join Date: Nov 2011
thanks!
 
E:V:A
Old
#7  
E:V:A's Avatar
Recognized Developer
Thanks Meter 1065
Posts: 868
Join Date: Dec 2011
Location: -∇ϕ
Nice work!
MSM8960 Info, Architecture and Bootloader(s)
El Grande Partition Table Reference
How to talk to the Modem with AT commands

The Samsung Anyway Jig + DIY
_______________________________
If you like what I do, just click THANKS!
Everything I do is free, altruism is the way!
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
I do not answer support related PM's.

 
viulian
Old
#8  
Recognized Developer - OP
Thanks Meter 345
Posts: 374
Join Date: Apr 2011

 
DONATE TO ME
Thank you,

With help from fellow member vasha100 - I was able to test the release for ZSALED and confirmed it working too. Everything had to be recompiled, since the kernel is not exactly what runs on the other firmwares ..
 
Phuongld
Old
#9  
Member
Thanks Meter 1
Posts: 31
Join Date: Jun 2011
Location: Ho Chi Minh City
Could you build tun.ko module? That will be great if you do this.
 
viulian
Old
#10  
Recognized Developer - OP
Thanks Meter 345
Posts: 374
Join Date: Apr 2011

 
DONATE TO ME
tun.ko was my first choice before starting but I was surprised to see that is already precompiled in the stock kernel.

You can just install the OpenVPN installer and Settings apps, copy over your certificates and so on and it will work.

The Following User Says Thank You to viulian For This Useful Post: [ Click to Expand ]
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Go to top of page...