Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

Wifi dongle

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

    Wifi dongle

    Hi guys,

    I have a MK808 original and my wifi was very poor (from few meters away but very good near the router), I have tried several tricks to get solved but in the end I overburned the wifi antenna ANT pin connector on the circuit board. Even though the model I have has two antenna's, after few tests, I noticed that the front antenna (near the OTG port) was for Speed and the one at the back was for Signal. So even playing around with the signal pin, it does not help as the speed is important for it to get connection...

    I have bought a Edimax ew-7811un wifi dongle as my antenna chip on the board is damaged (after few test with external antennas)

    Do you guys know how to active the dongle so it will use it and not the internal wifi?
    Maybe it needs drivers for MK808?

    I heard there are files to overwrite in order for it to work but not sure which one?

    Can anyone help?

    Thanks in advance!

    Regards
    Alex

    #2
    Maybe this topics will be usefull:

    Comment


      #3
      Thanks alot!
      I will check each of these in details, there are a lot of links so will take more time

      but do you know what is best wifi usb dongle to use, with your experience?

      Can mine be used with the links you provided?

      Thanks in advance!

      Comment


        #4
        So just found out the chipset it uses, according to wikidevi site, its a Realtek RTL8188CUS
        I hope this will help finding the right driver/module

        Comment


          #5

          This is driver for 8192cu & 8188cus for mk908 (rk3188, kernel 3.0.36+). It can work on your mk808 (but you need to check kernel version).
          You need to:
          1 mount /system read-write (from es explorer for ex.)
          2 place 8192cu.ko to /system/lib/modules (replace existing) and chmod it to 644
          3 place "wifi" file in /system/bin and chmod it to execution (its a shell script, you can edit it as a text)
          4 disable built-in wifi module in android settings
          5 in terminal from root try
          insmod
          /system/lib/modules/8192cu.ko
          6 plug-in your external dongle (only after 4&5. its
          important!)
          7 from root run "wifi", if everything is fine, after about 20 sec you get connection.

          What can be wrong: you can have another kernel version, in such case you need to get you kernel source and build driver by yourself from sources.

          Comment


            #6
            Thanks alot!!

            I will download this driver right away

            My kernel is 3.0.8+ so I will flash another kernel for MK808 such as it is 3.0.36+

            Once I flashed a new kernel, hoping to find one, I believe finless' one are 3.0.36+, let's see



            Thanks again!

            Comment


              #7
              Look at this thread:

              I think you can find module for 3.0.8 for rk3066.

              Comment


                #8
                Wow, thanks a lot, that way I don't need to flash a new kernel!!

                Great help mate!

                One question if I may, you have helped me a lot already!

                your file, wifi.zip has two files, one called 8192cu.ko and the second one called wifi
                but on the site, there is only one called rtl8192cu.ko

                Is there a need for me to use the wifi from your zip with the rtl8192cu.ko of the other site?

                Thanks in advance!

                Comment


                  #9
                  I have found these files under system/lib/module of my MK808:



                  under system/bin I don't have yet the wifi script, I guess its something needed only for the 8192cu.ko you provided or also for the rtl8192cu.ko from the other site?

                  P.S: it show as system/bin/sh (if Open the file for writing), is there such a directory or under system/bin the wifi file should be placed?

                  Thanks mate!
                  Last edited by nimo; 20 May 2014, 11:33.

                  Comment


                    #10
                    wifi is only needed on rk3188 to start wifi on boot (it is my self-writen script). Maybe you dont need it.
                    Try to load module first and check if it working.
                    Place 8192cu.ko to /system/lib/modules
                    disable built-in wifi module in android settings
                    in terminal try:
                    Code:
                    [COLOR=#333333]
                    su
                    insmod [/COLOR][COLOR=#333333]/system/lib/modules/8192cu.ko
                    [/COLOR]

                    then plug-in your dongle and in terminal:
                    Code:
                    [COLOR=#333333]
                    ifconfig wlan0 up
                    [/COLOR]svc wifi enable[COLOR=#333333]
                    [/COLOR]
                    If it doesn't work please upload your dmesg & logcat

                    Comment


                      #11
                      I have used the files from the site which have worked for most users having the same kernel as me

                      The file name is rtl8192cu.ko

                      Do I need to rename the file to rkwifi.ko or 8192co.ko or can I leave it as it is and use the command you said with name change?

                      So far, what I did:

                      Place rtl8192cu.ko to /system/lib/modules (do I need to change permission and to what in ES File explorer or Terminal?

                      disable built-in wifi module in android settings
                      in terminal, I typed:

                      su
                      insmod /system/lib/modules/8192cu.ko


                      then plug-in my wifi dongle and in terminal wrote:

                      ifconfig wlan0 up svc wifi enable

                      After the last command, MK808 rebooted and wifi was not picked up and caused google play to display the usual time issue

                      I then turned off wifi and enable again via UI settings, it did pick up my router but not sure if this is using the internal antenna or the new dongle.. (also the speed is very low like 3-4 mbs when my phone just next to it can reach 30mbs)

                      Is there a way to find out?

                      Sorry real newb to debuging android, how can I generate dmesg & logcat to send as text

                      Thanks in advance!

                      Comment


                        #12
                        I also tried to do a

                        insmod /system/lib/modules/rtl8192cu.ko.

                        once the device rebooted to be sure the new module was used but when I try to enable the wifi via the UI, the device just freezes and reboots

                        I hope to generate the required file you asked but not sure how, maybe via terminal?

                        Comment


                          #13
                          I guess I have to run the below lines once I typed this: insmod /system/lib/modules/rtl8192cu.ko.?

                          su
                          dmesg >/mnt/sdcard/dmesg.txt
                          logcat -d -v time >/mnt/sdcard/logcat.txt

                          Comment


                            #14
                            Hi,

                            Please find attached the two log files
                            I wonder if I need to do anything else for this module to load correctly on my MK808 3066 kernel

                            Thanks!
                            Attached Files

                            Comment


                              #15
                              I see this in the dmesg:

                              <6>[ 2082.864210] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
                              <6>[ 2082.870262] cfg80211: Calling CRDA to update world regulatory domain
                              <4>[ 2082.917577] wl_android_wifi_off in
                              <3>[ 2082.921555] ANDROID-ERROR) wifi_set_power = 0
                              <6>[ 2082.927289] rk29sdk_wifi_power: 0
                              <6>[ 2083.160509] wifi shut off power
                              <4>[ 2083.163872] =========== WLAN placed in RESET ========
                              <4>[ 2083.476014] ================================================== =====
                              <4>[ 2083.483396] == Dis-launching Wi-Fi driver! (Powered by Rockchip) ==
                              <4>[ 2083.489688] ================================================== =====
                              <4>[ 2083.496057] dhd_module_cleanup: Enter
                              <4>[ 2083.500797] wl_iw_detach thr:812 terminated OK
                              <4>[ 2083.505332] wl_iw_bt_release thr:813 terminated OK
                              <4>[ 2083.510288] dhd_detach thr:816 terminated OK
                              <4>[ 2083.623911] dhd_detach thr:814 terminated OK
                              <4>[ 2083.629647] dhd_detach thr:815 terminated OK
                              <3>[ 2083.636639] CFG80211-ERROR) wl_event_handler : wl_event_handler was terminated
                              <4>[ 2083.645091] wl_destroy_event_handler thr:811 terminated OK
                              <3>[ 2083.709371] ANDROID-ERROR) ## wifi_remove
                              <3>[ 2083.713994] ANDROID-ERROR) wifi_set_power = 0
                              <6>[ 2083.718831] rk29sdk_wifi_power: 0
                              <6>[ 2083.939190] wifi shut off power
                              <3>[ 2083.942341] ANDROID-ERROR) wifi_set_carddetect = 0
                              <6>[ 2083.947183] rk29sdk_wifi_set_carddetect:0
                              <6>[ 2083.951226] mmc1: slot status change detected(1-0)
                              <6>[ 2083.956881] mmc1: card 0001 removed
                              <4>[ 2083.957005] =========== WLAN placed in POWER OFF ========
                              <4>[ 2083.957013] dhd_module_cleanup: Exit
                              <6>[ 2083.971132]
                              <6>[ 2083.971136] drivers/mmc/core/core.c...1827.. ===== mmc_rescan Begin....[mmc1]
                              <4>[ 2083.979877]
                              <4>[ 2083.979880] =================
                              <4>[ 2083.979883] mmc_rescan..1834.. ====find no SDMMC host. [mmc1]
                              <4>[ 2127.248884] rtw driver version=v3.4.4_4749.20121105
                              <4>[ 2127.253891] Build at: Nov 23 2012 00:45:35
                              <4>[ 2127.257981] ##########rtw_suspend_lock_init ###########
                              <6>[ 2127.263817] usbcore: registered new interface driver rtl8192cu
                              <6>[ 2137.189677] usb 2-1.3: USB disconnect, device number 18
                              <6>[ 2179.663040] usb 2-1.3: new high speed USB device number 19 using usb20_host
                              <6>[ 2179.785176] usb 2-1.3: New USB device found, idVendor=7392, idProduct=7811
                              <6>[ 2179.792106] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
                              <6>[ 2179.799693] usb 2-1.3: Product: 802.11n WLAN Adapter
                              <6>[ 2179.804691] usb 2-1.3: Manufacturer: Realtek
                              <6>[ 2179.808975] usb 2-1.3: SerialNumber: 00e04c000001
                              <4>[ 2179.815994] register rtw_netdev_ops to netdev_ops
                              <4>[ 2179.820702] rtw_wdev_alloc
                              <4>[ 2179.825246] CHIP TYPE: RTL8188C_8192C
                              <4>[ 2179.828917]
                              <4>[ 2179.828920] usb_endpoint_descriptor(0):
                              <4>[ 2179.834275] bLength=7
                              <4>[ 2179.836558] bDescriptorType=5
                              <4>[ 2179.839527] bEndpointAddress=81
                              <4>[ 2179.842721] wMaxPacketSize=200
                              <4>[ 2179.845823] bInterval=0
                              <4>[ 2179.848281] RT_usb_endpoint_is_bulk_in = 1
                              <4>[ 2179.852383]
                              <4>[ 2179.852385] usb_endpoint_descriptor(1):
                              <4>[ 2179.857719] bLength=7
                              <4>[ 2179.859994] bDescriptorType=5
                              <4>[ 2179.862988] bEndpointAddress=2
                              <4>[ 2179.866045] wMaxPacketSize=200
                              <4>[ 2179.869100] bInterval=0
                              <4>[ 2179.871553] RT_usb_endpoint_is_bulk_out = 2
                              <4>[ 2179.875745]
                              <4>[ 2179.875748] usb_endpoint_descriptor(2):
                              <4>[ 2179.881067] bLength=7
                              <4>[ 2179.883380] bDescriptorType=5
                              <4>[ 2179.886350] bEndpointAddress=3
                              <4>[ 2179.889406] wMaxPacketSize=200
                              <4>[ 2179.892465] bInterval=0
                              <4>[ 2179.894944] RT_usb_endpoint_is_bulk_out = 3
                              <4>[ 2179.899186]
                              <4>[ 2179.899188] usb_endpoint_descriptor(3):
                              <4>[ 2179.904517] bLength=7
                              <4>[ 2179.906793] bDescriptorType=5
                              <4>[ 2179.909766] bEndpointAddress=84
                              <4>[ 2179.912930] wMaxPacketSize=40
                              <4>[ 2179.915901] bInterval=1
                              <4>[ 2179.918355] RT_usb_endpoint_is_int_in = 4, Interval = 1
                              <4>[ 2179.923607] nr_endpoint=4, in_num=2, out_num=2
                              <4>[ 2179.923611]
                              <4>[ 2179.929536] USB_SPEED_HIGH
                              <4>[ 2179.932337] Chip Version ID: VERSION_NORMAL_TSMC_CHIP_88C.
                              <4>[ 2179.937859] RF_Type is 3!!
                              <4>[ 2179.940962] EEPROM type is E-FUSE
                              <4>[ 2179.944305] ====> ReadAdapterInfo8192C
                              <4>[ 2179.948213] Boot from EFUSE, Autoload OK !
                              <4>[ 2180.106121] EEPROMVID = 0x7392
                              <4>[ 2180.109186] EEPROMPID = 0x7811
                              <4>[ 2180.112244] EEPROMCustomerID : 0x00
                              <4>[ 2180.115769] EEPROMSubCustomerID: 0x00
                              <4>[ 2180.119449] RT_CustomerID: 0x00
                              <4>[ 2180.122608] _ReadMACAddress MAC Address from EFUSE = 80:1f:02:d0:fd:f2
                              <4>[ 2180.129193] EEPROMRegulatory = 0x0
                              <4>[ 2180.132604] _ReadBoardType(0)
                              <4>[ 2180.135584] BT Coexistance = disable
                              <4>[ 2180.139168] RT_ChannelPlan: 0x02
                              <4>[ 2180.142400] _ReadPSSetting...bHWPwrPindetect(0)-bHWPowerdown(0) ,bSupportRemoteWakeup(0)
                              <4>[ 2180.150518] ### PS params=> power_mgnt(1),usbss_enable(0) ###
                              <4>[ 2180.156365] ### AntDivCfg(0)
                              <4>[ 2180.159255] readAdapterInfo_8192CU(): REPLACEMENT = 1
                              <4>[ 2180.164326] <==== ReadAdapterInfo8192C in 220 ms
                              <4>[ 2180.169480] rtw_register_early_suspend
                              <4>[ 2180.173286] rtw_macaddr_cfg MAC Address = 80:1f:02:d0:fd:f2
                              <4>[ 2180.178949] MAC Address from pnetdev->dev_addr= 80:1f:02:d0:fd:f2
                              <4>[ 2180.188338] bDriverStopped:1, bSurpriseRemoved:0, bup:0, hw_init_completed:0

                              Comment

                              Working...
                              X