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

    Adding a kernel module for USB wifi adapter

    Scheduled Pinned Locked Moved Unsolved Support
    28 Posts 3 Posters 4.8k 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.
      • ? Offline
        A Former User
        last edited by

        Build finished. Seemingly no change. Maybe out/ is supposed to be like this. Will flash tomorrow and check.

        1 Reply Last reply Reply Quote 0
        • ? Offline
          A Former User
          last edited by

          Flashed and checked with lsmod, modinfo and find. It looks like, despite everything, the module was still not installed.

          1 Reply Last reply Reply Quote 0
          • ? Offline
            A Former User
            last edited by

            device/lge/hammerhead/BoardConfig.mk confirms that the configuration file I've been working with is the right one:

            # Define kernel config for inline building
            TARGET_KERNEL_CONFIG := cyanogenmod_hammerhead_defconfig
            TARGET_KERNEL_SOURCE := kernel/lge/hammerhead
            

            device/lge/hammerhead/init.hammerhead.rc has something that could be relevant:

              # wifi
                chown wifi system /persist/wifi
                insmod /system/lib/modules/bcmdhd.ko
            

            I'll add another insmod line for mt7601u and see what happens. My guess is it will either break something or do nothing.

            1 Reply Last reply Reply Quote 0
            • ? Offline
              A Former User
              last edited by

              I tried mkap, which failed to push anything to the device, but it did create ./out/target/product/hammerhead/obj/KERNEL_OBJ/include/config/mt7601u.h. I also noticed that all the .h files in obj/KERNEL_OBJ/include/config/ are empty.

              Flashed, replaced system image, no change.

              1 Reply Last reply Reply Quote 0
              • ? Offline
                A Former User
                last edited by

                I am literally unable to tell you what happened next, because all my posts are being flagged as spam.

                E 1 Reply Last reply Reply Quote 0
                • E Offline
                  Emphrath @Guest
                  last edited by

                  @zehkira maybe because of external links. Happens sometimes.

                  1 Reply Last reply Reply Quote 0
                  • ? Offline
                    A Former User
                    last edited by

                    I'm out of ideas.

                    C 1 Reply Last reply Reply Quote 0
                    • C Offline
                      cliffcoggin @Guest
                      last edited by

                      @zehkira I congratulate you on your remarkable persistence, even though I have little understanding of what you have been doing.

                      1 Reply Last reply Reply Quote 1
                      • First post
                        Last post