Commit Graph

415 Commits

Author SHA1 Message Date
Arturo Buzarra 8c4fcc819f hostapd: enable IEEE 802.11ax (HE) support for STM platforms
Add IEEE 802.11ax (HE) support to enable High Efficiency capabilities when
operating in the 6 GHz band.

https://onedigi.atlassian.net/browse/DEL-9952

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2026-02-02 13:49:28 +01:00
Isaac Hermida 865ca174c9 bluetooth-init: bluetooth-init_btbcm_hciuart: optimize script
Optimize the script to remove unneeded code.
As the BT_REG_ON is managed by the driver, the REG_POWER_ON is not
needed at all.
Loading the hci_uart pulls btbcm, so no need to load it explicitly.

https://onedigi.atlassian.net/browse/DEL-9949

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2026-01-30 12:36:41 +01:00
Isaac Hermida 3408f8c4ed bluetooth-init: consolidate common scripts
Consolidate the init script for platforms based on the same driver with
the same logic.
The btbmc and hciuart drivers are used in the ccmp1 and cc95.
The btnxpuart driver is used in the cc91 and cc93.
The btdigi driver is used in the cc8 platforms with the qca65x4 driver.

https://onedigi.atlassian.net/browse/DEL-9949

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2026-01-30 12:36:41 +01:00
Isaac Hermida 575377d922 bluez5-init: add firmware dependency for CC95 SOM v2
The ConnectCore 95 SOM v2 uses the Murata 2EC wireless combo chip, so this
confirmation includes the firmware recipe for Bluetooth initialization.

https://onedigi.atlassian.net/browse/DEL-9949

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2026-01-30 12:36:41 +01:00
Javier Viguera 4f9f4b113e openssl: integrate support for pkcs11-provider NXP fork
This is the version used in NXP's lf-6.6.52-2.2.2 release.

https://onedigi.atlassian.net/browse/DEL-9905

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2026-01-21 12:19:25 +01:00
Gonzalo Ruiz 6d83bc1ab9 bluez5-init: ccmp2: load FCC file by default
New default file is 'CYW55500A1_FCC.hcd' for ccmp2, so load that file by
default in the script.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2026-01-13 09:56:30 +01:00
Isaac Hermida cf27d3e201 bluetooth-init: get the BT MAC address from the DT node
Retrieve the Bluetooth MAC address from the device tree (DT) node
rather than from the environment.
U-Boot will populate this address by default, but it can be
overridden with a custom MAC address specified directly in the DT,
which then takes priority.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2025-12-02 12:31:33 +01:00
Gonzalo Ruiz 6a07f42432 bluez: ccmp1/ccmp2: set custom MAC addresses on boot
Use an HCI vendor-specific command from Infineon on bluetooth-init
to set a custom MAC address every time the interface is started.

Valid for both CCMP1 (Murata 2AE) and CCMP2 (Murata 2FY) devices.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2025-11-04 18:08:33 +01:00
Javier Viguera 3ae099481a modemmanager: collapse ccimx91/ccimx93 patches into ccimx9 folder
Currently, the patch is identical for all ccimx9 platforms, so move it
to a generic override folder to be used also for ccimx95.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-10-01 11:55:15 +02:00
Francisco Gil d3e6f8648b cc6ul: vsftpd-cert: increase init priority to ensure certificates generation
The vsftpd-cert init script was previously starting too late,
causing vsftpd to start before the certificates were generated.
The priority has been increased (to 70) so that vsftpd-cert
runs earlier during boot.

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2025-07-01 13:27:36 +02:00
Arturo Buzarra 5947b0cc9c vsftpd: add support for SSL/TLS encrypted FTP sessions
This commit enables SSL/TLS support in vsftpd, allowing FTP communications to
be encrypted for improved security.

SSL/TLS support is enabled by default, but to preserve compatibility with
clients that do not support encrypted connections, this feature can be disabled
at runtime. Users can simply comment or uncomment a few lines in the
`vsftpd.conf` configuration file to toggle the behavior.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-06-18 12:00:38 +02:00
Arturo Buzarra a20aadbeec bluez5-init: add Bluetooth init script for CCMP1x platforms
The HCI_UART Bluetooth driver does not support suspend-to-RAM operation, so the
driver must be loaded and unloaded manually. This commit adds support for the
Bluetooth initialization script used across Digi platforms, specifically for
ConnectCore MP13 and MP15.

https://onedigi.atlassian.net/browse/DEL-9650

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-06-13 13:24:28 +02:00
Isaac Hermida fdadc10e30 recipes-digi: nxp-wlan-utils: add nxp wlan tools
add a new recipe to include nxp prebuilt binaries for:
 * mlanutl: WoWLAN support
 * nanapp:  NAN support
 * nmlawls: monitor Wi-Fi events

Included prebuilt version obtained from next release:
SD-WLAN-UART-BT-SPI-OT-Zigbee-DualPAN-IW612-LNX_6_12_3-IMX8-18.99.3.p23.20-18.99.3.p23.20-MM6X18505.p23-GPL.zip

https://onedigi.atlassian.net/browse/DEL-8462

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2025-05-21 12:51:41 +02:00
Gabriel Valcazar 6345d46ce1 bluez5: remove btconfig binary in ccimx6 platforms
poky commit 3c9b461dd0d26a5f6941000d839636ad32cd6f29 added this binary to the
bluez5-noinst-tools package, and it has the same exact path as the one from our
dey-examples-btconfig package. This causes a conflict when both packages are
installed in the same image.

Judging by bluez5's btconfig sources, it's merely a skeleton without any real
functionality, so simply remove it to avoid the conflict.

https://onedigi.atlassian.net/browse/DEL-9612

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2025-05-20 14:36:38 +02:00
Francisco Gil 51991322e2 nm: remove dnsmasq as DNS manager
dnsmaqs is not able to manage DNS from cellular interface.

Now, DNS is managed by systemd-resolved on platforms with
systemd and by NetworkManager on sysvinit platforms.

https://onedigi.atlassian.net/browse/DEL-9353

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2025-03-11 11:25:11 +01:00
Hector Palacios a751560122 batctl: update version to 2025.0
Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://onedigi.atlassian.net/browse/DEL-9496
2025-02-17 08:36:34 +01:00
Isaac Hermida b5465a7390 bluez5-init: unify all bluetooth-init services
Unify all the different bluetooth init scripts.
The service can be started as oneshot instead of forking, as in all cases
the attach command is started daemonized in background.
Regarding the service requirements, just rely on udev so the HW itself
should be detected and ready.
Make it running before the bluetooth service, so the HW Bluetooth device
is fully ready when bluetooth service starts.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2025-02-05 12:10:20 +01:00
Isaac Hermida 2514406b4c bluez5-init: unify CCMP2 bluetooth init script
bluez5-init is a Digi custom recipe to collect the init script
needed to bring up the specific platform bluetooth hardware.
CCMP1s do not require any bluetooth init extra action.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2025-02-05 12:10:20 +01:00
Gabriel Valcazar 89d0ea1d42 Remove outdated mbedtls recipe
This recipe was added 8 years ago in the context of supporting awsiotsdk, back
when there were no community recipes for a v2.X.X version. meta-openembedded
now has recipes for both v3.6.2 and v2.28.9, and our recipe has been outdated
for a while now, so remove it.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2025-02-04 17:50:03 +01:00
Francisco Gil 2b71f2ce2b modemmanager: allow optional spaces after commas in ^SXRAT
https://onedigi.atlassian.net/browse/DEL-9445

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2025-02-03 08:01:01 +01:00
Javier Viguera 5209d57dc3 meta-digi: Remove True option to getVar calls
getVar() defaults to expanding by default.

See poky's commit: 2631c375b8a025ee2e4329f6d93900bb7b5dadf7

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-01-30 11:09:28 +01:00
Javier Viguera e64002650d modemmanager: remove old not used patch
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-01-29 18:00:50 +01:00
Arturo Buzarra cb57707e86 wpa_supplicant/hostapd: sync nl80211 definitions with Linux kernel v6.6.48
This commit synchronizes the nl80211 definitions with Linux kernel v6.6.48 to
prevent a mismatch between the extended features recognized by wpa_supplicant
and to correctly parse the information provided by the Linux driver.

https://onedigi.atlassian.net/browse/DEL-9470

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-01-29 12:14:36 +01:00
Isaac Hermida ca9d8162df bluetooth-init: cc9: do not unload the btnxpuart on reboot
Do not take any action such as removing the btnxpuart module When
the system is being restarted (poweroff or reboot), as the driver
tries to restore the UART baudrate when removing the module, and if
the system is being off, some of the entries might be dissapeared in the
middle of the process, leading to a NULL pointer and preventing the
system of being rebooted.
The btnxpuart can be removed on suspend/resume safely, so add the logic
to detect if the system is being rebooted.

https://onedigi.atlassian.net/browse/DEL-9290

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2024-11-28 15:41:41 +01:00
Isaac Hermida 5451a0f4bc bluetooth-init: ccimx6ul: validate FW was correctly loaded
Sporadically, the BT FW is uploaded but the interface is not functional
as it is not up and its entries are not populated. Validate the FW
was correctly set, if not, rely on the retry mechanism.

https://onedigi.atlassian.net/browse/DEL-9006

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2024-10-31 09:59:42 +01:00
Javier Viguera 373f061650 dey: cosmetic, mark patches as DEY specific
Our distribution is Digi Embedded Yocto (DEY), so use that to mark the
upstream status of the patches in our layer.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2024-10-22 15:48:00 +02:00
Gabriel Valcazar 5c57d503ef wpa-supplicant: use our custom defconfig
A recent change in poky changed the configuration behavior of this package,
using the defconfig in the source tree instead of the one provided in Yocto
(which we overwrite in meta-digi). Since our ccmp1 builds have a lot of patches
specific to the platforms' wifi chip, using the default defconfig results in
linking errors.

Restore the ability to use custom defconfigs to be able to use the ones defined
in our layer per platform.

https://onedigi.atlassian.net/browse/DEL-9011

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2024-10-17 13:03:37 +02:00
Gabriel Valcazar 2bc985cbea global: add Upstream-Status tag to all patches
This avoids a QA error that is triggered if a patch is missing said tag

https://onedigi.atlassian.net/browse/DEL-9011

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2024-10-17 13:03:37 +02:00
Gabriel Valcazar 41c8616765 global: replace firmware-nxp-wifi-nxpiw612 with firmware-nxp-wifi-nxpiw612-sdio
This is the official name of the package provided by the firmware-nxp-wifi
recipe in meta-freescale

https://onedigi.atlassian.net/browse/DEL-9011
https://onedigi.atlassian.net/browse/DEL-9081

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2024-10-17 13:03:37 +02:00
Gabriel Valcazar 7125fbd222 networkmanager: adapt patches for 1.46.0
While at it, add the "Upstream-Status" tag to the patches to avoid QA errors

https://onedigi.atlassian.net/browse/DEL-9011

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2024-10-17 13:03:37 +02:00
Gabriel Valcazar 25c952119d ppp: upgrade bbappend to 2.5.0
This is the version of the recipe provided by poky in Yocto 5.0 scarthgap

https://onedigi.atlassian.net/browse/DEL-9011

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2024-10-17 13:03:37 +02:00
Gabriel Valcazar c20e722636 bluez5: adapt bbappend to 5.72
This is the version of the recipe provided by poky in Yocto 5.0 scarthgap.
Aside from updating the verison number, explicitly create /etc/bluetooth
directory during installation.

The creation of this directory was removed from the recipe's base do_install()
in poky (see poky commit 55692591227eaac2d50ab339eea87ddca395f6df), so we need
to create it in our bbappend to be able to add files to it.

https://onedigi.atlassian.net/browse/DEL-9011

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2024-10-17 13:03:37 +02:00
Javier Viguera 7b50fb3a06 bluetooth-init: ensure the interface is up before unloading the module
This is a workaround for a driver failure when unloading the module. The
"btnxpuart" driver crashes with a null pointer dereference if the bluetooth
interface is down when the module is unloaded.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2024-09-27 14:09:23 +02:00
Javier Viguera 55f8ccadec bluetooth-init: start driver load service before bluetooth daemon
Revert to the previous used order for the bluetooth related
services. First, load the driver and then execute the bluetooth
daemon. This is needed for two reasons:

  * The bluetooth daemon caches the MAC address. Loading the module before
    ensures the daemon caches the correct MAC.
  * The connectcore-demo server stops working if the bluetooth interface
    is unavailable when the server launches. This order ensures the demo
    works as expected.

This change also brings back the problem of the btnxpuart module unload
failure on reboot/suspend. The following commit adds a workaround for
the driver issue.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2024-09-27 14:02:34 +02:00
Arturo Buzarra 19be4782ee wpa_supplicant/hostapd: update support to include ConnectCore MP2 platform
This commit updates the wpa-supplicant and hostapd recipes to apply the Murata
release patch series for ConnectCore MP2 platform.

https://onedigi.atlassian.net/browse/DEL-9237

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2024-09-19 13:37:01 +02:00
Javier Viguera 6107312f03 bluetooth-init: fix systemd service syntax
According to systemd manual, "After" setting expects a space-separated
list. Fix the wrong comma-separated list to prevent the following boot
failure:

  bluetooth-init.service:4: Failed to add dependency on systemd-udev-settle.service,bluetooth.service, ignoring: Invalid argument

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2024-09-16 18:58:15 +02:00
Javier Viguera b6d7853fec meta-digi-dey: fix wifi-related functionality overrides for ccimx91
Some wifi-related functionality was enabled on ccimx93 overrides. The
ccimx91 also needs this functionality but it was not being applied as
the overrides were only for ccimx93.

Generalize the overrides for ccimx9.

https://onedigi.atlassian.net/browse/DEL-9214

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2024-09-11 12:12:14 +02:00
Javier Viguera 4c33a85d6b bluetooth-init: start driver load service after bluetooth daemon
The bluetooth daemon does not need the interface to exist before being
executed. We configure the daemon with AutoEnable=true, which will enable
adapters present on start or that appear later on.

On shutdown, systemd stops services in the opposite order to the boot,
so configuring the driver load service after the bluetooth service,
ensures that on shutdown the driver is unloaded before the bluetooth
daemon is stopped.

The btnxpuart driver needs this order, to prevent a module unload failure
on system reboot/poweroff.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2024-08-30 18:22:37 +02:00
Arturo Buzarra 1d29e40d23 meta-digi: integrate ConnectCore MP25 DVK platform on common recipes
Add initial support on common DEY recipes for ConnectCore MP25 DVK platform.

https://onedigi.atlassian.net/browse/DEL-8995

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2024-07-22 17:12:33 +02:00
Mike Engel d11b291f9a meta-digi: add new CCMX91 platform into DEY
This commits adds the CCMX91 platform to the DEY
build system. Furthermore, it creates generic ccimx9
support to be used for the CCiMX91 and CCiMX93
platform.

https://onedigi.atlassian.net/browse/DEL-9106

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2024-07-19 07:32:00 +02:00
Isaac Hermida 0c642ed7ec Update Digi Copyright header
Standarize the Copyright header according to company policy.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2024-07-15 09:28:58 +02:00
Mike Engel 37f5db42ac tsn: add basic Time sensitive networking (TSN)
This commit adds some basic TSN support to DEY.
It includes the kernel configuration fragment with
the IEEE 802.1 support and the some user space tools
necessary to configure the network.

https://onedigi.atlassian.net/browse/DEL-9026

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2024-06-04 12:14:18 +02:00
Arturo Buzarra ecd77dece9 firmware-murata: update firmware binaries to version imx-kirkstone-hedorah_r1.0
This commit updates the required firmware binaries for Bluetooth and Wireless
interfaces, hostapd and wpa_supplicant recipes based on the Cypress Linux WiFi
Driver (FMAC) release v5.15.58-2023_1128 (Wireless firmware v13.10.246.334).
This change also includes a custom defconfig file for the hostapd and
wpa_supplicant recipes including the changes from the patches and the Digi
customizations.

Also are updated the Murata firmware repositories to match with the latest
Murata release imx-kirkstone-hedorah_r1.0, which is based in the same Cypress
Linux Wifi Driver release v5.15.58-2023_1128.

https://onedigi.atlassian.net/browse/DEL-8667

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2024-03-18 18:13:09 +01:00
Isaac Hermida 5588c30a7b Revert "ccimx93: bluetooth-init: re-initilize the LE support after hci reset"
This reverts commit c5b53c9765.

The HCI reset interface is fixed inside each BT power calibration shell
script, so this workaround is not needed anymore.

https://onedigi.atlassian.net/browse/DEL-8458

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2024-02-21 18:00:34 +01:00
Isaac Hermida c5b53c9765 ccimx93: bluetooth-init: re-initilize the LE support after hci reset
for the IW61x, when the FW is instructed with an hci reset command, the
LE stack is not correctly reset.
It can be workaround-ed by SW doing a SW power cycle.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2024-02-19 09:01:45 +01:00
Isaac Hermida f44ae189e5 bluetooth-init: ccimx93: adjust power levels
https://onedigi.atlassian.net/browse/DEL-8327
https://onedigi.atlassian.net/browse/DEL-8458

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2024-02-19 09:01:45 +01:00
Arturo Buzarra e2ee631832 meta-digi: [cosmetic] alphabetize compatible machine string
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-10-10 14:58:58 +02:00
Isaac Hermida eba8e21d72 p2p scripts: generalize support getting name from configuration
The P2P interface may have a different name, for instance, in the ccimx93 it
is wfd (wifi direct).
Generalize Digi P2P scripts to use the name from the platform config file.

https://onedigi.atlassian.net/browse/DEL-8468

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2023-09-01 14:55:37 +02:00
Isaac Hermida 6bddaddb2c hostapd: ccimx93: add code for WPA3 strict mode
Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2023-08-28 08:22:23 +02:00
Javier Viguera d5e33fa947 bluez5: bdaddr: support setting MAC address for NXP's iw612
That's the wifi/bt chip used on the ccimx93.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-08-17 10:23:00 +02:00