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

    #31
    I have no idea how to do that. Not in the driver that I am aware of.
    Since you are rooted try to edit those files. Try changing only the speed first not the duplex. Your router still should support half.

    I will see what I can find but this maybe very difficult. USB mode switch may require a device entry there for this to send config message. What that message is might be tough to figure out. This is getting beyond my expertise honestly.

    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


      #32
      I can help to resolve this problem.
      Wait I'll add this LAN driver to kernel with proper init's for You to test.

      Comment


        #33
        Thanks Alex!

        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


          #34
          Originally posted by Finless View Post
          I have no idea how to do that. Not in the driver that I am aware of.
          Since you are rooted try to edit those files. Try changing only the speed first not the duplex. Your router still should support half.

          I will see what I can find but this maybe very difficult. USB mode switch may require a device entry there for this to send config message. What that message is might be tough to figure out. This is getting beyond my expertise honestly.

          Bob
          Most of contents in /sys/class/net/eth0/* are read-only; I can use es file manager to change the permission and edit the content but everytime we turn off and turn on the eth0 using command:
          ip link set eth0 down
          ip link set eth0 up

          folder and files in /sys/class/net/eth0 are gone after down command executed and recreated with read-only permisions after up command executed.

          I think there must be somewhere in Android directory structure that holds hardware initial configuration just like in linux system (under /var directory if i'm not wrong). Anyone has more knowledge about this?
          Or probably just like 2dark4u (Alex?) said it must be embedded in kernel?

          Thank you guys...

          Comment


            #35
            Try this kernel. I've included all needed to support SMSC75xx.

            Comment


              #36
              The suspense is killing me too!!
              Just bought my MK808 and I'm pleased to see how hard you guys work on it.
              It is a honor to talk with you directly and I hope that I can learn more about ROM's, Android, Linux, etc and help in this task.
              Feed me with knowledge!

              Comment


                #37
                Originally posted by 2dark4u View Post
                Try this kernel. I've included all needed to support SMSC75xx.
                http://www.allminipc.com/download/80..._LAN_BT_TS.img

                Hi Alex/Bob,

                Thank you for the kernel image.
                I'm not sure how to flash the kernel you gave me because when I try to flash Finless 1.4 ROM using Finless' ROM Flash Tool and replace the kernel image with yours, it fails when checking download data.

                Could you tell me what tool I can use to flash the kernel and could you provide me with instruction, please...I'm not familiar with Android development environment.

                Thank you for your kind attention.

                Comment


                  #38
                  Originally posted by chronozen View Post
                  Hi Alex/Bob,

                  Thank you for the kernel image.
                  I'm not sure how to flash the kernel you gave me because when I try to flash Finless 1.4 ROM using Finless' ROM Flash Tool and replace the kernel image with yours, it fails when checking download data.

                  Could you tell me what tool I can use to flash the kernel and could you provide me with instruction, please...I'm not familiar with Android development environment.

                  Thank you for your kind attention.
                  Ohh sure ! There is too big size of kernel for stock partition.

                  You need parameter file with extended size of partition for kernel. Try to flash again with this
                  parameter file: http://www.allminipc.com/download/80...rameter1gb.zip

                  Comment


                    #39
                    Hi Alex,

                    Using the parameter1gb file, I can successfully flash Finless ROM 1.6 with your kernel. My USB LAN adapter can be recognize instantly and I can directly applied static IP without experiencing system hung up.
                    Ethernet icon shown at the bottom right of the screen, when I click it I still found "No Internet Connection".

                    I use terminal emulator to check routing table of the MK808 after USB LAN enabled, it contains similar routing tables entries compared to WIFI connectivity.
                    Ping-ing USB LAN Ip address can be done successfully but ping-ing local gateway is saying "Destination Host is Unreachable".

                    I'm checking the parameter values of the ethernet in /sys/class/net/eth0/speed, it still showing 1000 (1 Gbps). My modem router is not supporting Gigabit Ethernet; could you configure the smsc75xx driver to initialise the USB Ethernet LAN adapter to operate at 100 base Tx - Half Duplex, please?
                    Or is there any tool in Android App that can be used to set Ethernet Device speed/duplex?

                    Thank you.

                    Comment


                      #40
                      Originally posted by chronozen View Post
                      Hi Alex,

                      Using the parameter1gb file, I can successfully flash Finless ROM 1.6 with your kernel. My USB LAN adapter can be recognize instantly and I can directly applied static IP without experiencing system hung up.
                      Ethernet icon shown at the bottom right of the screen, when I click it I still found "No Internet Connection".

                      I use terminal emulator to check routing table of the MK808 after USB LAN enabled, it contains similar routing tables entries compared to WIFI connectivity.
                      Ping-ing USB LAN Ip address can be done successfully but ping-ing local gateway is saying "Destination Host is Unreachable".

                      I'm checking the parameter values of the ethernet in /sys/class/net/eth0/speed, it still showing 1000 (1 Gbps). My modem router is not supporting Gigabit Ethernet; could you configure the smsc75xx driver to initialise the USB Ethernet LAN adapter to operate at 100 base Tx - Half Duplex, please?
                      Or is there any tool in Android App that can be used to set Ethernet Device speed/duplex?

                      Thank you.
                      1. Try to disable WIFI in settings.
                      2. try to get all settings from router via DHCP with ANDROID LAN settings menu.
                      If it will not work after these steps, I'll see the driver source, but I think it just shows You 1Gb but current speed is autodetected in diver.

                      Comment


                        #41
                        Originally posted by 2dark4u View Post
                        1. Try to disable WIFI in settings.
                        2. try to get all settings from router via DHCP with ANDROID LAN settings menu.
                        If it will not work after these steps, I'll see the driver source, but I think it just shows You 1Gb but current speed is autodetected in diver.
                        Retested again, reboot MK808, go to setting, make sure WIFI disabled.
                        Plug in the USB Ethernet adapter to OTG port, enable Ethernet, no static IP configured, try to use DHCP from local gateway.
                        Wait for few minutes, no ip address assigned to the USB Ethernet adapter,
                        Ethernet icon did not appear in status bar.

                        trying to browse the local gateway using browser resulting "Page not found".
                        Check using terminal emulator, using "netcfg" command, no ip address assigned to eth0 (ip address 0.0.0.0/0), no entries in the routing table.

                        when using netcfg command, next to the ip address there is a hexadecimal value: 0x00001043 then MAC Address (MAC address is displayed correctly).

                        "No Internet Connection" still appear when clicking the clock at the bottom right of the screen.

                        Comment


                          #42
                          Originally posted by chronozen View Post
                          Retested again, reboot MK808, go to setting, make sure WIFI disabled.
                          Plug in the USB Ethernet adapter to OTG port
                          My USB Ethernet is connected to fullsize USB port try it, in OTG port my USB Ethernet on ASIX chip, won't work too.

                          Comment


                            #43
                            Originally posted by 2dark4u View Post
                            My USB Ethernet is connected to fullsize USB port try it, in OTG port my USB Ethernet on ASIX chip, won't work too.

                            I manage to get my hand to ADSL Modem Router that has Gigabit ethernet port. I connect the USB Lan Adapter to MK808 via its Full size USB port and connect it to the Gigabit ethernet port of the new router.

                            Using desktop pc, I can see that the Router can recognize MAC Address of the USB Lan adapter and using DHCP it assign ip address for it, but in the MK808 the USB Lan adapter still showing ip address 0.0.0.0/0; it seems MK808 did not assigned received IP from the DHCP server to USB Lan adapter.

                            If I assign static IP, the Ethernet connection icon appear at the bottom right of the screen.
                            It seems we have 2 different problem here:
                            1. With DHCP, IP address sent from DHCP server is not assigned to the Ethernet adapter
                            2. When Ethernet adapter has IP address assigned, it can't connect to local network.

                            I've unplug the USB Ethernet adapter from MK808 and plug it into my desktop to make sure the device is not faulty and it works fine on desktop pc running windows 8.

                            If you have some time, could you have a look at the smsc75xx driver's source code Alex?

                            Thank you.

                            Comment


                              #44
                              levelone nic

                              Hallo

                              I special registered for this topic so halo to all
                              I have mk808 and tried to connect to it usb nic



                              I tryied on MK808 Hybryd FW V2.0.0 !NEW! from lewy20041
                              link to description of my problem


                              it detect it self automatic it looks the same like in this topic i get eth0 i'm adding manualy Ip address (because dhcpcd command is giving wrong address 168.182.201.102 or something like)
                              but no pings to gw
                              and when i connect and disconect cable i get on dmesg "link down" and "link up, 100Mbs, full duplex, lpa 0x45E1" messages

                              one thing steange thing that when i give "ip addr"command (i think that was the command now i writte from my head - i will check at home) i get in line of eh0 something like status unknown (!!!) with cable connected

                              could someone please compile me a driver module for this one it uses smsc95xx.ko so i could test it
                              (sources)


                              Comment


                                #45
                                Plugable USB2 to Gigabit Ethernet adaptor on 2Dark4You latest ROM

                                Hi,

                                I've got this adaptor http://www.amazon.com/Plugable-Gigab...dp/B003VSTDFG/ (Asix AX88178 chipset) as it was listed as working on the 1.6 ROM. When I plug it in it is detected but I never get a connection to the network. I looked here http://www.asix.com.tw/download.php?...ownload=driver and there is a driver for Android however the zip file only contains the sources and I have no idea how to comile the module.

                                I found a couple of asix.ko compiled modules on the web but one was for an older 2.x kernel and the other apparently compiled with an unknown flag (according to dmesg after trying insmod asix.ko).

                                As this USB adapter was working in the 1.6 ROM I thought I'd download that and extract the system.img file using unyaffs to get the asix.ko module but I'm unable to extract the system.img using this utility.

                                Questions:
                                - Does anyone know how I can compile this module myself
                                - Could I extract it from the 1.6 ROM and if yes did that have the same kernel as the 1.7?

                                Thanks for your fantastic work on this ROM! You lot make this device great!

                                herges
                                Last edited by herges; 30 January 2013, 17:11. Reason: Typo

                                Comment

                                Working...
                                X