Skip to contentSkip to conversation

Wireless interface (wlan) not shown on Raspberry Pi Zero W

DISCUSSION Renato Mendes 4 participants 18 messages Dec 13, 2023 – Dec 16, 2023 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

I've build a Yocto recipe to be used on a Raspberry Pi Zero W, have build it and save to a SD Card. My recipe has the following layers:

==========================================================================
meta                  /home/quadfloor/release_1/src/poky/meta   5
meta-poky             /home/quadfloor/release_1/src/poky/meta-poky  5 meta-yocto-bsp        /home/quadfloor/release_1/src/poky/meta-yocto-bsp  5 meta-oe               /home/quadfloor/release_1/src/meta-openembedded/meta-oe  5 meta-python           /home/quadfloor/release_1/src/meta-openembedded/meta-python  5 meta-multimedia       /home/quadfloor/release_1/src/meta-openembedded/meta-multimedia  5 meta-networking       /home/quadfloor/release_1/src/meta-openembedded/meta-networking  5 meta-raspberrypi      /home/quadfloor/release_1/src/meta-raspberrypi  9 meta-mender-core      /home/quadfloor/release_1/src/meta-mender/meta-mender-core  6 meta-mender-raspberrypi  /home/quadfloor/release_1/src/meta-mender/meta-mender-raspberrypi  10 meta-stargazer        /home/quadfloor/release_1/src/meta-stargazer  6

The meta-stargazer has the custom network configuration:

meta-stargazer/conf$ cat layer.conf
# We have a conf and classes directory, add to BBPATH BBPATH .= ":${LAYERDIR}"

# We have recipes-* directories, add to BBFILES
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
${LAYERDIR}/recipes-*/*/*.bbappend"

BBFILE_COLLECTIONS += "meta-stargazer"
BBFILE_PATTERN_meta-stargazer = "^${LAYERDIR}/"
BBFILE_PRIORITY_meta-stargazer = "6"

LAYERDEPENDS_meta-stargazer = "core"
LAYERSERIES_COMPAT_meta-stargazer = "kirkstone"

meta-stargazer/recipes-core$ cat systemd/systemd_%.bbappend PACKAGECONFIG:append = " networkd resolved" RDEPENDS:${PN}:append = " wpa-supplicant "

meta-stargazer/recipes-core$ cat systemd-conf/systemd-conf_%.bbappend FILESEXTRAPATHS:prepend := "${THISDIR}/files:"

SRC_URI += " file://eth.network file://en.network file://wlan.network "

FILES:${PN} += " ${sysconfdir}/systemd/network/eth.network ${sysconfdir}/systemd/network/en.network ${sysconfdir}/systemd/network/wlan.network "

do_install:append() {
install -d ${D}${sysconfdir}/systemd/network
install -m 0644 ${WORKDIR}/eth.network ${D}${sysconfdir}/systemd/network install -m 0644 ${WORKDIR}/en.network ${D}${sysconfdir}/systemd/network install -m 0644 ${WORKDIR}/wlan.network ${D}${sysconfdir}/systemd/network }

meta-stargazer/recipes-core$ cat systemd-conf/files/wlan.network [Match]
Name=wlan*
KernelCommandLine=!nfsroot

[Network]
DHCP=v4

[DHCPv4]
UseHostname=false

meta-stargazer/recipes-core$ cat systemd-conf/files/en.network [Match]
Name=en*
KernelCommandLine=!nfsroot

[Network]
DHCP=v4

[DHCPv4]
UseHostname=false

meta-stargazer/recipes-core$ cat systemd-conf/files/eth.network [Match]
Name=eth*
KernelCommandLine=!nfsroot

[Network]
DHCP=v4

[DHCPv4]
UseHostname=false

When I boot the Raspi, there are no error messages related to wlan in the log ("dmesg | cat wlan" shows nothing), but when I issue ifconfig -a, I find only the lo interface.

There are several posts on Raspi forum regarding updating the RaspiOS to solve that, but I don't know how to handle that on Yocto. I'm stuck with no network connection so any help is very much appreciated.

#1 lore raw

Hi Renato,

make sure that wifi is enabled and the required firmware is installed as outlined in step 7 here:
https://hub.mender.io/t/how-to-configure-networking-using-systemd-in-yocto-project/1097
:

DISTRO_FEATURES:append = " wifi " IMAGE_INSTALL:append = " linux-firmware-rpidistro-bcm43430 "

Greetz,
Josef

Quoted 113 lines · Renato Mendes

I've build a Yocto recipe to be used on a Raspberry Pi Zero W, have build it and save to a SD Card. My recipe has the following layers:

==========================================================================

meta                  /home/quadfloor/release_1/src/poky/meta   5
meta-poky             /home/quadfloor/release_1/src/poky/meta-poky  5
meta-yocto-bsp        /home/quadfloor/release_1/src/poky/meta-yocto-bsp  5

meta-oe
/home/quadfloor/release_1/src/meta-openembedded/meta-oe 5
meta-python
/home/quadfloor/release_1/src/meta-openembedded/meta-python 5
meta-multimedia
/home/quadfloor/release_1/src/meta-openembedded/meta-multimedia 5
meta-networking
/home/quadfloor/release_1/src/meta-openembedded/meta-networking 5
meta-raspberrypi /home/quadfloor/release_1/src/meta-raspberrypi 9
meta-mender-core /home/quadfloor/release_1/src/meta-mender/meta-mender-core 6 meta-mender-raspberrypi /home/quadfloor/release_1/src/meta-mender/meta-mender-raspberrypi 10
meta-stargazer /home/quadfloor/release_1/src/meta-stargazer 6

The meta-stargazer has the custom network configuration:

meta-stargazer/conf$ cat layer.conf
# We have a conf and classes directory, add to BBPATH BBPATH .= ":${LAYERDIR}"

# We have recipes-* directories, add to BBFILES

BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
            ${LAYERDIR}/recipes-*/*/*.bbappend"

BBFILE_COLLECTIONS += "meta-stargazer"
BBFILE_PATTERN_meta-stargazer = "^${LAYERDIR}/"
BBFILE_PRIORITY_meta-stargazer = "6"

LAYERDEPENDS_meta-stargazer = "core"
LAYERSERIES_COMPAT_meta-stargazer = "kirkstone"

meta-stargazer/recipes-core$ cat systemd/systemd_%.bbappend PACKAGECONFIG:append = " networkd resolved" RDEPENDS:${PN}:append = " wpa-supplicant "

meta-stargazer/recipes-core$ cat systemd-conf/systemd-conf_%.bbappend FILESEXTRAPATHS:prepend := "${THISDIR}/files:"

SRC_URI += " file://eth.network file://en.network file://wlan.network "

FILES:${PN} += " ${sysconfdir}/systemd/network/eth.network ${sysconfdir}/systemd/network/en.network ${sysconfdir}/systemd/network/wlan.network "

do_install:append() {
install -d ${D}${sysconfdir}/systemd/network
install -m 0644 ${WORKDIR}/eth.network ${D}${sysconfdir}/systemd/network install -m 0644 ${WORKDIR}/en.network ${D}${sysconfdir}/systemd/network install -m 0644 ${WORKDIR}/wlan.network ${D}${sysconfdir}/systemd/network }

meta-stargazer/recipes-core$ cat systemd-conf/files/wlan.network [Match]
Name=wlan*
KernelCommandLine=!nfsroot

[Network]
DHCP=v4

[DHCPv4]
UseHostname=false

meta-stargazer/recipes-core$ cat systemd-conf/files/en.network [Match]
Name=en*
KernelCommandLine=!nfsroot

[Network]
DHCP=v4

[DHCPv4]
UseHostname=false

meta-stargazer/recipes-core$ cat systemd-conf/files/eth.network [Match]
Name=eth*
KernelCommandLine=!nfsroot

[Network]
DHCP=v4

[DHCPv4]
UseHostname=false

When I boot the Raspi, there are no error messages related to wlan in the log ("dmesg | cat wlan" shows nothing), but when I issue ifconfig -a, I find only the lo interface.

There are several posts on Raspi forum regarding updating the RaspiOS to solve that, but I don't know how to handle that on Yocto. I'm stuck with no network connection so any help is very much appreciated.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
You automatically follow any topics you start or reply to. View/Reply Online (#61877):
https://lists.yoctoproject.org/g/yocto/message/61877
Mute This Topic: https://lists.yoctoproject.org/mt/103150047/4689568
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw

This is the exact tutorial I've followed up to make it work.

My exact local.conf:

/build/conf$ cat local.conf
#
# This file is your local configuration file and is where all local user settings

# are placed. The comments in this file give some guide to the options a new user
# to the system might want to change but pretty much any configuration option can
# be set in this file. More adventurous users can look at
# local.conf.sample.extended which contains other examples of configuration which
# can be placed in this file but new users likely won't need any of them
# initially.
#
# Lines starting with the '#' character are commented out and in some cases the
# default values are provided as comments to show people example syntax. Enabling
# the option is a question of removing the # character and making any change to the
# variable as required.

#
# Machine Selection
#
# You need to select a specific machine to target the build with. There are a selection

# of emulated machines available which can boot and run in the QEMU emulator:
#
#MACHINE ?= "qemuarm"
#MACHINE ?= "qemuarm64"
#MACHINE ?= "qemumips"
#MACHINE ?= "qemumips64"
#MACHINE ?= "qemuppc"
#MACHINE ?= "qemux86"
#MACHINE ?= "qemux86-64"
#
# There are also the following hardware board target machines included for
# demonstration purposes:
#
#MACHINE ?= "beaglebone-yocto"
#MACHINE ?= "genericx86"
#MACHINE ?= "genericx86-64"
#MACHINE ?= "edgerouter"
#
# This sets the default machine to be qemux86-64 if no other machine is selected:
MACHINE ??= "qemux86-64"

#
# Where to place downloads
#
# During a first build the system will download many different source code tarballs

# from various upstream projects. This can take a while, particularly if your network
# connection is slow. These are all stored in DL_DIR. When wiping and rebuilding you
# can preserve this directory to speed up this part of subsequent builds. This directory
# is safe to share between multiple builds on the same machine too.
#
# The default is a downloads directory under TOPDIR which is the build directory.
#
#DL_DIR ?= "${TOPDIR}/downloads"

#
# Where to place shared-state files
#
# BitBake has the capability to accelerate builds based on previously built output. # This is done using "shared state" files which can be thought of as cache objects

# and this option determines where those files are placed.
#
# You can wipe out TMPDIR leaving this directory intact and the build would regenerate
# from these files if no changes were made to the configuration. If changes were made
# to the configuration, only shared state files where the state was still valid would
# be used (done using checksums).
#
# The default is a sstate-cache directory under TOPDIR.
#
#SSTATE_DIR ?= "${TOPDIR}/sstate-cache"

#
# Where to place the build output
#
# This option specifies where the bulk of the building work should be done and

# where BitBake should place its temporary files and output. Keep in mind that
# this includes the extraction and compilation of many applications and the toolchain
# which can use Gigabytes of hard disk space.
#
# The default is a tmp directory under TOPDIR.
#
#TMPDIR = "${TOPDIR}/tmp"

#
# Default policy config
#
# The distribution setting controls which policy settings are used as defaults. # The default value is fine for general Yocto project use, at least initially. # Ultimately when creating custom policy, people will likely end up subclassing

# these defaults.
#
DISTRO ?= "poky"
# As an example of a subclass there is a "bleeding" edge policy configuration
# where many versions are set to the absolute latest code from the upstream
# source control systems. This is just mentioned here as an example, its not
# useful to most new users.
# DISTRO ?= "poky-bleeding"

#
# Package Management configuration
#
# This variable lists which packaging formats to enable. Multiple package backends

# can be enabled at once and the first item listed in the variable will be used
# to generate the root filesystems.
# Options are:
#  - 'package_deb' for debian style deb files
#  - 'package_ipk' for ipk files are used by opkg (a debian style embedded package manager)
#  - 'package_rpm' for rpm style packages
# E.g.: PACKAGE_CLASSES ?= "package_rpm package_deb package_ipk"
# We default to rpm:
PACKAGE_CLASSES ?= "package_rpm"

#
# SDK target architecture
#
# This variable specifies the architecture to build SDK items for and means

# you can build the SDK packages for architectures other than the machine you are
# running the build on (i.e. building i686 packages on an x86_64 host).
# Supported values are i686, x86_64, aarch64
#SDKMACHINE ?= "i686"

#
# Extra image configuration defaults
#
# The EXTRA_IMAGE_FEATURES variable allows extra packages to be added to the generated

# images. Some of these options are added to certain image types automatically. The
# variable can contain the following options:
#  "dbg-pkgs"       - add -dbg packages for all installed packages
#                     (adds symbol information for debugging/profiling)
#  "src-pkgs"       - add -src packages for all installed packages
#                     (adds source code for debugging)
#  "dev-pkgs"       - add -dev packages for all installed packages
#                     (useful if you want to develop against libs in the image)
#  "ptest-pkgs"     - add -ptest packages for all ptest-enabled packages
#                     (useful if you want to run the package test suites)
#  "tools-sdk"      - add development tools (gcc, make, pkgconfig etc.)
#  "tools-debug"    - add debugging tools (gdb, strace)
#  "eclipse-debug"  - add Eclipse remote debugging support
#  "tools-profile"  - add profiling tools (oprofile, lttng, valgrind)
#  "tools-testapps" - add useful testing tools (ts_print, aplay, arecord etc.)
#  "debug-tweaks"   - make an image suitable for development
#                     e.g. ssh root access has a blank password
# There are other application targets that can be used here too, see
# meta/classes/image.bbclass and meta/classes/core-image.bbclass for more details.
# We default to enabling the debugging tweaks.
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"

#
# Additional image features
#
# The following is a list of additional classes to use when building images which

# enable extra features. Some available options which can be included in this variable
# are:
#   - 'buildstats' collect build statistics
USER_CLASSES ?= "buildstats"

#
# Runtime testing of images
#
# The build system can test booting virtual machine images under qemu (an emulator)

# after any root filesystems are created and run tests against those images. It can also
# run tests against any SDK that are built. To enable this uncomment these lines.
# See classes/test{image,sdk}.bbclass for further details.
#IMAGE_CLASSES += "testimage testsdk"
#TESTIMAGE_AUTO:qemuall = "1"

#
# Interactive shell configuration
#
# Under certain circumstances the system may need input from you and to do this it

# can launch an interactive shell. It needs to do this since the build is
# multithreaded and needs to be able to handle the case where more than one parallel
# process may require the user's attention. The default is iterate over the available
# terminal types to find one that works.
#
# Examples of the occasions this may happen are when resolving patches which cannot
# be applied, to use the devshell or the kernel menuconfig
#
# Supported values are auto, gnome, xfce, rxvt, screen, konsole (KDE 3.x only), none
# Note: currently, Konsole support only works for KDE 3.x due to the way
# newer Konsole versions behave
#OE_TERMINAL = "auto"
# By default disable interactive patch resolution (tasks will just fail instead):
PATCHRESOLVE = "noop"

#
# Disk Space Monitoring during the build
#
# Monitor the disk space during the build. If there is less that 1GB of space or less

# than 100K inodes in any key build location (TMPDIR, DL_DIR, SSTATE_DIR), gracefully
# shutdown the build. If there is less than 100MB or 1K inodes, perform a hard halt
# of the build. The reason for this is that running completely out of space can corrupt
# files and damages the build in ways which may not be easily recoverable.
# It's necessary to monitor /tmp, if there is no space left the build will fail
# with very exotic errors.
BB_DISKMON_DIRS ??= "\
STOPTASKS,${TMPDIR},1G,100K \
STOPTASKS,${DL_DIR},1G,100K \
STOPTASKS,${SSTATE_DIR},1G,100K \
STOPTASKS,/tmp,100M,100K \
HALT,${TMPDIR},100M,1K \
HALT,${DL_DIR},100M,1K \
HALT,${SSTATE_DIR},100M,1K \
HALT,/tmp,10M,1K"

#
# Shared-state files from other locations
#
# As mentioned above, shared state files are prebuilt cache data objects which can be

# used to accelerate build time. This variable can be used to configure the system
# to search other mirror locations for these objects before it builds the data itself.
#
# This can be a filesystem directory, or a remote url such as https or ftp. These
# would contain the sstate-cache results from previous builds (possibly from other
# machines). This variable works like fetcher MIRRORS/PREMIRRORS and points to the
# cache locations to check for the shared objects.
# NOTE: if the mirror uses the same structure as SSTATE_DIR, you need to add PATH
# at the end as shown in the examples below. This will be substituted with the
# correct path within the directory structure.
#SSTATE_MIRRORS ?= "\
#file://.* https://someserver.tld/share/sstate/PATH;downloadfilename=PATH \
#file://.* file:///some/local/dir/sstate/PATH"

#
# Yocto Project SState Mirror
#
# The Yocto Project has prebuilt artefacts available for its releases, you can enable

# use of these by uncommenting the following lines. This will mean the build uses
# the network to check for artefacts at the start of builds, which does slow it down
# equally, it will also speed up the builds by not having to build things if they are
# present in the cache. It assumes you can download something faster than you can build it
# which will depend on your network.
# Note: For this to work you also need hash-equivalence passthrough to the matching server
#
#BB_HASHSERVE_UPSTREAM = "hashserv.yocto.io:8687"
#SSTATE_MIRRORS ?= "file://.* http://sstate.yoctoproject.org/all/PATH;downloadfilename=PATH"

#
# Qemu configuration
#
# By default native qemu will build with a builtin VNC server where graphical output can be

# seen. The line below enables the SDL UI frontend too.
PACKAGECONFIG:append:pn-qemu-system-native = " sdl"
# By default libsdl2-native will be built, if you want to use your host's libSDL instead of
# the minimal libsdl built by libsdl2-native then uncomment the ASSUME_PROVIDED line below.
#ASSUME_PROVIDED += "libsdl2-native"

# You can also enable the Gtk UI frontend, which takes somewhat longer to build, but adds

# a handy set of menus for controlling the emulator.
#PACKAGECONFIG:append:pn-qemu-system-native = " gtk+"

#
# Hash Equivalence
#
# Enable support for automatically running a local hash equivalence server and

# instruct bitbake to use a hash equivalence aware signature generator. Hash
# equivalence improves reuse of sstate by detecting when a given sstate
# artifact can be reused as equivalent, even if the current task hash doesn't
# match the one that generated the artifact.
#
# A shared hash equivalent server can be set with "<HOSTNAME>:<PORT>" format
#
#BB_HASHSERVE = "auto"
#BB_SIGNATURE_HANDLER = "OEEquivHash"

#
# Memory Resident Bitbake
#
# Bitbake's server component can stay in memory after the UI for the current command

# has completed. This means subsequent commands can run faster since there is no need
# for bitbake to reload cache files and so on. Number is in seconds, after which the
# server will shut down.
#
#BB_SERVER_TIMEOUT = "60"

# CONF_VERSION is increased each time build/conf/ changes incompatibly and is used to

# track the version of this file when it was generated. This can safely be ignored if
# this doesn't mean anything to you.
CONF_VERSION = "2"
#
# Raspeberry PI Zero W Mender configuration
#
MACHINE = "raspberrypi0-wifi"
MENDER_ARTIFACT_NAME = "release-1"
INHERIT += "mender-full"
RPI_USE_U_BOOT = "1"
#MENDER_PARTITION_ALIGNMENT = "4096000"
MENDER_BOOT_PART_SIZE_MB = "40"
IMAGE_INSTALL:append = " kernel-image kernel-devicetree"
IMAGE_FSTYPES:remove = "rpi-sdimg"
# Build for Hosted Mender
# To get your tenant token, log in to https://hosted.mender.io,
# click your email at the top right and then "My organization".
# Remember to remove the meta-mender-demo layer (if you have added it).
# We recommend Mender 1.4.0 and Yocto Project's for Hosted Mender.
#
MENDER_SERVER_URL = "https://hosted.mender.io"
MENDER_TENANT_TOKEN = "...."
DISTRO_FEATURES:append = " systemd"
VIRTUAL-RUNTIME_init_manager = "systemd"
INIT_MANAGER = "systemd"
DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
VIRTUAL-RUNTIME_initscripts = ""
IMAGE_FSTYPES = "ext4"
#
# UART LOG - You need a special cable to get UART logs
#
#ENABLE_UART = "1"
#
# WiFi
#
DISTRO_FEATURES:append = " wifi "
IMAGE_INSTALL:append = " linux-firmware-rpidistro-bcm43430 "
#3 lore raw

I guessed that you followed the tutorial from the meta-stargazer name :-)

However it does not answer if you really made sure that the firmware package as pointed out is installed, through either local.conf or a custom image. You can check the manifest file in the image deploy directory to verify that. Without, the wifi interface will not be active.

Greetz,
Josef

Quoted 399 lines · Renato Mendes

This is the exact tutorial I've followed up to make it work.

My exact local.conf:

/build/conf$ cat local.conf
#
# This file is your local configuration file and is where all local user settings

# are placed. The comments in this file give some guide to the options a
new user
# to the system might want to change but pretty much any configuration
option can
# be set in this file. More adventurous users can look at
# local.conf.sample.extended which contains other examples of
configuration which
# can be placed in this file but new users likely won't need any of them
# initially.
#
# Lines starting with the '#' character are commented out and in some
cases the
# default values are provided as comments to show people example syntax.
Enabling
# the option is a question of removing the # character and making any
change to the
# variable as required.

#
# Machine Selection
#
# You need to select a specific machine to target the build with. There are a selection

# of emulated machines available which can boot and run in the QEMU
emulator:
#
#MACHINE ?= "qemuarm"
#MACHINE ?= "qemuarm64"
#MACHINE ?= "qemumips"
#MACHINE ?= "qemumips64"
#MACHINE ?= "qemuppc"
#MACHINE ?= "qemux86"
#MACHINE ?= "qemux86-64"
#
# There are also the following hardware board target machines included for
# demonstration purposes:
#
#MACHINE ?= "beaglebone-yocto"
#MACHINE ?= "genericx86"
#MACHINE ?= "genericx86-64"
#MACHINE ?= "edgerouter"
#
# This sets the default machine to be qemux86-64 if no other machine is
selected:
MACHINE ??= "qemux86-64"

#
# Where to place downloads
#
# During a first build the system will download many different source code tarballs

# from various upstream projects. This can take a while, particularly if
your network
# connection is slow. These are all stored in DL_DIR. When wiping and
rebuilding you
# can preserve this directory to speed up this part of subsequent builds.
This directory
# is safe to share between multiple builds on the same machine too.
#
# The default is a downloads directory under TOPDIR which is the build
directory.
#
#DL_DIR ?= "${TOPDIR}/downloads"

#
# Where to place shared-state files
#
# BitBake has the capability to accelerate builds based on previously built output.
# This is done using "shared state" files which can be thought of as cache objects

# and this option determines where those files are placed.
#
# You can wipe out TMPDIR leaving this directory intact and the build
would regenerate
# from these files if no changes were made to the configuration. If
changes were made
# to the configuration, only shared state files where the state was still
valid would
# be used (done using checksums).
#
# The default is a sstate-cache directory under TOPDIR.
#
#SSTATE_DIR ?= "${TOPDIR}/sstate-cache"

#
# Where to place the build output
#
# This option specifies where the bulk of the building work should be done and

# where BitBake should place its temporary files and output. Keep in mind
that
# this includes the extraction and compilation of many applications and
the toolchain
# which can use Gigabytes of hard disk space.
#
# The default is a tmp directory under TOPDIR.
#
#TMPDIR = "${TOPDIR}/tmp"

#
# Default policy config
#
# The distribution setting controls which policy settings are used as defaults.
# The default value is fine for general Yocto project use, at least initially.
# Ultimately when creating custom policy, people will likely end up subclassing

# these defaults.
#
DISTRO ?= "poky"
# As an example of a subclass there is a "bleeding" edge policy
configuration
# where many versions are set to the absolute latest code from the upstream
# source control systems. This is just mentioned here as an example, its
not
# useful to most new users.
# DISTRO ?= "poky-bleeding"

#
# Package Management configuration
#
# This variable lists which packaging formats to enable. Multiple package backends

# can be enabled at once and the first item listed in the variable will be
used
# to generate the root filesystems.
# Options are:
#  - 'package_deb' for debian style deb files
#  - 'package_ipk' for ipk files are used by opkg (a debian style embedded
package manager)
#  - 'package_rpm' for rpm style packages
# E.g.: PACKAGE_CLASSES ?= "package_rpm package_deb package_ipk"
# We default to rpm:
PACKAGE_CLASSES ?= "package_rpm"

#
# SDK target architecture
#
# This variable specifies the architecture to build SDK items for and means

# you can build the SDK packages for architectures other than the machine
you are
# running the build on (i.e. building i686 packages on an x86_64 host).
# Supported values are i686, x86_64, aarch64
#SDKMACHINE ?= "i686"

#
# Extra image configuration defaults
#
# The EXTRA_IMAGE_FEATURES variable allows extra packages to be added to the generated

# images. Some of these options are added to certain image types
automatically. The
# variable can contain the following options:
#  "dbg-pkgs"       - add -dbg packages for all installed packages
#                     (adds symbol information for debugging/profiling)
#  "src-pkgs"       - add -src packages for all installed packages
#                     (adds source code for debugging)
#  "dev-pkgs"       - add -dev packages for all installed packages
#                     (useful if you want to develop against libs in the
image)
#  "ptest-pkgs"     - add -ptest packages for all ptest-enabled packages
#                     (useful if you want to run the package test suites)
#  "tools-sdk"      - add development tools (gcc, make, pkgconfig etc.)
#  "tools-debug"    - add debugging tools (gdb, strace)
#  "eclipse-debug"  - add Eclipse remote debugging support
#  "tools-profile"  - add profiling tools (oprofile, lttng, valgrind)
#  "tools-testapps" - add useful testing tools (ts_print, aplay, arecord
etc.)
#  "debug-tweaks"   - make an image suitable for development
#                     e.g. ssh root access has a blank password
# There are other application targets that can be used here too, see
# meta/classes/image.bbclass and meta/classes/core-image.bbclass for more
details.
# We default to enabling the debugging tweaks.
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"

#
# Additional image features
#
# The following is a list of additional classes to use when building images which

# enable extra features. Some available options which can be included in
this variable
# are:
#   - 'buildstats' collect build statistics
USER_CLASSES ?= "buildstats"

#
# Runtime testing of images
#
# The build system can test booting virtual machine images under qemu (an emulator)

# after any root filesystems are created and run tests against those
images. It can also
# run tests against any SDK that are built. To enable this uncomment these
lines.
# See classes/test{image,sdk}.bbclass for further details.
#IMAGE_CLASSES += "testimage testsdk"
#TESTIMAGE_AUTO:qemuall = "1"

#
# Interactive shell configuration
#
# Under certain circumstances the system may need input from you and to do this it

# can launch an interactive shell. It needs to do this since the build is
# multithreaded and needs to be able to handle the case where more than
one parallel
# process may require the user's attention. The default is iterate over
the available
# terminal types to find one that works.
#
# Examples of the occasions this may happen are when resolving patches
which cannot
# be applied, to use the devshell or the kernel menuconfig
#
# Supported values are auto, gnome, xfce, rxvt, screen, konsole (KDE 3.x
only), none
# Note: currently, Konsole support only works for KDE 3.x due to the way
# newer Konsole versions behave
#OE_TERMINAL = "auto"
# By default disable interactive patch resolution (tasks will just fail
instead):
PATCHRESOLVE = "noop"

#
# Disk Space Monitoring during the build
#
# Monitor the disk space during the build. If there is less that 1GB of space or less

# than 100K inodes in any key build location (TMPDIR, DL_DIR, SSTATE_DIR),
gracefully
# shutdown the build. If there is less than 100MB or 1K inodes, perform a
hard halt
# of the build. The reason for this is that running completely out of
space can corrupt
# files and damages the build in ways which may not be easily recoverable.
# It's necessary to monitor /tmp, if there is no space left the build will
fail
# with very exotic errors.
BB_DISKMON_DIRS ??= "\
    STOPTASKS,${TMPDIR},1G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    STOPTASKS,/tmp,100M,100K \
    HALT,${TMPDIR},100M,1K \
    HALT,${DL_DIR},100M,1K \
    HALT,${SSTATE_DIR},100M,1K \
    HALT,/tmp,10M,1K"

#
# Shared-state files from other locations
#
# As mentioned above, shared state files are prebuilt cache data objects which can be

# used to accelerate build time. This variable can be used to configure
the system
# to search other mirror locations for these objects before it builds the
data itself.
#
# This can be a filesystem directory, or a remote url such as https or
ftp. These
# would contain the sstate-cache results from previous builds (possibly
from other
# machines). This variable works like fetcher MIRRORS/PREMIRRORS and
points to the
# cache locations to check for the shared objects.
# NOTE: if the mirror uses the same structure as SSTATE_DIR, you need to
add PATH
# at the end as shown in the examples below. This will be substituted with
the
# correct path within the directory structure.
#SSTATE_MIRRORS ?= "\
#file://.* https://someserver.tld/share/sstate/PATH;downloadfilename=PATH
\
#file://.* file:///some/local/dir/sstate/PATH"

#
# Yocto Project SState Mirror
#
# The Yocto Project has prebuilt artefacts available for its releases, you can enable

# use of these by uncommenting the following lines. This will mean the
build uses
# the network to check for artefacts at the start of builds, which does
slow it down
# equally, it will also speed up the builds by not having to build things
if they are
# present in the cache. It assumes you can download something faster than
you can build it
# which will depend on your network.
# Note: For this to work you also need hash-equivalence passthrough to the
matching server
#
#BB_HASHSERVE_UPSTREAM = "hashserv.yocto.io:8687"
#SSTATE_MIRRORS ?= "file://.*
http://sstate.yoctoproject.org/all/PATH;downloadfilename=PATH"

#
# Qemu configuration
#
# By default native qemu will build with a builtin VNC server where graphical output can be

# seen. The line below enables the SDL UI frontend too.
PACKAGECONFIG:append:pn-qemu-system-native = " sdl"
# By default libsdl2-native will be built, if you want to use your host's
libSDL instead of
# the minimal libsdl built by libsdl2-native then uncomment the
ASSUME_PROVIDED line below.
#ASSUME_PROVIDED += "libsdl2-native"

# You can also enable the Gtk UI frontend, which takes somewhat longer to build, but adds

# a handy set of menus for controlling the emulator.
#PACKAGECONFIG:append:pn-qemu-system-native = " gtk+"

#
# Hash Equivalence
#
# Enable support for automatically running a local hash equivalence server and

# instruct bitbake to use a hash equivalence aware signature generator.
Hash
# equivalence improves reuse of sstate by detecting when a given sstate
# artifact can be reused as equivalent, even if the current task hash
doesn't
# match the one that generated the artifact.
#
# A shared hash equivalent server can be set with "<HOSTNAME>:<PORT>"
format
#
#BB_HASHSERVE = "auto"
#BB_SIGNATURE_HANDLER = "OEEquivHash"

#
# Memory Resident Bitbake
#
# Bitbake's server component can stay in memory after the UI for the current command

# has completed. This means subsequent commands can run faster since there
is no need
# for bitbake to reload cache files and so on. Number is in seconds, after
which the
# server will shut down.
#
#BB_SERVER_TIMEOUT = "60"

# CONF_VERSION is increased each time build/conf/ changes incompatibly and is used to

# track the version of this file when it was generated. This can safely be
ignored if
# this doesn't mean anything to you.
CONF_VERSION = "2"
#
# Raspeberry PI Zero W Mender configuration
#
MACHINE = "raspberrypi0-wifi"
MENDER_ARTIFACT_NAME = "release-1"
INHERIT += "mender-full"
RPI_USE_U_BOOT = "1"
#MENDER_PARTITION_ALIGNMENT = "4096000"
MENDER_BOOT_PART_SIZE_MB = "40"
IMAGE_INSTALL:append = " kernel-image kernel-devicetree"
IMAGE_FSTYPES:remove = "rpi-sdimg"
# Build for Hosted Mender
# To get your tenant token, log in to https://hosted.mender.io,
# click your email at the top right and then "My organization".
# Remember to remove the meta-mender-demo layer (if you have added it).
# We recommend Mender 1.4.0 and Yocto Project's for Hosted Mender.
#
MENDER_SERVER_URL = "https://hosted.mender.io"
MENDER_TENANT_TOKEN = "...."
DISTRO_FEATURES:append = " systemd"
VIRTUAL-RUNTIME_init_manager = "systemd"
INIT_MANAGER = "systemd"
DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
VIRTUAL-RUNTIME_initscripts = ""
IMAGE_FSTYPES = "ext4"
#
# UART LOG - You need a special cable to get UART logs
#
#ENABLE_UART = "1"
#
# WiFi
#
DISTRO_FEATURES:append = " wifi "
IMAGE_INSTALL:append = " linux-firmware-rpidistro-bcm43430 "
#4 lore raw

Seens that it is installed:

images/raspberrypi0-wifi$ cat core-image-full-cmdline-raspberrypi0-wifi.manifest | grep rpidistro linux-firmware-rpidistro-bcm43430 noarch 20210315+3+rpt4 linux-firmware-rpidistro-broadcom-license noarch 20210315+3+rpt4

My Raspi Zero W is Raspberry Pi Zero W 1.1, dated 2017.

When I login in the Raspi, I can access both wpi_supplicant and wpi_cli, but no wlan avalilable at all...

#5 lore raw

After some research I've found the following message at dsmsg:

[.    5.896958] systemd[1]: multi-user.target: Wants dependency dropin /etc/systemd/system/multi-user.target.wants/[email protected] target /lib/systemd/system/[email protected] has different name

At my directory:
ls /lib/systemd/system/wpa_supplicant*

[email protected]
[email protected]
wpa_suuplicant.service
[email protected]

Seens this can be related to the error... What exactly does this error is pointint out? Any ideas on how to fix it?

#6 lore raw

I'm still struggling to solve that... I came up with a very basic configuration on Yocto (using kirkstone):

# POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf

# changes incompatibly
POKY_BBLAYERS_CONF_VERSION = "2"

BBPATH = "${TOPDIR}"
BBFILES ?= ""

BBLAYERS ?= " \
/home/quadfloor/release_1/src/poky/meta \
/home/quadfloor/release_1/src/poky/meta-poky \
/home/quadfloor/release_1/src/poky/meta-yocto-bsp \
/home/quadfloor/release_1/src/meta-openembedded/meta-oe \
/home/quadfloor/release_1/src/meta-openembedded/meta-python \
/home/quadfloor/release_1/src/meta-openembedded/meta-multimedia \
/home/quadfloor/release_1/src/meta-openembedded/meta-networking \
/home/quadfloor/release_1/src/meta-raspberrypi \
"

local.conf:

MACHINE = "raspberrypi0-wifi"
SERIAL_CONSOLE = ""
DISABLE_RPI_BOOT_LOGO = "1"
DISABLE_OVERSCAN = "1"
DISABLE_SPLASH = "1"
BOOT_DELAY = "0"
GPU_MEM_256 = "128"
GPU_MEM_512 = "196"
GPU_MEM_1024 = "396"
PACKAGE_CLASSES = "package_ipk"
DISTRO_FEATURES:append = " wifi "
IMAGE_INSTALL:append = " linux-firmware-bcm43430 wpa-supplicant" IMAGE_FSTYPES = "tar.bz2 ext4 rpi-sdimg" SDIMG_ROOTFS_TYPE = "ext4"

The error still persists: No wlan at all (ifconfig -a show only lo).

No idea where to go - project stuck and tigh deadline... Help very much needed...

#7 lore raw
Quoted 40 lines · Renato Mendes

I'm still struggling to solve that... I came up with a very basic configuration on Yocto (using kirkstone):

# POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf

# changes incompatibly
POKY_BBLAYERS_CONF_VERSION = "2"

BBPATH = "${TOPDIR}"
BBFILES ?= ""

BBLAYERS ?= " \
/home/quadfloor/release_1/src/poky/meta \
/home/quadfloor/release_1/src/poky/meta-poky \
/home/quadfloor/release_1/src/poky/meta-yocto-bsp \
/home/quadfloor/release_1/src/meta-openembedded/meta-oe \
/home/quadfloor/release_1/src/meta-openembedded/meta-python \
/home/quadfloor/release_1/src/meta-openembedded/meta-multimedia \
/home/quadfloor/release_1/src/meta-openembedded/meta-networking \
/home/quadfloor/release_1/src/meta-raspberrypi \
"

local.conf:

MACHINE = "raspberrypi0-wifi"
SERIAL_CONSOLE = ""
DISABLE_RPI_BOOT_LOGO = "1"
DISABLE_OVERSCAN = "1"
DISABLE_SPLASH = "1"
BOOT_DELAY = "0"
GPU_MEM_256 = "128"
GPU_MEM_512 = "196"
GPU_MEM_1024 = "396"
PACKAGE_CLASSES = "package_ipk"
DISTRO_FEATURES:append = " wifi "
IMAGE_INSTALL:append = " linux-firmware-bcm43430 wpa-supplicant" IMAGE_FSTYPES = "tar.bz2 ext4 rpi-sdimg" SDIMG_ROOTFS_TYPE = "ext4"

Quoted 1 line

The error still persists: No wlan at all (ifconfig -a show only lo).

It seems that your system does not have wifi driver loaded. Can you check output of
lsmod ?

secondly look what

dmesg | grep brcmfmac

says

Quoted 13 lines

No idea where to go - project stuck and tigh deadline... Help very much needed...

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
You automatically follow any topics you start or reply to. View/Reply Online (#61906): https://lists.yoctoproject.org/g/yocto/message/61906
Mute This Topic: https://lists.yoctoproject.org/mt/103150047/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#8 lore raw

Thanks for helping...

$ lsmod
Module      Size           Used     by
nfsd           454656     11

dmesg | grep brcmfmac shows nothing....

#9 lore raw
Quoted 7 lines · Renato Mendes

Thanks for helping...

$ lsmod
Module      Size           Used     by
nfsd           454656     11

yeah so no kernel modules could be the problem.
You said you are on kirkstone

Can you try backporting

https://github.com/agherzan/meta-raspberrypi/commit/0917b60527242d3668efc2d3b918df64b13e7b6f

to kirkstone and see if it helps. ?

Quoted 10 lines

dmesg | grep brcmfmac shows nothing....
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
You automatically follow any topics you start or reply to. View/Reply Online (#61909): https://lists.yoctoproject.org/g/yocto/message/61909
Unfollow This Topic: https://lists.yoctoproject.org/unft/103150047/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#10 lore raw

Hummm. got it. Could never imagine this situation.... :-)

You mean backporting to dunfell? I'm currently on kirkstone....

#11 lore raw
Quoted 4 lines · Renato Mendes

Hummm. got it. Could never imagine this situation.... :-)

You mean backporting to dunfell? I'm currently on kirkstone....

backport from master to kirkstone branch ( meta-raspberrypi )

#12 lore raw

I'm already on kirkstone:

git clone -b kirkstone git://git.yoctoproject.org/meta-raspberrypi. /src/meta-raspberrypi

#13 lore raw

reread what I said.

Quoted 5 lines · Renato Mendes

I'm already on kirkstone:

git clone -b kirkstone git://git.yoctoproject.org/meta-raspberrypi ./src/meta-raspberrypi

#14 lore raw

So Khem, that's what I've done:

*Load from git and backport:*

git clone -b kirkstone git://git.yoctoproject.org/poky ./src/poky
git clone -b kirkstone git://git.openembedded.org/meta-openembedded ./src/meta-openembedded

git clone -b kirkstone git://git.yoctoproject.org/meta-raspberrypi ./src/meta-raspberrypi git checkout master
git checkout kiskstone
git cherry-pick master
Auto-merging docs/extra-build-config.md
Auto-merging recipes-bsp/bootfiles/rpi-cmdline.bb
[kirkstone a900a5e] rpi-cmdline, rpi-u-boot-src: Support USB boot
Author: Harunobu Kurokawa <[email protected]>
Date: Fri May 5 14:49:51 2023 +0900
Committer: quadfloor <[email protected]>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly. Run the
following command and follow the instructions in your editor to edit
your configuration file:

git config --global --edit

After doing this, you may fix the identity used for this commit with:

git commit --amend --reset-author

4 files changed, 24 insertions(+), 3 deletions(-)

*Configuration:*

After that, rebuilt with the short configuration:

MACHINE = "raspberrypi0-wifi"
SERIAL_CONSOLE = ""
DISABLE_RPI_BOOT_LOGO = "1"
DISABLE_OVERSCAN = "1"
DISABLE_SPLASH = "1"
BOOT_DELAY = "0"
GPU_MEM_256 = "128"
GPU_MEM_512 = "196"
GPU_MEM_1024 = "396"
PACKAGE_CLASSES = "package_ipk"
DISTRO_FEATURES:append = " wifi "
IMAGE_INSTALL:append = " linux-firmware-bcm43430 wpa-supplicant" IMAGE_FSTYPES = "tar.bz2 ext4 rpi-sdimg" SDIMG_ROOTFS_TYPE = "ext4"

$ cat bblayers.conf
# POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
POKY_BBLAYERS_CONF_VERSION = "2"

BBPATH = "${TOPDIR}"
BBFILES ?= ""

BBLAYERS ?= " \
/home/quadfloor/release_1/src/poky/meta \
/home/quadfloor/release_1/src/poky/meta-poky \
/home/quadfloor/release_1/src/poky/meta-yocto-bsp \
/home/quadfloor/release_1/src/meta-openembedded/meta-oe \
/home/quadfloor/release_1/src/meta-openembedded/meta-python \
/home/quadfloor/release_1/src/meta-openembedded/meta-multimedia \
/home/quadfloor/release_1/src/meta-openembedded/meta-networking \
/home/quadfloor/release_1/src/meta-raspberrypi \
"

*Result:
* $ ifcofing -a -> Only lo interface, no wlan

$ dmesg | grep brcmfmac shows nothing....
$ dmesg | grep wlan shows nothing....
$ lsmod
Module              Size         Used  by
nfsd                   454656    11

So, basically the same....

Am I doing the backport correctly? Maybe config file problems?

Thanks for supporting...

#15 lore raw
Quoted 1 line

Am I doing the backport correctly? Maybe config file problems?

You've backported different commit than what Khem asked you to try.

Quoted 100 lines · Renato Mendes

So Khem, that's what I've done:

*Load from git and backport:*

git clone -b kirkstone git://git.yoctoproject.org/poky ./src/poky git clone -b kirkstone git://git.openembedded.org/meta-openembedded
./src/meta-openembedded

git clone -b kirkstone git://git.yoctoproject.org/meta-raspberrypi
./src/meta-raspberrypi
git checkout master
git checkout kiskstone
git cherry-pick master
Auto-merging docs/extra-build-config.md
Auto-merging recipes-bsp/bootfiles/rpi-cmdline.bb [kirkstone a900a5e] rpi-cmdline, rpi-u-boot-src: Support USB boot
Author: Harunobu Kurokawa <[email protected]>
Date: Fri May 5 14:49:51 2023 +0900
Committer: quadfloor <[email protected]>
Your name and email address were configured automatically based on your username and hostname. Please check that they are accurate. You can suppress this message by setting them explicitly. Run the following command and follow the instructions in your editor to edit your configuration file:

    git config --global --edit

After doing this, you may fix the identity used for this commit with:

    git commit --amend --reset-author
 4 files changed, 24 insertions(+), 3 deletions(-)

*Configuration:*

After that, rebuilt with the short configuration:

MACHINE = "raspberrypi0-wifi"
SERIAL_CONSOLE = ""
DISABLE_RPI_BOOT_LOGO = "1"
DISABLE_OVERSCAN = "1"
DISABLE_SPLASH = "1"
BOOT_DELAY = "0"
GPU_MEM_256 = "128"
GPU_MEM_512 = "196"
GPU_MEM_1024 = "396"
PACKAGE_CLASSES = "package_ipk"
DISTRO_FEATURES:append = " wifi "
IMAGE_INSTALL:append = " linux-firmware-bcm43430 wpa-supplicant" IMAGE_FSTYPES = "tar.bz2 ext4 rpi-sdimg" SDIMG_ROOTFS_TYPE = "ext4"

$ cat bblayers.conf
# POKY_BBLAYERS_CONF_VERSION is increased each time
build/conf/bblayers.conf
# changes incompatibly
POKY_BBLAYERS_CONF_VERSION = "2"

BBPATH = "${TOPDIR}"
BBFILES ?= ""

BBLAYERS ?= " \
/home/quadfloor/release_1/src/poky/meta \
/home/quadfloor/release_1/src/poky/meta-poky \
/home/quadfloor/release_1/src/poky/meta-yocto-bsp \
/home/quadfloor/release_1/src/meta-openembedded/meta-oe \
/home/quadfloor/release_1/src/meta-openembedded/meta-python \
/home/quadfloor/release_1/src/meta-openembedded/meta-multimedia \
/home/quadfloor/release_1/src/meta-openembedded/meta-networking \
/home/quadfloor/release_1/src/meta-raspberrypi \
"

*Result:*$ ifcofing -a -> Only lo interface, no wlan

$ dmesg | grep brcmfmac shows nothing....
$ dmesg | grep wlan shows nothing....
$ lsmod
Module              Size         Used  by
nfsd                   454656    11

So, basically the same....

Am I doing the backport correctly? Maybe config file problems?

Thanks for supporting...

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#61922):
https://lists.yoctoproject.org/g/yocto/message/61922
Mute This Topic: https://lists.yoctoproject.org/mt/103150047/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

A message that is not in the archive (sent off-list or not yet received): [email protected]

#17 lore raw

go into meta-raspberrypi checkout and then

then do
git cherry-pick 0917b60527242d3668efc2d3b918df64b13e7b6f

this should bring the one commit I am asking you to apply on top of kirkstone.

Quoted 107 lines · Renato Mendes

Sorry I’m confused… what exactly Khem asked to do - can you please elaborate. Thanks.

Em 15 de dez. de 2023, à(s) 18:51, Martin Jansa <[email protected]> escreveu:



Quoted 1 line

Am I doing the backport correctly? Maybe config file problems?

You've backported different commit than what Khem asked you to try.

Quoted 95 lines · Renato Mendes

So Khem, that's what I've done:

Load from git and backport:

git clone -b kirkstone git://git.yoctoproject.org/poky ./src/poky
git clone -b kirkstone git://git.openembedded.org/meta-openembedded ./src/meta-openembedded

git clone -b kirkstone git://git.yoctoproject.org/meta-raspberrypi ./src/meta-raspberrypi git checkout master
git checkout kiskstone
git cherry-pick master
Auto-merging docs/extra-build-config.md
Auto-merging recipes-bsp/bootfiles/rpi-cmdline.bb
[kirkstone a900a5e] rpi-cmdline, rpi-u-boot-src: Support USB boot
Author: Harunobu Kurokawa <[email protected]>
Date: Fri May 5 14:49:51 2023 +0900
Committer: quadfloor <[email protected]>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly. Run the
following command and follow the instructions in your editor to edit
your configuration file:

    git config --global --edit

After doing this, you may fix the identity used for this commit with:

    git commit --amend --reset-author
 4 files changed, 24 insertions(+), 3 deletions(-)

Configuration:

After that, rebuilt with the short configuration:

MACHINE = "raspberrypi0-wifi"
SERIAL_CONSOLE = ""
DISABLE_RPI_BOOT_LOGO = "1"
DISABLE_OVERSCAN = "1"
DISABLE_SPLASH = "1"
BOOT_DELAY = "0"
GPU_MEM_256 = "128"
GPU_MEM_512 = "196"
GPU_MEM_1024 = "396"
PACKAGE_CLASSES = "package_ipk"
DISTRO_FEATURES:append = " wifi "
IMAGE_INSTALL:append = " linux-firmware-bcm43430 wpa-supplicant" IMAGE_FSTYPES = "tar.bz2 ext4 rpi-sdimg" SDIMG_ROOTFS_TYPE = "ext4"

$ cat bblayers.conf
# POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
POKY_BBLAYERS_CONF_VERSION = "2"

BBPATH = "${TOPDIR}"
BBFILES ?= ""

BBLAYERS ?= " \
/home/quadfloor/release_1/src/poky/meta \
/home/quadfloor/release_1/src/poky/meta-poky \
/home/quadfloor/release_1/src/poky/meta-yocto-bsp \
/home/quadfloor/release_1/src/meta-openembedded/meta-oe \
/home/quadfloor/release_1/src/meta-openembedded/meta-python \
/home/quadfloor/release_1/src/meta-openembedded/meta-multimedia \
/home/quadfloor/release_1/src/meta-openembedded/meta-networking \
/home/quadfloor/release_1/src/meta-raspberrypi \
"

Result:

$ ifcofing -a -> Only lo interface, no wlan
$ dmesg | grep brcmfmac shows nothing....
$ dmesg | grep wlan shows nothing....
$ lsmod
Module              Size         Used  by
nfsd                   454656    11

So, basically the same....

Am I doing the backport correctly? Maybe config file problems?

Thanks for supporting...

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#61922): https://lists.yoctoproject.org/g/yocto/message/61922
Mute This Topic: https://lists.yoctoproject.org/mt/103150047/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#18 lore raw

Had a conflict on

cherry-picking:quadfloor@yocto:~/release_1/src/meta-raspberrypi$ git
fetch --all
quadfloor@yocto:~/release_1/src/meta-raspberrypi$ git fetch -all
error: did you mean `--all` (with two dashes)?
quadfloor@yocto:~/release_1/src/meta-raspberrypi$ git cherry-pick
0917b60527242d3668efc2d3b918df64b13e7b6f
Auto-merging conf/machine/include/rpi-base.inc
CONFLICT (content): Merge conflict in conf/machine/include/rpi-base.inc
error: could not apply 0917b60... rpi-base.inc: Add kernel modules to all images
hint: After resolving the conflicts, mark them with
hint: "git add/rm <pathspec>", then run
hint: "git cherry-pick --continue".
hint: You can instead skip this commit with "git cherry-pick --skip".
hint: To abort and get back to the state before "git cherry-pick",
hint: run "git cherry-pick --abort".
$ git checkout -b kirkstone
git://git.yoctoproject.org/meta-raspberrypi ./src/meta-raspberrypi
$ git fetch --all
$ git cherry-pick 0917b60527242d3668efc2d3b918df64b13e7b6f
Auto-merging conf/machine/include/rpi-base.inc
CONFLICT (content): Merge conflict in conf/machine/include/rpi-base.inc
error: could not apply 0917b60... rpi-base.inc: Add kernel modules to all images
hint: After resolving the conflicts, mark them with
hint: "git add/rm <pathspec>", then run
hint: "git cherry-pick --continue".
hint: You can instead skip this commit with "git cherry-pick --skip".
hint: To abort and get back to the state before "git cherry-pick",
hint: run "git cherry-pick --abort".

Detail about the found conflict:

<<<<<<< HEAD
MACHINE_EXTRA_RRECOMMENDS += "kernel-modules udev-rules-rpi" MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "${@oe.utils.conditional('ENABLE_I2C', '1', 'kernel-module-i2c-dev kernel-module-i2c-bcm2708', '', d)}" MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "${@oe.utils.conditional('ENABLE_IR', '1', 'kernel-module-gpio-ir kernel-module-gpio-ir-tx', '', d)}" MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "${@oe.utils.conditional('ENABLE_GPIO_SHUTDOWN', '1', 'gpio-shutdown kernel-module-gpio-keys', '', d)}"

SERIAL_CONSOLES_CHECK ??= "${SERIAL_CONSOLES}"

# The name of the deploy directory for raspberry pi boot files. # This variable is referred to by recipes fetching / generating the files. BOOTFILES_DIR_NAME ?= "bootfiles"
=======
MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += " kernel-modules udev-rules-rpi"

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

0917b60 (rpi-base.inc: Add kernel modules to all images)

Seens that MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += " kernel-modules udev-rules-rpi" was already there....

Confused now...

Em sex., 15 de dez. de 2023 às 20:40, Khem Raj <[email protected]> escreveu:

Quoted 117 lines

go into meta-raspberrypi checkout and then

then do
git cherry-pick 0917b60527242d3668efc2d3b918df64b13e7b6f

this should bring the one commit I am asking you to apply on top of kirkstone.

Quoted 107 lines · Renato Mendes

Sorry I’m confused… what exactly Khem asked to do - can you please elaborate. Thanks.

Em 15 de dez. de 2023, à(s) 18:51, Martin Jansa <[email protected]> escreveu:



Quoted 1 line

Am I doing the backport correctly? Maybe config file problems?

You've backported different commit than what Khem asked you to try.

Quoted 95 lines · Renato Mendes

So Khem, that's what I've done:

Load from git and backport:

git clone -b kirkstone git://git.yoctoproject.org/poky ./src/poky
git clone -b kirkstone git://git.openembedded.org/meta-openembedded ./src/meta-openembedded

git clone -b kirkstone git://git.yoctoproject.org/meta-raspberrypi ./src/meta-raspberrypi git checkout master
git checkout kiskstone
git cherry-pick master
Auto-merging docs/extra-build-config.md
Auto-merging recipes-bsp/bootfiles/rpi-cmdline.bb
[kirkstone a900a5e] rpi-cmdline, rpi-u-boot-src: Support USB boot
Author: Harunobu Kurokawa <[email protected]>
Date: Fri May 5 14:49:51 2023 +0900
Committer: quadfloor <[email protected]>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly. Run the
following command and follow the instructions in your editor to edit
your configuration file:

    git config --global --edit

After doing this, you may fix the identity used for this commit with:

    git commit --amend --reset-author
 4 files changed, 24 insertions(+), 3 deletions(-)

Configuration:

After that, rebuilt with the short configuration:

MACHINE = "raspberrypi0-wifi"
SERIAL_CONSOLE = ""
DISABLE_RPI_BOOT_LOGO = "1"
DISABLE_OVERSCAN = "1"
DISABLE_SPLASH = "1"
BOOT_DELAY = "0"
GPU_MEM_256 = "128"
GPU_MEM_512 = "196"
GPU_MEM_1024 = "396"
PACKAGE_CLASSES = "package_ipk"
DISTRO_FEATURES:append = " wifi "
IMAGE_INSTALL:append = " linux-firmware-bcm43430 wpa-supplicant" IMAGE_FSTYPES = "tar.bz2 ext4 rpi-sdimg" SDIMG_ROOTFS_TYPE = "ext4"

$ cat bblayers.conf
# POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
POKY_BBLAYERS_CONF_VERSION = "2"

BBPATH = "${TOPDIR}"
BBFILES ?= ""

BBLAYERS ?= " \
/home/quadfloor/release_1/src/poky/meta \
/home/quadfloor/release_1/src/poky/meta-poky \
/home/quadfloor/release_1/src/poky/meta-yocto-bsp \
/home/quadfloor/release_1/src/meta-openembedded/meta-oe \
/home/quadfloor/release_1/src/meta-openembedded/meta-python \
/home/quadfloor/release_1/src/meta-openembedded/meta-multimedia \
/home/quadfloor/release_1/src/meta-openembedded/meta-networking \
/home/quadfloor/release_1/src/meta-raspberrypi \
"

Result:

$ ifcofing -a -> Only lo interface, no wlan
$ dmesg | grep brcmfmac shows nothing....
$ dmesg | grep wlan shows nothing....
$ lsmod
Module              Size         Used  by
nfsd                   454656    11

So, basically the same....

Am I doing the backport correctly? Maybe config file problems?

Thanks for supporting...

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#61922): https://lists.yoctoproject.org/g/yocto/message/61922
Mute This Topic: https://lists.yoctoproject.org/mt/103150047/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-