Announcement

Collapse
No announcement yet.

Temporary RK903 Wifi Patch for MK808B

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

  • Temporary RK903 Wifi Patch for MK808B

    Hi All

    I have successfully enable the RK903 wifi module on top of Galland's 3.0.36+ kernel source
    I have basically inspected the Finless 2.1 kernel and copied the register values of PWM2 and enable it in our sdmmc driver of the kernel.

    So here are the files:
    1. my .config
    2. patch file ( please note that there are some unnecessary debugging statements, remove them if you want)
    ==> 4ac9734598d949043bdca347381e537b.zip

    Please try them at your own risk as you know I am messing with the PWM2 which may imply controlling voltages of the wifi module.
    I would appreciate if anyone could improve the code :P

    Thanks.

  • #2
    Great work, I am from my mobile and cant read all the changes, but when I arrive home I will test it.

    leolas
    REMEMBER, YOUR FEEDBACK IS VERY IMPORTANT TO US.
    My devices:
    Minix Neo X7; Minix Neo X8-H , Minix Neo Z64W & Z64 (Sponsored by Minix)
    MK902 & MK902II(Sponsored by RKM)
    Beelink M8B & Beelink R89 (Sponsored by Beelink)
    Tronsmart VEGA S89H (Sponsored by
    Gearbest.com)
    MELE-PCG03 (Sponsored by Gearbest.com) Discount Coupon:MPCG03
    Ainol Intel Z3735 MiniPC(Sponsored by Gearbest.com)
    Thanks to them I can try to support your devices

    Comment


    • #3
      I may have done some werid changes inside the rk29sdk_wifi_power function
      I think restoring them to their default state should be fine, I just forget to revert them when I commited it in my own repo

      For the TRACING keyword, I remember I added it to include some bundled tracing code to be compiled, in order to make the rkwifi.ko module bundled in Finless 2.1 to work. I remember it worked for some time (meaning the rkwifi.ko can be insmoded but it was before I perform the pwm changes), but I lost the changes :P sorry. So it is highly possible that the rkwifi module be used instead of the bcm40181 module.

      Hope it helps.

      Comment


      • #4
        hi

        well, we'll take a look at it soon.

        Thanks a lot!!!

        Comment


        • #5
          Many thanks for you all.
          Are there any stable picuntu kernel source that I can compile and test my patch on my MK808B?
          I used Galland's 3.0.36+ source but it seems that it is not suitable for my device as it crashes often early at the boot stage, either reboot with blooming hex lines filling up the screen or freezes entirely.

          I looked at olegk0's 3.0.8+ source but it was last updated at least 5 months ago and I don't know whether latest HW acceleration and other important updates are available on this version.

          I really hope that a full-featured picuntu kernel will be available soon

          Comment


          • #6
            Originally posted by mawkish View Post
            Many thanks for you all.
            Are there any stable picuntu kernel source that I can compile and test my patch on my MK808B?
            Yoy could try Omegamoon's ones, at:
            https://github.com/omegamoon/rockchip-rk30xx-mk808

            Originally posted by mawkish View Post
            I used Galland's 3.0.36+ source but it seems that it is not suitable for my device as it crashes often early at the boot stage, either reboot with blooming hex lines filling up the screen or freezes entirely.
            What device are you building kernel for?
            MK808B?

            Originally posted by mawkish View Post
            I looked at olegk0's 3.0.8+ source but it was last updated at least 5 months ago and I don't know whether latest HW acceleration and other important updates are available on this version.

            I really hope that a full-featured picuntu kernel will be available soon
            I have read somewhere that rk3188 sources (3.0.36+) have running mali drivers, but I guess they aren still not suitable for MK808(B) and similar.

            You could also try
            https://github.com/aloksinha2001/picuntu-3.0.8-alok
            But I guess it has not been updated yet.

            I do not own a MK808B and the MK808 I own is under production as a server so I cannot try almost anything on it, sorry

            Gook luck and feel free to inform on progresses

            Comment


            • #7
              Originally posted by mawkish View Post
              Many thanks for you all.
              Are there any stable picuntu kernel source that I can compile and test my patch on my MK808B?
              I used Galland's 3.0.36+ source but it seems that it is not suitable for my device as it crashes often early at the boot stage, either reboot with blooming hex lines filling up the screen or freezes entirely.

              I looked at olegk0's 3.0.8+ source but it was last updated at least 5 months ago and I don't know whether latest HW acceleration and other important updates are available on this version.

              I really hope that a full-featured picuntu kernel will be available soon
              Extra kernels you can try

              https://github.com/thesawolf/android...ockchip_rk3188 - Contains latest mali drivers from 13 August 2013, most updated kernel

              https://github.com/Galland/Linux3188 - more updated & stable than Galland's 3.0.36+ source

              https://github.com/aloksinha2001/Linux3188 - similar to above kernel

              Extra info
              http://hwswbits.blogspot.com/2013/05...16927152364143 also contains modules for kernel to copy to sdcard to boot picuntu
              http://hwswbits.blogspot.com/2013/03...ntu-linux.html


              Can make a donation if you find my work useful and to support more device ROM's.
              Remember to donate to Freaktab first.

              Comment


              • #8
                Sorry, I can't really make Omegamoon's source to work as Picuntu's kernel, the pidgins appear and disappear and the stick reboots to android after that.

                I have zero experience debugging kernel especially when it crashes silently, don't really know what are the requirements of Picuntu system on the kernel.
                I think moving to 3188 source will yield the same result by noob like me

                But I will try to use Alok's 3.0.8 source instead.

                Comment


                • #9
                  Originally posted by mawkish View Post
                  Sorry, I can't really make Omegamoon's source to work as Picuntu's kernel, the pidgins appear and disappear and the stick reboots to android after that.

                  I have zero experience debugging kernel especially when it crashes silently, don't really know what are the requirements of Picuntu system on the kernel.
                  I think moving to 3188 source will yield the same result by noob like me

                  But I will try to use Alok's 3.0.8 source instead.

                  I don't have handy any links, but there are guides over the inet. With Omegamoon's you can check contents of build* files to make default initial config. Make sure to select correct gpio path and enable Lzma compression for initramfs and support. More later when on pc

                  Comment


                  • #10
                    Originally posted by mawkish View Post
                    Sorry, I can't really make Omegamoon's source to work as Picuntu's kernel, the pidgins appear and disappear and the stick reboots to android after that.

                    I have zero experience debugging kernel especially when it crashes silently, don't really know what are the requirements of Picuntu system on the kernel.
                    I think moving to 3188 source will yield the same result by noob like me

                    But I will try to use Alok's 3.0.8 source instead.
                    This isone of the guides I followed yesterday as I had forgotten from last time I had to build it:
                    http://linux.autostatic.com/installi...6-based-device

                    For default configs, as Omegamoon does not ship with a .config file, you can generate these targets:
                    rk3066b_m701_defconfig
                    rk3066b_sdk_defconfig
                    rk3108_tb_defconfig
                    rk3168_86v_defconfig
                    rk3168_ds1006h_defconfig
                    rk3168_LR097_defconfig
                    rk3168_tb_defconfig
                    rk3188_magicwand_defconfig
                    rk3188_mk908_defconfig
                    rk3188_steak_defconfig
                    rk3188_tb_defconfig

                    So for example you would type:
                    make rk3188_mk908_defconfig
                    for a mk908 device

                    Alok's has following targets (you can find them at arch/arm/configs/, presumably those beginning with rk):

                    Comment


                    • #11
                      RK3066 Full SDK has been released with all Wifi patches, see
                      http://www.freaktab.com/showthread.p...-2-TV-Box-SDK!
                      ftp://219.232.119.11/platform/RK3066/wifi/rkftp/


                      Can make a donation if you find my work useful and to support more device ROM's.
                      Remember to donate to Freaktab first.

                      Comment


                      • #12
                        Anyone tested this method to get wifi working on MK808B?
                        https://www.miniand.com/forums/forum...768-resolution


                        Can make a donation if you find my work useful and to support more device ROM's.
                        Remember to donate to Freaktab first.

                        Comment


                        • #13
                          not a solution

                          Originally posted by mo123 View Post
                          Anyone tested this method to get wifi working on MK808B?
                          https://www.miniand.com/forums/forum...768-resolution
                          If you read the thread, they say:
                          "works great with MK808B (Bluetooth and Wlan...no works) / Joy IT Vers 2.0"

                          So we have to stick with the solution proposed by mawkish.
                          I haven't got an mk808b so I cannot test the patch.

                          Comment


                          • #14
                            I have applied the patch on olegk0's 3.0.8+ kernel(https://github.com/olegk0/rk3066-kernel), which is the only one I can compile and run without errors
                            I test it on my MK808B stick.

                            I change the firmware and cal file path to
                            /lib/firmware/fw_RK903.bin
                            /lib/firmware/nvram_RK903.cal
                            I have test the 26M clock, so the 26M cal file is used.

                            Please note that I only test in conjunction with my Finless2.1 setup. Don't really know whether it works in other environments.
                            For those who wanna try the kernel, here it is the zip with the firmware and cal file
                            https://anonfiles.com/file/5932113f9...d7c3ab8a5bc521

                            [Edit]
                            Sorry, I may have missed that path settings may be updated in the modules. So in case the bcm40181.ko module fails to run because of missing firmware and cal, dmesg and see the path it requests and paste the files to the path, rmmod, modprobe see dmesg again.
                            It should runs fine.
                            Attached Files
                            Last edited by mawkish; 08-24-2013, 10:29 PM.

                            Comment


                            • #15
                              gpio dumper

                              Hey, mawkish, thanks for your findings!

                              By the way, if you have a moment to boot in android, could you post your results from running gpio dumper on android with both wifi on and wifi off?

                              You've got module here:
                              https://www.dropbox.com/s/xlywhnnuro...er-gpio-drv.ko


                              You've got user space utility here:
                              https://github.com/usumfabricae/GPIO.../gpio?raw=true

                              This way we can figure out which GPIO are used to enable SDIO-MMC1 which is the wifi card, so we can enable it in a secure way without touching power

                              Comment

                              Working...
                              X