On Thu, Jul 23, 2015 at 5:32 PM, Herve Jourdain <herve.jourd...@neuf.fr> wrote:
> This patch adds systemd-networkd for RaspberryPi in the meta-raspberrypi
> layer, in order to have Ethernet and Networking work out of the box.
>
>
>
> This said, I’m not 100% sure if it should be enabled in meta-raspberrypi,
> instead of another custom layer.
>
> But something similar needs to be added somewhere, and with the current
> version of Yocto on RaspberryPi, without this patch, network just doesn’t
> start…
>
>
>
> Signed-off-by: Herve Jourdain <herve.jourd...@neuf.fr>
>
> ---
>
> diff -Naur meta-raspberrypi.orig/recipes-core/systemd/files/eth.network
> meta-raspberrypi/recipes-core/systemd/files/eth.network
>
> --- meta-raspberrypi.orig/recipes-core/systemd/files/eth.network
> 1970-01-01 08:00:00.000000000 +0800
>
> +++ meta-raspberrypi/recipes-core/systemd/files/eth.network    2015-07-22
> 12:01:53.587830690 +0800
>
> @@ -0,0 +1,6 @@
>
> +[Match]
>
> +Name=eth*
>
> +
>
> +[Network]
>
> +DHCP=v4
>
> +
>
> diff -Naur meta-raspberrypi.orig/recipes-core/systemd/systemd_%.bbappend
> meta-raspberrypi/recipes-core/systemd/systemd_%.bbappend
>
> --- meta-raspberrypi.orig/recipes-core/systemd/systemd_%.bbappend
> 1970-01-01 08:00:00.000000000 +0800
>
> +++ meta-raspberrypi/recipes-core/systemd/systemd_%.bbappend
> 2015-07-22 12:05:07.307838546 +0800
>
> @@ -0,0 +1,17 @@
>
> +FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
>
> +
>
> +EXTRA_OECONF += "--disable-ldconfig"
>
> +
>
> +PACKAGECONFIG += "networkd resolved"
>
> +
>
> +CFLAGS_append_arm = " -fno-lto"
>
> +
>
> +SRC_URI += "file://eth.network"
>
> +
>
> +FILES_${PN} += "{sysconfdir}/systemd/network/*"
>
> +
>
> +do_install_append() {
>
> +    install -d ${D}${sysconfdir}/systemd/network/
>
> +    install -m 0644 ${WORKDIR}/*.network ${D}${sysconfdir}/systemd/network/
>
> +}
>
> +
Please don't modify these kind of settings in a BSP. Even worse by
doing it as suggested all machines will get this modification. This
for sake that you have no network. Why not add networkmanager or
whatever and being fine?

Andreas
-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to