Commit Graph

526 Commits

Author SHA1 Message Date
Alexandre Bard b3c8d64b18 base image: Add spitools based on spi machine feature
BugzID: 73593
2021-07-30 16:16:38 +02:00
Alexandre Bard 2afbf30779 Base image: Add system state framework for all machines
The packagegroup is just a set of kernel modules, they need a devicetree
entry in order to be loaded.

This simplifies the content of the base image.

BugzID: 73593
2021-07-30 16:16:38 +02:00
Alexandre Bard b7ce788eef base image: Add wakeup timer only when required by machine
BugzID: 73593
2021-07-30 16:16:38 +02:00
Alexandre Bard b2b17de9b5 base image: Add fpga-image only for fpga machines
BugzID: 73593
2021-07-30 16:16:38 +02:00
Alexandre Bard 8a8345a66b image-base: Add can tools based on MACHINE_FEATURES
BugzID: 73593
2021-07-30 16:16:38 +02:00
Alexandre Bard 7cc33a1f8a Remove OEM image
The base image is now the OEM and the specific tools have been moved to
VCU image.

BugzID: 73593
2021-07-30 16:16:38 +02:00
Alexandre Bard 40196ead78 images: Remove unused images
BugzID: 73593
2021-07-30 16:16:38 +02:00
Lucien Mueller 7baa673005 Changed distro files to work with the new kernel recipe.
BugzID: 73616

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2021-07-30 13:45:28 +02:00
Marc Mattmueller 461162e44e packagegroup: removed tools from packagegroup and removed duplicated modemmanager from IMAGE
BugzID: 73552
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-07-06 11:27:20 +02:00
Marc Mattmueller 4586eaa5a5 recipes-core: added packagegroup and recipe to build an SDK
the package group holds packages included in netmodule-linux to not
duplicate code.

the sdk recipe is appended with the added package group, cpputest and
libnmapp

BugzID: 73552

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-07-06 11:27:20 +02:00
Marc Mattmueller 2adf913004 recipes: removed unittest class, cleaned recipes to build only for target
As we do not longer want yocto to build unit tests, the unittest class
is completely removed. In addition the inhertiance of unittests is
removed from libnmapp and sys-mon.

The recipes are only built for target and do not differ for native or
native-sdk

BugzID: 73551

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-07-06 11:13:16 +02:00
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