Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

MK808 - USB LAN Gigabit Ethernet with SMSC75xx chipset and various drivers in github.

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

    MK808 - USB LAN Gigabit Ethernet with SMSC75xx chipset and various drivers in github.

    Hi,

    I've bought USB LAN Gigabit Ethernet with SMSC75xx chipset. I've plug the RJ45 connector to my router via ethernet and got the ethernet link; when i plug it into my MK808 that runs Finless Bob 1.6 ROM, the MK808 cannot detect the USB Ethernet adapter. I've turned off Wifi before trying to enable the Ethernet, but it still does not work.
    I've found out there are drivers for MK808 from github link: https://github.com/omegamoon/rockchi...rivers/net/usb

    I don't know how to compile the driver for SMSC75xx to use it in MK808; I just wondering whether someone can help me to compile the SMSC75xx into ko module for MK808 with Finless Bob 1.6 ROM.

    Thank you very much for your kind attention.

    #2
    Here is the kernel module for the 75xx

    I tested that it will insmod into the kernel with no errors. But I cannot test your device since I do not have it.

    Instructions for testing:
    1) Download this ZIP file.
    2) Unzip it
    3) Put the file smsc75xx.ko on your sdcard.
    4) Get ES File manager from Google Play
    5) Make sure to setup root explorer and mount system RW in ES File manager settings.
    6) Copy the ko file to system/lib/modules/ using ES File Manager
    7) After it is copied long press on the file name and in the pop up menu select properties
    8) Change permissions Read=check all boxes, Write=check first box When done permissions should be rw-r--r--
    9) Get Terminal Emulator from Google Play
    10) Run terminal emulator and type su
    11) Respond to Super User YES to give permissions
    12) Type the following: insmod /system/lib/modules/smsc75xx.ko
    13) You should not get any errors.
    14) To confirm the module is there now type: lsmod
    This will list all kernel modules and you should see smsc75xx.ko listed.
    15) Now go into settings and turn off wifi. Then plug in your device to either the full sized USB port or the OTG port. DO NOT use it through a hub yet! Direct to the port please.

    Now see if your device works. If it does, I will give you a new boot.img that will auto inject the module for you.

    Bob
    Attached Files
    "Pzebacz im, bo nie wiedzą, co czynią"
    "Прости им, они не ведают, что творят"
    "Perdona loro perché non sanno quello che fanno"
    "Vergib ihnen, denn sie wissen nicht, was sie tun"
    "Vergeef hen want ze weten niet wat ze doen"
    "Pardonne-leur car ils ne savent pas ce qu'ils font"
    "Perdónalos porque no saben que lo que hacen"
    "Oprosti im, jer ne znaju što čine"
    "Forgive them as they know not what they do"





    Comment


      #3
      Hi Bob,

      Thank you very much for compiling the smsc75xx.ko for me.
      I successfully run step 1 until 13, since i can't find Ismod, i cannot listed out installed modules to confirm smsc75xx.ko in the list.

      For step 15, I've turned off WIFi and plug in the smsc75xx device directly to OTG port of MK808 (with micro usb to normal usb cable converter); I can successfully enabled the Ethernet connectivity, and let DHCP configure the smsc75xx device. Not long after I return to home screen, the MK808 was hang up. I've tried to restart it several time, and after each boot, I manually perform step 12 and smsc75xx.ko module installation always success.

      I've tried to set static IP for it, after enabling the device, it hangs up 2-3 times, finally after several restart and insmod, it is not hang up anymore; the Ethernet icon shows up at the bottom right of the screen.

      I've tried to run Google Play for internet connection checking, but it ends up with "No Connection" error, Retry action did not help. I click the Ethernet icon and the system status displayed saying "No Internet Connection". I've tried to connect to my router using web browser but it cannot open the router/gateway ip address.

      I'm not sure this is related to the driver directly or related to the routing information in the device.
      My static IP configuration is:
      IP address: 192.168.82.92
      netmask: 255.255.255.0
      Gateway/DNS1: 192.168.82.1
      DNS2: 8.8.8.8

      I left the MK808 on for about 30 minutes attached to the USB LAN device and the MK808 hangs up. Restart and insmod action still made MK808 hang up after a while. I can see the ethernet icon blink (shown/hidden) for several times before MK808 hangs up.

      If the cause the the driver, I have tar.gz file that comes from the driver CD of this device, I'm not sure whether smsc75xx files in that tar.gz file is the same with files from github.

      Attached is the tar.gz file from the device's Driver CD, just in case if they are different and recompilation of ko file is necessary.


      Thank you very much for your kind attention.
      Attached Files
      Last edited by chronozen; 03 January 2013, 01:58. Reason: Update latest finding

      Comment


        #4
        The command to see what modules are installed is not ismod it is lsmod (L not I and it's lower case l).

        As for it hanging, again hard to check when I do not have the device. Do this please

        With the device unplugged open terminal and type
        logcat -c
        Now plug in device and try to connect. Before it hangs type this
        logcat
        pull this and provide me the logcat dump.

        Also do a command
        dmesg
        and give me that log.

        Bob
        "Pzebacz im, bo nie wiedzą, co czynią"
        "Прости им, они не ведают, что творят"
        "Perdona loro perché non sanno quello che fanno"
        "Vergib ihnen, denn sie wissen nicht, was sie tun"
        "Vergeef hen want ze weten niet wat ze doen"
        "Pardonne-leur car ils ne savent pas ce qu'ils font"
        "Perdónalos porque no saben que lo que hacen"
        "Oprosti im, jer ne znaju što čine"
        "Forgive them as they know not what they do"





        Comment


          #5
          Hi Bob,

          Thank you for looking into this.

          Attached are zipped text files (dmesg and logcat); I hope it will help to solve the issue with smsc75xx.ko.
          Please let me know if you need anything else from the MK808 environment.

          Regards,
          Cipta
          Attached Files

          Comment


            #6
            Originally posted by Finless View Post
            Here is the kernel module for the 75xx

            I tested that it will insmod into the kernel with no errors. But I cannot test your device since I do not have it.

            Instructions for testing:
            1) Download this ZIP file.
            2) Unzip it
            3) Put the file smsc75xx.ko on your sdcard.
            4) Get ES File manager from Google Play
            5) Make sure to setup root explorer and mount system RW in ES File manager settings.
            6) Copy the ko file to system/lib/modules/ using ES File Manager
            7) After it is copied long press on the file name and in the pop up menu select properties
            8) Change permissions Read=check all boxes, Write=check first box When done permissions should be rw-r--r--
            9) Get Terminal Emulator from Google Play
            10) Run terminal emulator and type su
            11) Respond to Super User YES to give permissions
            12) Type the following: insmod /system/lib/modules/smsc75xx.ko
            13) You should not get any errors.
            14) To confirm the module is there now type: lsmod
            This will list all kernel modules and you should see smsc75xx.ko listed.
            15) Now go into settings and turn off wifi. Then plug in your device to either the full sized USB port or the OTG port. DO NOT use it through a hub yet! Direct to the port please.

            Now see if your device works. If it does, I will give you a new boot.img that will auto inject the module for you.

            Bob
            hi Bob,

            is this kernel module work with mk802 III ? i am using ug802 1.7 rom, is it the same?

            thanks a lot!!!

            Comment


              #7
              Originally posted by GARYKNVB View Post
              hi Bob,

              is this kernel module work with mk802 III ? i am using ug802 1.7 rom, is it the same?

              thanks a lot!!!
              You can try it per my instructions above.

              chronozen, logcat if full of all kinds of errors coming from other applications. ES File explorer is erroring bad and crashing. Possibly due to mounts you have setup over wifi? There are a few other apps also having problems that possibly were mapped before?

              Bottom line I do not see any errors with the LAN adapter! What I do see is apps crashing VM and Dalvick.

              I hate to tell you this but to continue I will make you a new boot.img and inject the driver there on boot. Then I will want you to flash the ROM again and erase NAND. Then install nothing nor setup wifi even. We can then debug this much easier.

              Which kernel and boot are you using, 1080 or 720? I will make you one for this further testing.

              Bob
              "Pzebacz im, bo nie wiedzą, co czynią"
              "Прости им, они не ведают, что творят"
              "Perdona loro perché non sanno quello che fanno"
              "Vergib ihnen, denn sie wissen nicht, was sie tun"
              "Vergeef hen want ze weten niet wat ze doen"
              "Pardonne-leur car ils ne savent pas ce qu'ils font"
              "Perdónalos porque no saben que lo que hacen"
              "Oprosti im, jer ne znaju što čine"
              "Forgive them as they know not what they do"





              Comment


                #8
                Hi Bob,

                I use default kernel when running ROM Flash Tool.exe which i believe it is the 720p.
                It is good to hear that the smsc75xx.ko driver is not crashing.

                FYI, I've reset the device several times before contacting you about the smsc75xx drivers because after sometimes using the MK808 and setup all the apps, the Google Play app cannot make connection. When I try to use the browser, it said the google certificate is not valid; browse around i found out that Google Play can't connect because of the google certificate is invalid.

                I will erase the NAND and flash the ROM with the new boot image once you've provide me with the new one; I think I still need to get the terminal emulator application installed for logcat and dmesg, I think I should try to use Titanium Backup to install it or will you include the Terminal Emulator in the testing version of the ROM?

                Thank you for your kind attention.

                chronozen

                Comment


                  #9
                  Hang tight please... Making you a new boot.img for 720P now.

                  I need you to stay tight with this tonight or I will run out of time to continue. TOnight working on this is the best time. I hope you can stay with this tonight.

                  Bob
                  "Pzebacz im, bo nie wiedzą, co czynią"
                  "Прости им, они не ведают, что творят"
                  "Perdona loro perché non sanno quello che fanno"
                  "Vergib ihnen, denn sie wissen nicht, was sie tun"
                  "Vergeef hen want ze weten niet wat ze doen"
                  "Pardonne-leur car ils ne savent pas ce qu'ils font"
                  "Perdónalos porque no saben que lo que hacen"
                  "Oprosti im, jer ne znaju što čine"
                  "Forgive them as they know not what they do"





                  Comment


                    #10
                    Originally posted by Finless View Post
                    Hang tight please... Making you a new boot.img for 720P now.

                    I need you to stay tight with this tonight or I will run out of time to continue. TOnight working on this is the best time. I hope you can stay with this tonight.

                    Bob
                    I've managed to backup TerminalEmulator.apk and ready to flash your new boot.img.

                    Comment


                      #11
                      Originally posted by chronozen View Post
                      I've managed to backup TerminalEmulator.apk and ready to flash your new boot.img.
                      I am almost ready to give you a totally TEST ROM for this.

                      I am uploading it now.

                      Bob
                      "Pzebacz im, bo nie wiedzą, co czynią"
                      "Прости им, они не ведают, что творят"
                      "Perdona loro perché non sanno quello che fanno"
                      "Vergib ihnen, denn sie wissen nicht, was sie tun"
                      "Vergeef hen want ze weten niet wat ze doen"
                      "Pardonne-leur car ils ne savent pas ce qu'ils font"
                      "Perdónalos porque no saben que lo que hacen"
                      "Oprosti im, jer ne znaju što čine"
                      "Forgive them as they know not what they do"





                      Comment


                        #12
                        OK I am running into some problems... So you know this is not easy.

                        Anyway please if you can hang for a while I am trying to make a custom ROM for you to debug this. But it appears this KO module will not inject on boot. SO I may have to do it another way.

                        I hope you an hang around for about 2 hours until I can make this work.

                        Bob
                        "Pzebacz im, bo nie wiedzą, co czynią"
                        "Прости им, они не ведают, что творят"
                        "Perdona loro perché non sanno quello che fanno"
                        "Vergib ihnen, denn sie wissen nicht, was sie tun"
                        "Vergeef hen want ze weten niet wat ze doen"
                        "Pardonne-leur car ils ne savent pas ce qu'ils font"
                        "Perdónalos porque no saben que lo que hacen"
                        "Oprosti im, jer ne znaju što čine"
                        "Forgive them as they know not what they do"





                        Comment


                          #13
                          OK you still there?

                          I am about ready.

                          Bob
                          "Pzebacz im, bo nie wiedzą, co czynią"
                          "Прости им, они не ведают, что творят"
                          "Perdona loro perché non sanno quello che fanno"
                          "Vergib ihnen, denn sie wissen nicht, was sie tun"
                          "Vergeef hen want ze weten niet wat ze doen"
                          "Pardonne-leur car ils ne savent pas ce qu'ils font"
                          "Perdónalos porque no saben que lo que hacen"
                          "Oprosti im, jer ne znaju što čine"
                          "Forgive them as they know not what they do"





                          Comment


                            #14
                            Originally posted by Finless View Post
                            OK you still there?

                            I am about ready.

                            Bob

                            Yes, Bob... I'm ready...Thanks.

                            Comment


                              #15
                              OK I tested and have it working.... sheesh sometimes developers can make STUPID MISTAKES! I am not going into my stupid mistake
                              But when I do something custom, because I have everything scripted, I can forget and makwe STUPID script mistake!

                              Anyway, the module is now loading on boot. I am uploading now and will give you complete instructions for debug at the next post.

                              Thanks for hanging in there and me being slow in getting this test ROM done.

                              Bob
                              "Pzebacz im, bo nie wiedzą, co czynią"
                              "Прости им, они не ведают, что творят"
                              "Perdona loro perché non sanno quello che fanno"
                              "Vergib ihnen, denn sie wissen nicht, was sie tun"
                              "Vergeef hen want ze weten niet wat ze doen"
                              "Pardonne-leur car ils ne savent pas ce qu'ils font"
                              "Perdónalos porque no saben que lo que hacen"
                              "Oprosti im, jer ne znaju što čine"
                              "Forgive them as they know not what they do"





                              Comment

                              Working...