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

Search This thread

Stetanchi

Member
Jan 17, 2010
28
3
Hi it works very well, but when the Phone runs out of battery I need to execute the script again.

Is there any chance to apply this permanently?

Thanks, Stef.
 

viulian

Inactive Recognized Developer
Apr 6, 2011
419
411
hex.ro
You here viulian! Welcome to s3. :)

Sent from my GT-I9300 using xda app-developers app

I welcome you to S3 too :laugh:

Hi it works very well, but when the Phone runs out of battery I need to execute the script again.

Is there any chance to apply this permanently?

If you want to execute it after each boot - I think you could use Script Manager or something similar ?
 

rmagere

Member
Jun 27, 2010
20
3
Supported firmwares: XXALE8, XXALEF, ZSALED

Will it work with XXLFB (baseband) XXBLFB (build)?

Also could you expand on the instructions below? Is it just a terminal emulator?
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

Thanks

Edit:
Additional question: why does cifsmanager not work without this patch while AndSMB works out of the box? (although AndSMB is not as good a solution as it does not emulate local availability)
 
Last edited:

weezil

Member
Sep 10, 2007
8
0
Running omega 9.1 rooted, kernel XXBLG1 ??

I did:

$su
[email protected]:/system/xbin/lib # ./patchs3k

1|[email protected]:/system/xbin/lib # ./load_cifs.sh

insmod: init_module '/system/xbin/lib/md4.ko' failed (Exec format error)
insmod: init_module '/system/xbin/lib/cifs.ko' failed (Exec format error)

Cat:
kallsyms | grep -A 1 check_version <
c00b520c t check_version
c00b52dc t get_modinfo
--
c03ce1cc t picolcd_check_version
c03ce2a4 t picolcd_probe

[email protected]:/system/xbin/lib # uname -a

Linux localhost 3.0.15-782020-user #1 SMP PREEMPT Thu Jul 5 10:09:44 KST 2012 armv7l GNU/Linux
[email protected]:/system/xbin/lib #

Hints? Tips? Help?

Sent from my GT-I9300 using xda premium
 

ninocass

Member
Sep 23, 2007
34
1
also keen to get something working on

Model: GT-i9300
Android V: 4.0.4
Baseband: I9300XXLG8
Build: IMM76D.I9300XXBLG8
Kernel - 3.0.15-928452

I'll have a go at building the tool chain too.
 

viulian

Inactive Recognized Developer
Apr 6, 2011
419
411
hex.ro
Hey guys,

I will attempt to do it for ALF5 (XLF5) this weekend since this is what my phone reports as being the latest for me.
Anybody else using this version ?
 

mrprozac

Member
Jun 21, 2008
8
0
Eindhoven
Thanks for the modules but unfortunately it doesn't work for me on XXBLH1

The device returns the same error as ZSALED used to do.

insmod: init_module '/system/xbin/lib/cifs.ko' failed (Exec format error)
 

viulian

Inactive Recognized Developer
Apr 6, 2011
419
411
hex.ro
After a waiting that took forever, few days ago I have finally received the JB update for my S3.

I have rebuilt the modules for my kernel version which is 3.0.31-256827 - and you will find the link in the first post of the thread : http://forum.xda-developers.com/showthread.php?p=27113380#post27113380

Firmware numbers don't matter on JB apparently, if you guys have other stock kernel version, please let me know and I'll try to build the modules for that specific version if I get some spare time.
 
  • Like
Reactions: jfrm

Iron3d

New member
Mar 30, 2007
1
0
Hi guys, my s3 is flashed with the JB XXDLJ2 firmware, kernel 3.0.31-319653.
How can i get cifs support working?

That's what i see when i try to run "load_cifs.sh"

insmod: can't insert '/system/xbin/lib/md4.ko': invalid module format
insmod: can't insert '/system/xbin/lib/cifs.ko': invalid module format

Thanks in advance!

Kwartz
 

alexx910

Senior Member
Oct 31, 2010
230
54
Hi guys, my s3 is flashed with the JB XXDLJ2 firmware, kernel 3.0.31-319653.
How can i get cifs support working?

That's what i see when i try to run "load_cifs.sh"

insmod: can't insert '/system/xbin/lib/md4.ko': invalid module format
insmod: can't insert '/system/xbin/lib/cifs.ko': invalid module format

Thanks in advance!

Kwartz

hey ironman, before insmod the modules (i guess you want to make a xbox360 controller work like me :D) you have to get su
so just write "su -"
then the $ sign changes to #

good luck.


and at the topic starter:

Hey man, how do you compile these modules, can you make a very short guide for me? :) pls
I'm totally new in this section and dont have an idea how to get further with my plans make a x360 controller works.
 

viulian

Inactive Recognized Developer
Apr 6, 2011
419
411
hex.ro
Well :) the commands below should do the job:

insmod md4.ko
insmod cifs.ko

Or, you can use the script from the previous archive and just delete the line with the patchs3k command.

What kernel version do you have ?
 
  • Like
Reactions: jfrm

jfrm

Senior Member
Feb 1, 2006
385
46
Marbella
Thanks,

I'm on 3.0.31-204919 (the one that came with XXDLIB) but I was planning to search wich rom has the one you are working in, because i really need Cifs.

By the way, which is your current Rom?
 

viulian

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

Please check first post, I built it for your kernel - no need (hopefully!) to change ROM. Please let me know if you try it out and it works :) otherwise I have to take it down from there.
Also, in the unlikely event that it doesn't work, please tell me the errors in dmesg - maybe they could help sorting out the problem.
 
  • Like
Reactions: jfrm

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