Commit Graph

495 Commits

Author SHA1 Message Date
Arturo Buzarra 5a8cb53d20 zeus migration: linux-dey: update linux kernel to v5.4
Remove support to kernel v4.14 and move platforms to use the new
kernel v5.4

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-05-04 15:09:37 +02:00
Arturo Buzarra 5a08a810a2 zeus migration: linux-dey: fix build with old kernel version 4.14
https://jira.digi.com/browse/DEL-7013

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-04-28 11:30:26 +02:00
Arturo Buzarra ea274c13fb zeus migration: reuse linux-imx-headers recipe from upstream
In meta-freescale was renamed the linux-imx-headers recipe with the
full linux kernel version "4.14.98". With that change our custom
recipe from meta-digi is not selected. This commit reuses the recipe
from meta-freescale layer and modifies it.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-04-27 16:01:07 +02:00
Hector Bujanda f3bf3c7504 linux-libc-headers: patch SDK gpio.h file with Digi debounce IOCTL
Digi customized linux kernel gpio.h file to allow debounce functionality by the
user space through the character device.
This commit patches the default gpio.h file that is used to generate the SDK
(which comes from kernel 4.18) with Digi debounce additions.

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

Signed-off-by: Hector Bujanda <hector.bujanda@digi.com>
2020-04-21 16:18:46 +02:00
Mike Engel 4ce67dac48 Merge tag 'dey-2.6-r3.1' into dey-2.6/master
Digi Embedded Yocto 2.6-r3.1

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

Signed-off-by: Mike Engel <mike.engel@digi.com>
2020-02-20 12:02:26 +01:00
Arturo Buzarra 1830798025 meta-digi: update revisions for dey-2.6-r3.1
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-02-13 16:26:45 +01:00
Mike Engel e648d9a142 trustfence: Add dependency to include imx-mkimage package.
This commit adds some dependencies to include the imx-mkimage package
that is needed to use the mkimage_imx8 tool.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-02-12 18:50:19 +01:00
Mike Engel 826ca9b63d trustfence: Export variables that are needed by sign tools.
This commit exports variables that are needed by the sign tools to
select the target HAB.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-02-12 18:50:19 +01:00
Hector Palacios 8320168821 trustfence: homogenize SIGN_MODE variables
* prefix TRUSTFENCE_ to variable SIGN_MODE for DEY
* prefix CONFIG_ to variable SIGN_MODE for script

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-02-12 18:50:19 +01:00
Arturo Buzarra 6b51679751 switch to building from maintenance branches for dey-2.6-r3
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-02-06 17:14:35 +01:00
Arturo Buzarra 8185f8e884 Merge branch 'dey-2.6/master' into dey-2.6/maint
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-02-06 17:14:17 +01:00
Mike Engel 5beec04b6a trustfence: Add Trustfence support for CCMX8X
This commit adds Trustfence support for the CCMX8X
platform.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>

https://jira.digi.com/browse/DEL-6917
2020-02-04 12:20:38 +01:00
Gonzalo Ruiz a8b3a130b7 qualcomm.sh: remove regulatory domain support
Regulatory domain support will be added completely with the 'regulatory-addon'.

Also simplify symlink management now that BDF file has the same name for
every platform.

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

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2020-01-27 16:00:21 +01:00
Francisco Gil f1d994bdc2 qca: update wireless driver
Update the wireless driver to a newer version that supports both
chips (qca6574 and qca6564).

We keep the same bdwlan30_US.bin files as the previous version
of the driver (or fakeboard_US for the qca6474).

Rename directories to qca65X4_driver_interface.

We have used the files from the following repo:
qca6574au-le-2-2-2_qca_oem -> 4d29c6886f2Commit label r00005.1
- CS2.2 0.0.005.1

md5sum
----------------------------------------------------------
qca65X4_pcie:	otp30.bin   ->	9d1cf03473904bd8b97fa30bc92b4a16
		qwlan30.bin ->	794f7a6f12ef3e6f8db6257b3a6f896f
		utf30.bin   ->	41cfb4e50613cd0eeb0fa99a005131bd
qca65X4_sdio:   otp30.bin   ->	e018e7b629b055dc4616c7e88c615b41
		qwlan30.bin ->	fe37bc043132ecf21e504eb33f46b846
		utf30.bin   ->	4743dee015047752e433e69f4db89974

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

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2020-01-20 08:51:10 +01:00
Arturo Buzarra fce4f44e68 kernel-module-qualcomm: add support for ccimx8mn platform
https://jira.digi.com/browse/DEL-6806

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-01-10 12:09:25 +01:00
Arturo Buzarra d53a6adb43 linux: add support for ccimx8mn platform
https://jira.digi.com/browse/DEL-6806

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-01-10 11:41:09 +01:00
Gonzalo Ruiz 0692252b88 qualcomm.sh: remount filesystem as 'rw' to create symlinks
Also remount the root filesystem as 'rw' when the symlinks need to be
updated.

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

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2019-12-13 10:45:19 +01:00
Gonzalo Ruiz b242ee1a93 qualcomm.sh: get mount point to remount from /proc/mounts
Obtain the mount point of the filesystem to remount as 'read-write' from
/proc/mounts to avoid issues related to df output wrapping on a second line
when the device filesystem name is too long.

When the script finishes, remount the filesystem as 'read-only' if that was
the original access permission.

https://jira.digi.com/browse/DEL-6760
https://jira.digi.com/browse/DEL-5854

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2019-12-13 10:45:19 +01:00
Gonzalo Ruiz 224c4fc418 qualcomm.sh: generalize to select correct board data file
Generalize script to select the correct board data file to load into the
wireless chip depending on the Regulatory Domain configuration whether it
is a variation of 'bdwlan30.bin' or 'fakeboar.bin'.

If 'bdwlan30_US.bin' or 'bdwlan30_World.bin' files are found in the firmware
directory, the script will create two symlinks, 'bdwlan30.bin and 'utfbd30.bin',
pointing to either one of those files.

If no 'bdwlan30_*.bin' files are found, but 'fakeboar_US.bin' or
'fakeboar_World.bin' is, it will create a single symlink, 'fakeboar.bin',
pointing to either one of those files. In the case a QCA6574 community driver
is loaded, 'board.bin' symlink will be updated.

If no 'fakeboard_*.bin' files are found either, the script will exit.

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

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2019-10-10 16:15:12 +02:00
Gonzalo Ruiz 440c3a953a qualcomm.sh: generalize to select correct board data file
Generalize script to select the correct board data file to load into the
wireless chip depending on the Regulatory Domain configuration whether it
is a variation of 'bdwlan30.bin' or 'fakeboar.bin'.

If 'bdwlan30_US.bin' or 'bdwlan30_World.bin' files are found in the firmware
directory, the script will create two symlinks, 'bdwlan30.bin and 'utfbd30.bin',
pointing to either one of those files.

If no 'bdwlan30_*.bin' files are found, but 'fakeboar_US.bin' or
'fakeboar_World.bin' is, it will create a single symlink, 'fakeboar.bin',
pointing to either one of those files. In the case a QCA6574 community driver
is loaded, 'board.bin' symlink will be updated.

If no 'fakeboard_*.bin' files are found either, the script will exit.

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

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2019-10-02 17:32:04 +02:00
Hector Palacios c34dcb2c74 meta-digi: revert revisions to AUTOREV
This reverts commit 750c18b99590430d7a12fe78db1c0c21942eb60c.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2019-09-26 18:16:54 +02:00
Hector Palacios 3affba5848 meta-digi: update revisions for dey-2.6-r2.2
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2019-09-26 18:15:46 +02:00
Hector Palacios 3e5c2eb1bf meta-digi: revert revisions to AUTOREV
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2019-09-13 18:36:20 +02:00
Hector Palacios 3b2f226b60 meta-digi: update revisions for dey-2.6-r2.1
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2019-09-13 18:35:13 +02:00
Hector Palacios e09c58f85b Merge branch 'dey-2.6/master' into dey-2.6/maint
Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-6640
2019-09-03 13:17:56 +02:00
Hector Palacios c586b05bd2 kernel-module-qualcomm: fix printing of error message
Error message was being printed upon successful copy of the
MAC addresses file, instead of upon failure.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2019-09-03 08:19:57 +02:00
Gabriel Valcazar 9047e00bf1 Use https protocol instead of git protocol when fetching from github
Otherwise, users that are behind corporate firewalls might not be able to
obtain the package sources.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-08-26 15:52:53 +02:00
Jose Diaz de Grenu 797f9dc357 qualcomm.sh: remount as writteable if '/' is ro
On some scenarios, like when booting from NFS, the root filesystem is not
writteable. When this happens the qualcomm.sh is not able to write the MAC
file which so the wireless driver fails to load.

The arguments that U-Boot uses when booting from NFS using dboot result in
the root filesystem being mounted as read-only, but at some point it is
remounted as read/write. This happens after trying to load the wireless
driver, though.

Currently this is the only scenario in which we can reproduce the problem,
and there are several other processes in DEY that require a writeable root
filesystem (wireless SSID editing, Dropbear SSH key-gen and u-boot-fw-utils)
so remount the rootfs as writteable as a workaround.

While on it improve the script a bit to notify on error trying to create
this file, just in case this happens in other scenarios.

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

Signed-off-by: Jose Diaz de Grenu <Jose.DiazdeGrenu@digi.com>
2019-08-14 16:49:21 +02:00
Jose Diaz de Grenu 1e5cd9685c linux-virtualization: enable only required symbols
All the dependencies of the required symbols are also added.

These are easier to mantain and enable the minimum support. If extra
features are required they shuold be explicitly added.

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

Signed-off-by: Jose Diaz de Grenu <Jose.DiazdeGrenu@digi.com>
2019-07-29 11:24:33 +02:00
Jose Diaz de Grenu a1e25003ec linux-dey: add docker kernel configuration support
When using virtualization, ammend the kernel configuration so that docker
is supported.

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

Signed-off-by: Jose Diaz de Grenu <Jose.DiazdeGrenu@digi.com>
2019-07-23 09:43:18 +02:00
Gabriel Valcazar d2688a89ec linux: use proper version numbers for platforms still using v4.9
Even though our ccimx6 and ccimx6qp images were using Linux v4.9 sources
correctly, they were using the same recipe as our images with Linux v4.14.
Technically, both recipes are identical (save for the branch name), but each
Linux version should have its own recipe.

Also, make sure that ccimx6/ccimx6qp images are built with our version of the
linux-imx-headers recipe instead of the one in meta-freescale.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-06-06 14:14:27 +02:00
Hector Palacios d60d5cc980 kernel-module-qualcomm: generalize for both qca6564 and qca6574 models
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2019-06-05 10:56:47 +02:00
Hector Palacios 80b8fc8be4 kernel-module-qualcomm: don't run if 'wireless' node missing on DT
We want to run the script if the 'wireless' node exits on the device tree.
This is to facilitate disabling of the wireless by removing that node.

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

https://jira.digi.com/browse/DEL-6616
2019-06-05 10:56:47 +02:00
Javier Viguera a4d931bf84 qualcomm: remove hardcoded enable_p2p=0 parameter
P2P disabled is the default in the kernel module, so passing here the
parameter to 'modprobe' does nothing but prevents to set the parameter
in the kernel command line.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2019-05-17 09:38:24 +02:00
Javier Viguera af904677c6 qualcomm: remove hardcoded enable_p2p=0 parameter
P2P disabled is the default in the kernel module, so passing here the
parameter to 'modprobe' does nothing but prevents to set the parameter
in the kernel command line.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2019-05-16 10:12:51 +02:00
Gabriel Valcazar 3a68b7a880 linux-dey: update branch name
The new development branch is based on NXP's v4.14.98 BSP.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-05-15 13:06:10 +02:00
Gabriel Valcazar 09677a6a52 linux: add new linux-imx-headers recipe
This recipe's package is meant for packages that require NXP-specific linux
headers.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-05-15 10:34:58 +02:00
Gabriel Valcazar 363895aa03 linux: use v4.9 branch for ccimx6/ccimx6qp
https://jira.digi.com/browse/DEL-6565

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-05-06 17:57:59 +02:00
Arturo Buzarra 21b09d616d Merge tag 'dey-2.6-r1.3' into dey-2.6/master
Digi Embedded Yocto 2.6-r1.3

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2019-04-24 12:37:13 +02:00
Gabriel Valcazar a3c190dfff meta-digi: revert revisions to AUTOREV
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-04-16 17:45:26 +02:00
Gabriel Valcazar 0078da95cb meta-digi: update revisions for dey-2.6-r1.3
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-04-16 17:44:36 +02:00
Gabriel Valcazar fce0809b47 meta-digi: revert revisions to AUTOREV
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-04-15 17:56:55 +02:00
Hector Palacios 7c6871bf07 meta-digi: update revisions for dey-2.6-r1.2
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2019-04-15 17:55:17 +02:00
Alex Gonzalez bcb942fc5b meta-digi-arm: linux-fslc: ccimx6ulsbc: Add IOEXP support
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2019-04-04 12:53:05 +02:00
Alex Gonzalez 4cf572edf5 meta-digi-arm: linux-fslc: ccimx6ul: Add MCA support
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2019-04-04 12:52:57 +02:00
Alex Gonzalez 9d063498c8 use-mainline-bsp: Use meta-freescale-3rdparty support
Remove the linux-v4.20 recipe and use the linux-fslc kernel recipe in
meta-freescale-3rdparty instead.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2019-04-04 12:52:34 +02:00
Gabriel Valcazar 3bc0da87b0 meta-digi: revert revisions to AUTOREV
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-04-02 09:42:47 +02:00
Gabriel Valcazar 9fae56c116 meta-digi: update revisions for dey-2.6-r1.1
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-04-02 09:42:47 +02:00
Hector Palacios 47f88d1d24 switch to building from maintenance branches for dey-2.6
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2019-03-27 17:47:32 +01:00
Gabriel Valcazar 9f76a50e57 Revert "kernel-module-qualcomm: create wlan virtual interface"
Don't create the wlan1 interface automatically to improve the general
performance of the wireless interface.

This reverts commit a5ae6a5b3c.

https://jira.digi.com/browse/DEL-6353
2019-03-22 09:46:51 +01:00