Commit Graph

47 Commits

Author SHA1 Message Date
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
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
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
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 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
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
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
Lucien Mueller 3356bef529 imu-setup: start service before gpsd.
since gpsd is not setting imu sampling rate anymore it is not required
anymore to start gpsd first and then overwrite imu settings. anyway, starting
imu config before gpsd looks more reliable by design.

BugzID: 57164

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2019-11-01 17:52:13 +01:00
Lucien Mueller fd6835ac82 imu: addded configuration service.
BugzID: 59524

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2019-10-17 13:27:47 +02:00
Alexandre Bard f4ed563e67 hydra: Use AUTOREV
BugzID: 58663
2019-09-13 10:46:21 +02:00
Lucien Mueller 60f8f8824f um-service-config: added adc port.
BugzID: 58299

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2019-09-11 09:28:10 +02:00
Lucien Mueller 7c92dfe982 um-service-config: Added um probing.
BugzID: 58693

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2019-09-11 09:28:10 +02:00
Ramon Moesching 2aaded1232 haveged: workaround for starting daemon on imx8
Some ARM cpus does not report the cache size or say it is -1 in sysfs.

BugzID: 58665

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2019-09-06 15:13:54 +02:00
Lucien Mueller c17db4a11a um-service-config: Added new um-ports. Added differation between old and new um software.
BugzID: 58298

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2019-08-22 11:37:50 +02:00
Ramon Moesching f9e7fa9418 um-service-config: remove availability check
FCT Hotfix: Remove unnecessary ping check and fix zerobyte warning.

ip=dhcp is affecting init system and services are failing even when
target is started with/after network-online.target
Needs further investigations!

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2019-05-23 14:16:48 +02:00
Alexandre Bard 2a4582e4ff mount-overlay: Use a proper exit code in all cases 2019-04-16 14:19:19 +02:00
Alexandre Bard cf8911ee0c tmate: Add wrapper to automatically create ssh keys 2019-04-12 16:48:12 +02:00
Alexandre Bard 602381c71b dev-image: Add tmate
tmate is a terminal sharing tool based on tmux. It will help us
understand and help remotely
2019-04-11 16:49:30 +02:00
Alexandre Bard d9c7885f60 Add mount-overlay service
This service will mount /usr as an overlay partition when this
partition is available.

This script replaces a step what was previously done in ostree
initrd before loading systemd.
2019-04-09 11:01:50 +02:00
Ramon Moesching f5f902fbb6 socket-uart: add runtime configuration through um-service-cfg
All serial based services gets their network configuration through
/etc/user-module/network.conf file
Introduced systemd target user-module

BugzID: 56443

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2019-04-09 11:01:24 +02:00
Ramon Moesching 1ce9e1b862 um-service-cfg: Configuration support for user module services
User module provides few information over i2c bus, e.g. ip, version,..
Access /proc/device-tree/user_module/ for checking availability of user
module and get information and stores settings under /etc/user-module/
Port definitions for each services is provided through this recipe
and not through device tree. Would be nice feature for future improvements.

socket-uart and cannelloni depends on that recipe.

BugzID: 56443

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2019-04-09 11:01:24 +02:00
Ramon Moesching fa73575c29 socket-uart: provide uart, kline and lin serial interfaces from one recipe
Start systemd services for providing serial interfaces of remote machine:
- UART (ttyUM0)
- KLINE (ttyUM1)
- LIN (ttyUM2)

Caution: UserModule connection settings are hardcoded within the services!
BugzID: 56441

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2019-04-09 11:01:24 +02:00
Ramon Moesching 3344a7b4a7 socket-uart: Change to correct systemd type and revise socat pty parameters
Systemd service file Type "forking" leads to service restart which
caused socket disconnection. ExecStart process was never forked.
Now Type=simple fixed this issue. It' anyway recommended for
long running tasks.

Socat:
- Fixed typo rawer to raw
- Set echo off
- Defined bitrate

BugzID: 52063

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2019-04-09 11:01:24 +02:00
Alexandre Bard 39c553af0d hydra: Add hydra library
This library is required to build some NRSW tools
2019-04-09 11:01:24 +02:00
Ramon Moesching 24f65fc2e1 socket-uart: Set runtime dependency only to real package and fix typo
Set runtime dependency only to package with executables
and fix typo.

BugzID: 52063
Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2019-04-09 11:01:24 +02:00
Ramon Moesching 36b8009c17 socket-uart: refelct origin uart as pseudo tty device on local host
Bind pseudo tty and origin uart with socat usage (tcp socket)
Socat is started by systemd service.
BugzID: 52063

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2019-04-09 11:01:24 +02:00
Lucien Mueller ddecaacf69 parted: ignore invalid partitions
Parted now ignores mmcblk1boot* and mmcblk1rpmb while scanning our emmc device.

BugzID: 54565

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2019-01-15 15:21:44 +01:00
Lucien Mueller 6cca5429e5 nmhw-auto-part: Added the parted-3.2 as preferred version.
This freezes the parted version to 3.2 to improve the stability of the script.

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2018-12-04 14:54:14 +01:00
Ramon Moesching 0333974ffd hydra-util recipe: fix missing package
Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2018-06-19 17:55:25 +02:00
Patrick Zysset 29b190252d hydra: fix build issues with hydra recipe in sumo
hydra receipt has been divided into two separated recipes:
- 'hydra' for kernel module
- 'hydra-util' for user utility
hydra is currently fetched from sumo branch on hydra repository
hydra is added as default package to nrhw20-fct image

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2018-06-15 13:42:22 +02:00
Patrick Zysset 668f9f597a fct: fix some minor fct recipe issues
fixed summaries and git links

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2018-06-08 19:58:49 +02:00
Stefan Eichenberger b19416fc08 hydra: use newer version of the module 2018-03-15 13:40:52 +01:00
Stefan Eichenberger 3194903d10 hydra: add hydra to nrhw20 and move it to git 2018-03-14 16:26:32 +01:00
Stefan Eichenberger 38074ef0bb fct: add fct stuff on top of new meta-nmrouter 2017-07-31 15:56:21 +02:00
Stefan Eichenberger 12cd09220e meta-nmrouter: remove recipes not part of bsp
Remove all recipes that are not part of the bsp, move them in a separate
layer.
2017-07-14 10:40:20 +02:00
Stefan Eichenberger 02487d1652 nmrouter-image-node-red: add can support to nodejs
This will allow one to install the canbus node-red plugin.
2017-07-13 15:26:00 +02:00
Stefan Eichenberger a4e3638d4b hydra: add correct tar.gz 2017-03-08 09:16:57 +01:00
Stefan Eichenberger e702057afa hydra: add recipe for hydra (atsha204) access 2017-03-07 16:52:41 +01:00
Stefan Eichenberger de9fca5ef8 cockpit: update dependencies and add new pam file 2016-08-23 18:05:46 +02:00
Stefan Eichenberger a3278fe541 cockpit: add pam configuration 2016-08-08 16:26:35 +02:00
Stefan Eichenberger 75a771a253 cockpit: fix typo 2016-07-29 11:06:40 +02:00
Stefan Eichenberger bcb9403f1b Cockpit: add cockpit and systemd to image 2016-07-24 22:13:46 +02:00