Commit Graph

373 Commits

Author SHA1 Message Date
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
Alexandre Bard d107c05a1b Replace gnss-config and gnss-sos by gnss-mgr
BugzID: 63624
2020-06-29 08:48:11 +02:00
Alexandre Bard 12e572b102 nmhw-fwupdate: Fetch sources from gitlab 2020-06-29 08:48:11 +02:00
Ramon Moesching 90c80d91a2 um services: legacy: PID file into /run
/var/run is legacy directory
move into /run

BugzID: 62600

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-06-18 08:01:22 +02:00
Ramon Moesching c1eedacba6 socket-*.service: Add condition for required configuration file
Do not start socket services if no configuration file is available.

BugzID: 63562

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-06-18 08:01:22 +02:00
Ramon Moesching 0f4025d035 um-service-config.sh: device availability by configuration file
If no device is detected or available do no exit script with error which
leads to failing systemd service.

BugzID: 63562

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-06-18 08:01:12 +02:00
Ramon Moesching 4a2e98bee8 um-service-config.sh: Reduce availibility check time
Do status check before ping and exit immediately.
Add timeout to ping of 1s (-W option)

Reduce retry from max 3min down to 1min

BugzID: 63535

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-06-18 07:58:10 +02:00
Marc Mattmueller 1d71261e61 sys-mon: be considerate with temperature reading (due to lava fails)
updated git hash of sys-mon retrying 3 times reading the
temperature before throwing and exception

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2020-05-27 10:07:30 +02:00
Marc Mattmueller fca38f05a2 integrate workaround concerning gcc 6 issue with const initialization 2020-05-12 10:35:31 +02:00
Marc Mattmueller afd97803d0 added system monitor and scripts to netmodule image, setup SDK part
BugsID: 62219
2020-05-11 14:15:26 +02:00
Marc Mattmueller 2a17c293ca added scripts containing helpers creating a support package
these scripts help to extract the systemd journal, convert it into
syslog text format and to pack necessary information.

BugzID: 62219
2020-05-11 14:15:26 +02:00
Marc Mattmueller db19651c24 added system monitoring application including systemd service to tools recipes
the system monitoring logs information about the disk usage, available RAM,
temperature and cpu load.

BugzID: 62219
2020-05-11 14:15:26 +02:00