Yocto Project Discussions
 help / color / mirror / Atom feed
From: "Jesus Jimenez Sanchez" <Jesus.JimenezSanchez@verifone.com>
To: yocto@lists.yoctoproject.org
Subject: wlan.ko kernel object not being built by Yocto #kernelmodule
Date: Wed, 16 Oct 2024 08:46:34 -0700	[thread overview]
Message-ID: <WIeL.1729093594096600716.n9TJ@lists.yoctoproject.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1806 bytes --]

Hello,

I am trying to build the wlan.ko kernel object to enable wifi in an embedded device but I haven't been able to do it so far.

I have tried having the code for Linux in a remote repository and in a repository in my local computer. For the config file, I have a defconfig file in the Yocto folder that has this:
```
CONFIG_MODULES=y
...
CONFIG_WLAN=y
# CONFIG_WIRELESS_WDS is not set
# CONFIG_WLAN_VENDOR_ADMTEK is not set
CONFIG_WLAN_VENDOR_ATH=y
CONFIG_ATH_DEBUG=y
CONFIG_ATH_TRACEPOINTS=y
CONFIG_ATH5K_PCI=y
CONFIG_ATH6KL=y
CONFIG_ATH6KL_SDIO=y
CONFIG_ATH6KL_USB=y
CONFIG_ATH6KL_DEBUG=y
CONFIG_ATH6KL_TRACING=y
```

That file is added in the linux-msm.inc recipe with this line:
```
SRC_URI   += " file://neo2_defconfig \"
```

With that, I have tried having the local repository with another defconfig which also has the `CONFIG_WLAN=y` line but it didn't work. A .config in the local repository just returns an error during the configuration phase.

After building when there is no configuration file in the local repository, there are two files I've found in the build directory that could be the config file:
```
./tmp-glibc/work/qrbx210_rbx-linux/linux-msm/5.4.191-r0/build/.config
./tmp-glibc/work/qrbx210_rbx-linux/linux-msm/5.4.191-r0/my_defconfig
```
Both of those files have different contents, but both have the `CONFIG_WLAN=y` line.

Every time I manage to build Linux, the wlan.ko file is missing. For trying to find it I have been using `find . -name wlan.ko` and `find . -name "*wlan*"` but I never find anything.

Do I need to do anything else to generate this file? Do I maybe need to configure something else or get some extra sources?

I am using Linux 5.4.191-r0 and I couldn't get the Yocto version, but the Bitbake version is 2.0.0.

[-- Attachment #2: Type: text/html, Size: 2177 bytes --]

             reply	other threads:[~2024-10-16 15:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-16 15:46 Jesus Jimenez Sanchez [this message]
2024-10-16 15:58 ` [yocto] wlan.ko kernel object not being built by Yocto #kernelmodule Benjamin Mordaunt
2024-10-16 16:07 ` Gyorgy Sarvari

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=WIeL.1729093594096600716.n9TJ@lists.yoctoproject.org \
    --to=jesus.jimenezsanchez@verifone.com \
    --cc=yocto@lists.yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox