Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

Kernel workaround to fix wifi on reboot problem in QX1.

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

    Kernel workaround to fix wifi on reboot problem in QX1.

    When I was out of faith about this problem can be solved, I find a way to partially solve it
    I said partially because the workaround makes a kernel exception and bootloop if we maintain the wifi on before we reboot. So we need to disconect the wifi before reboot the stick.

    Lets try to explain a little what is the bug we have in the QX1:
    When we boot the stick, we can load the wifi module without problems, but we cant remove it, because if we remove the module, we cant load it again until we disconnect the device from the PSU, in some stocks rom, when we disconnect the wifi the module stay loaded, is other workaround, but it is in the firm instead of the kernel and no way to make wifi work after a reboot

    If you use the fixed kernels,you need to disconnect wifi before you reboot the stick, if you reboot with wifi on, the stick will enter in a bootloop because you will get a kernel fault (I am working on it and trying to solve it totally, but no luck yet), but don't panic, you only need to power off completely the stick to go out of the bootloop. Anyway a total power off was needed to make wifi work again

    With the fixed kernels you can load and unload the wifi module without problems, every time you want, and if you power off the wifi before reboot, after the reboot wifi can be connected and disconnected every time you want too.

    So for me this is a good improvement, I am uploading the kernels and I will open a new thread with them, I will upload a new set of kernels overclocked and not overclocked in CPU, RAM and GPU; in 720p and 1080p. All of them with the video fix made by sam321, and using the kernel sources that phjanderson got from minix and using marvin his wonderfull tool to make multiple kernels in a row, thanks to both

    If someone can join to try to solve the problem please do it, my code capabilities are really bad, so all corrections and aportations are welcome

    I am uploading the kernels and the sources. I will give you a link when they are ready.
    Last edited by leolas; 23 October 2013, 19:40.
    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 http://freaktab.com/core/images/smilies/wink.png

    #2
    explaining a little the fix.

    To got the workaround I reset the sdio, I will upload the modded sources to my github, like always so if anyone wants to compile the kernels he can do it. But here is the file that need to be changed to make the wifi work:
    drivers/mmc/core/core.c
    LINE 1666
    Code:
    #if !defined(CONFIG_USE_SDMMC0_FOR_WIFI_DEVELOP_BOARD)
        if( strncmp( mmc_hostname(host) ,"mmc0" , strlen("mmc0")) )
        {
            //sdio_reset(host);//make no sense; noteed by xbw at 2011-12-14
            mmc_go_idle(host);
    Need to be changed to:

    Code:
    #if !defined(CONFIG_USE_SDMMC0_FOR_WIFI_DEVELOP_BOARD)
        if( strncmp( mmc_hostname(host) ,"mmc0" , strlen("mmc0")) )
        {
            sdio_reset(host);
            mmc_go_idle(host);
    And the magic is done, now we can insmod or rmmod the wifi module without problems, and in reboot, if we powered off the wifi before reboot, we can do the same
    Last edited by leolas; 23 October 2013, 19:28.
    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 http://freaktab.com/core/images/smilies/wink.png

    Comment


      #3
      Re: Kernel workaround to fix wifi on reboot problem in QX1.

      Great news. Thank you. How about a reboot shurtcut in the home screen (at least temp) this will shutdown the wifi then reboot (this way we will not forget) this can be done using gscript or rom toolbox.

      su
      svc wifi disable
      reboot


      This may help too (creating a little service in the background)




      Sent from my SAMSUNG-SGH-I727 using Tapatalk 2

      Comment


        #4
        Re: Kernel workaround to fix wifi on reboot problem in QX1.

        Originally posted by thafath View Post
        Great news. Thank you. How about a reboot shurtcut in the home screen (at least temp) this will shutdown the wifi then reboot (this way we will not forget) this can be done using gscript or rom toolbox.

        su
        svc wifi disable
        reboot


        This may help too (creating a little service in the background)




        Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
        Thanks a lot, I had no idea, this can be the fix. I will study 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 http://freaktab.com/core/images/smilies/wink.png

        Comment


          #5
          After some mails sent to them, Imito contacted me by mail, I submit them the workaround I used to solve partially this problem, they will contact soon, so not all hope is loosed. I really want to say that imito support goes better, and they will solve their users problems. I want to Imito give me a BAZINGA, maybe we will find an official update soon for the QX1, and Imito technical staff can found a fix for this problem.

          Petrus (thanks a lot, you are the man ) released a Reboot.apk for us, if we use this apk to reboot the stick, it powers off wifi aromatically before reboot the stick.

          I will keep you informed about imito answers.

          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 http://freaktab.com/core/images/smilies/wink.png

          Comment


            #6
            Originally posted by leolas View Post
            After some mails sent to them, Imito contacted me by mail, I submit them the workaround I used to solve partially this problem, they will contact soon, so not all hope is loosed. I really want to say that imito support goes better, and they will solve their users problems. I want to Imito give me a BAZINGA, maybe we will find an official update soon for the QX1, and Imito technical staff can found a fix for this problem.

            Petrus (thanks a lot, you are the man ) released a Reboot.apk for us, if we use this apk to reboot the stick, it powers off wifi aromatically before reboot the stick.

            I will keep you informed about imito answers.

            leolas.
            Just PM'd you before reading this....they replied to me as well. Looks like they found their inbox!

            Comment


              #7
              Originally posted by Silverback View Post
              Just PM'd you before reading this....they replied to me as well. Looks like they found their inbox!
              Good, if they gives us support they will sell more devices,
              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 http://freaktab.com/core/images/smilies/wink.png

              Comment

              Working...
              X