Commit Graph

533 Commits

Author SHA1 Message Date
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
Alexandre Bard 0ec49d8c46 images: wwan-config replaces ublox gsm tool
wwan-config is a rework of ublox-gsm-config.
This rework is more generic and easier to extend.

BugzID: 61873

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2020-03-06 02:26:51 +01:00
Alexandre Bard 820319bdc4 python3: add setuptools git version recipe
This tool is required by python recipes to set the version using
data from git repo.

BugzID: 61873

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2020-03-06 02:25:39 +01:00
Tobias Jäggi 71bb8cd9f3 vcu-img: ublox-gnss-config is now gnss-config
BugzID: 61707

Signed-off-by: Tobias Jäggi <tobias.jaeggi@netmodule.com>
2020-03-04 12:26:38 +01:00
Ramon Moesching 57d2bf4356 netmodule-linux-image: install chrony on all images
chrony - daemon
chronyc - user space tool to access daemon

BugzID: 52095

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-03-03 12:52:57 +01:00
Ramon Moesching 9cb57ba3eb chrony bbappend: install config and patch for enable gpsd support
Example configuration for getting time from gnss signal provided
by gpsd (SHM 0) and NTP.

Chrony confilcts with others NTP daemons.

BugzID: 52095

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-03-03 12:52:45 +01:00
Tobias Jäggi 0bfe64981a nm-linux-image.bb: removed config-gnss-receiver and config-gnss-tty, instead added ublox-gnss-config
Added reworked baud rate config script to netmodule-linux-image.

BugzID: 60698

Signed-off-by: Tobias Jäggi <tobias.jaeggi@netmodule.com>
2020-02-25 09:40:04 +01:00
Lucien Mueller 1cbc8161a2 ostree: use stronger assignment to overwrite the default value.
BugzID: none

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2020-02-05 10:38:39 +01:00
Tobias Jäggi af323a7ed2 netmodule-linux-image: install config-gnss-receiver and config-gnss-tty
The two recepies are used to configure the baud rates of ttyS3 and the
GNSS receiver.

BugzID: 60698

Signed-off-by: Tobias Jäggi <tobias.jaeggi@netmodule.com>
Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-01-23 17:26:39 +01:00
Ramon Moesching 71ff06d793 netmodule-linux-image: install gps-utils
BugzID: 61078

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-01-20 14:10:29 +01:00
Alexandre Bard 1a301cc18c busybox: Enable cryptpw
This tool is used to generate the bootloader password.

BugzID: 59950
2020-01-13 10:50:42 +01:00
Alexandre Bard 96182d4aab distro: netmodule-linux: append modemmanager in packageconfig
Set PACKAGECONFIG in distro instead of bbappend. It is better to configure it in distro file so we can have a "per distro"
config whereas when setting it in bbappend it will affect all builds as long as the layer is included by BBLAYERS.

BugzID: 60752

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2019-12-23 17:00:19 +01:00
Alexandre Bard 58b019f67d firmware.inc: Default to no firmware and fix HW18 firmwares
Since these firmwares are added to the ostree initramfs image, it
does not make sense to had the full linux-firmware package
(> 400MB).

BugzID: 60719
2019-12-20 17:39:35 +01:00
Ramon Moesching 43e83f3769 image & initramfs: common firmware definition
use same firmware package source for normal images and
initramfs.
inherit minimal-package in initramfs for get rid of post
install process for removing not used firmware binaries.

BugzID: 60410

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2019-12-03 10:51:44 +01:00
Ramon Moesching 6f745c3ae9 minimal-package class: TI WL18xx and WL12XX firmware packages
inherit class into image recipe for installing minimal packages
containing only necessary firmware binaries for bring up
TI wireless chip

BugzID: 60410

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2019-12-03 10:37:51 +01:00
Lucien Mueller 42f66b249a hydra: remove recipe.
BugzID: 59542

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2019-11-29 22:34:52 +01:00
Ramon Moesching 99eca91a36 netmodule-linux-image: install udev-rules-nmhw for all images
Install package machine independent

BugzID: 59853

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2019-11-25 11:05:43 +01:00
Alexandre Bard be11245a08 dev-image: Add ublox GSM firmware update tool
BugzID: 60230
2019-11-21 11:45:53 +01:00
Lucien Mueller 8c5bbdc792 um-service-config: increased connection retry count to 90 (1min 30s).
BugzID: 59487

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2019-11-19 15:33:32 +01:00
Ramon Moesching ead591e8c4 netmodule-linux-ostree: make ROOTFS_BOOTSTRAP_INSTALL machine specific
wlconf-bin was requested for e.g. nmhw23 build, but nmhw23 has
no wl18xx module on it

BugzID: 60142

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2019-11-18 16:22:54 +01:00
Ramon Moesching 556b0c9255 layer.conf: mask off initramfs-ostree-image append for non-ostree images
initramfs append file is blocking all projects and images setup without
meta-updater:initramfs-ostree-image recipe

use append file for install packages or pre/post images process.
prefered way to install initramfs packages is via
netmodule-linux-ostree.conf:INITRAMFS_PACKAGES

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2019-11-18 13:16:29 +01:00
Ramon Moesching e244ba6d10 wireless-regdb: fix: install firmware files into initrd
crda is not longer required since kernel >=4.15 and kernel
is able to load wireless regulatory database as firmware file

Install wifi and regulatory firmware files in initrd and default rootfs

BugzID: 60107

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2019-11-15 09:23:39 +01:00
Lucien Mueller 229fdd629e nrhw20: base-image: add can-utils.
BugzID: 59850

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2019-11-07 14:47:34 +01:00