Commit Graph

505 Commits

Author SHA1 Message Date
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
Marc Mattmueller 4f33c33d17 added libnmapp to the tools recipes and to the SDK
the nmapp library is intended to share code over several
teams. Additionally it shall have modules that only has to be
written once.
The library is unit tested and uses CppUTest as framework

BugzID: 62219
2020-05-11 14:15:26 +02:00
Marc Mattmueller 4e36070425 added cpputest and a unittestclass to the testing recipes and to the SDK
cpputest is a unit test framework for C/C++ and builds the base
of test driven devlopment. Hence this framework is needed for app
development on the host and thus added to the SDK.

BugzID: 62219
2020-05-11 14:15:26 +02:00
Alexandre Bard e04ee02273 nmhw-fwupdate: Add unbuffer tool
This tool is required to show the progress of update in real time.
Without it the output of update script is buffered and shown only at the
end of the update, letting the user not aware of what is going on.

BugzID: 62703
2020-05-05 10:13:24 +02:00
Ramon Moesching 8e474a0504 imu-setup.sh: adding double quote
BugzID: 62694

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-04-30 11:26:07 +02:00
Alexandre Bard c628a3f981 imu-setup: Check status before configuring
Configuration is not possible while buffer mode is ongoing. The previous
code was making sure that it was disabled but was always enabling it
once done, even if it was not enabled before. But if only the sampling
frequency has been set, it could happen that enabling was not possible.
For example, if no channel was selected. Leading to error messages in
the logs.

BugzID: 62694
2020-04-29 17:01:05 +02:00
Alexandre Bard 99f672de40 imu-setup: imu-poll: Fix symlink not deleted
When the symlink is broken, .exists returns false.
To check if the symlink itself exists, it is required to use .lexists.

BugzID: 61346
2020-04-21 09:47:18 +02:00
Alexandre Bard df17eb40f6 nmhw23: Add imu-setup on all images
BugzID: 61346
2020-04-20 16:00:31 +02:00
Alexandre Bard b8370406c5 imu-setup: Add support for polling mode
Required for HW23.
The code is not really clean but helps make the difference between HW21
and HW23. Polling creates a device /dev/imu0 giving the poll frequency.

BugzID: 61346
2020-04-16 22:36:08 +02:00
Ramon Moesching 6e851a9fe7 netmodule-linux-image-oem: derivate of release image without ext module
Inital oem image without extenstion module user space applications.

BugzID: 62533

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-04-15 15:15:34 +02:00
Alexandre Bard d5cbb2d6b9 nm-image: Add bootloader-config tool
This tool is parsing first sector of MMC to find bootloaders, and then
reports the data of these bootloaders to /run/bootloader.

It also creates the file /dev/bootloaderX for each bootloader,
allowing to do a safe and redundant update.

BugzID: 62317
2020-04-02 09:32:32 +02:00
Alexandre Bard dbf7475005 nmhw-fwupdate: Make sure coreutils tools are in the image
Some update script require these tools in their real version and not the
busybox version. It does not make sense to staticaly link all of them.

BugzID: 61929
2020-04-01 17:22:19 +02:00
Ramon Moesching 41f2006846 netmodule-linux-ostree distro: set empty SOTA client and provision
Get rid of unused SOTA client and provision feature.

BugzID: 62302

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-03-27 14:52:57 +01:00
Alexandre Bard 2aae50e6d5 nmhw-fwupdate: fix download from https server
busybox wget does not completely support TLS/SSL and it was not
possible to download the firmwares from NetModule public server.

bash was always required, but the shebang was not set properly
in the tool repo.

BugzID: 62136

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2020-03-20 11:24:08 +01:00
Alexandre Bard 2118573e54 dev-image: Remove legacy fw update tools
They are replaced by nmhw-fwupdate

BugzID: 62102
2020-03-19 12:53:52 +01:00
Tobias Jäggi 6268ea6a09 recipes-core: added gnss-save-on-shutdown to netmodule-linux-image
BugzID: 60669

Signed-off-by: Tobias Jäggi <tobias.jaeggi@netmodule.com>
2020-03-19 08:57:47 +01:00
Tobias Jäggi 0b1c31985b devtools: added pycurl recipe, image-dev: added pycurl
recipes-devtools/python/: added pycurl recipe
recipes-core/images/netmodule-linux-image-dev.bb: added pycurl to recipe

BugzID: 61741

Signed-off-by: Tobias Jäggi <tobias.jaeggi@netmodule.com>
2020-03-13 14:37:46 +01:00
Tobias Jäggi dab85f7b40 systemd-conf: changed journald storage to persistent
With persistent storage systemd journal logs don't get lost upon reboot.
Limited use of persistent memory with SystemMaxUse to 256M.

BugzID: 61999

Signed-off-by: Tobias Jäggi <tobias.jaeggi@netmodule.com>
2020-03-12 16:07:14 +01:00
Alexandre Bard 65ea5940ac nmhw-fwupdate: add netmodule firmware updater
nmhw-fwupdate provides a generic way to install or update any given
firmware packages (e.g. gnss, lte modem, bootloaders, ...).

this package is added to all image types in the netmodule linux
reference distro.

BugzID: 61471

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2020-03-07 00:48:19 +01:00