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 5.9k 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

                      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