* wlan.ko kernel object not being built by Yocto #kernelmodule
@ 2024-10-16 15:46 Jesus Jimenez Sanchez
2024-10-16 15:58 ` [yocto] " Benjamin Mordaunt
2024-10-16 16:07 ` Gyorgy Sarvari
0 siblings, 2 replies; 3+ messages in thread
From: Jesus Jimenez Sanchez @ 2024-10-16 15:46 UTC (permalink / raw)
To: yocto
[-- 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 --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [yocto] wlan.ko kernel object not being built by Yocto #kernelmodule
2024-10-16 15:46 wlan.ko kernel object not being built by Yocto #kernelmodule Jesus Jimenez Sanchez
@ 2024-10-16 15:58 ` Benjamin Mordaunt
2024-10-16 16:07 ` Gyorgy Sarvari
1 sibling, 0 replies; 3+ messages in thread
From: Benjamin Mordaunt @ 2024-10-16 15:58 UTC (permalink / raw)
To: yocto, Jesus.JimenezSanchez
[-- Attachment #1: Type: text/plain, Size: 2624 bytes --]
DISTRO_FEATURES:append = “ wifi”
?
On Wed, 16 Oct 2024 at 16:46, Jesus Jimenez Sanchez via
lists.yoctoproject.org <Jesus.JimenezSanchez=
verifone.com@lists.yoctoproject.org> wrote:
> 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.
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#64028):
> https://lists.yoctoproject.org/g/yocto/message/64028
> Mute This Topic: https://lists.yoctoproject.org/mt/109046157/6483088
> Mute #kernelmodule:
> https://lists.yoctoproject.org/g/yocto/mutehashtag/kernelmodule
> Group Owner: yocto+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [
> crawford.benjamin15@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
[-- Attachment #2: Type: text/html, Size: 3791 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [yocto] wlan.ko kernel object not being built by Yocto #kernelmodule
2024-10-16 15:46 wlan.ko kernel object not being built by Yocto #kernelmodule Jesus Jimenez Sanchez
2024-10-16 15:58 ` [yocto] " Benjamin Mordaunt
@ 2024-10-16 16:07 ` Gyorgy Sarvari
1 sibling, 0 replies; 3+ messages in thread
From: Gyorgy Sarvari @ 2024-10-16 16:07 UTC (permalink / raw)
To: yocto, Jesus.JimenezSanchez
Note that .ko files are built for modules (most often drivers), but
CONFIG_WLAN is a boolean option, it has no module option. If it is
included in the final config successfully, then the related code is part
of the kernel itself, not a separate kernel object/module.
You can find the final config in the build folder (see
https://docs.yoctoproject.org/kernel-dev/common.html#using-menuconfig
for the exact location)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-10-16 16:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-16 15:46 wlan.ko kernel object not being built by Yocto #kernelmodule Jesus Jimenez Sanchez
2024-10-16 15:58 ` [yocto] " Benjamin Mordaunt
2024-10-16 16:07 ` Gyorgy Sarvari
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox