Announcement

Collapse
No announcement yet.

GPIO module to check gpios in wifi and bt. Lets make the wifi and BT work in more devices.

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

    GPIO module to check gpios in wifi and bt. Lets make the wifi and BT work in more devices.

    We are coming from here: http://www.freaktab.com/showthread.p...ll=1#post95815 Where visitor give us a fantastic tool to check the gpios state in our sticks, Thanks for the creator, his github is in:https://github.com/usumfabricae/GPIO_DUMP Thanks a lot to tonikasch for the info in this thread:http://www.freaktab.com/showthread.p...ll=1#post89699

    Well using this sources I compiled the module and the binary in :https://github.com/usumfabricae/GPIO_DUMP the results are:
    http://www.freak-tab.de/leolas/kerne...ld_3.0.36+.zip

    In this zip we have a module user_gpio_drv.ko we have to copy it (for example) to /system/lib/modules/
    and a binary gpio Who has to be copied (for example) in /system/bin/ and give it 777 permission.

    GPIO list in rk3188 devices:

    Code:
    PIN                     GPIO
    RK30_PIN0_PA0        160
    RK30_PIN0_PA1        161
    RK30_PIN0_PA2        162
    RK30_PIN0_PA3        163
    RK30_PIN0_PA4        164
    RK30_PIN0_PA5        165
    RK30_PIN0_PA6        166
    RK30_PIN0_PA7        167
    RK30_PIN0_PB0        168
    RK30_PIN0_PB1        169
    RK30_PIN0_PB2        170
    RK30_PIN0_PB3        171
    RK30_PIN0_PB4        172
    RK30_PIN0_PB5        173
    RK30_PIN0_PB6        174
    RK30_PIN0_PB7        175
    RK30_PIN0_PC0        176
    RK30_PIN0_PC1        177
    RK30_PIN0_PC2        178
    RK30_PIN0_PC3        179
    RK30_PIN0_PC4        180
    RK30_PIN0_PC5        181
    RK30_PIN0_PC6        182
    RK30_PIN0_PC7        183
    RK30_PIN0_PD0        184
    RK30_PIN0_PD1        185
    RK30_PIN0_PD2        186
    RK30_PIN0_PD3        187
    RK30_PIN0_PD4        188
    RK30_PIN0_PD5        189
    RK30_PIN0_PD6        190
    RK30_PIN0_PD7        191
    RK30_PIN1_PA0        192
    RK30_PIN1_PA1        193
    RK30_PIN1_PA2        194
    RK30_PIN1_PA3        195
    RK30_PIN1_PA4        196
    RK30_PIN1_PA5        197
    RK30_PIN1_PA6        198
    RK30_PIN1_PA7        199
    RK30_PIN1_PB0        200
    RK30_PIN1_PB1        201
    RK30_PIN1_PB2        202
    RK30_PIN1_PB3        203
    RK30_PIN1_PB4        204
    RK30_PIN1_PB5        205
    RK30_PIN1_PB6        206
    RK30_PIN1_PB7        207
    RK30_PIN1_PC0        208
    RK30_PIN1_PC1        209
    RK30_PIN1_PC2        210
    RK30_PIN1_PC3        211
    RK30_PIN1_PC4        212
    RK30_PIN1_PC5        213
    RK30_PIN1_PC6        214
    RK30_PIN1_PC7        215
    RK30_PIN1_PD0        216
    RK30_PIN1_PD1        217
    RK30_PIN1_PD2        218
    RK30_PIN1_PD3        219
    RK30_PIN1_PD4        220
    RK30_PIN1_PD5        221
    RK30_PIN1_PD6        222
    RK30_PIN1_PD7        223
    RK30_PIN2_PA0        224
    RK30_PIN2_PA1        225
    RK30_PIN2_PA2        226
    RK30_PIN2_PA3        227
    RK30_PIN2_PA4        228
    RK30_PIN2_PA5        229
    RK30_PIN2_PA6        230
    RK30_PIN2_PA7        231
    RK30_PIN2_PB0        232
    RK30_PIN2_PB1        233
    RK30_PIN2_PB2        234
    RK30_PIN2_PB3        235
    RK30_PIN2_PB4        236
    RK30_PIN2_PB5        237
    RK30_PIN2_PB6        238
    RK30_PIN2_PB7        239
    RK30_PIN2_PC0        240
    RK30_PIN2_PC1        241
    RK30_PIN2_PC2        242
    RK30_PIN2_PC3        243
    RK30_PIN2_PC4        244
    RK30_PIN2_PC5        245
    RK30_PIN2_PC6        246
    RK30_PIN2_PC7        247
    RK30_PIN2_PD0        248
    RK30_PIN2_PD1        249
    RK30_PIN2_PD2        250
    RK30_PIN2_PD3        251
    RK30_PIN2_PD4        252
    RK30_PIN2_PD5        253
    RK30_PIN2_PD6        254
    RK30_PIN2_PD7        255
    RK30_PIN3_PA0        256
    RK30_PIN3_PA1        257
    RK30_PIN3_PA2        258
    RK30_PIN3_PA3        259
    RK30_PIN3_PA4        260
    RK30_PIN3_PA5        261
    RK30_PIN3_PA6        262
    RK30_PIN3_PA7        263
    RK30_PIN3_PB0        264
    RK30_PIN3_PB1        265
    RK30_PIN3_PB2        266
    RK30_PIN3_PB3        267
    RK30_PIN3_PB4        268
    RK30_PIN3_PB5        269
    RK30_PIN3_PB6        270
    RK30_PIN3_PB7        271
    RK30_PIN3_PC0        272
    RK30_PIN3_PC1        273
    RK30_PIN3_PC2        274
    RK30_PIN3_PC3        275
    RK30_PIN3_PC4        276
    RK30_PIN3_PC5        277
    RK30_PIN3_PC6        278
    RK30_PIN3_PC7        279
    RK30_PIN3_PD0        280
    RK30_PIN3_PD1        281
    RK30_PIN3_PD2        282
    RK30_PIN3_PD3        283
    RK30_PIN3_PD4        284
    RK30_PIN3_PD5        285
    RK30_PIN3_PD6        286
    RK30_PIN3_PD7        287
    Last edited by leolas; 09-15-2013, 11:38.
    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
    now we set wifi and bt off and must follow this steps in terminal emulator:

    Code:
    insmod /system/lib/modules/user_gpio_drv.ko
    gpio dump gpio
    dmesg>/sdcard/dmesg-wifi-off-bt-off.txt
    Please neomode give me this list with your stock kernel and wifi and bt off.
    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
      AW: GPIO module to check gpios in wifi and bt. Lets make the wifi and BT work in more devices.

      Yes will do it after dinner.
      Thanks

      Gesendet von meinem GT-I9305 mit Tapatalk 2

      Comment


        #4
        Ok here it is the File. I have take a look inside and think there is all we need !
        Thank´s for your help !!
        dmesg-wifi-off-bt-off.txt

        Ray

        Comment


          #5
          GPIO Dump for MK808B(RK903)
          https://github.com/aloksinha2001/pic...-alok/issues/5

          Will this help to create a custom Android kernel with working wifi? Picuntu wifi is already working.
          Can already compile an MK808(RK901) Android kernel from Omegamoon sources, so by changing the GPIO numbers in the source code can this make wifi work?
          Here is also Rockchip compiled wifi drivers - https://github.com/roondar/wiki-rock...e/master/rkftp

          Comment


            #6
            Re: GPIO module to check gpios in wifi and bt. Lets make the wifi and BT work in more devices.

            Originally posted by mo123 View Post
            GPIO Dump for MK808B(RK903)
            https://github.com/aloksinha2001/pic...-alok/issues/5

            Will this help to create a custom Android kernel with working wifi? Picuntu wifi is already working.
            Can already compile an MK808(RK901) Android kernel from Omegamoon sources, so by changing the GPIO numbers in the source code can this make wifi work?
            Here is also Rockchip compiled wifi drivers - https://github.com/roondar/wiki-rock...e/master/rkftp
            I will try. The bad is I have to disconnect my mk808b stick from tv to work with it, My daughter and wife will kill me if I do that while they are in home. I need some free time without any of them.

            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


              #7
              Originally posted by neomode View Post
              Ok here it is the File. I have take a look inside and think there is all we need !
              Thank´s for your help !!
              [ATTACH]3297[/ATTACH]

              Ray
              Sorry neomode, I missed your message

              ok now I need you write with wifi and bt off in your stock kernel:
              Code:
              gpio get 180
              gpio get 181
              gpio get 182
              gpio get 183 
              gpio get 195
              gpio get 216
              gpio get 231
              gpio get 252
              gpio get 253
              gpio get 257
              gpio get 272
              gpio get 273
              gpio get 274
              gpio get 275
              gpio get 276
              gpio get 277
              gpio get 278
              gpio get 279
              gpio get 280
              gpio get 281
              gpio get 282
              Then conect wifi on bt off and do the same.
              After wifi on bt on and the same again. Please send me results and we will construct a table with them.
              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


                #8
                Ok Leolas,

                The first Dump I have made with Stock Kernel. Should I redo it with Kernel for MK802IV and then with the Stock Kernel ?

                Ray

                Comment


                  #9
                  Originally posted by neomode View Post
                  Ok Leolas,

                  The first Dump I have made with Stock Kernel. Should I redo it with Kernel for MK802IV and then with the Stock Kernel ?

                  Ray
                  All with stock kernel, we mod after the sources to fit in the device (with the help of phjanderson )
                  Now we will see how change the gpio specially to power on the wifi device.
                  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


                    #10
                    OK I got the PIG´s ;-)
                    The list is in attachment.

                    NeomodeGPIOTRY.txt

                    Comment


                      #11
                      Originally posted by neomode View Post
                      OK I got the PIG´s ;-)
                      The list is in attachment.

                      Neomode[ATTACH]3299[/ATTACH]
                      to power on wifi you use RK30_PIN1_PD0
                      to power on bt you use RK30_PIN3_PC7

                      Only to be sure and for an easy find of the functions please can you make exactly the same with your compiled kernel?

                      I am going to dinner, in a couple of hours I will return. Thanks
                      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


                        #12
                        Not work or i do something wrong :-(
                        Have use the same config.
                        I must make the changes in the .config file or ?

                        Ray

                        Comment


                          #13
                          Re: GPIO module to check gpios in wifi and bt. Lets make the wifi and BT work in more devices.

                          Originally posted by neomode View Post
                          Not work or i do something wrong :-(
                          Have use the same config.
                          I must make the changes in the .config file or ?

                          Ray
                          Use the kernel you compiled before, and insmod the ko file, after that, give me the gpio dump gpio. After we will check the gpios used, and then we will modify the sources.

                          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


                            #14
                            Re: GPIO module to check gpios in wifi and bt. Lets make the wifi and BT work in more devices.

                            Originally posted by leolas View Post
                            Use the kernel you compiled before, and insmod the ko file, after that, give me the gpio dump gpio. After we will check the gpios used, and then we will modify the sources.

                            leolas
                            I will try tomorrow the same in the mk808b

                            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


                              #15
                              hi guys

                              Sorry for bothering, but do you think that discovering GPIOs can help to enable properly CPU and GPU scaling in MK908 v3?

                              Comment

                              Working...
                              X