Commit Graph

384 Commits

Author SHA1 Message Date
Lucien Mueller 710b75422e image-dev: add system state framework.
BugzID: 69520

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2021-01-15 15:22:23 +01:00
Marc Mattmueller bf23ac5f93 features/libnmapp: replaced fixed srcrev to autorev
BugzID: 63549

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-01-15 11:31:42 +01:00
Marc Mattmueller 41cd2f56fb libnmapp: changed default branch to develop
BugzID: 63549

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-01-15 09:52:47 +01:00
Marc Mattmueller f0e46133ef features: changed branch of features to develop and updatd hash
BugzID: 63549

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-01-15 09:15:05 +01:00
Marc Mattmueller a124382664 sys-mon config: increased log interval to 10min
BugzID: 63549

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-01-15 08:54:07 +01:00
Alexandre Bard 53814a0ea2 Haveged: Make bbappend compatible with all haveged versions
The patch is only related to service file and will likely be required
with any version. Making the bbappend more generic will simplify further
yocto upgrades.

BugzID: 69636
2021-01-04 16:33:10 +01:00
Alexandre Bard e745db9f99 battery-test: Fix python dependency
With dunfell release, python tools must explicitly depend on
python3-core.

BugzID: 69636
2021-01-04 16:28:01 +01:00
Alexandre Bard 4a6d7e672e nm-distro: Remove wrong inherit statement
In distro conf, only INHERIT can be used, "inherit" being for recipes.

externalgitsrc is already properly INHERITED in the same file

BugzID: 69636
2021-01-04 16:26:28 +01:00
Alexandre Bard 18b81bac48 Update conf-notes
To match recent reworks

BugzID: 69469
2020-12-21 09:37:15 +01:00
Lucien Mueller a399a3e58d um-config-service: improve boottime.
BugzID: 67745

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2020-12-17 14:33:47 +01:00
Alexandre Bard 79c0e2afd5 nm-image: Include mac address service only when requested
Each distro can choose to have custom mac-address by setting the flag
custom-mac-addresses in DISTRO_FEATURES.

BugzID: 65928
2020-12-17 11:48:55 +01:00
Marc Mattmueller 2d28aaeb1e image-dev: moved monitoring tools from image to dev image
system monitor and the netmodule scripts for creating a support
package were moved to dev image

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2020-12-17 11:23:47 +01:00
Alexandre Bard 0c2414ffe9 image-minimal: Remove kernel modules
The modules are not required in minimal image and are leading to the
ignition switch to be enabled which is not an expected behavior.

BugzID: 69394
2020-12-08 17:12:52 +01:00
Alexandre Bard 56de22f32f systemd: Remove os-release from recommendations
As the comment says, there is no functional goal for this. But without
this, a rebuild of os-release (when distro-version changes) is
triggering a rebuild of systemd which is triggering a rebuild of ostree
initramfs image and then kernel fitImage.

Specially the rebuild of the ostree initramfs image seems to to lead to
licenses issues.

BugzID: 69247
2020-12-01 15:58:51 +01:00
Alexandre Bard 214675e10a base-files: don't rely on DISTRO_VERSION
The distro string can be retrieved at runtime from /lib/os-release
with this \S escaping. It avoids rebuilding base-file everytime the
distro version changes. Which helps to reducing the overall build time,
since base-file is an important dependency.

BugzID: 69247
2020-12-01 13:24:11 +01:00
Alexandre Bard d21b1535ca nm-distro: Update compatible build machines
For the moment only debian 10 is validated to work properly with our
yocto environment.
debian-9 has been showing issues. Others have not been tested.
2020-12-01 12:56:51 +01:00
Alexandre Bard a881f4da8b image-minimal: Remove mac80211 backports
These backports are not compatible with another kernel than
virtual/kernel. Until this is fixed, we rely on the default kernel
drivers.

BugzID: 69147
2020-11-27 22:31:48 +01:00
Alexandre Bard 4d3d93e96d image-minimal: Fix missing kernel modules
With this new kernel variant, the kernel modules must be the one built
against the kernel we are want to use. The $KERNEL variable is matching
the KERNEL_PACKAGE_NAME of the variable in the kernel recipe.

BugzID: 69147
2020-11-27 19:56:48 +01:00
Alexandre Bard 671d3d95f9 Use separate kernel recipe for minimal image
In order to keep only one official kernel variant, we splitted it from
kernel used for initramfs images.

BugzID: 69147
2020-11-27 14:41:11 +01:00
Lucien Mueller ab5401029a hw23: added gnss-mgr
Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2020-11-25 17:38:46 +01:00
Alexandre Bard 60d46e6af5 netmodule-image: Exclude bootloader-config for IMX
bootloader-config does not support the imx bootloader setup. It can only
identify uboot and is therefor failing on IMX targets.

BugzID: 69098
2020-11-24 13:56:07 +01:00
Alexandre Bard 20978c6870 distro-minimal: Make build reproducible
In order to be consistent with the OSTree images and to reuse all built
components, we must also make the minimal images (ie the ramdisk images)
reproducible.

If we don't do it, most of the components are rebuilt with a different
environment (mainly date related) and can therefor not be shared.

BugzID: 69091
2020-11-23 16:47:39 +01:00
Lucien Mueller 522ca79d39 pycurl: added missing export.
BugzID: 66530

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2020-11-20 15:27:21 +01:00
Lucien Mueller 5edad2a05a Use openssl for curl and pycurl on every image.
BugzID: 66530

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2020-11-20 12:14:59 +01:00
Lucien Mueller 98fd9c7e36 Revert "pycurl: set ssl library to libgnutls in recipe."
This reverts commit 073a205fd5.
2020-11-20 12:14:59 +01:00
Ramon Moesching afe8d6cec1 netmodule-linux-image-minimal: add mac80211 module for fct and lava image
Fix the missing wlan0 interface on lava and fct image.

BugzID: 68024

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-11-18 19:40:38 +01:00
Ramon Moesching c17feb0996 netmodule-linux-image: install mac80211 modules only for netbird
BugzID: 68021

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-11-18 15:35:27 +01:00
Marc Mattmueller dc6c52ea99 release 1.1.2: replaces external git srcrev in BUILDNAME with DISTRO_VERSION
files affected:
 - conf/distro/netmodule-linux-ostree.conf
 - recipes-core/images/netmodule-linux-image-minimal.bb
 - recipes-core/images/netmodule-linux-image.bb

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2020-11-13 14:06:55 +01:00
Marc Mattmüller 2bfd38cabc netmodule-linux.conf: set weak assignment for DISTRO_VERSION 2020-11-13 11:15:19 +01:00
Alexandre Bard 7a8f7a226e distro minimal: Exclude pycs files
In order to reduce the size of the minimal image, we want to exclude
python cached files.

NB: This only applies for files part of python3 package. Any python
libary can install its own pyc files.

BugzID: 67738
2020-11-11 16:14:02 +01:00
Alexandre Bard 1f9004d80a python3: Let distro configure if pycs are included
We want to remove python cached files in ramdisk images to reduce their
size, but keep them in mmc images to have better performances.

We therefor need to make this configurable from distro config.

BugzID: 67738
2020-11-11 16:14:02 +01:00
Alexandre Bard b10973ed06 distro ostree: Use sota config from meta-updater
meta-updater is containing a config include file which is already
defining everything that is required to setup a proper OSTree distro.

It is especially defining some timestamp-related config which we were
missing and that are required for a proper functionning of the python
cached files in the OSTree read-only root partition.

Without this config the pyc files are not used by python.

See :
   https://github.com/advancedtelematic/meta-updater/issues/461
   https://github.com/advancedtelematic/meta-updater/pull/467/files

BugzID: 67738
2020-11-11 16:14:02 +01:00
Ramon Moesching 7fb99b66f3 linux-netmodule-image.bb: install wifi kernel backports
BugzID: 67838

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-11-11 12:59:49 +01:00
Ramon Moesching c9cea52844 initramfs-ostree-image.bbappend: remove unused minimal-package class
minimal-package class was required for installing
minimal wl18xx firmware files.
Since -wlan layer this is not longer required.

BugzID: 67838

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-11-11 12:59:49 +01:00
Ramon Moesching 55ff73f726 firmware.inc: replace linux-firmware-wlxxx with firmware-ti-wl18xx
Use firmware packages from -wlan layer

BugzID: 67838

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-11-11 12:59:49 +01:00
Ramon Moesching 4347fa52aa netmodule-linux-ostree.conf: remove reduanted hw21 wireless packages
drivers and firmware packages installation are handled
in initramfs-ostree-image.bbappend

BugzID: 67838

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-11-11 12:59:49 +01:00
Lucien Mueller 073a205fd5 pycurl: set ssl library to libgnutls in recipe.
BugzID: 66530

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2020-11-09 13:55:39 +01:00
Alexandre Bard 62594deafa distro: Use the same DISTRO name for all variants
Changing this variable leads to uneeded rebuilding of some components
like os-release, base-files or kernel-fitimage.

BugzID: 66039
2020-09-17 15:50:36 +02:00
Alexandre Bard 4af1dd3f00 python3: Remove turtle demo example
Change initialy present in meta-netmodule-fct. The goal was to reduce
size of fct image.

Since having bbappends in meta-netmodule-fct leads to issues and
since this change will have no bad impact on other images, it moved
here.

BugzID: 65998
2020-09-14 14:29:10 +02:00
Alexandre Bard 30423f13b5 base-files: Do not rebuild everytime
These lines were forcing a rebuild of this recipe at every build,
leading to longer overall build time.
They are not requried anymore.

BugzID: 65831
2020-09-10 14:57:48 +02:00
Lucien Mueller 5d4c0fa6b1 systemd-conf: changed journald back to volatile.
BugzID: 65637

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2020-08-27 12:07:35 +02:00
Marc Mattmueller 5ed397cc0a sys-mon: disable sys-mon systemd service by default
BugzID: 65724

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2020-08-27 09:42:33 +02:00
Alexandre Bard df9998233d dev-image: Add gnss-mgr-test package
This package contains additional tools to test the proper behavior of
gnss-mgr.

BugzID: 65664
2020-08-25 19:09:08 +02:00
Alexandre Bard 9304a601da distro: ostree: Remove aktualizr
This tool is automatically added by the sota class but we don't need it
and it is even flooding the logs by trying to connect to a server every
10 seconds.

BugzID: 65532
2020-08-18 14:52:35 +02:00
Alexandre Bard 1dfca402a9 rngd: Use upstream service file
Our custom service file is outdated and show sometimes errors during
startup.

It was created at time where the upstream recipe did not support
systemd.

BugzID: 65497
2020-08-13 16:51:25 +02:00
Alexandre Bard 6197a678b9 chrony: Synchronize rtc with system time
Without this line the rtc was never set back when the time had been
found by ntp or gnss.

BugzID: 65489
2020-08-13 11:45:32 +02:00
Tobias Jäggi 949e4975e6 nm-linux-image: add mmc-utils package
mmc is a tool that can be used to monitor the health of eMMC devices

BugzID: 63371

Signed-off-by: Tobias Jäggi <tobias.jaeggi@netmodule.com>
2020-07-17 10:22:51 +02:00
Ramon Moesching d2a11ecbc9 systemd-conf: journald.conf: default config with log rotation parameters
Use smaller journal file size.
Reapply persistent logging.

Install default journald.conf file for all machine targets - as long
no machine specific file is available.

BugzID: 63714

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-07-13 11:46:52 +02:00
Ramon Moesching bccaff4f2e Revert: "systemd-conf: changed journald storage to persistent"
Apply parameters during recipe install task instead of patching.

BugzID: 63714

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-07-13 11:01:21 +02:00
Ramon Moesching 2208e8fa86 am335x-nmhw21 systemd.conf: Remove machine specific config file
Use default machine independent configuration file.
Reverts also DefaultTimeoutStopSec=10s since this killed
GNSS save on shutdown service.

BugzID: 63924

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-07-09 13:13:49 +02:00