On Mon, 13 May 2024 at 19:14, Alexander Kanavin <alex.kana...@gmail.com>
wrote:

> You need to look into build logs and build directory for the kernel
> recipe to see what modules are being built and packaged.
>

Rightio.  (I found that the failure is logged in the "do_rootfs" recipe,
but concentrating on the kernel recipe):

I found a problem, straight away:  The kernel recipe includes in its
SRC_URI a file that (looks like) it sets kernel configuration to load the
iwlwifi modules.
However when I build it and boot it and examine /proc/config.gz none of the
configuration from the kernel recipe are there

Grepping around for the configuration options I found this file in my build
section:
build/tmp/work-shared/apalis-imx8/kernel-source/.kernel-meta/cfg/merge_config_build.log
It is not updated on each build, but has been updated today, so I am unsure
on when and how it was created.

It says (in part)

----------------------------
#
# configuration written to .config
#
make[1]: Leaving directory
'/home/yocto/build/tmp/work/apalis_imx8-tdx-linux/linux-toradex/5.15.77+gitAUTOINC+458ba358fc-r0/build'
Value requested for CONFIG_CFG80211 not in final .config
Requested value:  CONFIG_CFG80211=y
Actual value:     CONFIG_CFG80211=m

Value requested for CONFIG_MAC80211 not in final .config
Requested value:  CONFIG_MAC80211=y
Actual value:     CONFIG_MAC80211=m

Value requested for CONFIG_IWLWIFI not in final .config
Requested value:  CONFIG_IWLWIFI=m
Actual value:

Value requested for CONFIG_IWLWIFI_LEDS not in final .config
Requested value:  CONFIG_IWLWIFI_LEDS=y
Actual value:

Value requested for CONFIG_IWLMVM not in final .config
Requested value:  CONFIG_IWLMVM=m
Actual value:
----------------------------


The kernel recipe from:
meta-tirotech/recipes-kernel/linux/linux-toradex_%.bbappend
----------------------------
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"

SRC_URI += "\
        file://tirotech.dts \
        file://intel-wireless.cfg \
        file://0001-Add-missing-M40-UART-clock-to-resource-table.patch \
        "
KERNEL_DEVICETREE += "freescale/tirotech.dtb"

do_patch:append () {
    cp -f ${WORKDIR}/tirotech.dts
${S}/arch/arm64/boot/dts/freescale/tirotech.dts
    echo 'dtb-$(CONFIG_ARCH_MXC) += tirotech.dtb' >> \
        ${S}/arch/arm64/boot/dts/freescale/Makefile
}
----------------------------

The file  intel-wireless.cfg:

----------------------------
CONFIG_CFG80211=y
CONFIG_MAC80211=y
CONFIG_IWLWIFI=m
CONFIG_IWLWIFI_LEDS=y
CONFIG_IWLMVM=m
----------------------------
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#63082): https://lists.yoctoproject.org/g/yocto/message/63082
Mute This Topic: https://lists.yoctoproject.org/mt/106063799/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to