[krn.modules] cifs.ko module for Galaxy S3 Stock kernel

Search This thread

viulian

Inactive Recognized Developer
Apr 6, 2011
419
411
hex.ro
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.

Screenshot_2012-06-07-21-01-56.png


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
 
Last edited:

viulian

Inactive Recognized Developer
Apr 6, 2011
419
411
hex.ro
@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.
 

viulian

Inactive Recognized Developer
Apr 6, 2011
419
411
hex.ro
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.
 

viulian

Inactive Recognized Developer
Apr 6, 2011
419
411
hex.ro
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 ..
 

viulian

Inactive Recognized Developer
Apr 6, 2011
419
411
hex.ro
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.
 
  • Like
Reactions: Phuongld

zsoft

Member
Nov 22, 2006
46
2
Moscow
updated the fw to XXALF5, the last official update for Russia (it is on wi-fi, accidentally pressed the install)
method of root CF-Root v6.3

Сopy cifs_s3.tar.gz - all the instructions ... execute script load_cifs.sh, restart your phone....

Сopy cifs_s3.ZSALED.tar.gz, execute script load_cifs.sh, wrote the script is executed ...
I go to the cifsmanager, run a share, write error (mount no such device)

need your help)
 

mrmrmrmr

Senior Member
Jan 14, 2007
2,542
252
I have kernel XALEB

what can I do ?

this has worked on my kernel XALEB when I run patchs3k.
But I really wonder the affect of patchs3k on the kernel. What does it really do ?
it doesn't modify the kernel but changes a parameter in /proc ?

now , I need to run this in each boot.
how can we automize it ?
 
Last edited:

viulian

Inactive Recognized Developer
Apr 6, 2011
419
411
hex.ro
@mrmrmrmr

The effects of patchs3k is that it cancels the checksum verifications of module symbols. This is done within the kernel and it can't be done just by changes within /proc filesystem.

As for adding support of other kernels not already supported, please do the following and post here the values as well as your firmware:

Code:
cat /proc/kallsyms | grep -A 1 check_version

and

Code:
uname -a

I will get them done in few days ...
 
Last edited:

mrmrmrmr

Senior Member
Jan 14, 2007
2,542
252
Hi,

My baseband: I9300XXLE8
Build: IMM76D.I9300XXALEB

cat /proc/kallsyms | grep -A 1 check_version
Code:
c00b5200 t check_version
c00b52d0 t get_modinfo
--
c03cd0b0 t picolcd_check_version
c03cd188 t picolcd_probe

uname -a :
Code:
Linux localhost 3.0.15-554452-user #1 SMP PREEMPT Fri May 18 00:04:22 KST 2012 armv71 GNU/Linux

if you prepare a cifs.ko for these values, I assume I will not need to run patchs3k at every boot.
am I correct ?


Btw, I have a linux box with armv7 compiler. Can you tell me how to prepare the setup for compiling a kernel (or modules) for Galaxy S3 ?
is there a quick guide ?

Thanks.
 

zsoft

Member
Nov 22, 2006
46
2
Moscow
Baseband: I9300XXLF5
Build: IMM76D.I9300XXALF5

uname -a
Code:
linux localhost 3.0.15-686526-user #1 SMP PREEMPT Thu Jun 7 20:04:56 kst 2012 armv71 GNU/Linux

cat /proc/kallsyms | grep -A 1 check_version
Code:
c00b5248 t check_version
c00b5318 t get_modinfo
--
c03cd574 t picolcd_check_version
c03cd64c t pricolcd_probe
 

mrmrmrmr

Senior Member
Jan 14, 2007
2,542
252
Hi,

My baseband: I9300XXLE8
Build: IMM76D.I9300XXALEB

cat /proc/kallsyms | grep -A 1 check_version
Code:
c00b5200 t check_version
c00b52d0 t get_modinfo
--
c03cd0b0 t picolcd_check_version
c03cd188 t picolcd_probe

uname -a :
Code:
Linux localhost 3.0.15-554452-user #1 SMP PREEMPT Fri May 18 00:04:22 KST 2012 armv71 GNU/Linux

if you prepare a cifs.ko for these values, I assume I will not need to run patchs3k at every boot.
am I correct ?


Btw, I have a linux box with armv7 compiler. Can you tell me how to prepare the setup for compiling a kernel (or modules) for Galaxy S3 ?
is there a quick guide ?

Thanks.

I'd appreciate an answer :)
 

vI3Tz

Member
Nov 3, 2010
10
0
Hi,

can you give me a more detailed description how to do this? Is it done via file explorer and terminal app on the phone itself? Because i tried it this way and cant create the required folder.

Sorry for the stupid question, but Im quit new to this stuff.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 10
    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.

    Screenshot_2012-06-07-21-01-56.png


    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
    1
    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)
    1
    on firmwares: XXALEF works,
    Thank you so much!
    1
    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.
    1
    Hello guys,

    I will shortly put a tutorial on how you can send me the details which would help create the patch.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone