Ongoing Christmas - Flash Deals Everyday! Up To 90% Off at GeekBuying.com!


Page 1 of 4 123 ... LastLast
Results 1 to 20 of 72

Thread: Temporary RK903 Wifi Patch for MK808B

  1. #1
    Junior Member
    Join Date
    Aug 2013
    Location
    china
    Posts
    13

    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)
    ==> wifi_patch.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. #2
    Developer&Moderator leolas's Avatar
    Join Date
    Dec 2012
    Location
    Spain
    Posts
    3,938
    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:
    Imito QX1 (Sponsored by Bob Finless)
    Minix Neo X7&
    Minix Neo X8-H(Sponsored by Minix)
    MK902 (Sponsored by RKM)
    Ifive X3(partially Sponsored by Banggod.com)
    Beelink M8B&Beelink R89 (Sponsored by Beelink)
    Tronsmart VEGA S89H (Sponsored by Gearbest.com)
    Thanks to all of them I can try to support your devices

    If you want to invite me a coffee or beer you can do it with this button:

    Thanks

  3. #3
    Junior Member
    Join Date
    Aug 2013
    Location
    china
    Posts
    13
    Thread Starter
    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.

  4. #4

    hi

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

    Thanks a lot!!!

  5. #5
    Junior Member
    Join Date
    Aug 2013
    Location
    china
    Posts
    13
    Thread Starter
    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

  6. #6

    Quote 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

    Quote 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?

    Quote 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:D
    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 ;)

  7. #7
    ROM Developers
    Join Date
    Jun 2013
    Location
    South Africa
    Posts
    1,302
    Quote 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

  8. #8
    Junior Member
    Join Date
    Aug 2013
    Location
    china
    Posts
    13
    Thread Starter
    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.

  9. #9
    Quote 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

  10. #10
    Quote 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):

  11. #11
    ROM Developers
    Join Date
    Jun 2013
    Location
    South Africa
    Posts
    1,302

  12. #12
    ROM Developers
    Join Date
    Jun 2013
    Location
    South Africa
    Posts
    1,302
    Anyone tested this method to get wifi working on MK808B?
    https://www.miniand.com/forums/forum...768-resolution

  13. #13

    not a solution

    Quote 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.

  14. #14
    Junior Member
    Join Date
    Aug 2013
    Location
    china
    Posts
    13
    Thread Starter
    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.
    Last edited by mawkish; 08-24-2013 at 11:29 PM.

  15. #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

  16. #16
    Junior Member
    Join Date
    Aug 2013
    Location
    china
    Posts
    13
    Thread Starter
    The PWM may be used as a clock source for the wifi module or some circuitries, since PWM_REG_LRC , PWM_REG_HRC are 566 and 1132, which represents a square ware generator with output time of Low and High being equal. Normally a voltage controller should output something different.

    Sorry, I feel sick these days and cannot spare time to perform further tests.
    I will try to test the gpios when I recovered.

  17. #17
    ROM Developers
    Join Date
    Jun 2013
    Location
    South Africa
    Posts
    1,302
    If someone can give me detailed instructions(step by step) how to use gpio, where to copy, what commands to run etc, I can post the results for a MK808B here for stock kernel.

  18. #18
    Junior Member
    Join Date
    Aug 2013
    Location
    Budapest
    Posts
    1

    wifi ok , but mali + openGL not ok

    Hello!

    I tested, your patched kernel. Wifi ok, but mali, and openGL not included your compiled kernel. (original oleg recovery.img 8mb, your recovery.img 4 mb) Can you compile Mali, and opengl in the recovery image?

    Thanks, advance.

    (sorry english)

    Zoli


    Quote Originally Posted by mawkish View Post
    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.

  19. #19

    Post

    Quote Originally Posted by mo123 View Post
    If someone can give me detailed instructions(step by step) how to use gpio, where to copy, what commands to run etc, I can post the results for a MK808B here for stock kernel.
    Download binaries from:
    https://www.dropbox.com/s/xlywhnnuro...er-gpio-drv.ko
    https://github.com/usumfabricae/GPIO.../gpio?raw=true


    And save onto Android device:

    adb push gpio /data/local/tmp/.
    adb push user-gpio-drv.ko /data/local/tmp/

    Then open a shell on android device (adb shell)
    Check that you are root (su)

    Then:

    cd /data/local/tmp/.

    insmod user-gpio-drv.ko
    ./gpio dump gpio


    dmesg > /data/local/tmp/dmesg.txt


    Disable wifi in android preferences and do:
    dmesg > /data/local/tmp/dmesg-off.txt

    Enable wifi in android preferences and do:
    dmesg > /data/local/tmp/dmesg-on.txt


    Then, upload contents of three files (dmesg.txt, dmesg-off.txt and dmesg-on.txt) located at the directory /data/local/tmp to a posting here.

    You can use [ code] and [ /code] tags (without the white space between [ and code) at the beginning and end of each file contents to make it more readable

  20. #20
    Junior Member
    Join Date
    Aug 2013
    Location
    Taiwan
    Posts
    9
    Quote Originally Posted by tonikasch View Post
    Download binaries from:
    https://www.dropbox.com/s/xlywhnnuro...er-gpio-drv.ko
    https://github.com/usumfabricae/GPIO.../gpio?raw=true


    And save onto Android device:

    adb push gpio /data/local/tmp/.
    adb push user-gpio-drv.ko /data/local/tmp/

    Then open a shell on android device (adb shell)
    Check that you are root (su)

    Then:

    cd /data/local/tmp/.

    insmod user-gpio-drv.ko
    ./gpio dump gpio


    dmesg > /data/local/tmp/dmesg.txt


    Disable wifi in android preferences and do:
    dmesg > /data/local/tmp/dmesg-off.txt

    Enable wifi in android preferences and do:
    dmesg > /data/local/tmp/dmesg-on.txt


    Then, upload contents of three files (dmesg.txt, dmesg-off.txt and dmesg-on.txt) located at the directory /data/local/tmp to a posting here.

    You can use [ code] and [ /code] tags (without the white space between [ and code) at the beginning and end of each file contents to make it more readable
    I thank these are you wanted.

    https://www.box.com/s/z82hqahmghkk5x40svkc

Page 1 of 4 123 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •