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.
View/Reply Online (#61877): https://lists.yoctoproject.org/g/yocto/message/61877
Mute This Topic: https://lists.yoctoproject.org/mt/103150047/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to