Commit Graph

553 Commits

Author SHA1 Message Date
Marc Mattmueller 06295ec022 v2x: v2x-fw-load script reads a config file, where the fw load can be skipped
the v2x-fw-load script was refactored and ready now a config file. The v2x
recipe installs a v2x config file depending on a distro variable
V2X_ENABLE_FW_LOAD. Inthere it is possible to declare a parameter line like
'is-placeholder-firmware=true' to skip the firmware load in the v2x-fw-load
script. The skip includes also the detection of the DFU mode of the module.

These changes enables us to introduce the v2x package in all our images so
that the service doesn't fail anymore when we are using our placeholder
firmware.

BugzID: 72787
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-06-03 17:01:51 +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
Marc Mattmueller 2b3c3f3e9f v2x: added exit criteria when no v2x module was found on the usb bus
the v2x service won't fail anymore if no modem is found on the usb
bus.

BugzID: 72787

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-05-18 14:27:54 +02:00
Marc Mattmueller 0b52ba81d1 v2x: added recipe (moved from meta-netmodule-om)
BugzID: 72787

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-05-18 11:36:40 +02:00
Alexandre Bard 3cfed374e5 board-descriptor: Fix partial installation
The descriptor.py file was not properly packaged because the variable
PYTHON_SITEPACKAGES_DIR was not defined. It is defined in the
python3-dir class.

BugzID: 72580
2021-05-04 17:17:30 +02:00
Alexandre Bard 0f78b1b8e5 imx-sc-firmware: Let uboot clear irq registers
uboot is now able to communicate with the SCU and to clear the irq
registers itself.

BugzID: 71440
2021-04-30 10:19:12 +02:00
Alexandre Bard 4e05cd8cf9 imx-sc-firmware: Update SCU firmware with I2C tunnel
This updated firmware is allowing the kernel core to access the I2C bus
of the SCU core.

It also properly forwards the interrupts from the SCU core to linux.

BugzID: 70694
2021-04-20 20:09:39 +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 007da9524c HW26: Add support for PPS
BugzID: 66249
2021-03-25 19:19:37 +01:00
Lucien Mueller 5db36b3b32 system-state-framework: remove extmod-driver.
BugzID: 70266

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2021-02-15 17:00:25 +01:00
Lucien Mueller 9a830cc206 system-state-framework: fix dependency to broker.
BugzID: 70200

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2021-02-12 17:17:01 +01: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
Lucien Mueller 70bdcc3110 ssf: autoload kernel modules
BugzID: 69520

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2021-01-19 13:34:29 +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 da7ad95535 u-boot-hw23: Set empty initial environment
The default behavior is to try to build u-boot-initial-env
Which is not implemented in our u-boot repo.

Part of yocto update to dunfell release.

BugzID: 69636
2021-01-16 18:47:54 +01:00
Alexandre Bard 3a0b031550 jody-w1-bt-hcd: Add missing dependency
The BT script is using the libgpiod tools (gpioset, gpiofind).

Part of yocto update to dunfell release.

BugzID: 69636
2021-01-16 18:47:54 +01:00
Alexandre Bard 69b1bfbdad hw23: Use A35 tune instead of generic aarch64
Afer upgrading meta-freescale to dunfell, the new default tune is
a35-crypto instead of aarch64.

Part of yocto update to dunfell release.

BugzID: 69636
2021-01-16 18:47:54 +01:00
Alexandre Bard 0bfb1df3f3 imx-sc-firmware: Update to 1.5.0
Aligning with recipes from meta-freescale/dunfell.

Part of yocto update to dunfell release.

BugzID: 69636
2021-01-16 18:47:54 +01:00
Alexandre Bard 2e9dbfea17 Make layer compatible with dunfell
BugzID: 69636
2021-01-16 18:47:54 +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 17b7f134d8 ssc drivers: Fix build dependency
Build dependency are not package related and therefor the suffix _${PN}
is not required and not working as expected.

BugzID: 69520
2021-01-16 18:46:02 +01:00
Lucien Müller 1ae49c5df8 fb69520-integrate-system-state-framework (#70)
system-state-framework: added recipes for the broker, extmod and
sysstate parts.

move include files to ${STAGING_KERNEL_BUILDDIR}/include/broker/

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>

Co-authored-by: Ramon Moesching <ramon.moesching@netmodule.com>
Reviewed-on: https://git.netmodule.intranet/yoctoproject/meta-netmodule-bsp/pulls/70
2021-01-15 14:14:01 +01:00
Alexandre Bard 52f1381685 layer.conf: Fix dependency to freescale layer
The name to use is actually the name defined in the layer.conf of the
target layer and not the name of the directory itself (which can
actually change).

BugzID: 69469
2021-01-07 20:11:38 +01:00
Alexandre Bard e4faf46035 Fix dependencies to python3
python tools must now depend explicitly on python3-core.
If it is not done, bitbake will now throw an error.

BugzID: 69636
2021-01-04 16:24:52 +01:00
Alexandre Bard b8efbe729a Get rid of u-boot-fw-utils
These tools are not required anymore and not present in dunfell release.

BugzID: 69636
2021-01-04 16:23: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 2680c89a08 Make imx recipes depend on freescale layer
In order to use this layer without hard dependency to the freescale
layer. The freescale layer is only necessary to build HW23 images.

BugzID: 69469
2020-12-20 21:02:14 +01:00
Ramon Moesching 3bdeb0a83b u-boot-am335x-nmhw21: don't use symlink for hw26 artifacts
Replace with copy command.

BugzID: 69325

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-12-15 10:07:35 +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
Ramon Moesching 5bec9ecf1f u-boot-am335x-nmhw21: deploy nmhw21 as hw26 binaries
nmhw21 and hw26 are using common u-boot code base.
Thus we are creating symlink from nmhw21 to hw26.
With this fix jenkins packaging stage is working again.

BugzID: 69325

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-12-14 13:17:19 +01:00
Alexandre Bard 597b53438c linux-initramfs: Remove WLAN cfg patch
This patch is removing wlan config to use the backports instead. But the
backports are not compatible with other kernel than virtual/kernel.

We must therefor rely in the default wlan for the moment

BugzID: 69147
2020-11-27 22:29:12 +01:00
Alexandre Bard 7ac62047b1 kernel: Create specific recipe for initramfs images
Changing KERNEL_PACKAGE_NAME allows this variant of the kernel to live
its own life in tmp/work/ instead of being shared in tmp/work-shared.

It is also not providing virtual/kernel.

This way, the "official" kernel (virtual/kernel) is never modified and
rebuilt, leading to strange behavior regarding deployed licenses.

BugzID: 69147
2020-11-27 14:20:46 +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 3ffadd7487 HW23: Add machine feature imx-boot
Since imx-boot is different than a classic u-boot we need to handle it
separatly. bootloader-config does not support it so we use this variable
to remove it at build time.

BugzID: 69098
2020-11-24 13:56:59 +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 73ad873411 layer.conf: fix wrong BBFILES_DYNAMIC for applying layer meta-ublox-module
Due typo and wrong usage bbappends were never applied to
meta-ublox-module layer.

BugzID 68069

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-11-18 14:43:43 +01:00
Alexandre Bard f9eb3a95ee uboot: Prevent overwriting of build date
After changing the distro config to allow reproducible builds, a side
effect was that the date printed during uboot startup was 1 Jan 1970.

In order to get the real build date in uboot, we must unset the
SOURCE_DATE_EPOCH variable.

BugzID: 67738
2020-11-11 16:13:17 +01:00
Ramon Moesching dd685550a6 linux-firmware: remove unused append file for ti wl18xx chip
BugzID: 67825

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-11-11 12:50:48 +01:00