Commit Graph

396 Commits

Author SHA1 Message Date
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
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