Instead of checking if we are building for an IMX target to include or
not the jody bbappends, we are now including them only when the ublox
meta-layer is present, which offer more scalability for futur HW design.
BugzID: 65947
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.
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
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
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>
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
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
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
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Added recipes aswell as scripts to automatically configure the baud
rate of ttyS3 and the GNSS receiver (NEO-M8L) with the baud rate
specified in a new config file called /etc/gnss.conf
tty interface also configured if receiver config gets launched manually.
If config-gnss-receiver was launched manually it now executes
config-gnss-tty to configure the tty interface before starting gpsd.
BugzID: 60698
Signed-off-by: Tobias Jäggi <tobias.jaeggi@netmodule.com>
Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
With this whitelist, we make sure that only toby-l2 devices are
handled by ModemManager and that it won't mess up with other serial
or net devices.
BugzID: 59772
BugzID: 59771
serial gnss receiver baudrate configuration with gpsctl tool is too
shaky and not reliable. gps CLI tools calls are reconfigure
baudrate back to 9600 instead of forced 115200 baud.
Configuration is then blocking whole gpsd action and no gnss positon
data are delivered.
BugzID: 60550
Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
This new recipe can be configured using PACKAGECONFIG to enable
different config option like DHCP or unmanaged devices.
BugzID: 60752
Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
When running the script through RPM installer, the cat process
does not stop when receiving the TERM signal. So the KILL signal
has to be used to make sure that the script is not blocking.
BugzID: 60344
ubxtool is required for gnss receiver configuration
fork gpsd recipe from openembedded:
ubxtool was introduced in version 3.18
BugzID: 60545
Signed-off-by: Tobias Jäggi <tobias.jaeggi@netmodule.com>
Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
configure baudrate of serial gnss receiver with gpsctl.
Todo: generic solutions for all hardware
future-proof: support for more that one gnss module
BugzID: 60330
Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
This feature had been disabled to prevent use of random mac address.
But apparently the random mac is only used for scanning and, when
actualy connecting to an AP, the real mac address is used.
Furthermore this config is generating errors in some cases when
using access point mode.
BugzID: 60405
After a disconnection from network side, ModemManager can reconnect
itself if the modem requests it. This commit makes sure that a
reconnection of the modem makes the GSM connection active in NM.
BugzID: 60029
Allowing configuration of default bearer through modemamanger (0001)
Replacing the old dirty hack for default context by a better handling
specific to ublox devices. (0002 and 0003).
Handling reconnect requests from the modem (0004).
BugzID: 59580
dnsmasq being now used for dns caching we add the google dns server
as fallback if other DNS are not reachable.
In case no DNS at all is configured in NM, dnsmasq will not be
started and in this case the google dns cannot be used either.
BugzID: 59522
This new release fixes the issue of an IP address change on the
modem that is not noticed by ModemManager for u-blox modems.
BugzID: 59189
Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
Avoid using machine branches which can lead into failling bitbake
parsing process when branch does not exists.
Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
These variables may change in updates either in poky repo or
meta-openembedded, using directly the variable instead of the
static string name make it more failsafe to future upgrades.
assign ublox neo gnss always name gps0 (/dev/gps0)
typ fix in url removement
BugzID: 58211
Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
initialize jody with patchram file and bring up hci0 interface
use systemd for enabling and disabling:
(requests BT_EN pin)
systemctl start jody-w1-bt-init (default after boot)
systemctl stop jody-w1-bt-init
BugzID: 58086
Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
This line needs to be enable to connect the physical SIM first.
Because it is only possible to detect if a physical SIM is present
or not. The eSIM will always be shown as present, even if not
configured.
BugzID: 57829