Commit Graph

532 Commits

Author SHA1 Message Date
Alexandre Bard 3349f227a0 hw26: Use machine overrides from HW21
Since HW26 is sharing a lot with HW21, we can avoid redefining
everything twice by using this feature.

BugzID: 63682
2020-09-08 14:35:33 +02:00
Ramon Moesching 64cbcbd2cd am335x-hw26.conf: initial machine configuration
Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-09-08 13:37:49 +02:00
Alexandre Bard 9051b7c4ea gpsd: Disable systemd service only for HW21
gnss-mgr is only present on HW21 and therefor gpsd will not be started
on other HWs if the service is disabled.

Also the bitrate is configured by gnss-mgr so we must keep gpsd with
default bitrate detection mode.
2020-08-28 12:31:11 +02:00
Marc Mattmueller f26ef41692 wlanconf: adapted SRC_URI from gitea to gitlab
BugzID: 65572

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2020-08-28 07:49:53 +02:00
Alexandre Bard 7139363337 gpsd: Use gnss0 instead of tty number 2020-08-26 19:11:48 +02:00
Alexandre Bard c7be0e4d01 gnss-mgr: Add test package
This package contains a script that is able to read the configuration of
the receiver. This option is not part of the main tool.

BugzID: 65664
2020-08-25 19:07:10 +02:00
Alexandre Bard 89428f1358 gnss-mgr: Add service wrapper and new config file 2020-08-24 23:20:32 +02:00
Alexandre Bard 2612c50926 gpsd: Start after gnss-mgr with fix baudrate
gnss-mgr will start gpsd automatically when it is done.

BugzID: 65640
2020-08-24 01:53:26 +02:00
Alexandre Bard cbf6593672 wwan-config: Use systemd logging library
The tool was previously just printing log messages. Using this log
library, the timestamps in journald will be more precise and it will be
possible to filter by log level.

BugzID: 65586
2020-08-20 11:22:09 +02:00
Alexandre Bard 1e80e38269 gpsd: Remove neom8tool and config
This tool has been replaced by gnss-mgr.

BugzID: 65566
2020-08-19 15:27:06 +02:00
Alexandre Bard 72088c2c2c gnss-mgr: Add example config file
The default config file has been emptied to not set dummy values
A example file has been added so the user knows which fields can be set.

BugzID: 65564
2020-08-19 14:40:11 +02:00
Marc Mattmueller 332881d5c8 ubxlib: renaming ubxlib into nmubxlib
Our used ubxlib was forked and diverged too much from the original
one. Now there is a naming conflict when installing our image in
the car drive tests.
Therefore our ubxlib is renamed to nmubxlib

BugzID: 65478

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2020-08-13 08:01:26 +02:00
Andrejs Cainikovs 6aba86efae scfw_tcm firmware: implement system state machine
Reference: 3cd993f466efe7da8558f97f01188b81298273ff
Remote: git.netmodule.intranet:hancock/imx8-scfw.git
2020-08-10 14:10:51 +02:00
Alexandre Bard 7a107f2695 tibluetooth: Restart on failure
It can happen that hciattach fails because of timeout.
Reexecuting the service in this case makes sure that the bluetooth
device is handled by bluetoothctl.

BugzID: 65391
2020-08-06 23:09:57 +02:00
Alexandre Bard 5bf5cd79a6 wwan: Make ModemManager be started by wwan-config
wwan-config is also monitoring ModemManager to detect potential
failures.

BugzID: 65396
2020-08-06 14:48:43 +02:00
Alexandre Bard 07a3d136d7 gpsd: Move python gps library to python3
The library is required for gnss-mgr to check when gpsd is ready.

BugzID: 63624
2020-07-07 20:59:07 +02:00
Ramon Moesching 6f1f6a73ee u-boot-imx8-mek: remove recipe
BSP is not longer available.

BugzID: 63879

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-06-30 16:38:26 +02:00
Alexandre Bard 57486cf692 Remove gnss-config and gnss-save-on-shutdown
They are replaced by gnss-mgr

BugzID: 63624
2020-06-26 16:38:22 +02:00
Alexandre Bard 415028fbdc Add gnssm-mgr
BugzID: 63624
2020-06-26 16:30:19 +02:00
Alexandre Bard 23de70f4da Add ubxlib
This is a python library used to talk to u-blox gnss modems.

BugzID: 63624
2020-06-25 08:31:53 +02:00
Ramon Moesching 7397bb8e90 tibluetooth: hw26 initial bsp
Forked from nmhw21

BugzID: 63686

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-06-24 15:54:47 +02:00
Ramon Moesching b9f6f0e3f7 am335x-hw26.conf: new machine configuration
Require nmhw21 as base machine

BugzID: 63681

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-06-24 15:54:32 +02:00
Alexandre Bard 07f045cac2 wwan-config: Automatically restart service when it fails
It may happen that the service is failing, because the modem is in an
unpredictable state. To avoid this kind of cases and increase the
resilience of the system, systemd will now restart the service if it
fails, leading to a full power cycle of the modem.

BugzID: 63740
2020-06-23 16:59:28 +02:00
Alexandre Bard af1e36b559 gpsd: Fix do_install taking ages
scons was called manually in do_install step with different parameters
than in do_compile step, leading to a recompilation in do_install (but
without -j4), leading it to take very long.

BugzID: 62046
2020-06-23 13:50:27 +02:00
Ramon Moesching 4c87031b2b wireless-regdb: backport version 2020.04.29 into warrior
Get rid of issue: Fix overlapping ranges for Switzerland and
Liechtenstein
Fixed with upstream commit: 5dd4dbf709d38aab21cba0183cf26510054449f0

BugzID: 61219

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-06-05 11:22:03 +02:00
Andrejs Cainikovs 69fd3f7762 scfw_tcm firmware: reset v2x power on soft reboot
Reference: b5943a3639241941cbe86de3a1f453cc5e7e49e6
Remote: git.netmodule.intranet:hancock/imx8-scfw.git
2020-05-16 22:17:58 +02:00
Andrejs Cainikovs 61e1d23292 scfw_tcm firmware: fix ignition switch logic
Reference: 32229e7869e0068a5da511c045f94149e1d330ac
Remote: git.netmodule.intranet:hancock/imx8-scfw.git

BugzID: 62892
2020-05-12 19:29:03 +02:00
Alexandre Bard c1ec2a0207 Revert "gpsd: Clearly separate NetModule from mainline version"
This reverts commit 791d40ccd7.

It is bringing licenses problem, leading to errors. This has to be fixed
first.

BugzID: 62684
2020-04-30 09:52:21 +02:00
Alexandre Bard 791d40ccd7 gpsd: Clearly separate NetModule from mainline version
Making it clear what is related to netmodule version and what can be
appended to any gpsd version.

Additional small changes:
 1. Removed udev rules createing /dev/gps0
Not needed since we have proper udev rules in their own repo now.

 2. Removed patch 0001-gps_shm_close-Free-privdata.patch
It was not used referenced anywhere, probably a remans of an old
version.

 3. Use gnss0 as default TTY device on all targets.
It avoids rebuilding everything when changing MACHINE

 4. Update checksums for mainline gpsd archive.
This recipe alone is still not building but at least the checksums are
now correct.

BugzID: 62684
2020-04-24 17:15:18 +02:00
Andrejs Cainikovs 0ef153c0e7 scfw_tcm firmware: fix V2X power enable
Reference: 29cf4355e1f26a2875e265bef82652cacb71581f
Remote: git.netmodule.intranet:hancock/imx8-scfw.git

BugzID: 61493
2020-04-17 16:43:29 +02:00
Andrejs Cainikovs db2842786b scfw_tcm firmware: ignition switch handling
Reference: 2036dc792cdabaa10bb7923f52912ee477c99ece
Remote: git.netmodule.intranet:hancock/imx8-scfw.git

BugzID: 61994
2020-04-16 12:49:03 +02:00
Ramon Moesching 076bdb314f gpsd append: rdepends on python for ubxtool support
ubxtool is using some old python2 modules.

BugzID: 62531

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-04-15 19:42:38 +02:00
Alexandre Bard e74ba11c22 linux-firmware: Remove License checksum override
These definitions were here since the beginning of the project and
nobody really knows what they are used for.

Now it is the source of a build error because it is overwritting
definitions from upstream yocto.

Removing is fixing error and seems to fix other warnings related to
licenses too.

BugzID: 62473
2020-04-07 13:17:05 +02:00
Tobias Jäggi 30afb7eff8 gpsd: created gps-utils-conf package
neom8tool is part of gps-utils, the gnss0.ubx config file
is now part of the newly created gps-utils-congf package.

BugzID: 62085

Signed-off-by: Tobias Jäggi <tobias.jaeggi@netmodule.com>
2020-04-06 08:25:40 +02:00
Tobias Jäggi de62abf132 gpsd: moving neom8tool from OM to BSP layer
BugzID: 62177

Signed-off-by: Tobias Jäggi <tobias.jaeggi@netmodule.com>
2020-04-06 08:25:40 +02:00
Tobias Jäggi 1945cd4165 gnss-save-on-shutdown: bugfix gpsd no NMEA data
Issue: after a reboot with no power cycle the gnss reveiver
was in the wrong state and did not send any NMEA data for gpsd to use.
Solution: Added a controlled GNSS start on boot to make sure that
the receiver is in the correct state.

BugzID: 62382

Signed-off-by: Tobias Jäggi <tobias.jaeggi@netmodule.com>
2020-04-02 15:35:09 +02:00
Alexandre Bard aaef6af80c am335x: wic: Make bootloader redundant
BugzID: 61929
2020-04-01 17:26:17 +02:00
Alexandre Bard 68727c8b26 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-01 10:10:57 +02:00
Tobias Jäggi 187c376ca6 gnss-config.sh: replace /dev/ttyS3 with /dev/gnss0
Adoption of recent changes in udev rules and gpsd build recipe
to gnss-config script.

BugzID: 62295

Signed-off-by: Tobias Jäggi <tobias.jaeggi@netmodule.com>
2020-03-27 08:49:34 +01:00
Tobias Jäggi 90c8eef146 gnss-config: added return code if gpsd restart fails
Script returns 7 if gpsd restart failed. Used for lava testing.

BugzID: 62045

Signed-off-by: Tobias Jäggi <tobias.jaeggi@netmodule.com>
2020-03-27 08:46:45 +01:00
Tobias Jäggi fa5d8c2231 gpsd: removed pythonpath patch
The pythonpath is now fixed in 3.20/netmodule branch on netmodule
gpsd gitlab repository. therfore the patch is no longer needed in the recipe.

BugzID: 61939

Signed-off-by: Tobias Jäggi <tobias.jaeggi@netmodule.com>
Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2020-03-20 21:04:30 +01:00
Alexandre Bard 07f2dd98a5 kernel: update nmhw23 to nxp kernel 4.19.98
BugzID: 62178

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2020-03-20 21:01:14 +01:00
Alexandre Bard db9a70b163 connectivity: remove ublox-gsm-fw-update recipe
This tool is not used anymore and has been replaced by the more
generic nmhw-fwupdate tool.

BugzID: 62102

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2020-03-20 21:00:29 +01:00
Tobias Jäggi b5c8336b0d recipes-connectivity: added gnss-save-on-shutdown
gnss-save-on-shutdown is a service, makes gnss receiver state persistent
before shut down and check if state got loaded again upon boot

on shutdown:
	contents of receiver ram gets dumped to receiver flash
on boot:
	checks if ram dump got loaded from receiver flash back into receiver ram

BugzID: 60669

Signed-off-by: Tobias Jäggi <tobias.jaeggi@netmodule.com>
2020-03-19 08:57:24 +01:00
Tobias Jäggi ca0c6bd6df gnss-config: fixed typo in /run/gnss/gnss0.config
corrected Satelite to Satellite

BugzID: 62086

Signed-off-by: Tobias Jäggi <tobias.jaeggi@netmodule.com>
2020-03-17 13:56:12 +01:00
Tobias Jäggi 3addd366af gnss-config: fixing typo in gnss0.config
The gnss0.config file still used the old name for gnss-config.service.
Changed it to the current name.

BugzID: 61707

Signed-off-by: Tobias Jäggi <tobias.jaeggi@netmodule.com>
2020-03-12 11:15:33 +01:00
Alexandre Bard 343c9c789e wwan-config: Fix missing config file
When the service was not enabled by default, the config file was
not created either.

BugzID: 61873
2020-03-09 14:00:06 +01:00
Alexandre Bard 7d1cdfd8c9 wwan-config: Add missing python dependencies
BugzID: 61873
2020-03-09 13:58:49 +01:00
Alexandre Bard 5cb9641ba9 gnss-config: Move config to gnss subdirectory
To align with wwan structure and allow later more gnss receivers.
Alignment helps in handling the firmware update in a more generic
way.

BugzID: 61471
2020-03-06 12:03:00 +01:00
Alexandre Bard 4d8cab637b ublox-gsm-fw-update: use new wwan-config service
BugzID: 61873

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2020-03-06 02:22:50 +01:00