UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    help porting moto g titan compilation

    Scheduled Pinned Locked Moved Porting
    moto g titan
    10 Posts 2 Posters 3.3k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • H Offline
        horuxan
        last edited by NeoTheThird

        ../../../../../../kernel/motorola/msm8226/drivers/staging/prima/CORE/HDD/src/wlan_hdd_ftm.c:5799:4: error: unknown field 'num_private' specified in initializer
        .num_private = sizeof(we_ftm_private) / sizeof(we_ftm_private[0]),
        ^
        ../../../../../../kernel/motorola/msm8226/drivers/staging/prima/CORE/HDD/src/wlan_hdd_ftm.c:5799:4: warning: initialization makes pointer from integer without a cast [enabled by default]
        error, forbidden warning: wlan_hdd_ftm.c:5799
        /media/dirlei/6B4D99D91FF89DDF/tnt/kernel/motorola/msm8226/scripts/Makefile.build:307: recipe for target 'drivers/staging/prima/CORE/HDD/src/wlan_hdd_ftm.o' failed
        make[5]: *** [drivers/staging/prima/CORE/HDD/src/wlan_hdd_ftm.o] Error 1
        /media/dirlei/6B4D99D91FF89DDF/tnt/kernel/motorola/msm8226/scripts/Makefile.build:443: recipe for target 'drivers/staging/prima' failed
        make[4]: *** [drivers/staging/prima] Error 2
        /media/dirlei/6B4D99D91FF89DDF/tnt/kernel/motorola/msm8226/scripts/Makefile.build:443: recipe for target 'drivers/staging' failed
        make[3]: *** [drivers/staging] Error 2
        /media/dirlei/6B4D99D91FF89DDF/tnt/kernel/motorola/msm8226/Makefile:955: recipe for target 'drivers' failed
        make[2]: *** [drivers] Error 2
        Makefile:135: recipe for target 'sub-make' failed
        make[1]: *** [sub-make] Error 2
        make[1]: Leaving directory '/media/dirlei/6B4D99D91FF89DDF/tnt/kernel/motorola/msm8226'
        build/core/tasks/kernel.mk:270: recipe for target 'TARGET_KERNEL_BINARIES' failed
        make: *** [TARGET_KERNEL_BINARIES] Error 2

        make failed to build some targets (05:38 (mm:ss))

        one people have idea to fix ?
        thanks..

        1 Reply Last reply Reply Quote 0
        • H Offline
          horuxan
          last edited by

          please help me ? no have idea to fix .. "///

          /kernel/motorola/msm8226/drivers/staging/prima/CORE/HDD/src/wlan_hdd_ftm.c:5417:4: error: unknown field 'num_private' specified in initializer
          .num_private = sizeof(we_ftm_private) / sizeof(we_ftm_private[0]),

          W 1 Reply Last reply Reply Quote 0
          • W Offline
            walidham @horuxan
            last edited by

            @horuxan wich version of UT you use ? 6.0.0_r1 ?
            also wich kernel you use ?

            1 Reply Last reply Reply Quote 0
            • H Offline
              horuxan
              last edited by

              @walidham So I used the base ub 6 and gave the same error, I went to 5.1 today and in cm 12.1 I used check-config and apparmor, but not compile, of this error now 'struct net_device' has no member named 'wireless_handlers', waiting for your version Eagerly, could you help me with this compilation? thanks !!

              W 1 Reply Last reply Reply Quote 0
              • H Offline
                horuxan
                last edited by

                /CORE/HDD/src/wlan_hdd_ftm.c:5437:18: error: 'struct net_device' has no member named 'wireless_handlers'
                pAdapter->dev->wireless_handlers = (struct iw_handler_def *)&we_ftm_handler_def;

                1 Reply Last reply Reply Quote 0
                • W Offline
                  walidham @horuxan
                  last edited by

                  @horuxan said in help porting moto g titan compilation:

                  Eagerly

                  UT phablet 6.0.0_r1 it difficult to adopte kernel and device tree, the best is ubports .

                  1 Reply Last reply Reply Quote 0
                  • H Offline
                    horuxan
                    last edited by

                    understand, this error, you have idea to fix ? thanks

                    1 Reply Last reply Reply Quote 0
                    • H Offline
                      horuxan
                      last edited by

                      https://pastebin.com/fDR1ReQG

                      please help, @walidham

                      W 1 Reply Last reply Reply Quote 0
                      • W Offline
                        walidham @horuxan
                        last edited by

                        @horuxan I think you use wrong version of kernel incompatible with code source, wich repo and version of ubuntu touch did you use ? wich repo and versionof device tree and kernel did you use?
                        Because by default ub-5.1 compile fine after few errors can be easily fixed.
                        ub-6.0 its difficult to adopte with kernel and device tree.
                        If you use ub-5.1 from ubports (recommended) then just use cm-12.1 device tree and kernel

                        1 Reply Last reply Reply Quote 1
                        • H Offline
                          horuxan
                          last edited by

                          i use kernel msm8226 cm 12.1, stable, kernel sailfish os more so compile default titan_defconfig, and using check-config -w error on wlan_hdd_ftm, one people have idea to fix ? thanks

                          1 Reply Last reply Reply Quote 0

                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                          With your input, this post could be even better 💗

                          Register Login
                          • First post
                            Last post