Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

Porting drivers

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

    Porting drivers

    Hi,
    I´m trying to add some drivers to my MK802 IIIs. I have all files but I can´t find boardconfig -file to add the ko files! Where is it?

    Best regards,
    Svensson

    #2
    Originally posted by Svensson View Post
    Hi,
    I´m trying to add some drivers to my MK802 IIIs. I have all files but I can´t find boardconfig -file to add the ko files! Where is it?

    Best regards,
    Svensson
    Hello,

    You have 2 Option for it.

    1.: Use a Custom Rom with Init.d Support to load your ko files.

    To do so make a File Sxxloadmod in the Init.d Folder.
    In this File write insmod /system/where your file is/
    That´s all.

    2.: Second Option

    Unpack the Kernel File and add the Insmod Command to your Init.rc File.

    3.: Use a Custom Rom for it with Init.d Support

    If you have question feel free to ask.

    Neomode

    Comment


      #3
      Thank you for your reply. Does my ko files and "Sxxloadmod" work with all kernels? I can unpack all img but not my kernel and boot. What tool do you use for unpack/pack kernel and boot?

      Comment


        #4
        Hello,

        Take my custom rom for your device, my kernel has init.d support.
        You must root your System and bring busybox and supersu to your Device.
        Then make in etc a Directory called init.d.

        To test if a Kernel driver work load it to your Device and Test it with insmod your module,
        there see if there be error messages. if everything went fine try your Device you want to ad the Kernel Module.

        Neomode

        Comment


          #5
          Thank you :-) Btw, can I lower the resolution to 720p by commands or do I have to rebuild the kernel?

          Comment


            #6
            @ the Moment the Kernel only have 720p Native the Rest is Upscaling.
            I must first build my own Kernel, right now it is a modified Factory Kernel.
            Hope that´s help you.

            Neomode

            Comment


              #7
              Thank you!
              What tools do you use to unpack/pack kernel.img? Are the boot.img and kernel.img different compared to other android builds? I can't unpack these. I'm used to work with only a boot.img containing both boot and the kernel.

              Comment


                #8
                Will send you a PM and will say what to do.

                Neomode

                Comment


                  #9
                  I tried adding my modules to /system/lib/modules
                  and added a file called "Sxxloadmod" in my /system/etc/init.d
                  Test code:

                  #!/system/bin/sh
                  #
                  insmod /system/mod/test.ko
                  echo "Done"

                  But it doesnt work :-(

                  Comment


                    #10
                    AW: Porting drivers

                    Have you try to load the Module by hand ?
                    Did your file the right premison ?
                    Try chmod 755 your file.

                    @ 12.30 I have a free Time you can reach me on gtalk aim or msn. Search for [email protected]


                    Send from my SG3

                    Comment


                      #11
                      I tried chmod it, when i use lsmod its not listed. If I manually load the module it is shown by lsmod. I think there is something wrong with the script in init.d... :-(

                      Comment


                        #12
                        AW: Porting drivers

                        You must type insmod /system/etc/lib/module/yourmodule


                        Send from my SG3

                        Comment


                          #13
                          I moved the file to system/lib/modules but still no luck. I tried to execute the script in script manager but got errors. Module not found. The path and file name is correct. Am I missing something here?

                          Comment


                            #14
                            AW: Porting drivers

                            Take a look on file permissions.
                            Change it to 10755 with chmod.

                            Send from my SG3

                            Comment


                              #15
                              Still no luck....
                              I think it maybe better to add it in kernel.img if I can unpack it :-P

                              Comment

                              Working...
                              X