Commit Graph

415 Commits

Author SHA1 Message Date
Marc Mattmueller 6fffac5fd4 journald.conf: moved our journal config with updated header to systemd recipe
moved journald.conf from systemd-conf to systemd and updated the
header for having the information about the drop-in files.

BugzID: 73568
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-07-05 17:45:10 +02:00
Marc Mattmueller bc5dbe7f48 systemd-conf: removed weird part from FILESEXTRAPATHS
BugzID: 73568
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-07-05 17:44:22 +02:00
Lucien Mueller 11b6741ca7 remove ofono deamon.
BugzID: 58816

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2021-06-30 12:19:04 +02:00
Alexandre Bard f55056d470 distro-netmodule: Exclude gpsd udev rules
These rules are "recommended" by the gpsd package, but as the comment
explains, they are conflicting with our design.

BugzID: 73080
2021-06-04 12:15:23 +02:00
Marc Mattmueller 22989ffdcf base image: added v2x part as we can skip the fw load
BugzID: 72787
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-06-03 15:48:30 +02:00
Marc Mattmueller c544a82ce1 base image: replaced the v2x feature with usb-hub-reset
The v2x firmware load script contained also the usb hub reset
which affects the GNSS modem. This means that the GNSS modem
worked only when the v2x recipe was enabled. But without firmware
the v2x-service fails at start-up which affects all other images
except vcu.

Therefore the usb-hub-reset is added to the base image and the
v2x part is moved back to vcu image.

BugzID: 72787

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-05-19 11:00:19 +02:00
Marc Mattmueller 1f7566b85a base image: added v2x (from meta-netmodule-om vcu image)
BugzID: 72787

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-05-18 11:38:56 +02:00
Lucien Mueller 719b0a2fde hw23: add system-state-framework
BugzID: 70552

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2021-04-27 18:56:42 +02:00
Alexandre Bard bbfaa89537 distro-netmodule: Always build with ostree initramfs
With our current design, the default kernel (virtual/kernel) is
different than the initramfs kernels. But when building an initramfs
image, it was still rebuild because the INITRAMFS_IMAGE variable was not
defined.

In order to avoid this rebuild we need to always enforce the use of the
ostree initramfs image for the default kernel. This is not so clean
since we add a permanent dependency to the ostree layer, but having a
cleaner solution would require to completely rethink the way the kernel
is handled in our yocto environment.

BugzID: 71360
2021-04-22 09:59:24 +02:00
Stefan Eichenberger bdca9a94c6 netmodule-linux: force -O ^64bit when creating ext4 filesystem
U-Boot has problems when using the 64bit option on ext4 filesystems and
can not access files anymore. Therefore, create the ext4 filesystem
without 64 bit support.

This issue is not always reproducible, sometimes it works and sometimes
not. Probably it depends if the 64bit values corresponds to the 32 bit
value or not.

Signed-off-by: Stefan Eichenberger <eichest@gmail.com>
2021-04-14 15:03:07 +02:00
Marc Mattmueller 1c4f322e54 sys-mon: adpated license checksum
BugzID: 63280

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-03-29 08:56:24 +02:00
Alexandre Bard cc7a795859 chrony: Add PPS support for relevant hardwares (#94)
chrony: Add PPS support for relevant hardwares

BugzID: 66249

Co-authored-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
Reviewed-on: https://git.netmodule.intranet/yoctoproject/meta-netmodule-distro/pulls/94
Co-Authored-By: Alexandre Bard <alexandre.bard@netmodule.com>
Co-Committed-By: Alexandre Bard <alexandre.bard@netmodule.com>
2021-03-29 08:43:47 +02:00
Marc Mattmueller 50d41a8a7e libnmapp: adpated license checksum
BugzID: 63280

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-03-25 12:03:04 +01:00
Marc Mattmueller ba2cc701e0 vnstat: made default database storage volatile
The service is storing the data in an interval to the emmc. This
forces to damage our emmc in the test devices earlier as wihtout.
Therefore the default location is on a ramdisk. For our test
purpose this is sufficient. And if it need to be persisted a RTD
section is created about how to do it.

BugzID: 63636

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-03-24 11:36:03 +01:00
Marc Mattmueller 9d7b0f0ee5 image-dev: added vnstat to the monitoring tools of the dev image
BugzID: 63636

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-03-23 10:23:23 +01:00
Marc Mattmueller ea74ebb7d1 recipes-support: added vnstat
BugzID: 63636

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-03-23 09:13:16 +01:00
Alexandre Bard 67667b0f44 unittests: Fix CPPUTEST path not set when building
CCPUTEST_HOME was only set when trying to run the unit tests.
But it was already required when building first the tool.

BugzID: 69904
2021-03-12 12:25:21 +01:00
Marc Mattmueller 8d8aec6873 recipe-tools: recipes for target and native of libnmapp and sys-mon differ by variables
The target and host make files of libnmapp and sys-mon are merged for
using only one make file. The difference is made outside by setting the
variables accordingly. The same thought should have been used in the
yocto recipes. Thus the recipes are adapted so that minimal differences
between native and target are available. This makes the recipe easier.

BugzID: 69904

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-03-10 19:07:14 +01:00
Marc Mattmueller 4562017be0 recipe-tools: changed the recipes for libnmapp and sys-mon
After a short analysis I have noticed that the library and the app
are not build as intended. To build the app and the lib also from
command line using an SDK, the make files needed to be updated.

This commit then adapted the recipes accordingly to build the
correct versions

BugzID: 69904

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-03-10 11:44:17 +01:00
Alexandre Bard 0d0e949a2a image-minimal: Remove wwan-config
Since the modem is now started by the kernel, we don't need wwan-config
to do the powering in minimal image.

BugzID: 70629
2021-03-04 11:42:35 +01:00
Alexandre Bard fd95d3a7ec minimal image: Remove ModemManager
MM is an advanced WWAN management tool and is not required in the
minimal image.

BugzID: 70628
2021-03-04 11:38:17 +01:00
Alexandre Bard 446087283a tmate: Upgrade to release 2.4.0
There is no need for ssh keys in this new release which is pretty
convenient.
2021-02-15 11:45:54 +01:00
Alexandre Bard 364072f4bf java-ejdk: "Fix Multiple shlib providers"
This error happened because the java recipe is providing its own
versions of several library. Since they are used only for java itself,
we must exclude them from the libraries parsed by yocto to automatically
fullfil runtime dependencies.

BugzID: 70155
2021-02-09 13:38:58 +01:00
Lucien Mueller d8cdad2c41 netmodule-linux-image: Add system-state-framework to all hw21 images
BugzID: 70151

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2021-02-08 14:37:51 +01:00
Lucien Mueller 9984c959be hw23: add chrony to support timesync via gnss.
BugzID: 69321

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2021-02-05 13:29:40 +01:00
Alexandre Bard b11110c51a libnmapp: Add dependency to systemd
BugzID: 69541
2021-01-22 19:09:39 +01:00
Marc Mattmueller 023dc56ab0 sys-mon: added loglevel configs for new loggers
BugzID: 69541

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-01-21 17:11:05 +01:00
Alexandre Bard 83b121a004 systemd-conf: Remove deprecated files
- system.conf: Contains no config at all, the same file up to date is
already installed by systemd recipe
- SRC_URI : these files are already in the SRC_URI, only the
FILESEXTRAPATHS_prepend is required to overwrite them.
- do_install: The files are already installed by main recipe at a
different location :
  ${D}${systemd_unitdir}/journald.conf.d/00-systemd-conf.conf
  ${D}${systemd_unitdir}/system.conf.d/00-systemd-conf.conf
  systemd_unitdir being /usr/lib/systemd.

Part of yocto update to dunfell

BugzID: 69636
2021-01-17 22:39:13 +01:00
Alexandre Bard 21caf06eb2 systemd-conf: Remove unwanted default network config
This configs are enabling DHCP by default on eth0.
We handle all network configurations directly in NetworkManager.

BugzID: 69636
2021-01-17 19:21:26 +01:00
Alexandre Bard 7305bc21f6 haveged: Fix patch file to make it compatible with recent versions
Part of update to dunfell release

BugzID: 69636
2021-01-15 17:40:42 +01:00
Alexandre Bard 7f25bb678c Make layer compatible with dunfell release
BugzID: 69636
2021-01-15 17:40:42 +01:00
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