Commit Graph

753 Commits

Author SHA1 Message Date
Arturo Buzarra 7fb5205e73 meta-digi: revert revisions to AUTOREV
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2024-01-30 16:52:26 +01:00
Arturo Buzarra 04a00b2bd0 meta-digi: update revisions for dey-4.0-r5.1
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2024-01-30 16:51:33 +01:00
Arturo Buzarra 62fa660d05 Merge branch 'dey-4.0/master' into dey-4.0/maint
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2024-01-19 11:46:55 +01:00
Hector Palacios 9248c9ab79 cc93 wlan: fix the check for Wi-Fi module correctly loaded
The result of the modprobe operation doesn't guarantee the driver loaded
correctly. The module may succeed and be loaded, but failures during the
probe may not propagate and result in an error of modprobe.
The valid condition is to check the existence of the interface in
/sys/class/net/wlan0.

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

https://onedigi.atlassian.net/browse/DEL-8821
2024-01-10 09:34:57 +01:00
Isaac Hermida 925b618e63 linux-dey: update to NXP's lf-6.1.55-2.2.0 release for ccimx93
Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2023-12-21 17:57:16 +01:00
Gabriel Valcazar bfbe078a3f linux-dey: ccmp1: rework defconfig logic to avoid using defualt defconfig
Commit d3f3cfdb62 removed the inclusion of STM's
linux-stm32mp.inc from meta-st-stm32mp in our linux-dey recipe, but this
inadvertently removed the logic in do_configure() necessary to use our custom
ccmp1_defconfig. Since this commit, the kernel was being built with the default
ARM defconfig, which is very different from our custom defconfig and doesn't
even boot on MP1 platforms.

Rework the logic used to copy our platform's defconfigs to prevent this.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2023-12-15 10:50:29 +01:00
Hector Palacios d3f3cfdb62 ccmp1: remove dependencies from kernel include file from meta-st-stm32mp
An anonymous function in linux-stm32mp.inc produces a bbfatal error when
KERNEL_DEVICETREE variable contains more than one device tree. This is our
case since we build the main DT plus a number of DT overlays.
This commit removes the dependency to this include file since we have our
own recipe to build the kernel and it is not needed at all.
It also removes the build of a uImage and the need to provide a
LOADADDR.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2023-11-28 12:53:30 +01:00
Mike Engel df9b1cf329 ccmp1: add signed FIT image support
This commit adds signed FIT image support for the CCMP1
platforms when using Trustfence.

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

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2023-10-30 12:58:19 +01:00
Isaac Hermida 2b18573007 kernel-module-nxp: update to NXP's lf-6.1.36-2.1.0 release for ccimx93
Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2023-10-19 08:25:47 +02:00
Isaac Hermida 165c56cc1d linux-dey: update to NXP's lf-6.1.36-2.1.0 release for ccimx93
Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2023-10-19 08:25:47 +02: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
Javier Viguera f1bdbe74c8 trustfence: decouple signing external artifacts
Some platforms do not support signing external artifacts (kernel, dtb,
etc.) yet, so we need to decouple the signing of the bootloader from the
signing of the external artifacts.

This commit generalizes the code, so instead of having platform exceptions
scattered along the recipes, we create a new variable used conditionally
to sign or not the external artifacts.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-09-25 14:23:40 +02:00
Francisco Gil ff071a17be meta-digi: revert revisions to AUTOREV
Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2023-09-15 16:42:58 +02:00
Francisco Gil c7b6a9d637 meta-digi: update revisions for dey-4.0-r4.1
Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2023-09-15 16:41:49 +02:00
Arturo Buzarra 386a97590f switch to building from maintenance branches for dey-4.0-r4
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-09-08 10:33:34 +02:00
Arturo Buzarra 8db6c71a95 Merge branch 'dey-4.0/master' into dey-4.0/maint
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-09-08 10:33:10 +02:00
Gabriel Valcazar 6dfbab7e17 linux-dey-5.15: use v5.15.118/stm/master branch for STM-based products
This branch contains the latest BSP changes from STM's v5.15-stm32mp-r2.1
release.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2023-08-21 13:00:05 +02:00
Isaac Hermida 87ebf1f15d kernel-module-nxp-wlan: fix HE Rate Index warning
Translate the enum between FW and Driver to avoid a kernel index warning.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2023-08-01 18:56:54 +02:00
Isaac Hermida 57048f9177 kernel-module-nxp-wlan: adjust expected FW file.
Do not load the combo FW but only the FW for the SD (WiFI).

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2023-08-01 18:54:00 +02:00
Isaac Hermida c91b6219e9 linux-dey: blacklist btnxpuart module
The btnxpuart driver is used for the bluetooth chip. We want to control
when to load and unload it, and when power/unpower the chip.
Therefore, blacklist it, so we can manage it in our scripts.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2023-08-01 18:54:00 +02:00
Javier Viguera 563bc3e65d linux-dey: update branch for version 6.1 recipe
New development branch is 'v6.1.22/nxp/master' after merging NXP's
'lf-6.1.22-2.0.0' release.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-07-07 12:22:55 +02:00
Gabriel Valcazar e35ff312e3 linux-dey-5.15: add support for ccimx8x
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2023-06-29 16:24:29 +02:00
Javier Viguera 4e4151fdb3 linux-dey: add recipe for version 6.1
Also move ccimx93 compatibility to the new version.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-06-20 13:42:33 +02:00
Javier Viguera 63b7e03574 linux-dey: no functional change, abstract more code to include file
The only user of 'linux-dey-src.inc' was the linux recipe itself, so
instead rename that file to a more generic 'linux-dey.inc' and include
more common code in that renamed file.

This is in preparation for the new linux 6.1.1 recipe for the ccimx93.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-06-20 13:42:33 +02:00
Gabriel Valcazar d2ec905166 dtc: backport patch to fix gcc11 compilation error
We still need to use this downgraded version of dtc to be able to build
U-Boot v2017.03, so backport this patch to be able to build dtc with the latest
version of gcc

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2023-06-06 10:26:41 +02:00
Gabriel Valcazar c0ef35cd95 linux-dey: add support for ccimx6/ccimx6qp
Like in the ccimx6ul, don't add the flag to build device tree overlays.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2023-06-06 10:26:41 +02:00
Arturo Buzarra e679d3821d meta-digi: revert revisions to AUTOREV
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-05-17 15:34:53 +02:00
Arturo Buzarra 04f8e54400 meta-digi: update revisions for dey-4.0-r3.2
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-05-17 15:30:24 +02:00
Arturo Buzarra e45edb7f56 meta-digi: revert revisions to AUTOREV 2023-05-11 23:10:41 +02:00
Arturo Buzarra d780711b17 meta-digi: update revisions for dey-4.0-r3.1
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-05-11 22:58:31 +02:00
Hector Palacios e600597024 Merge branch 'dey-4.0/master' into dey-4.0/maint
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2023-05-11 13:19:32 +02:00
Hector Palacios fa1c877758 trustfence: image_types: do not sign artifacts for STM platforms
For the moment, do not sign aditional artifacts, such as the ramdisk,
the kernel or the boot scripts for STM platforms.

In the specific case of the ramdisk, simply copy it over with the
expected filename extension.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2023-05-10 17:33:23 +02:00
Hector Palacios 9b165196bb global: create DIGI_SOM variable and reformulate DIGI_FAMILY variable
Certain platforms share a processor family but need to be differentiated
between them. DEY was using the variable DIGI_FAMILY as the SOM name
rather than the family. It becomes useful to have both (DIGI_SOM as the
more specific, and DIGI_FAMILY as the more generic).

This is the case, for example, of:

- ccmp1 (family)
  - ccmp15 (SOM)
  - ccmp13 (SOM)
- ccimx8m (family)
  - ccimx8mm (SOM)
  - ccimx8mn (SOM)

Both variables are used on the machine overrides.
Where DIGI_FAMILY was used, use now DIGI_SOM.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2023-05-10 17:33:23 +02:00
Hector Palacios 56f323044c global: rename DEY_BUILD_PLATFORM to DEY_SOC_VENDOR
The name of the variable was not very intuitive of what
it contains. This variable expands to the SoC vendor
(NXP or STM).

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2023-05-10 17:33:23 +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
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 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
Isaac Hermida 38831535fb ccimx93: iw612: add WiFi support
https://onedigi.atlassian.net/browse/DEL-8346

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2023-03-27 16:34:06 +02:00
Isaac Hermida 4200b2f06a add nxp-wlan-sdk and kernel-module-nxp-wlan NXP verbatim copies
add a verbatim copy of those recipes as they are provided by nxp in langdale-6.1.1-1.0.0

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2023-03-27 12:53:40 +02:00
Isaac Hermida c30b947408 kernel-module-qualcomm: add script to load the wlan module
In rare cases, the wlan module may fail to load. In this scenario, forcing the
MMC driver to rebind the interface resolves the issue, making the WLAN module
load more reliably.
This only affects to modules where the qca chip is connected through the
MMC interface.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2023-03-22 10:46:19 +01:00
Francisco Gil 27414d3420 meta-digi: revert revisions to AUTOREV
Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2023-03-10 15:48:01 +01:00
Francisco Gil b59f31c114 meta-digi: update revisions for dey-4.0-r2.2
Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2023-03-10 15:46:34 +01:00
Arturo Buzarra 358a7cc414 meta-digi: revert revisions to AUTOREV
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-03-08 18:59:27 +01:00
Arturo Buzarra de3ba53ef3 meta-digi: update revisions for dey-4.0-r2.1
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-03-08 18:58:58 +01:00
Arturo Buzarra aae03774ab Merge branch 'dey-4.0/master' into dey-4.0/maint 2023-02-27 16:34:53 +01:00
Javier Viguera ad788b1d32 linux-dey: do not generate symbols on ccimx6ul dtbs
Symbols are needed for DTB overlays. In the CC6UL we are not using
overlays, so disable symbols generation.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-02-24 15:50:08 +01:00
Isaac Hermida 03eb84c61e remove cryptodev support
The SW encryption is much faster than decicated HW in our platforms.
The HW encryption is limited to the use of CAAM which is used through
blob calls, therefore the cryptodev module is not required.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2023-02-24 14:29:48 +01:00
Javier Viguera f8d5d63fcd linux-dey: add ccimx8m compatibility with kernel version 5.15
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-01-03 10:45:53 +01:00
Mike Engel 385884473e linux: update kernel master version
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-12-22 09:28:21 +01:00
Javier Viguera 84aaa4e4e6 linux-dey: use branch v5.15.71/nxp/master for NXP based platforms
Also enable recipe for ccimx93, and pass the correct DTC flags to create
overlays capable DTBs.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-12-20 14:50:54 +01:00
Arturo Buzarra 93a4dd2db5 meta-digi: revert revisions to AUTOREV
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-11-29 16:35:27 +01:00
Arturo Buzarra 2ca5dfe31e meta-digi: update revisions for dey-4.0-r1.2
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-11-29 16:34:56 +01:00
Arturo Buzarra 0efbb07107 meta-digi: branch to dey-4.0/maint
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-11-21 17:44:48 +01:00
Javier Viguera df572d0ef3 meta-digi: delete linux 5.4 recipe
No supported platform is using kernel version 5.4.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-11-08 14:20:51 +01:00
Isaac Hermida c7f2960b4e meta-digi: revert revisions to AUTOREV
Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2022-11-04 12:38:21 +01:00
Isaac Hermida dad34f1006 meta-digi: update revisions for dey-4.0-r1.1
Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2022-11-03 18:21:46 +01:00
Javier Viguera 46150cf07e linux-dey: use branch v5.15.52/nxp/master
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-10-13 18:16:07 +02:00
Isaac Hermida 877e501076 meta-digi: revert revisions to AUTOREV
Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2022-10-04 17:03:57 +02:00
Isaac Hermida 5209a3db06 meta-digi: update revisions for dey-4.0-r1.beta2
Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2022-10-04 14:26:53 +02:00
Isaac Hermida 29b008b790 qualcomm wifi: conditionally support using firmware with CCX tags
Co-authored-by: Javier Viguera <javier.viguera@digi.com>

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-09-30 15:28:10 +02:00
Javier Viguera f3fb6e6342 kernel-module-qualcomm: remove wlan kernel module load script
The qualcomm.sh script has been losing functionality over time, to the
point that now is just loading the kernel module using 'modprobe'.

Instead, run modprobe directly from the udev rule and get rid of the
qualcomm script.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-09-30 14:47:02 +02:00
Isaac Hermida e6cacdf75b kernel-module-qualcomm: fixes after reverting to qcacld-2.0
Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-09-30 14:47:02 +02:00
Isaac Hermida 7493637f2e kernel-module-qualcomm: revert to driver qcacld-2.0
Verbatim copy of the recipes in DEY-3.2, using command:
git restore -s dey-3.2/master -- meta-digi-arm/recipes-kernel/kernel-module-qualcomm

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-09-29 13:21:00 +02:00
Arturo Buzarra 0380161f02 meta-digi: generalize recipes to support ConnectCore MP13 DVK platform
https://onedigi.atlassian.net/browse/DEL-8078

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-09-15 16:14:30 +02:00
Javier Viguera cbed92ccbb linux-dey: add SRCREV override for STM platforms
For development this would not be needed as it points to AUTOREV, but
for releases we need to specify the SHA1 revision, and this recipe
builds two different branches (for NXP and STM platforms), so we need a
place to define two different revisions.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-09-07 18:32:33 +02:00
Javier Viguera f5964b0f97 meta-digi: revert revisions to AUTOREV
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-09-02 17:37:46 +02:00
Javier Viguera 33c7d69b3e meta-digi: update revisions for dey-4.0-r1.beta1
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-09-02 17:34:14 +02:00
Isaac Hermida 548efe4f6f kernel-module-qualcomm: use siocdevprivate for privates ioctls
Fix the way to register custom ioctls for kernel 5.15+.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2022-08-18 11:43:42 +02:00
Javier Viguera d4f4b40abd kernel-module-qualcomm: remove wlan kernel module load script
The qualcomm.sh script has been losing functionality over time, to the
point that now is just loading the kernel module using 'modprobe'.

Instead, run modprobe directly from the udev rule and get rid of the
qualcomm script.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-08-12 11:45:02 +02:00
Javier Viguera cea7ab0501 linux-dey: move SRCREV to actual versioned recipes
The SRCREV may change depending on the version of the kernel, so it
cannot be a common variable for all kernel versions.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-08-10 18:04:52 +02:00
Javier Viguera 34e90d6d72 linux-dey: remove 5.10 recipe
No platform is using this version of the kernel.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-08-10 18:04:22 +02:00
Javier Viguera b00450d8dd linux-dey: get rid of LOG kernel mirror
Use the canonical Stash repository to avoid synchronization problems
between the repo and the mirror.

Moreover the LOG mirror is hosted in an old VM machine with limited
specs, and although the transfer of the objects is faster, the counting
of the objects to transfer (which is done in the server) takes ages to
complete, so at the end, there is no time gain using the mirror.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-08-10 18:03:52 +02:00
Javier Viguera 482339617b linux-dey: fix kernel build configuration
Commit 8cba3aaefb in 'meta-freescale' changed the kernel_localversion
function we are using in our kernel recipe. This leads to a not-properly
configured kernel build, where CONFIG_MODULES is disabled. That
config option is needed to build external kernel modules in other
recipes, so those recipes (kernel-module-qualcomm, cryptodev-module,
etc) fail to build.

The commit makes sure the kernel is properly configured for building by
extending the do_configure function in a "prepend".

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-08-08 15:36:25 +02:00
Javier Viguera 3c554bbbc2 meta-digi: revert revisions to AUTOREV
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-07-21 15:49:22 +02:00
Javier Viguera 29124cd33f meta-digi: update revisions for dey-4.0-r1.alpha1
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-07-21 15:49:22 +02:00
Isaac Hermida 4c2a524d6e kernel-module-qualcomm: fix sdio unload error
https://onedigi.atlassian.net/browse/DEL-7986

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2022-07-18 16:57:55 +02:00
Javier Viguera 90b3c244da meta-digi: do not install kernel image in rootfs
It's just a waste of space as we already have the kernel image in the
'linux' partition and that gets mounted under /mnt/linux.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-07-08 13:23:58 +02:00
Arturo Buzarra 9a2eb7ea5f linux-dey: add ConnectCore MP15 support to kernel v5.15
https://onedigi.atlassian.net/browse/DEL-7981

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-07-04 16:56:41 +02:00
Isaac Hermida b54922a9b9 kernel-module-qualcomm: p2p and netdev patches
The enable p2p patch add support for enabling p2p as module parameter setting
it by default to false.
The cfg80211 netdevice fixes the registration of virtual interfaces for kernels
v5.12+.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2022-06-27 09:44:41 +02:00
Javier Viguera c6b55f492f linux-libc-headers: use Poky's default version 5.16
Also, fix the sequence number of the GPIO_SET_DEBOUNCE_IOCTL ioctl. Same
fix has been done in Linux.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-22 15:44:49 +02:00
Javier Viguera 8fbb4d576a kernel-module-qualcomm: fix build with kernel 5.15
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-21 16:52:48 +02:00
Javier Viguera f0b72732fe linux-dey: add recipe for kernel 5.15 (at the moment only for ccimx6ul)
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-21 16:52:48 +02:00
Javier Viguera 8d123d7451 kirkstone migration: delete deprecated or duplicated recipes
Remove deprecated versions of recipes updated in other general layers
(poky, meta-openembedded). Also remove duplicated IMX specific recipes that
are available in other BSP layers (meta-freescale, meta-fsl-demos, etc).

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-21 16:49:56 +02:00
Javier Viguera 2452e85a6b kirkstone migration: cosmetic, clean build warnings
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-21 16:49:56 +02:00
Javier Viguera 18a2a93b02 kirkstone migration: fix kernel-module-qualcomm build
Yocto is becoming more strict on not using tags in the SRCREV, as that
may lead to problems in the different tasks of a bitbake recipe.

As of Yocto 4.0, bitbake errors when such condition happens, with:

"Recipe uses a floating tag/branch without a fixed SRCREV"

So convert the SRCREV of all tags to the proper SHA1 revision.

Also, extend the 'fix-build-issues' to delete '-Werror' from the
compilation flags. Newer versions of GCC (as the one used in Yocto 4.0)
throw more (new) warnings, and the '-Werror' flag was making the build
to fail.

cc1: all warnings being treated as errors
lim_api.c:1057:17: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
lim_admit_control.c:169:17: error: this 'if' clause does not guard... [-Werror=misleading-indentation]

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-21 16:49:56 +02:00
Javier Viguera b68ddc2357 kirkstone migration: update SRC_URI URLs
In 4.0 the branch is mandatory when using git as fetcher in the SRC_URI.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-20 11:39:57 +02:00
Javier Viguera 065cf3e9c4 kirkstone migration: general update to the new override syntax
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-20 11:39:57 +02:00
Arturo Buzarra 52fece587f kernel-module-qualcomm: add support to read the MAC addresses from device tree
This commit adds a patch for the qcacld-3.0 wireless driver to read the
wireless MAC addresses from device tree. This patch is based on the original
commit from qcacld-2.0 driver improving and simplifying the code to work with
the new qcacld-3.0 driver.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-05-19 16:13:30 +02:00
Arturo Buzarra 5bc574a8e9 kernel-module-qualcomm: update recipe to use new qcacld-3.0 Linux wireless driver
This commit updates the Linux wireless driver for Qualcomm's chipset to the
new qcacld-3.0 driver.
This update is based on the release "r10016.1 - Post-CS3 1.0.016.1" from
"qca6574au-le-2-2-1_qca_oem" product branch, which uses for a Linux kernel v5.4
the tag "CHSS.LNX_FSL.5.0-01200-QCA6574AUARMSDIOHZ".

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-05-19 13:36:28 +02:00
Arturo Buzarra 602b884717 linux-dey: fix deploy folder for STM platforms
This commit avoids creating a subfolder for the kernel artifacts, to homogenize
it with the NXP platforms and avoid using custom recipes for the result
artifacts.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-05-10 11:01:08 +02:00
Mike Engel 23d307ca58 linux: move defconfig build commands to kernel common recipe
This commit moves Kernel defconfig build commands into the Linux
common recipe.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel 652341f3b1 linux: fix some build issues and update copyright date
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel 93d956032a linux-fslc: move recipes into dynamic-layers for NXP
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel 1546a79981 linux: add CCMP15 support to build kernel
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel d78d601841 linux: move Trustfence signing into include file to be used by different kernel versions
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Gabriel Valcazar 54ddb775c4 trustfence-sign-artifact.sh: remove CONFIG_SIGN_MODE as a mandatory parameter
The sign mode needed for each platform is invariable, and since the platform
is already a mandatory parameter for the script, we can store this information
implicitly. Reflect this change in every recipe where the script is used, but
keep the variable at the Yocto level since it's still needed in several places.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-03-22 12:47:32 +01:00
Javier Viguera faef4f90d9 linux-dey: rename branch for NXP supported platforms
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-02-22 10:19:49 +01:00
Javier Viguera 946c2fe6cf linux-dey: add recipe for kernel 5.10 (at the moment only for ccimx8mp)
https://onedigi.atlassian.net/browse/DEL-7784

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-02-03 12:00:26 +01:00
Javier Viguera b6137c5d5e linux-dey: move the version specific info to the proper bitbake recipes
The license checksum and the source branch should be on the properly
versioned bitbake recipes. Otherwise, when we include this common file
in a different version linux recipe (for example, the upcoming 5.10) it
will inherit incorrect values.

While on it, fix the incorrect license checksum values for the linux 5.4
recipes.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-02-02 10:34:33 +01:00
Gabriel Valcazar b0ff9ec03a linux-firmware: remove SDMA packages
This makes it so bitbake obtains the SDMA firmware from the firmware-imx recipe
instead.

This also avoids including all of the linux-firmware packages in i.MX6 SDK
builds, preventing errors when building the ccimx6sbc SDK (linux-firmware
provides the community versions of the ath6k and ar3k firmwares, which clash
with our versions).

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-12 17:09:33 +01:00
Gabriel Valcazar 28dedd9050 hardknott: perf: sync with meta-imx hardknott-5.10.72-2.2.0 branch
This package is used by the eIQ recipes, so make sure we have NXP's .bbappend
so it works as expected

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar 903e07ff8f hardknott: linux-imx-headers: sync with meta-imx hardknott-5.10.72-2.2.0 branch
For now, port the new content of the v5.10 recipe to our v5.4 recipe.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar ef85b7d8f4 Merge tag 'dey-3.2-r2.2' into dey-3.2/master
Digi Embedded Yocto 3.2-r2.2

Manually changed recipes to use the master branches instead of the fixed SHA1
from the last release.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-03 11:49:48 +01:00
Gabriel Valcazar 23d067b8b9 meta-digi: update revisions for dey-3.2-r2.2
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-12-09 18:12:40 +01:00
Arturo Buzarra c8c3381ba3 meta-digi: revert revisions to AUTOREV
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-12-02 23:26:47 +01:00
Arturo Buzarra 44ff44680f meta-digi: update revisions for dey-3.2-r2.1
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-12-02 23:26:47 +01:00
Francisco Gil afc61dfb83 wifi: add symbolics links needed by the read only filesystem.
Create this symbolics links in build time instead of doing it
in run-time. This simplifies the system and allows it to work
with read only filesystems.

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2021-11-25 12:39:28 +01:00
Francisco Gil 179d4315ef wireless: mac: create symbolic links for the wireless macs
Before this patch the MAC addresses were read from the device
tree in the qualcomm.sh script executed at init, and a creates
a file where the MAC where located.

In 0a92f5d9e8df644de74e74f152ed6ff3dd8d3369 in the qca driver
the support to read these MAC addresses from the filesystem
was added.

This commits creates the simbolic link between the device tree
and the expected path where the MAC addresses where located, and
gets rid of the file with the MAC addresses.

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2021-11-25 11:38:27 +01:00
Gabriel Valcazar 500cc96394 kernel-module-qualcomm: re-add compatibility with the ccimx6sbc
This change was accidentally reverted when merging to dey-3.2/maint, causing
the qualcomm module to be missing in the rootfs.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-11-17 11:44:14 +01:00
Hector Palacios fe2a1f281e Merge branch 'dey-3.2/master' into dey-3.2/maint
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-11-11 16:23:43 +01:00
Gabriel Valcazar 7ea02c26aa qualcomm: adapt firmware and module recipes to be compatible with the ccimx6sbc
This allows the packages to be included in the ccimx6sbc images. While at it,
include the Qualcomm bluez patches in ccimx6 builds. These patches aren't
destructive, they simply add functionality required by the Qualcomm chip, so
they shouldn't have any secondary effects when using the Atheros chip.

https://onedigi.atlassian.net/browse/DEL-7661
https://onedigi.atlassian.net/browse/DEL-7666

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-11-03 15:58:53 +01:00
Hector Palacios 2e35d16e03 linux-dey: fix apply of kernel configuration fragments
- Add the '-m' parameter. Without it, the script doesn't
  generate the output merged configuration file, and the
  fragments are not applied.
- Fix the if condition. The '*.cfg' expands to a list of
  files, but the '-f' only admits one parameter. Use instead
  the Python find_cfgs() function.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-10-15 19:14:27 +02:00
Gabriel Valcazar 32a39c7910 linux-dey: add support for configuration fragments
This allows users to apply small changes to our kernel configuration without
having to create a completely new defconfig. Use a simplified version of the
kernel-yocto.bbclass implementation.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-09-15 10:16:28 +02:00
Hector Palacios c33fc8a7fe uboot/linux: fix build from internal MTK Digi git server
Enabling DIGI_INTERNAL_GIT defaults to LOG server. The build from local
MTK Digi server was broken.

Fix uboot and linux recipes declaring different repo paths depending on
whether the local remote is LOG or MTK.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-09-09 17:38:44 +02:00
Hector Palacios 9352fc1395 digi: [cosmetic] remove final slash from Digi remotes and move it to recipes
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-09-07 11:01:29 +02:00
Gonzalo Ruiz 0e2e09044e meta-digi: revert revisions to AUTOREV
Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2021-07-07 12:56:23 +02:00
Gonzalo Ruiz aa92d2d13a meta-digi: update revisions for dey-3.2-r1.2
Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2021-07-07 12:56:23 +02:00
Gonzalo Ruiz 95c8629cba meta-digi: revert revisions to AUTOREV
Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2021-07-02 14:42:26 +02:00
Gonzalo Ruiz d98487a309 meta-digi: update revisions for dey-3.2-r1.1
Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2021-07-02 14:42:09 +02:00
Hector Palacios f2286f3d26 meta-digi: branch to dey-3.2/maint
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-06-07 12:56:58 +02:00
Arturo Buzarra eaa09c940b dtc: backport patch to fix build with GCC v10 on DTC v1.4.5
This commit backports a patch to fix the following build issue with
the GCC v10:
    dtc-parser.tab.c:1069: multiple definition of `yylloc'

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-05-06 15:46:18 +02:00
Arturo Buzarra 526a0fbcc6 gatesgarth migration: linux-dey: fix do_kernel_localversion() task dependency
Commit ffeb0556("classes: fsl-kernel-localversion: Fix task dependency") in
meta-freescale layer fixes a task dependency issue, so do_preconfigure() was
renamed to do_kernel_localversion().

https://jira.digi.com/browse/DEL-7508

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-05-05 19:18:11 +02:00
Mike Engel fa801e1e9f linux: Update kernel sources to new master
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2021-02-09 16:25:07 +01:00
Hector Bujanda b0e535b28c change recipes to build from 'master' branches
Signed-off-by: Hector Bujanda <hector.bujanda@digi.com>
2021-01-26 11:51:11 +01:00
Arturo Buzarra 61497fb2dd meta-digi: revert revisions to AUTOREV
This reverts commit bc843e239d.
2021-01-21 12:57:49 +01:00
Arturo Buzarra bc843e239d meta-digi: update revisions for dey-3.0-r3.2
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-01-21 12:56:46 +01:00
Arturo Buzarra de2e9e40ad meta-digi: revert revisions to AUTOREV
This reverts commit c22e8faf90.
2021-01-18 18:37:09 +01:00
Arturo Buzarra c22e8faf90 meta-digi: update revisions for dey-3.0-r3.1
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-01-18 18:30:50 +01:00
Gabriel Valcazar e0055ce0cb Merge branch 'dey-3.0/master' into dey-3.0/maint
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-12-28 12:28:39 +01:00
Hector Bujanda 06755b1e7c recipes-kernel: Switch to kernel v5.4.47
Signed-off-by: Hector Bujanda <Hector.Bujanda@digi.com>
2020-11-02 22:07:35 +01:00
Hector Palacios 7eaa7670a7 change recipes to build from 'master' branches
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-10-29 12:29:48 +01:00
Hector Palacios 51319426f8 meta-digi: revert revisions to AUTOREV
This reverts commit 4dfdf2d435.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-10-23 13:09:52 +02:00
Hector Palacios 4dfdf2d435 meta-digi: update revisions for dey-3.0-r2.4
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-10-23 13:09:44 +02:00
Hector Palacios a64005482b meta-digi: revert revisions to AUTOREV
This reverts commit 3a299682aa.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-10-22 16:14:30 +02:00
Hector Palacios 3a299682aa meta-digi: update revisions for dey-3.0-r2.3
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-10-22 16:14:30 +02:00
Hector Palacios 5a8b929694 meta-digi: revert revisions to AUTOREV
This reverts commit e1129bc8e4.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-10-20 17:15:59 +02:00
Hector Palacios e1129bc8e4 meta-digi: update revisions for dey-3.0-r2.2
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-10-20 17:15:59 +02:00
Hector Palacios fb3c7d5e3f meta-digi: revert revisions to AUTOREV
This reverts commit 76ec96632760fd3ee6113a74b8363a688edf99c3.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-10-08 16:37:51 +02:00
Hector Palacios 519b924f12 meta-digi: update revisions for dey-3.0-r2.1
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-10-08 16:37:51 +02:00
Gabriel Valcazar f8f8228d67 recipes-kernel: use Linux v5.4 on the ccimx6/6qp
Remove all v4.9 recipes and build Linux using the same branch on all platforms.
The .inc files were only needed because of the existence of multiple Linux
versions, but that's not the case anymore, so remove them.

https://jira.digi.com/browse/DEL-7221

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-09-16 16:09:03 +02:00
Hector Palacios 27be059de4 digi: switch recipes to maint branches
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-09-16 10:48:08 +02:00
Hector Palacios 9935120fe4 linux-dey: change master branch to newest BSP v5.4.24/master
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-07-09 11:31:20 +02:00
Hector Palacios e56f201a57 Merge branch 'dey-3.0/maint' into 'dey-3.0/master'
Merge at commit right after 'dey-3.0-r1.3'.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-06-29 16:41:36 +02:00
Gabriel Valcazar 332438f5b7 meta-digi: revert revisions to AUTOREV 2020-06-25 13:08:41 +02:00
Gabriel Valcazar 5ebc893b58 meta-digi: update revisions for dey-3.0-r1.3
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-06-25 12:15:52 +02:00
Arturo Buzarra d36bce0ee4 meta-digi: revert revisions to AUTOREV 2020-06-22 17:37:52 +02:00
Arturo Buzarra a75b801e1e meta-digi: update revisions for dey-3.0-r1.2
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-06-22 17:32:28 +02:00
Arturo Buzarra b793b3faae meta-digi: revert revisions to AUTOREV 2020-06-16 18:02:42 +02:00
Arturo Buzarra bd8955cd45 meta-digi: update revisions for dey-3.0-r1.1
https://jira.digi.com/browse/DEL-7120

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-06-16 17:49:11 +02:00
Gonzalo Ruiz 38d95cf361 trustfence: add support to sign/encrypt DTB overlays
https://jira.digi.com/browse/DEL-7024

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2020-06-04 19:01:34 +02:00