Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

CIFS Automount (s905)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    CIFS Automount (s905)

    Just in case someone needs CIFS Automount, here is a quick guide to get it done.

    You will need root and SELinux set to Permissive (which is usually already the case).
    If not, use this method for root http://freaktab.com/forum/tv-player-...ll-s95-devices
    Use this App to set SELinux to Permissiv https://github.com/MrBIMC/SELinuxMod....2-release.apk

    Get "Universal Init.d" from here https://play.google.com/store/apps/d...l.init.d&hl=en
    Place the KO-files (attached) and modify Automount.sh (attached) to your needs.
    Place the modified Automount.sh in /system/etc/Init.d/ and activate auto-execute in "Universal Init.d"-App

    !! Do not use /sdcard folder as target mount folder. If you do, mount will only be visible to root and invisible to other apps. !!
    You might want to use /mnt/Cifs/yourFolder , that works fine for me.


    Automount.sh is modified from here, credits goes to DualJoe
    http://forum.xda-developers.com/show...&postcount=756
    Attached Files
    Last edited by KyleRiemen; 07-25-2016, 16:03.

    #2
    Thank you SOOOOOO much for this. I was trauling the web for ages for an answer on how to map network drives on the s905.
    I followed your guide and it worked straight away, cant thank you enough!!!!
    I'm trying to grasp linux and android, is it easy to compilke the KO file? If you have the time, could you explain how you did it?

    Again many many thanks for this, saved me hours and hours of frustration ☺

    Comment


      #3
      Hello,

      I want these modules compiled for the S912...
      Can you please build and share them...
      Alternatively, can you explain how to build them... I have downloaded and built the entire kernel from openlinux.amlogic.com but I couldn't find the ko modules.

      Many Thanks in advance.

      Comment


        #4
        It's Ok... I finally got them...
        It takes me many hours to figure out how to build them without external help...
        ... but it's really worth the effort...
        Now I can enjoy my video library from a NAS using KODI and my favorite external video player : MX Player.
        and the experience is really better...
        if some interested, I'll share a how to.
        kindly.

        Comment


          #5
          Can you please share the S912 modules? I need them as well. Thanks.

          Comment


            #6
            I have built cifs with caching enabled, so you have to load fscache module too...
            Here are the modules : s912_cifs_modules.zip

            kindly.

            Comment


              #7
              Thanks! It's working!

              Comment


                #8
                Hi,
                I tried this on S905x Nexbox and insmod the .ko files. But when I try to mount cifs the system crashes all the time. Do I need other .ko's ?

                Comment


                  #9
                  Originally posted by abdelhachim View Post
                  I have built cifs with caching enabled, so you have to load fscache module too...
                  Here are the modules : [ATTACH]n607388[/ATTACH]

                  kindly.
                  Hello,

                  (excuse my english : I'm french!!)

                  I have a yoka kb2 with s912, Interested to mount a cifs share, but, I can't load the module cifs.ko ...

                  I put the 4 modules in /system/lib/modules :
                  Code:
                  u0_a53@KB2:/ $ su
                  root@KB2:/ # cd /system/lib/modules
                  root@KB2:/system/lib/modules # ls -l
                  -rw------- root     root       725808 2016-10-30 02:22 cifs.ko
                  -rw------- root     root        99728 2016-10-30 02:22 fscache.ko
                  -rw------- root     root         6192 2016-10-30 01:08 md4.ko
                  -rw------- root     root         3800 2016-10-30 01:18 nls_utf8.ko
                  Manually, I load every modules:
                  Code:
                  root@KB2:/system/lib/modules # insmod md4.ko
                  root@KB2:/system/lib/modules # insmod nls_utf8.ko
                  root@KB2:/system/lib/modules # insmod fscache.ko
                  root@KB2:/system/lib/modules # insmod cifs.ko
                  insmod: failed to load cifs.ko: Invalid argument
                  1|root@KB2:/system/lib/modules # lsmod
                  Module                  Size  Used by
                  fscache                37304  0
                  nls_utf8                1208  0
                  md4                     3408  0
                  dwc_otg               282460  0
                  dwc3                   17957  0
                  mali_kbase            316175  24
                  root@KB2:/system/lib/modules #
                  An idea?

                  Thank you.

                  Comment


                    #10
                    I think you have to look in dmesg for error messages.

                    Comment


                      #11
                      Hi, can you please share the S905x modules?

                      Comment


                        #12
                        Did u find the solution? Im having the same problem.

                        Comment


                          #13
                          Originally posted by jeanluc56

                          Hello,

                          (excuse my english : I'm french!!)

                          I have a yoka kb2 with s912, Interested to mount a cifs share, but, I can't load the module cifs.ko ...

                          I put the 4 modules in /system/lib/modules :
                          Code:
                          u0_a53@KB2:/ $ su
                          root@KB2:/ # cd /system/lib/modules
                          root@KB2:/system/lib/modules # ls -l
                          -rw------- root     root       725808 2016-10-30 02:22 cifs.ko
                          -rw------- root     root        99728 2016-10-30 02:22 fscache.ko
                          -rw------- root     root         6192 2016-10-30 01:08 md4.ko
                          -rw------- root     root         3800 2016-10-30 01:18 nls_utf8.ko
                          Manually, I load every modules:
                          Code:
                          root@KB2:/system/lib/modules # insmod md4.ko
                          root@KB2:/system/lib/modules # insmod nls_utf8.ko
                          root@KB2:/system/lib/modules # insmod fscache.ko
                          root@KB2:/system/lib/modules # insmod cifs.ko
                          insmod: failed to load cifs.ko: Invalid argument
                          1|root@KB2:/system/lib/modules # lsmod
                          Module                  Size  Used by
                          fscache                37304  0
                          nls_utf8                1208  0
                          md4                     3408  0
                          dwc_otg               282460  0
                          dwc3                   17957  0
                          mali_kbase            316175  24
                          root@KB2:/system/lib/modules #
                          An idea?

                          Thank you.
                          Did you find any solution? Im having the same problem

                          Enviado desde mi GT-I9300 mediante Tapatalk

                          Comment


                            #14
                            Originally posted by Bkkite View Post

                            Did you find any solution? Im having the same problem
                            Check dmesg

                            Comment


                              #15
                              Originally posted by KyleRiemen

                              Check dmesg
                              Thanks. CIFS was already installed.


                              Enviado desde mi Beelink GT1 mediante Tapatalk

                              Comment

                              Working...
                              X