Commit Graph

476 Commits

Author SHA1 Message Date
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
Tobias Jäggi 903e748473 config-gnss: baud rate configuration for gnss receiver and ttyS3
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>
2020-01-23 17:19:24 +01:00
Alexandre Bard 7ced09c9c9 modemmanager: Check only whitelisted devices
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
2020-01-13 16:15:59 +01:00
Alexandre Bard 4310ef1b0a jody-w1-driver-pcie: Fix missing PATH for patch
PATH did not include the patch file.

BugzID: 58213
2020-01-13 11:38:31 +01:00
Alexandre Bard 289f2b3c10 jody-w1-driver-pcie: Disable wowlan
The wowlan feature is broken in the driver provided by cypress,
and although we don't need this feature for the moment, networkmanager
is calling some related functions when stopping which leads a kernel
crash.

BugzID: 58213
2020-01-12 21:57:44 +01:00
Andrejs Cainikovs 566f466cc4 scfw_tcm firmware: PMIC RPC communication
Implement temperature reporting and RPC communication.

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

BugzID: 57935
2020-01-10 16:01:16 +01:00
Ramon Moesching 2f99551809 gpsd: workaround for .so file at wrong place
install shared object files to expected place.

BugzID: 57162

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-01-10 11:08:21 +01:00
Ramon Moesching af6384d512 gpsd bbappend: use netmodule branch for regular builds
gpsd branch 3.19 with netmodule modifications on the top.

BugzID: 57162

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-01-10 09:50:43 +01:00
Ramon Moesching 8023b19728 gpsd: get rid of shaky baudrate configuration
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>
2020-01-07 08:44:46 +01:00
Alexandre Bard ef5ab78de0 ublox-gsm-config: Add empty apn.conf as placeholder
Should help avoiding errors when manually writing this file.

BugzID: 60832
2020-01-06 10:09:47 +01:00
Alexandre Bard a61b878ee0 networkmanager-conf: Setup DHCP for nrhw20
Custom config for HW20 with DHCP on the 4 lans of the switch instead
of 4 different static subnets.

BugzID: 60765
2019-12-26 16:45:49 +01:00
Alexandre Bard 24a56a9212 networkmanager-conf: Use eth2 has default for HW18
BugzID: 60763
2019-12-26 14:59:07 +01:00
Alexandre Bard a4ed9ead0c networkmanager: Add missing RDEPENDS to dnsmasq
This add a dependency to RDEPENDS when using this PACKAGECONFIG
feature.

BugzID: 60752
2019-12-23 22:20:48 +01:00
Alexandre Bard 946549e198 networkmanager: move config files to new recipe
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>
2019-12-23 16:48:49 +01:00
Alexandre Bard 28d7752efa ublox-gsm-fw-update: Fix blocking timeout when using RPM
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
2019-12-19 14:50:02 +01:00
Tobias Jäggi 3ca58174f3 gpsd.bb: Fork: Update of gpsd to 3.19
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>
2019-12-18 14:04:37 +01:00
Ramon Moesching 5dc6f2ce8d gpsd append: baudrate configuration by systemd service
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>
2019-12-12 20:16:59 +01:00
Alexandre Bard a0b9dce696 NetworkManager: Remove disabling of random mac address for scanning
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
2019-12-12 15:40:10 +01:00
Alexandre Bard 1ac3367e4e ublox-gsm-fw-update: Improve version detection
BugzID: 60230
2019-12-12 15:40:10 +01:00
Patrick Zysset e9ae851dfe nmhw24: machine config: use default defconfig
renamed defconfig from <machine>-fct_defconfig to <machine>_defconfig.

BugzID: 60559

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2019-12-12 14:50:12 +01:00
Patrick Zysset c2aa550101 kernel: adjust kernel v4.19.y version identifier
netmodule default kernel branch have been merged with 4.19.88.

BugzID: 60485

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2019-12-11 22:16:10 +01:00
Ramon Moesching b6a8d83b23 linux-firmware bbappend: fix: make main package depends on minimal
Make wl12xx and wl18xx main package RDEPENDS on minimal package.
Because of package split content of minimal package is not out of the
box also in main package.

FILES_${PN} package defintions doesn't allow to assaign same file to
different packages. During parsing process files are assaign only first
(from left to right). Futher infos FILES in yocto manual.

BugzID: 60410

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2019-12-10 17:13:40 +01:00
Alexandre Bard 70e60e2815 ublox-gsm-fw-update: Put all firmware data in an archive file
It avoids hardwritten data like md5 and fw version in the script
itself.

BugzID: 60230
2019-12-06 16:33:58 +01:00
Ramon Moesching 3d94a73f3f linux-firmware append: introduce wl12xx and wl18xx minimal packages
Get rid of rootfs postinstall scripts for removing manually unused
TI wl12xx and 18xx firmware binaries. So let's define new packages
with only necessary files and call it *-minimal.

BugzID: 60410

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2019-12-02 17:22:09 +01:00
Lucien Mueller 70e4f77ead udev: source from gitlab
BugzID: 59413

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2019-11-25 14:59:50 +01:00
Alexandre Bard e828bdcd38 Add ublox gsm firmware update tool
And latest firmware for Toby-L210

BugzID: 60230
2019-11-23 13:50:17 +01:00
Alexandre Bard 7fb4bf5d51 networkmanager: Add patch: reactivate GSM connection when MM reconnects
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
2019-11-19 15:20:34 +01:00
Alexandre Bard 440c447a2d modemmanager: Use own repo instead of patch files
All our patches are available in this repo.
It make it easier to maintain than to add patches over and over
in yocto environnement.

BugzID: 59859
2019-11-12 15:31:33 +01:00
Alexandre Bard 23ce58fd32 modemmanager: Upgrade to 1.10.8
BugzID: 59580
2019-11-01 18:01:48 +01:00
Alexandre Bard 25bdb8c717 modemmanager: Add new patches
0005: Improved handling of reconnect requests
0006: Increase timeout to avoid modem lock

BugzID: 59580
2019-11-01 16:11:41 +01:00
Lucien Mueller 2202714f71 gpsd: start gpsd service on system boot.
BugzID: 59834

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2019-11-01 13:43:01 +01:00
Alexandre Bard d87135fa32 gnss-fw-update: Remove lines demanding to connect safeboot pin
The safeboot pin is not required: the tool is automaticaly
requesting the module to reboot in safeboot mode.

BugzID:54544
2019-10-30 14:58:33 +01:00
Alexandre Bard 044bba17d0 hw24: Use common kernel branch
BugzID: 59702
2019-10-22 17:32:38 +02:00
Alexandre Bard b43b5ad630 modemmanager: Update patches
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
2019-10-21 12:45:45 +02:00
Alexandre Bard a015e1d748 networkmanager: Add google dns as fallback
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
2019-10-11 14:09:32 +02:00
Alexandre Bard dba889aac7 networkmanager: Get rid of unwanted auto connections
BugzID: 59531
2019-10-11 14:09:32 +02:00
Alexandre Bard cd2a4787d3 networkmanager: Use dnsmasq as DNS caching service
Since we removed systemd-resolvd, there is no caching service
anymore. dnsmasq being already in the system, it make sense
to use it.

BugzID: 59521
2019-10-11 14:09:32 +02:00
Alexandre Bard 1b87b138cd hw24: uboot: change u-boot defconfig name
u-boot defconfig name changed from nmhw24 to nrhw24

BugzID: 59516

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2019-10-11 11:22:49 +02:00
Alexandre Bard f5914ea51c Upgrade ModemManager to latest release (1.10.6) 2019-09-30 21:54:58 +02:00
Ramon Moesching 2b318e2dd6 modemmanager v. 1.10: upstream master
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>
2019-09-30 16:08:55 +02:00
Ramon Moesching 497e6283e8 wlconf-bin: repository reorganization: get rid of machine branches
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>
2019-09-18 09:33:50 +02:00
Alexandre Bard a440f9b0b4 Add atsha to MACHINE_FEATURES
atsha is the security chip used on NetModule HW
BugzID: 58663
2019-09-13 10:44:05 +02:00
Ramon Moesching 3dbf7afbd9 udev-rules-nmhw: initial commit: udev rules for common platforms
install udev rules for common hardware/platforms

BugzID: 58758

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2019-08-30 14:57:33 +02:00
Ramon Moesching 1148132513 layer.conf: mask out non-related recipes for imx8
wlconf-bin is fetching from git repository with branch name which is
derivied from MACHINE variable.

wlconf-bin is used for ti wl18xx bt/wifi chip which use mainly used on
nmhw21 and similar boards. On imx8-nmhw23 we are using u-blox jody-w1.

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2019-08-20 13:23:52 +02:00
Alexandre Bard 2cd6676823 gpsd.bbappend: Use the same SRC_URI definition as the main recipe
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.
2019-08-19 17:12:48 +02:00
Andrejs Cainikovs a7824ac32b Revert "linux: dts: remove cts and rts pin configuration from dts"
Having external patch in Yocto means we need to maintain it and check
that it applies without conflicts after every device tree change.
Let's move this temporary change to kernel git instead.

This reverts commit 2bfe8d31c7.

BugzID: 58086
2019-08-19 13:47:59 +02:00