Commit Graph

4123 Commits

Author SHA1 Message Date
Arturo Buzarra 9a713e56c8 init-ifupdown: virtwlans: generalize function to check virtual wireless MACs
Also this commit removes the virtual wireless MACs verification on ccmp1 platforms

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-05-10 09:11:19 +02:00
Arturo Buzarra c4a328dfd3 init-ifupdown: remove references to QCA wireless chipsets
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-05-10 09:11:19 +02:00
Gabriel Valcazar 8979331ef8 packagegroup-qt6-dey: remove qtquick3d-dev
This package was inadvertantly pulling in a lot of dependencies into our
images that make use of Qt6. Most of these packages consisted of *-dev
packages, which are only useful for development with the SDK.

Remove this package along with its dependencies to significantly reduce the
dey-image-qt rootfs image size.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2023-05-09 15:44:37 +02:00
Tatiana Leon c533e12a4d dey-examples: cloudconnector:return status code in device request data callbacks
This commit syncs the device request code to match with the latest 'cc_api'
layer implementation.

See commit 99a2ff39b771f0e36af8d15d40f970462352e0b6 in 'cc_api' repository and
commit d8c848fc2f516a6c2197181f7540c9c23feaf44f in 'cc_dey' repository.

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-05-09 11:47:25 +02:00
Tatiana Leon bd684cec15 dey-examples: cloudconnector: remove not need 'wait_for_ccimp_threads()'
Connector creates detached threads and calling to 'wait_for_ccimp_threads()' is
not required.

See commit d34ddfb719932ae59774b388579b7d6a77472c4f in 'cc_dey' repository.

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-05-09 11:47:25 +02:00
Tatiana Leon 5f466b2af1 dey-examples: cloudconnector: fix some minor issues
* Remove 'MAX_RESPONSE_SIZE' define and allocate required memory in
  'device_request_listener' example.
* Create 'free_timestamp()' function in 'upload_data_points' example.
* Use some sorter variable names.
* Use '__func__' to log function names.
* Remove line feed from log messages.
* Remove not required curly braces for single line loops.

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-05-09 11:47:25 +02:00
Tatiana Leon 589b41eb01 dey-examples: cloudconnector: update copyright
Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-05-09 11:47:25 +02:00
Tatiana Leon 70b0a17b0e cloudconnector: new variable to allow custom cloudconnector package definition
By default, our 'cloudconnector' package is installed.
This can be overriden by defining 'CLOUDCONNECTOR_PKG' in the 'local.conf'
with the custom package that includes this application.

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-05-09 11:47:25 +02:00
Isaac Hermida 59365b0ff7 connectcore-demo-server: start service after bluetooth
bluetooth daemon is a requisite for the demo app.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2023-05-08 17:02:47 +02:00
Gabriel Valcazar 8cb72edb65 packagegroup-x-linux-ai: remove c++ examples on the ccmp13
These examples have a gtk+3 dependency that can't be met on the ccmp13 due to
it being a headless device. Remove these examples from the packagegroups so we
can at least build the rest of the ML packages.

Note that all of ST's ML examples are GUI-based and will not be usable on the
ccmp13, but since the remaining examples don't have an explicit gtk+3
dependency, at least they won't trigger build errors when included in the
image.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2023-05-08 13:00:59 +02:00
Gabriel Valcazar 502cdecd9d onnxruntime: modify installation process to avoid QA error
ST's onnxruntime recipe moves a file in a way that triggers a QA error due to
file ownership issues. Copy the do_install() function as-is and modify the
offending line to copy the file instead. Create a dynamic layer for stm32mpu-ai
to include the bbappend.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2023-05-08 13:00:59 +02:00
Gabriel Valcazar 163b229beb Move Coral-related recipes to dynamic Freescale layer
These are recipes we created to support Google Coral on i.MX platforms. ST's
machine learning layer provides similar recipes, so to avoid conflicts, move
the recipes meant for i.MX platforms to a dynamic layer.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2023-05-08 13:00:59 +02:00
Gabriel Valcazar faa2ce67d4 Remove meta-st-stm32mpu-ai dependency with st-openstlinux layer
This dependency is only required if you wish to build ST's reference images,
which isn't our case. Add said reference images' recipes to the BBMASK to
avoid build errors.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2023-05-08 13:00:59 +02:00
Javier Viguera 9141451583 meta-digi: cosmetic, delete machine variants dead code
We removed machine variants support years ago.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-05-05 14:39:34 +02:00
Isaac Hermida 181ce4761a cc93: iw612: rename name of main wlan interface
rename interface sta_name to be "wlan0" instead of "mlan0", so it keeps
compatibility with other platforms.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2023-05-05 14:00:01 +02:00
Isaac Hermida ea81fda3bf ccimx93: standby: check bluetooth-init service status
Check if the bluetooth-init service is running before going to suspend,
just in case has stopped or disabled it on purpose.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2023-05-05 14:00:01 +02:00
David Escalona 7302fbc0df ccimx93: libdigiapix: fix default I2C bus
Signed-off-by: David Escalona <david.escalona@digi.com>
2023-05-05 09:58:41 +02:00
Javier Viguera d193b5e3a7 ccimx93: add NPU overlay
Support for Ethos NPU has been enabled in the kernel.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-05-04 18:25:28 +02:00
Javier Viguera eb1bc0eeb3 meta-digi-arm: fix regression in optee userspace support
OPTEE_PKGS variable must have a default (empty) value to prevent bitbake
parsing errors.

This fixes a build failure for MP1 platforms where the variable was
undefined in the commit that added the support.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-05-04 18:24:36 +02:00
Javier Viguera 7bd3ebc76e e2fsprogs: delete on target postinst script for read-only rootfs
Otherwise the build fails, with:

ERROR: dey-image-qt-1.0-r0 do_rootfs: The following packages could not be configured offline and rootfs is read-only: ['100-e2fsprogs-mke2fs']

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-05-04 10:51:06 +02:00
Javier Viguera 28f57c5fcd remove-pkg-postinst-ontarget: support other runtime packages
A recipe may generate different runtime packages, with names other than
PN. This commit allows removing the ontarget postinst script for those
other runtime package names. To do so, just define REMOVE_POSTINST_RPN
before including this class in the recipe.

The first user is in the following commit.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-05-04 10:22:06 +02:00
Javier Viguera beb9fd02e6 meta-digi-arm: add optee userspace for IMX platforms that support it
NXP platforms that have 'optee' in the MACHINE_FEATURES, will install
optee userspace packages (ccimx8m and ccimx93 at the moment).

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-05-03 18:32:21 +02:00
Isaac Hermida 803945c080 Revert "bluez5-init: ccimx93: add fix to enable LE"
Masking the extended advertising flag makes the hcitool lescan work, but
triggers functionality problem such as bluetoothctl scanning or extended
advertisement not working.
Do not mask it, so use bluetoothctl scan instead of hcitool lescan to discover
LE devices.

This reverts commit ac1e4633fb.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2023-05-02 12:52:11 +02:00
Isaac Hermida fd5ee3a5e3 ccimx93: standby: customize script support for systemd
We need to take in account if the IW612 chip (WiFi/Bt) is going to be powered
off on suspend state. In such a case, we need to unload the driver modules and
restore the expected tty speed for Bluetooth, so that functionality is restored
back on resume.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2023-04-27 14:39:48 +02:00
David Escalona b980c2f1ff ccimx93: libdigiapix: update apix configuration file for examples
https://onedigi.atlassian.net/browse/DEL-8473

Signed-off-by: David Escalona <david.escalona@digi.com>
2023-04-24 10:12:14 +02:00
Isaac Hermida 06e84d1b7b bluez5-init: ccimx93: modify script to support suspend/resume
The BT chip for the ccimx93 cannot be turned off, nor can it be re-uploaded.
Therefore, we need to set some conditions to assume that it is going to be
attached correctly. The changes in this script take care of that.
Upon the first attachment, the rate is set to 3M, and future uses will always
be done at this rate. If, for any reason, it was not stopped and the chip is
already attached, do nothing.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2023-04-20 17:05:00 +02:00
Isaac Hermida ac1e4633fb bluez5-init: ccimx93: add fix to enable LE
This fix is needed for bluez-5.65 version.
We can drop it when using a newer version.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2023-04-20 17:05:00 +02:00
Isaac Hermida f7943a9fd5 wpa-supplicant: optimize p2p support for ccimx93
The enabled options are mainly for AP mode, which improve the P2P
performance when the P2P node behaves as an AP, it is, as P2P GO.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2023-04-20 17:05:00 +02:00
Isaac Hermida 6e812a569b ccimx93: bluetooth-init: fix how to set btaddr
Use the specific hcitool vendor command to set the BT mac address.
It is a custom vendor command (0x3f), and the field is 0x0022.
The BT address is passed from last octet to first octet.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2023-04-20 17:05:00 +02:00
Isaac Hermida 03c3593050 hostapd: ccimx93: configure AP mode
https://onedigi.atlassian.net/browse/DEL-8346

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2023-04-20 17:05:00 +02:00
Isaac Hermida af1dea4644 hostapd: sync defconfig to 2.10 version and enable options
Sync the defconfig to version 2.10.
Additionally, add support for new features, such as:
 * ACS (auto channel selection)
 * 802.11AX (Wi-Fi 6)
 * SAE (WPA3 Personal)
 * SUITEB192 (WPA3 Enterprise 192 bits)

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2023-04-20 17:05:00 +02:00
Isaac Hermida 5f5855744d init-ifupdown: ccimx93: add p2p and AP support
https://onedigi.atlassian.net/browse/DEL-8346

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2023-04-20 17:05:00 +02:00
Isaac Hermida 1540f58075 networkmanager: customize unmanaged interfaces
https://onedigi.atlassian.net/browse/DEL-8346

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2023-04-20 17:05:00 +02:00
Isaac Hermida fb9a3c9814 nxp-wlan-sdk: iw612-sdk: add nxp tools
Add nxp-wlan-sdk repice as a verbatim copy and add our bbappend
for fixing the build.
This recipe include some tools, mainly for RF porpouses.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2023-04-20 17:05:00 +02:00
Gonzalo Ruiz 7b2339869a ccmp1: add BT Test overlay to the default images
Add the overlay required to perform the BLE HCI Raw test to the
linux default images. That way, default images can be used to certify
the product.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2023-04-20 13:54:54 +02:00
Hector Bujanda c981548c19 ccx: fix some outdated files so implementation matches 'cctags api’ repository
1)
CcxTagControlData struct in CORE/HDD/inc/CcxTagDefs.h had some fields missing compared
with 'cctags api’ which was producing CCX_TAG_DRVR_RSP_ERR_CTRL_SIZE.

2)
Then CCX_TAG_DRVR_RSP_ERR_PACKET_SIZE aroused because following paddings:
	CCX_TAG_MPDU_HEADER_PAD_SIZE = 2
	CCX_TAG_CONTENT_HEADER_PAD_SIZE = 3
where producing wrong alignements and sizes between the 'cctags api’ and the driver.

With changes in this commit, master branch of ‘CCxTagTest’ repository compiled
out of source code gets on well with 'cctags api’ repository and with qca driver in
both dey-2.4 and dey4.0.
Packets in the air match 100% in content in both dey-2.4 and dey4.0.

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

Signed-off-by: Hector Bujanda <hector.bujanda@digi.com>
2023-04-20 10:59:12 +02:00
Hector Palacios 16117d3cf6 update URL of NXP recipes from codeaurora to Github
Codeaurora was retired on April 2023.
Fix bbappends to point to their new location on Github.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2023-04-20 10:58:50 +02:00
Gabriel Valcazar 0fcd8906d4 Revert "imx-digi-base: add dummy MULTIUBI_BUILD value to fix Vigiles builds"
An official fix was added to meta-timesys in commit
ae4f6e9854361d4a6d71b6f8b87130268d990b32, so our workaround is no longer needed

This reverts commit 7a77130550.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2023-04-19 11:19:55 +02:00
Hector Palacios 0e61017da8 libubootenv: add fall-back function to read HWID from nvmem
The HWID is populated on the device tree by the boot loader.
This can be used as a key modifier when encrypting the U-Boot
environment. Some old U-Boot versions however, did not populate
the HWID on the device tree. When updating firmware from an
old version to a new one, the library may not be able to read
the HWID from the DT and then be unable to unencrypt the
environment.

This patch implements a fall-back function to read the HWID
directly from the nvmem node (sysfs). Implementation has been
done for ccimx6 family only, where this case of old U-Boot
can happen.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://onedigi.atlassian.net/browse/DEL-8444
(cherry picked from commit 222a91f213)
2023-04-19 09:39:43 +02:00
Tatiana Leon 8718734b46 ccimx6: ccimx6ul: ccimx8m: ccimx8x: ccimx93: install: only install system A by default, add an option to install B
https://onedigi.atlassian.net/browse/DEL-8232

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-04-18 17:49:03 +02:00
Gabriel Valcazar 44ad42551a cryptoauthlib: use digi-embedded github mirror
The commit we use to build the cryotpauthlib package is currently not part of
any branches or tags in the original MicrochipTech repo. To make sure the
package can always be built, use our mirror of the repo, which includes an
additional branch for the specific commit.

While at it, move the "nobranch=1" parameter to the GIT_URI variable, since
we're putting all other git parameters there, anyway. Also, remove the "branch"
parameter because it isn't needed in this case.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2023-04-17 17:55:36 +02:00
Gabriel Valcazar c9fb56629a cryptoauthlib: use digi-embedded github mirror
The commit we use to build the cryotpauthlib package is currently not part of
any branches or tags in the original MicrochipTech repo. To make sure the
package can always be built, use our mirror of the repo, which includes an
additional branch for the specific commit.

While at it, move the "nobranch=1" parameter to the GIT_URI variable, since
we're putting all other git parameters there, anyway. Also, remove the "branch"
parameter because it isn't needed in this case.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2023-04-17 17:51:03 +02:00
Javier Viguera 7581e76560 nativesdk-packagegroup-sdk-host: add requirementes to build optee-os
Building optee-os with a Yocto generated SDK, fails due to those missing
packages.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-04-17 12:37:32 +02:00
Javier Viguera 167678edac python3-pyelftools: allow to build for nativesdk
This is a requirement to build optee-os with a Yocto generated SDK.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-04-17 12:30:26 +02:00
Hector Palacios 222a91f213 libubootenv: add fall-back function to read HWID from nvmem
The HWID is populated on the device tree by the boot loader.
This can be used as a key modifier when encrypting the U-Boot
environment. Some old U-Boot versions however, did not populate
the HWID on the device tree. When updating firmware from an
old version to a new one, the library may not be able to read
the HWID from the DT and then be unable to unencrypt the
environment.

This patch implements a fall-back function to read the HWID
directly from the nvmem node (sysfs). Implementation has been
done for ccimx6 family only, where this case of old U-Boot
can happen.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://onedigi.atlassian.net/browse/DEL-8444
2023-04-17 08:48:52 +02:00
Gabriel Valcazar 7a77130550 imx-digi-base: add dummy MULTIUBI_BUILD value to fix Vigiles builds
Commit 32dd3d59c250f916115b339c29aa4dbfe50a3235 in poky breaks i.MX platform
builds when "vigiles" is inherited. While we wait for a fix in the community,
work around this issue by setting a dummy default value in the MULTIUBI_BUILD
variable.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2023-04-11 17:25:00 +02:00
Hector Bujanda b3bd2014d4 ccx: fix some outdated files so implementation matches 'cctags api’ repository
1)
CcxTagControlData struct in CORE/HDD/inc/CcxTagDefs.h had some fields missing compared
with 'cctags api’ which was producing CCX_TAG_DRVR_RSP_ERR_CTRL_SIZE.

2)
Then CCX_TAG_DRVR_RSP_ERR_PACKET_SIZE aroused because following paddings:
	CCX_TAG_MPDU_HEADER_PAD_SIZE = 2
	CCX_TAG_CONTENT_HEADER_PAD_SIZE = 3
where producing wrong alignements and sizes between the 'cctags api’ and the driver.

With changes in this commit, master branch of ‘CCxTagTest’ repository compiled
out of source code gets on well with 'cctags api’ repository and with qca driver in
both dey-2.4 and dey4.0.
Packets in the air match 100% in content in both dey-2.4 and dey4.0.

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

Signed-off-by: Hector Bujanda <hector.bujanda@digi.com>
2023-04-11 12:59:52 +02:00
Javier Viguera 951789093f meta-digi-dey: remove dead code (udev-cache)
This was removed from Poky long ago:

https://git.yoctoproject.org/poky/commit/?id=44f550f392e231b7fbd1e29da3f59d6c9dd7f472

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-04-03 18:39:35 +02:00
Javier Viguera 1d793ac4aa dey-image-installer: add USB driver installation script for ccimx93
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-04-03 18:39:35 +02:00
Javier Viguera 0f2f513f8b ccimx93: add more device tree overlays
Second ethernet and MikroE click board overlays.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-04-03 18:39:35 +02:00