diff options
| author | Patrick Vacek <patrickvacek@gmail.com> | 2019-03-07 13:39:57 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-07 13:39:57 +0100 |
| commit | 1ab7fa4922c5a19bd323189d3c0aee42dc0cade0 (patch) | |
| tree | dc39757595ec025e53f8bfe91e71185a1aa9b519 | |
| parent | 7dde0813d67a3225f1dda0afc17f8925c5208f47 (diff) | |
| parent | 0599a6cb5911aa2fb546f39bab11b2b59397428c (diff) | |
| download | meta-updater-1ab7fa4922c5a19bd323189d3c0aee42dc0cade0.tar.gz | |
Merge pull request #504 from advancedtelematic/fix/rm-connman
Remove connman
| -rw-r--r-- | README.adoc | 2 | ||||
| -rw-r--r-- | classes/sota_am335x-evm-wifi.bbclass | 1 | ||||
| -rw-r--r-- | classes/sota_m3ulcb.bbclass | 3 | ||||
| -rw-r--r-- | classes/sota_minnowboard.bbclass | 4 | ||||
| -rw-r--r-- | classes/sota_porter.bbclass | 2 | ||||
| -rw-r--r-- | classes/sota_qemux86-64.bbclass | 2 | ||||
| -rw-r--r-- | classes/sota_raspberrypi.bbclass | 4 | ||||
| -rw-r--r-- | conf/distro/poky-sota-systemd.conf | 3 | ||||
| -rw-r--r-- | conf/distro/poky-sota.conf | 2 | ||||
| -rw-r--r-- | recipes-connectivity/connman/connman_%.bbappend | 1 | ||||
| -rw-r--r-- | recipes-connectivity/networkd-dhcp-conf/files/20-wired-dhcp.network | 5 | ||||
| -rw-r--r-- | recipes-connectivity/networkd-dhcp-conf/networkd-dhcp-conf.bb | 28 | ||||
| -rw-r--r-- | recipes-test/images/secondary-image.bb | 3 |
13 files changed, 51 insertions, 9 deletions
diff --git a/README.adoc b/README.adoc index ed85f89..b23f04b 100644 --- a/README.adoc +++ b/README.adoc | |||
| @@ -74,6 +74,8 @@ You may take a look into https://github.com/advancedtelematic/meta-updater-minno | |||
| 74 | 74 | ||
| 75 | Although we have used U-Boot so far, other boot loaders can be configured work with OSTree as well. | 75 | Although we have used U-Boot so far, other boot loaders can be configured work with OSTree as well. |
| 76 | 76 | ||
| 77 | Your images will also need network connectivity to be able to reach an actual OTA backend. Our 'poky-sota' distribution does not mandate or install a default network manager but our supported platforms use the `virtual/network-configuration` recipe, which can be used as a starting example. | ||
| 78 | |||
| 77 | == SOTA-related variables in local.conf | 79 | == SOTA-related variables in local.conf |
| 78 | 80 | ||
| 79 | * `OSTREE_REPO` - path to your OSTree repository. Defaults to `$\{DEPLOY_DIR_IMAGE}/ostree_repo` | 81 | * `OSTREE_REPO` - path to your OSTree repository. Defaults to `$\{DEPLOY_DIR_IMAGE}/ostree_repo` |
diff --git a/classes/sota_am335x-evm-wifi.bbclass b/classes/sota_am335x-evm-wifi.bbclass index adefb47..1458d44 100644 --- a/classes/sota_am335x-evm-wifi.bbclass +++ b/classes/sota_am335x-evm-wifi.bbclass | |||
| @@ -7,7 +7,6 @@ IMAGE_BOOT_FILES_sota = "bootfiles/*" | |||
| 7 | OSTREE_KERNEL_ARGS ?= "ramdisk_size=16384 root=/dev/ram0 rw rootfstype=ext4 rootwait rootdelay=2 ostree_root=/dev/mmcblk0p2 console=ttyO0,115200n8l" | 7 | OSTREE_KERNEL_ARGS ?= "ramdisk_size=16384 root=/dev/ram0 rw rootfstype=ext4 rootwait rootdelay=2 ostree_root=/dev/mmcblk0p2 console=ttyO0,115200n8l" |
| 8 | 8 | ||
| 9 | IMAGE_INSTALL_append_sota = " uim iw wl18xx-calibrator wlconf wl18xx-fw hostapd wpa-supplicant" | 9 | IMAGE_INSTALL_append_sota = " uim iw wl18xx-calibrator wlconf wl18xx-fw hostapd wpa-supplicant" |
| 10 | IMAGE_INSTALL_remove_sota = " connman connman-client" | ||
| 11 | 10 | ||
| 12 | PREFERRED_VERSION_linux-ti-staging_sota = "4.4.54+gitAUTOINC+ecd4eada6f" | 11 | PREFERRED_VERSION_linux-ti-staging_sota = "4.4.54+gitAUTOINC+ecd4eada6f" |
| 13 | 12 | ||
diff --git a/classes/sota_m3ulcb.bbclass b/classes/sota_m3ulcb.bbclass index 6b63af4..b93cc40 100644 --- a/classes/sota_m3ulcb.bbclass +++ b/classes/sota_m3ulcb.bbclass | |||
| @@ -6,3 +6,6 @@ IMAGE_BOOT_FILES_sota += "m3ulcb-ota-bootfiles/*" | |||
| 6 | 6 | ||
| 7 | OSTREE_BOOTLOADER ?= "u-boot" | 7 | OSTREE_BOOTLOADER ?= "u-boot" |
| 8 | UBOOT_MACHINE_sota = "m3ulcb_defconfig" | 8 | UBOOT_MACHINE_sota = "m3ulcb_defconfig" |
| 9 | |||
| 10 | PREFERRED_RPROVIDER_virtual/network-configuration ?= "connman" | ||
| 11 | IMAGE_INSTALL_append_sota = " virtual/network-configuration " | ||
diff --git a/classes/sota_minnowboard.bbclass b/classes/sota_minnowboard.bbclass index 63510e3..a907217 100644 --- a/classes/sota_minnowboard.bbclass +++ b/classes/sota_minnowboard.bbclass | |||
| @@ -6,5 +6,7 @@ IMAGE_BOOT_FILES_sota = "" | |||
| 6 | 6 | ||
| 7 | IMAGE_FSTYPES_remove_sota = "live hddimg" | 7 | IMAGE_FSTYPES_remove_sota = "live hddimg" |
| 8 | OSTREE_KERNEL_ARGS ?= "ramdisk_size=16384 rw rootfstype=ext4 rootwait rootdelay=2 console=ttyS0,115200 console=tty0" | 8 | OSTREE_KERNEL_ARGS ?= "ramdisk_size=16384 rw rootfstype=ext4 rootwait rootdelay=2 console=ttyS0,115200 console=tty0" |
| 9 | |||
| 10 | IMAGE_INSTALL_append = " minnowboard-efi-startup" | 9 | IMAGE_INSTALL_append = " minnowboard-efi-startup" |
| 10 | |||
| 11 | PREFERRED_RPROVIDER_virtual/network-configuration ?= "connman" | ||
| 12 | IMAGE_INSTALL_append_sota = " virtual/network-configuration " | ||
diff --git a/classes/sota_porter.bbclass b/classes/sota_porter.bbclass index 75ae579..80062e1 100644 --- a/classes/sota_porter.bbclass +++ b/classes/sota_porter.bbclass | |||
| @@ -7,3 +7,5 @@ IMAGE_BOOT_FILES_sota += "porter-bootfiles/*" | |||
| 7 | OSTREE_BOOTLOADER ?= "u-boot" | 7 | OSTREE_BOOTLOADER ?= "u-boot" |
| 8 | UBOOT_MACHINE_sota = "porter_config" | 8 | UBOOT_MACHINE_sota = "porter_config" |
| 9 | 9 | ||
| 10 | PREFERRED_RPROVIDER_virtual/network-configuration ?= "connman" | ||
| 11 | IMAGE_INSTALL_append_sota = " virtual/network-configuration " | ||
diff --git a/classes/sota_qemux86-64.bbclass b/classes/sota_qemux86-64.bbclass index 0850af6..fc4aa7c 100644 --- a/classes/sota_qemux86-64.bbclass +++ b/classes/sota_qemux86-64.bbclass | |||
| @@ -12,3 +12,5 @@ IMAGE_ROOTFS_EXTRA_SPACE = "${@bb.utils.contains('DISTRO_FEATURES', 'sota', '655 | |||
| 12 | 12 | ||
| 13 | # fix for u-boot/swig build issue | 13 | # fix for u-boot/swig build issue |
| 14 | HOSTTOOLS_NONFATAL += "x86_64-linux-gnu-gcc" | 14 | HOSTTOOLS_NONFATAL += "x86_64-linux-gnu-gcc" |
| 15 | |||
| 16 | IMAGE_INSTALL_append_sota = " virtual/network-configuration " | ||
diff --git a/classes/sota_raspberrypi.bbclass b/classes/sota_raspberrypi.bbclass index e1c0054..3add247 100644 --- a/classes/sota_raspberrypi.bbclass +++ b/classes/sota_raspberrypi.bbclass | |||
| @@ -12,6 +12,9 @@ UBOOT_DTBO_LOADADDRESS = "0x06000000" | |||
| 12 | # Deploy config fragment list to OSTree root fs | 12 | # Deploy config fragment list to OSTree root fs |
| 13 | IMAGE_INSTALL_append = " fit-conf" | 13 | IMAGE_INSTALL_append = " fit-conf" |
| 14 | 14 | ||
| 15 | DEV_MATCH_DIRECTIVE_pn-networkd-dhcp-conf = "Driver=smsc95xx lan78xx" | ||
| 16 | IMAGE_INSTALL_append_sota = " virtual/network-configuration " | ||
| 17 | |||
| 15 | PREFERRED_PROVIDER_virtual/bootloader_sota ?= "u-boot" | 18 | PREFERRED_PROVIDER_virtual/bootloader_sota ?= "u-boot" |
| 16 | UBOOT_ENTRYPOINT_sota ?= "0x00008000" | 19 | UBOOT_ENTRYPOINT_sota ?= "0x00008000" |
| 17 | 20 | ||
| @@ -34,4 +37,3 @@ SOTA_DT_OVERLAYS_raspberrypi3 ?= "vc4-kms-v3d.dtbo rpi-ft5406.dtbo" | |||
| 34 | OSTREE_KERNEL_ARGS_sota ?= " 8250.nr_uarts=1 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=614 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 dwc_otg.lpm_enable=0 console=ttyS0,115200 usbhid.mousepoll=0 " | 37 | OSTREE_KERNEL_ARGS_sota ?= " 8250.nr_uarts=1 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=614 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 dwc_otg.lpm_enable=0 console=ttyS0,115200 usbhid.mousepoll=0 " |
| 35 | 38 | ||
| 36 | SOTA_CLIENT_FEATURES_append = " ubootenv" | 39 | SOTA_CLIENT_FEATURES_append = " ubootenv" |
| 37 | |||
diff --git a/conf/distro/poky-sota-systemd.conf b/conf/distro/poky-sota-systemd.conf index 7d008a9..b30b322 100644 --- a/conf/distro/poky-sota-systemd.conf +++ b/conf/distro/poky-sota-systemd.conf | |||
| @@ -9,5 +9,4 @@ DISTRO_CODENAME = "sota" | |||
| 9 | 9 | ||
| 10 | DISTRO_FEATURES_append = " systemd" | 10 | DISTRO_FEATURES_append = " systemd" |
| 11 | VIRTUAL-RUNTIME_init_manager = "systemd" | 11 | VIRTUAL-RUNTIME_init_manager = "systemd" |
| 12 | 12 | PREFERRED_RPROVIDER_virtual/network-configuration ??= "networkd-dhcp-conf" | |
| 13 | IMAGE_INSTALL_append = " connman connman-client" | ||
diff --git a/conf/distro/poky-sota.conf b/conf/distro/poky-sota.conf index 2bbc62b..3fb1d20 100644 --- a/conf/distro/poky-sota.conf +++ b/conf/distro/poky-sota.conf | |||
| @@ -5,5 +5,3 @@ DISTRO = "poky-sota" | |||
| 5 | DISTRO_NAME = "OTA-enabled Linux" | 5 | DISTRO_NAME = "OTA-enabled Linux" |
| 6 | DISTRO_VERSION = "1.0" | 6 | DISTRO_VERSION = "1.0" |
| 7 | DISTRO_CODENAME = "sota" | 7 | DISTRO_CODENAME = "sota" |
| 8 | |||
| 9 | IMAGE_INSTALL_append = " connman connman-client" | ||
diff --git a/recipes-connectivity/connman/connman_%.bbappend b/recipes-connectivity/connman/connman_%.bbappend new file mode 100644 index 0000000..b3633cc --- /dev/null +++ b/recipes-connectivity/connman/connman_%.bbappend | |||
| @@ -0,0 +1 @@ | |||
| RPROVIDES_${PN} += "virtual/network-configuration" | |||
diff --git a/recipes-connectivity/networkd-dhcp-conf/files/20-wired-dhcp.network b/recipes-connectivity/networkd-dhcp-conf/files/20-wired-dhcp.network new file mode 100644 index 0000000..edb3678 --- /dev/null +++ b/recipes-connectivity/networkd-dhcp-conf/files/20-wired-dhcp.network | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | [Match] | ||
| 2 | @MATCH_DIRECTIVE@ | ||
| 3 | |||
| 4 | [Network] | ||
| 5 | DHCP=yes | ||
diff --git a/recipes-connectivity/networkd-dhcp-conf/networkd-dhcp-conf.bb b/recipes-connectivity/networkd-dhcp-conf/networkd-dhcp-conf.bb new file mode 100644 index 0000000..1a515a2 --- /dev/null +++ b/recipes-connectivity/networkd-dhcp-conf/networkd-dhcp-conf.bb | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | SUMMARY = "systemd-networkd config to setup wired interface with dhcp" | ||
| 2 | DESCRIPTION = "Provides automatic dhcp network configuration for wired \ | ||
| 3 | interfaces through systemd-networkd" | ||
| 4 | LICENSE = "MPL-2.0" | ||
| 5 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MPL-2.0;md5=815ca599c9df247a0c7f619bab123dad" | ||
| 6 | |||
| 7 | inherit systemd | ||
| 8 | |||
| 9 | RPROVIDES_${PN} = "virtual/network-configuration" | ||
| 10 | |||
| 11 | SRC_URI_append = " file://20-wired-dhcp.network" | ||
| 12 | PR = "r1" | ||
| 13 | |||
| 14 | RDEPENDS_${PN} = "systemd" | ||
| 15 | |||
| 16 | S = "${WORKDIR}" | ||
| 17 | |||
| 18 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 19 | |||
| 20 | FILES_${PN} = "${systemd_unitdir}/network/*" | ||
| 21 | |||
| 22 | DEV_MATCH_DIRECTIVE ?= "Name=en*" | ||
| 23 | |||
| 24 | do_install() { | ||
| 25 | install -d ${D}/${systemd_unitdir}/network | ||
| 26 | install -m 0644 ${WORKDIR}/20-wired-dhcp.network ${D}/${systemd_unitdir}/network | ||
| 27 | sed -i -e 's|@MATCH_DIRECTIVE@|${DEV_MATCH_DIRECTIVE}|g' ${D}${systemd_unitdir}/network/20-wired-dhcp.network | ||
| 28 | } | ||
diff --git a/recipes-test/images/secondary-image.bb b/recipes-test/images/secondary-image.bb index 1a41169..61df85b 100644 --- a/recipes-test/images/secondary-image.bb +++ b/recipes-test/images/secondary-image.bb | |||
| @@ -15,8 +15,7 @@ IMAGE_INSTALL_remove = " \ | |||
| 15 | aktualizr-ca-implicit-prov-creds \ | 15 | aktualizr-ca-implicit-prov-creds \ |
| 16 | aktualizr-hsm-prov \ | 16 | aktualizr-hsm-prov \ |
| 17 | aktualizr-uboot-env-rollback \ | 17 | aktualizr-uboot-env-rollback \ |
| 18 | connman \ | 18 | virtual/network-configuration \ |
| 19 | connman-client \ | ||
| 20 | " | 19 | " |
| 21 | 20 | ||
| 22 | IMAGE_INSTALL_append = " \ | 21 | IMAGE_INSTALL_append = " \ |
