Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

USB2.0 - LAN Adapter HG20F9 - Driver?

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

    USB2.0 - LAN Adapter HG20F9 - Driver?

    I bought this ethernet adapter:

    [IMG]http://i.****img.com/t/Ethernet-USB-2-0-Lan-Network-Card-RJ45-Adapter-100Mbps-Laptop-PC-/00/s/NTAwWDUwMA==/$(KGrHqJHJFUFDK7i2t7kBQ7M8m5NRw~~60_12.JPG[/IMG]
    http://www.****.de/itm/370678240779?...ht_5155wt_1037

    because it´s a real USB2.0 adapter (not limited to 12Mbps) and nevertheless cheap. What I didn´t know is, that it works with an HG20F9 chipset, for which no Android drivers are available. It comes however with driver sources for Linux 2.6.14 to 3.2.0.

    As I thought Android is based on Linux, is it possible to compile an Android driver based on the Linux sources? I can make the sources available.

    Found also similar requests here:


    #2
    Android driver based on Linux sources?

    Anybody any idea whether compiling an Android driver from Linux sources is possible?

    Comment


      #3
      Look here, seems that someone compiled the drivers
      Last edited by TxaEkis; 13 February 2013, 01:14.

      Comment


        #4
        Still can't get it to work :/
        Followed Bob's instructions http://www.freaktab.com/showthread.p...ll=1#post44491

        but i get insmod "Device or resource busy"

        any help would be appreciated

        Comment


          #5
          Try turning off wifi and have the ethernet stick unplugged before doing the insmod command.
          In fact turn off wifi in settings and reboot. On boot up wifi should still be off. Then try insmod command.

          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


            #6
            Originally posted by Finless View Post
            Try turning off wifi and have the ethernet stick unplugged before doing the insmod command.
            In fact turn off wifi in settings and reboot. On boot up wifi should still be off. Then try insmod command.

            Bob
            Thanks for your time Bob, i followed your instructions but its still showing:

            Code:
            insmod: init_module '/system/lib/modules/HG20F9.ko' failed (Device or resource busy)
            is there anything else i can do?
            Thnx in advance!

            Comment


              #7
              Originally posted by TxaEkis View Post
              Still can't get it to work :/
              Followed Bob's instructions http://www.freaktab.com/showthread.p...ll=1#post44491

              but i get insmod "Device or resource busy"

              any help would be appreciated
              I tried the same, but am already stuck at step 7: "7) After it is copied long press on the file name and in the pop up menu select properties" - ES File Explorer does not give me the option "properties", what do I do wrong?

              Comment


                #8
                Originally posted by markust View Post
                I tried the same, but am already stuck at step 7: "7) After it is copied long press on the file name and in the pop up menu select properties" - ES File Explorer does not give me the option "properties", what do I do wrong?
                So you're stuck changing the permissions (that sounds like it might be the OP problem too?)

                Try downloading terminal emulator from google play.
                Open it up and type the following:

                Code:
                su
                chmod 644 /system/lib/modules/yourfile.ko
                infact looking at the instructions you have to get terminal emulator anyway so just put the above command in before insmod (obviously put the name of your ko file at the end)

                Comment


                  #9
                  Originally posted by nbuuifx View Post
                  So you're stuck changing the permissions (that sounds like it might be the OP problem too?)

                  Try downloading terminal emulator from google play.
                  Open it up and type the following:

                  Code:
                  su
                  chmod 644 /system/lib/modules/yourfile.ko
                  infact looking at the instructions you have to get terminal emulator anyway so just put the above command in before insmod (obviously put the name of your ko file at the end)
                  Error: Unable to chmod /system/lib/modules/HG20F9.ko Read-only file system

                  Comment


                    #10
                    Originally posted by markust View Post
                    Error: Unable to chmod /system/lib/modules/HG20F9.ko Read-only file system
                    Did you follow step 5 on the instructions on the other thread?

                    If you struggled with that one then you should be able to type:

                    mount -o rw,remount /system

                    which should mount the system area as read/write.


                    I take it you are rooted and if the box pops up when you type su, you click allow?

                    Comment


                      #11
                      Originally posted by nbuuifx View Post
                      Did you follow step 5 on the instructions on the other thread?

                      If you struggled with that one then you should be able to type:

                      mount -o rw,remount /system

                      which should mount the system area as read/write.


                      I take it you are rooted and if the box pops up when you type su, you click allow?
                      Yes, I set ES explorer to have writing rights to /system. And I also click "allow" after su.

                      Will try your hint later and let you know, thanks already in advance!

                      Comment


                        #12
                        Originally posted by markust View Post
                        Yes, I set ES explorer to have writing rights to /system. And I also click "allow" after su.

                        Will try your hint later and let you know, thanks already in advance!
                        Hi nbuuifx,
                        thanks, the remount worked giving me write access to the file. However, now I am getting the same error as TxaEkis when trying insmod:

                        insmod: init_module '/system/lib/modules/HG20F9.ko' failed (Device or resource busy)

                        Even after turning wifi off and rebooting, still the same result. The LAN adapter is not yet connected to the MK808. Any idea?

                        Markus

                        Comment


                          #13
                          DId you set the permissions on the ko file to the same permissions as other ko files in lib/modules?

                          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
                            DId you set the permissions on the ko file to the same permissions as other ko files in lib/modules?

                            Bob
                            Hi Bob,

                            yes, all .ko files in that directory are "rw-r--r--",

                            Markus

                            Comment


                              #15
                              Can't think of much else!

                              Try disabling any network, use advanced task killer to kill everything you possibly can.

                              If you are using terminal emulator try using the adb shell instead.

                              Running out of options without trying it myself.

                              Comment

                              Working...
                              X