Commit Graph

248 Commits

Author SHA1 Message Date
Alexandre Bard cff1dfc0c6 ublox-gnss-fw-update: Move to fct layer
This tool is deprecated and used only for factory testing.
So the updated version has been added to fct layer.

id:379391
2023-03-30 11:10:00 +02:00
Mr Jenkins 65b0b8f377 meta-netmodule-bsp: updated source revisions 2023-03-25 20:49:28 +01:00
Patrick Zysset 3cd38e5536 Revert "lpa: Add NRSW base recipe"
Additionally the two follow up commits are reverted too:
Revert "lpa: Remove dependencies to NRSW"
Revert "lpa: Use latest version with patched toby driver"

This reverts commit
8f2fca9c5f,
c1187b5553 and
c18ced1d01.

id:379399

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2023-03-24 17:31:48 +01:00
Mr Jenkins 335e778fed meta-netmodule-bsp: updated source revisions 2023-02-06 16:35:25 +01:00
Mr Jenkins fc29da1d42 meta-netmodule-bsp: updated source revisions 2023-01-20 22:03:46 +01:00
Alexandre Bard ab9518068b wwan-config: configuration: Add comments for fields specific to TOBY-L2
The default APN configuration is only required for TOBY-L2. For LARA, it
is properly handled through the QMI interface.

For LARA the only supported profile is RMNET, so this is not
configurable.

tpID: #354963
2023-01-20 11:56:16 +01:00
Alexandre Bard 3ba77cdf83 modemmanager: Add support for LARA-L6
LARA-L6 is using a QMI interface so we need to enable QMI and the
"generic" plugin.

Also we need to backport libqmi to have the version matching
ModemManager 1.14.

BugzID: 81947
2022-12-13 12:59:41 +01:00
Mr Jenkins 1f8c466f7d meta-netmodule-bsp: updated source revisions 2022-11-25 11:19:51 +01:00
Alexandre Bard 063bdd83a3 network-manager-conf: Enhance support for user module
Now all scenarios with a user module are covered:

- static setup with a user module will create a bridge with static IP
- dhcp setup with a user module will put a static IP on the UM and DHCP
on the main interface

BugzID: 81969
2022-11-18 10:07:49 +01:00
Alexandre Bard 230743c03d networkmanager-conf: Add support for bridge to user-module
This is a setup required for the factory testing image: the user module
must be reachable from the CPU. And since the subnet of the fct ethernet
port and the subnet of the user module are the same, we must bridge them
together.

BugzID: 81969
2022-11-14 15:55:20 +01:00
Alexandre Bard 1eb5a1a51e wwan-config: Fix ModemManager not stopped when stopping wwan-config
BugzID: 81051
2022-09-01 12:24:38 +00:00
Alexandre Bard c18ced1d01 lpa: Use latest version with patched toby driver
BugzID: 80707
2022-08-16 15:25:14 +00:00
Alexandre Bard c1187b5553 lpa: Remove dependencies to NRSW
BugzID: 80707
2022-08-16 15:25:14 +00:00
Alexandre Bard 8f2fca9c5f lpa: Add NRSW base recipe
This is a tool to manage eUICC sim cards profiles.

BugzID: 80707
2022-08-16 15:25:14 +00:00
Alexandre Bard 376186bb85 wwan-config: Get rid of platform specific files
These platform specific files are replaced by definitions in devicetree
or abstraction through lmsensors.
2022-08-16 15:55:05 +02:00
Mr Jenkins 87cf99189d meta-netmodule-bsp: updated source revisions 2022-06-28 09:17:53 +02:00
Alexandre Bard d7bb7b2796 wwan-config: Increase TimeoutStartSec
As explained in the comment, the start of this service may include some
power cycles of the modem and also the startup of ModemManager. All of
this may take longer than the default 90 seconds in some special cases.

This should anyway not be a problem since this service is self resilient
and can handle errors during startup.

BugzID: 80178
2022-06-21 17:07:26 +02:00
Mr Jenkins d070d3f944 meta-netmodule-bsp: updated source revisions 2022-06-16 14:35:14 +02:00
Mr Jenkins bf8e21637a meta-netmodule-bsp: updated source revisions 2022-05-31 12:22:29 +02:00
Alexandre Bard d7d56c9048 Remove wlconf-bin
This is now integrated in meta-netmodule-wlan.

BugzID: 79548
2022-05-11 18:11:56 +02:00
Alexandre Bard 54d559d706 hw23: Force wpa-supplicant and hostapd versions
hw23: Force wpa-supplicant and hostapd versions

meta-netmodule-wlan provides modified versions of these tools, but they
seem to not work properly on HW23. Since this HW is anyway not supported
in meta-netmodule-wlan, we force the usage of latest stable version.

BugzID: 77173

Co-authored-by: Patrick Zysset <patrick.zysset@netmodule.com>
Reviewed-on: https://git.netmodule.intranet/yoctoproject/meta-netmodule-bsp/pulls/111
Co-Authored-By: Alexandre Bard <alexandre.bard@netmodule.com>
Co-Committed-By: Alexandre Bard <alexandre.bard@netmodule.com>
2022-01-12 00:36:22 +01:00
Marc Mattmueller c18178f212 gnss-init: reverted the gnss-init service back to "original" state
Reason for reverting to originial state:
- adaption of the v2x-fw-load script
- re-introduction of the v2x recipe in all of our images
- no difference when wainting on USB disconnect event or directly
  releaseing the gnss module from its reset

BTW: The original timeout of 50s can be explained as the SCU held a
delay of 40s until powering the v2x module. This delay shall be
removed in the next couple of days.

BugzID: 72787
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-06-07 14:46:32 +02:00
Marc Mattmueller b9e18a3a0b gnss-init: disable device state check when timeout is set to 0 (default)
BugzID: 72787
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-06-07 14:06:18 +02:00
Marc Mattmueller 8487d2fb79 gnss-init: added option to script for setting the check timeout
adapted also the default timeout down to 20s

BugzID: 72787
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-06-03 13:59:10 +02:00
Marc Mattmueller c3e5b9af5a gnss-reset: fixed error checking when setting reset pin
BugzID: 72787
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-06-03 09:24:08 +02:00
Marc Mattmueller e367bcf0c1 usb-hub/gnss-init: handle releasing resets at power-up and reboot
start-up changes:
 - usb-hub is just released from reset
 - gnss-init service calls a script twice:
   - as pre-step: checking the hub state depending on the start
                  reason:
                   - at reboot   --> just go on, at power-up
                   - at power-up --> wait for a USB disconnect
                                     of a device for a certain
                                     time
   - as start step: releasing gnss module from reset

shutdown changes:
 - no resets were triggered

BugzID: 72787
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-06-02 18:53:38 +02:00
Marc Mattmueller c2eabcb4e9 usb-hub/gnss-init: handle potential enabling within bootloader
The bootloader might already release the usb-hub, the v2x module and
the gnss modem from reset. Thus the usb-hub and the gnss modem are put
into reset first so that a proper enumeration would be possible.

BugzID: 72787

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-05-20 13:42:44 +02:00
Marc Mattmueller 09903e21fc ubs-hub-reset/gnss-init: added postfix and fixed post command path
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-05-19 19:11:51 +02:00
Marc Mattmueller dbdef42445 v2x/gnss-init/usb-hub-reset: extracted the usb hub reset part from v2x
The v2x firmware load script contained also the usb hub reset which
affects the GNSS modem. This means that the GNSS modem worked only
when the v2x recipe was enabled. But without firmware the v2x-service
fails at start-up which affects all other images except vcu.

Therefore the usb-hub reset part was extracted from the v2x firmware
load script so that we decouple those two functions. ZF/OM need a
failing v2x service when no firmware is loaded, thus the v2x service
was moved back to the vcu image (see meta-netmodule-om).

The systemd services v2x and gnss-init depend now on usb-hub-reset
whereas gnss-init additionally depends on v2x (if available).

BugzID: 72787

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-05-19 12:22:47 +02:00
Marc Mattmueller 3c25250176 gnss-init.service: set gnss modem into reset state at reboot/poweroff
BugzID: 72787

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-05-19 10:48:51 +02:00
Alexandre Bard 52a03477a8 wlan: make bbappend compatible with any versions
These tools were updated in meta-netmodule-wlan and the version number
changed.
2021-03-29 12:03:08 +02:00
Alexandre Bard 52a8c3468e wwan-config: Fix systemd service location
The service is required by multi user target and not just wanted.

BugzID: 70251
2021-02-12 09:11:01 +01:00
Alexandre Bard 99ec03ae74 tibluetooth: Handle errors intead of relying on abritrary delay
There is no guarantee that a fix delay is actually enough, because with
the BT_EN gpio, we only control activation of bluetooth on the chip. But
we don't know the status of the whole chip.

Also hciattach has anyway a timeout of 5 seconds, so 0.1 seconds does
probably not make a big difference in this regard.

So in order to make it the safest possible, we can only rely a failure
handling and retrying. The number 5 for retries has been defined since
repeated restart of the service with only 3 retries leads to failure
pretty quickly. At 4 there is no failure anymore. So with 5 we are sure
the risk of failure is really low.

BugzID: 70195
2021-02-10 12:18:33 +01:00
Alexandre Bard d6ee12600f wwan-config: Make APN configurable
BugzID: 69970
2021-01-27 11:43:04 +01:00
Alexandre Bard b034539375 tibluetooth: Start only after bluetooth0 symlink is ready
The service must wait until udev has setup the symlink, since it is
using it.

BugzID: 69855
2021-01-20 15:37:26 +01:00
Alexandre Bard 36546bdf67 tibluetooth: Add missing dependency to gpio tools
This package contains gpioset, gpiofind, etc
This tools are required to access the gpios from shell scripts.

Also fixes the RDEPENDS ${PN}

BugzID: 65420
2021-01-19 12:27:13 +01:00
Lucien Mueller 9361b9851c tibluetooth: optimize build.
Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2021-01-18 14:45:58 +01:00
Lucien Mueller 1c8c1bb002 tibluetooth: improved the service to be more generic.
Name the BT_EN gpio in the device tree when you want to use this service.
It has to be found with the command: "gpiofind BT_EN".

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2021-01-18 14:19:36 +01:00
Alexandre Bard c3cd8fb06f gpsd: Move to recipes-navigation
BugzID: 67798
2021-01-16 18:47:54 +01:00
Alexandre Bard ddec09b25f gpsd: Use official backport recipe from meta-oe/master
BugzID: 67798
2021-01-16 18:47:54 +01:00
Alexandre Bard a254220540 ModemManager: Update to 1.14.8
- Backport 1.14.8 recipe from meta-oe/master
 - Update our internal git repo
 - Use new feature to exclude unused plugins

BugzID: 60585
2020-12-31 12:01:21 +01:00
Alexandre Bard 8a4c0869d3 network-manager-conf: Don't always use eth0 as default
It was already the case for HW18: eth2 was the default.
Now with HW25, we can't rely either on eth0 name since it is assigned by
default to the wrong port.

We are therefor using lan0 for HW25 and make the nm-conf recipe more
generic.

BugzID: 69468
2020-12-14 14:05:27 +01:00
Lucien Mueller 0d3fc719bc gpsd: add gpsd-modification to hw23
BugzID: 67902

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2020-11-25 17:53:25 +01:00
Alexandre Bard ae37c1b2b9 wwan-config: Make service less nice
In order to make the service start faster we make it less nice.
It will therefor have more cpu resources to setup the modem faster. The
overall goal being to have WWAN connectivity earlier during boot
process.

BugzID: 67742
2020-11-20 20:43:58 +01:00
Ramon Moesching 24abcaf6d0 iw.bbappnd: depends on libnl and change build flags
bbappend for iw recipe from meta-netmodule-wlan

BugzID: 67825

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-11-11 12:50:48 +01:00
Ramon Moesching de8b39110d wpa-supplicant.bbappend: add dependencies, CFLAGS and systemd services
BugzID: 67825

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-11-11 12:50:48 +01:00
Ramon Moesching 743eaa233d hostapd.bbappend: CFLAGS and dependencies
BugzID: 67825

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-11-11 12:50:48 +01:00
Ramon Moesching 1d23c603d7 hostapd: remove recipe, use meta-netmodule-wlan layer
hostapd is now maintained by meta-netmodule-wlan layer

BugzID: 67576

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-11-11 12:50:48 +01:00
Ramon Moesching 39810b981b tibluetooth: remove firmware file, handled speratly
The wifi and bluetooth chip ti wl18xx firmware files are handled by seperate
meta-netmodule-wlan layer.

BugzID: 67576

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-11-11 12:50:48 +01:00
Alexandre Bard e49f0152b8 gnss-mgr: Use python service file instead of the old bash one
BugzID: 67743
2020-11-09 22:46:56 +01:00