Commit Graph

621 Commits

Author SHA1 Message Date
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
Alexandre Bard 26cc313322 wwan-config: replace ublox-gsm-config
wwan-config is a rework of ublox-gsm-config.
It is more generic and allows better extension and customization.

BugzID: 61873

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2020-03-06 02:22:50 +01:00
Alexandre Bard b677ba83d7 udev-rules: remove generic rules
we are only using hardware specific rules from now. Generic rules don't make sense.
Some rules can be common to different hardwares but none can
be completely generic.

BugzID: 61729

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2020-03-06 02:13:47 +01:00
Alexandre Bard 43e07b2283 ublox-gnss-fw-update: add ubxtool only pkgconfig
Add packageconfig to keep only the ublox tool.
Missing files if this config is applied are:
 - firmware itself (UBX_M8_301_ADR_421_NEO_M8L.bin)
 - map of the flash (ubx-fw-flash.xml)
 - wrapper to flash the modem easily (gnss-fw-update)

BugzID: 60600

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2020-03-05 21:09:53 +01:00
Alexandre Bard 5fcc982c21 ublox-gnss-fw-update: Fix yocto QA issue
QA Issue: No GNU_HASH in the elf binary

The makefile provided by ublox was using LFLAGS instead of LDFLAGS.

BugzID: 55167
2020-03-05 18:17:14 +01:00
Tobias Jäggi 2e441d7d35 gnss-config: formerly ublox-gnss-config - improved config file
Vendor, model, firmware, ubx-protocol version, supported satelite
systems and supported augmentation services ar now dumped into a config
file at /run/gnss
Renamed gnss.config to gnss0.config to be in line with wwan rework.

Add grep as depency because -P option is required and is not available
in busybox grep.

BugzID: 61707

Signed-off-by: Tobias Jäggi <tobias.jaeggi@netmodule.com>
2020-03-03 22:58:48 +01:00
Lucien Mueller ab82ed3576 gpsd: update to 3.20
Added patch that reverts patch from gpsd mainline,
because it messes with the buildflags.

BugzID: 60987

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2020-02-27 14:20:55 +01:00
Tobias Jäggi 8c440ef470 ublox-gnss-config: split from gpsd layer, renamed, improved
Changes to baud rate config script:
+ more appropriate name
+ only one service
+ baud rate detector is faster in special case
+ shellcheck conform
- no longer creates default config file if file is missing, instead
throws error

BugzID: 60698

Signed-off-by: Tobias Jäggi <tobias.jaeggi@netmodule.com>
2020-02-24 15:42:21 +01:00
Alexandre Bard 2778373994 ublox-gsm-config: Fix empty user in config
With an empty user, the script was setting the authentication flag
to 1, but sending an empty string.
2020-02-13 14:41:18 +01:00
Lucien Mueller 41ac224de8 machine configuration: Define the SERIAL_CONSOLES parameter.
The SERIAL_CONSOLES defaults to ttyS0 and
therefore a getty on ttyS0 is opened by systemd.
set USE_VT to 0 because we don't have virtual ttys.

BugzID: 61141

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2020-02-04 14:17:14 +01:00
Andrejs Cainikovs 47cb62ee21 scfw_tcm firmware: do not move any resources or pads to M4
M4 CPU is not used, leave all the pads and peripherals to the main CPU.

Reference: f010eb32247e0b06cfd63294ad8099f1889e3430
Remote: git.netmodule.intranet:hancock/imx8-scfw.git

BugzID: 61160
2020-01-28 17:54:06 +01:00
Tobias Jäggi e46b607bee gpsd: ubxtool: patch for adding python3 site package path
added patch file to ubxtool. Since ubxtool is now patched, assigning
the path of python3 env to PYTHONPATH and then exporting it in the
receiver config script is no longer needed.

BugzID: 61081

Signed-off-by: Tobias Jäggi <tobias.jaeggi@netmodule.com>
2020-01-23 17:19:24 +01:00