Commit Graph

252 Commits

Author SHA1 Message Date
Gonzalo Ruiz 555be511a6 u-boot-dey: customize install_linux_fw_uuu script for ccimx6/ccimx6qp
Also, set UBOOT_HAS_FASTBOOT = "true" for these platforms.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2021-09-30 10:32:17 +02:00
Gabriel Valcazar 42cab22b95 ccimx6: add "pam" to DISTRO_FEATURES
This is necessary for images that have SELinux enabled. Aside from changing
some package configurations and including an additional library in the rootfs,
this change has no apparent effects on the core functionality of the system.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-09-15 10:19:14 +02:00
Gabriel Valcazar abba0948a9 refpolicy: adapt reference policy to DEY prebuilt image features
The default policy provided by meta-selinux breaks a lot of the features in
DEY, so adapt it to make most features work. Note that this is simply an
example, end users should create their own policies for their own needs.

Make these changes toggleable so that users can use the reference policy
instead.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-09-15 10:16:28 +02:00
Gabriel Valcazar 96f54105d3 ccimx6/6ul: add "firmware-imx-regulatory" package
This package includes a script that is executed by a udev rule that we
currently include in our sysvinit images. Without it, the regulatory firmware
mechanism is broken and an error appears when booting the system.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-09-13 16:42:35 +02:00
Hector Palacios 96bc57c7f0 u-boot-dey: use global variables to generalize install scripts
Create global variables:
  DEFAULT_IMAGE_NAME
  GRAPHICAL_IMAGES

to have them substituted on the U-Boot install scripts for better
generalization.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-06-02 11:01:37 +02:00
Arturo Buzarra 0cacb0c511 dtc: keep version 1.4.5 only for CC6/CC6QP platforms that build U-Boot 2017.X
This version is only required to build U-Boot 2017.X, so since CC6UL was moved
to a new U-Boot version it is not necessary and also fixes a build issue.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-05-05 19:18:11 +02:00
Arturo Buzarra 2409de4c6e gatesgarth migration: imx-digi-base: Add the ability to use exclusive recipes for NXP BSP
Commit 4ab569fb("recipes-*: refine restrictions for NXP BSP") from
meta-freescale layer restrict the use of certain recipes and classes to
enforces them to use a NXP BSP. This is done by adding a new MACHINEOVERRIDES
called "use-nxp-bsp"

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-05-05 19:18:11 +02:00
Arturo Buzarra 52db82f2c7 imx-digi-base: sync with meta-imx branch zeus-5.4.70-2.3.0
Update the MACHINE values with the ones in meta-freescale and meta-imx layer.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-02-04 13:07:07 +01:00
Arturo Buzarra 702382c7e4 imx-digi-base: Simplify preferred providers for graphics
Sync with meta-freescale layer. See commmit f718ae3f
("imx-base.inc: Simplify preferred providers for graphics")

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-02-04 13:07:07 +01:00
Arturo Buzarra a76f3031fb meta-digi-arm: add support for ConnectCore 8M Mini DVK platform
https://jira.digi.com/browse/DEL-7397

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-02-04 13:07:07 +01:00
Arturo Buzarra 3a011775b1 cosmetic: digi-defaults.inc: update Linux/U-Boot version table
Update the ccimx8m and cc6ul supported U-Boot version.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-01-22 13:27:36 +01:00
Mike Engel 827d2e9a4d ccimx8mn: enable Trustfence artifact encryption.
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-12-28 11:04:28 +01:00
Mike Engel 1baba309c2 ccimx8mn: add Optee component to the machine features.
Since this component pulls in Optee dependencies, which in turn depend on
packages from meta-python2, add this layer to the ccimx8mn-dvk's default
bblayers.

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

https://jira.digi.com/browse/DEL-7025
2020-12-28 11:04:28 +01:00
Hector Palacios d30eddd326 ccimx6ul: enable UBOOT_HAS_FASTBOOT
This allows the generation of the uuu install script artifact.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-11-16 13:26:53 +01:00
Gabriel Valcazar ce11c9a02e cosmetic: digi-defaults.inc: update Linux/U-Boot version table
Add the ccimx6/6qp and update the ccimx8x supported U-Boot version. Even though
older versions of U-Boot can be built for the 8X, the dependencies with the
SCFW only make it possible to use the latest version of U-Boot to avoid
unexpected behaviour.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-10-07 11:06:06 +02:00
Gonzalo Ruiz 358305ffb8 trustfence: enable encrypted environment for CC8MN
Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2020-09-18 16:31:07 +02:00
Mike Engel 4a68333fef meta-digi-arm: machine: Add xwayland support to CCIMX6 platforms
With this change, the ccimx6sbc and ccimx6qpsbc default images will now use the
xwayland backend instead of x11.

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

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-09-16 16:09:03 +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
Gonzalo Ruiz e4c3104712 trustfence: enable encrypted environment for CC8X
Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2020-09-14 12:20:00 +02:00
Arturo Buzarra 91fcbffe99 imx-boot: add encryption support to the build images
https://jira.digi.com/browse/DEL-7175

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-09-01 11:29:25 +02:00
Mike Engel faa088982b meta-digi-arm: enable Trustfence root file system encryption support
Signed-off-by: Mike Engel <Mike.Engel@digi.com>

https://jira.digi.com/browse/DEL-7163
2020-07-16 12:51:49 +02:00
Gabriel Valcazar ee2a502fe5 imx-digi-base: append to MACHINE_EXTRA_RRECOMMENDS instead of setting it
The cryptoauthlib package is being added in digi-defaults.inc, which is parsed
before this file. Setting the variable here overwrites its previous value,
causing the cryptoauthlib package to be left out of the rootfs. Append to the
variable instead of overwriting it to avoid this.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-06-16 12:57:54 +02:00
Gabriel Valcazar 8c141889d2 ccimx8: add firmware-imx-regulatory
Aside from adding the wireless-regdb-static support, this NXP package needs to
be included in the rootfs so the regulatory fw gets loaded in userspace.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-06-16 12:56:35 +02:00
Gonzalo Ruiz 0775c592b9 ccimx8: set trustfence to only build signed images
Disable all encryption support by default on CC8X and CC8MN platforms so
the default built images can be directly built.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2020-06-04 19:01:34 +02:00
Gonzalo Ruiz ea2ffcfee8 trustfence: introduce AHAB container creation into script
https://jira.digi.com/browse/DEL-7024

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2020-06-04 19:01:34 +02:00
Gabriel Valcazar 222ded5a38 digi-sc-firmware: update to v1.4.0.2
This update is a cosmetic one and removes the RAM frequency from the SCFW
filenames. Reflect this change in the RAM_CONFIGS variable and in the uSD/UUU
installation scripts.

As a result, the imx-boot filenames will no longer have the RAM frequency
either.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-05-28 18:15:38 +02:00
Gabriel Valcazar 3fbd38ca46 imx-boot: build ccimx8x images for B0 and C0 silicon revisions
Modify the imx-seco recipe so it deploys the B0 and C0 versions of the SECO
firmware, Then, modify the imx-boot recipe so it builds every possible
combination of:

    * RAM configuration
    * imx-boot target (with and without M4 demos)
    * Silicon revision

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-05-28 18:01:37 +02:00
Hector Palacios ab98e928f5 machines: move common recipes to all packagegroup-dey-core
- u-boot-fw-utils
- cryptodev-module

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-05-06 17:02:28 +02:00
Hector Palacios 2c8eaecc09 cryptochip: use MACHINE_FEATURE to conditionally include related recipes
Use 'cryptochip' MACHINE_FEATURE to conditionally include cryptoauthlib
recipe.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-05-06 07:20:50 +02:00
Hector Palacios 5df22254a1 mca: create 'mca' MACHINE_FEATURE and use it to append MCA-related recipes
This allows to generalize the code instead of needing to replicate
overrides for each platform that contains the MCA.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-05-06 07:20:50 +02:00
Hector Palacios a46a7af18d bluetooth: re-use variable DIGI_FAMILY to set BT_DEVICE_NAME for simplicity
The variable BT_DEVICE_NAME is used to name the Bluetooth device name on
the BlueZ configuration file. Re-use the contents of DIGI_FAMILY (except
for ccimx6qp which re-writes it) to simplify platform definitions.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-05-06 07:20:50 +02:00
Hector Palacios 83eb3a30c7 p2p: move common P2P variables to digi-defaults.inc for simplicity
- WLAN_P2P_INTERFACE is the same for all platforms: "p2p0".
- WLAN_P2P_DEVICE_NAME can be built out of ${DIGI_FAMILY} except for
  the ccimx6qp, that's why it has a weak default assignment.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-05-06 07:20:50 +02:00
Arturo Buzarra 1703d3317e zeus migration: linux-libc-headers: update recipe to v5.4
Default version is defined in poky layer, this commit also modifies
the preferred version to match with the new one.

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 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 185898e80e zeus migration: ccimx8x: update MACHINEOVERRIDES removing DX variants
https://jira.digi.com/browse/DEL-7013

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-04-28 11:30:26 +02:00
Gonzalo Ruiz 4b6d1a2c09 trustfence: Add U-Boot sign support for ccimx8mn
Add Trustfence support for signing imx-boot images:
- Install a different U-Boot signing script for images with U-Boot SPL.
- Store mkimage log for later use in the signing script
- make 'print_hab_log' and store its log for later use in the signing script

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

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2020-04-08 14:23:18 +02:00
Hector Palacios 098707b92a uboot: add install_linux_fw_uuu.sh script for ccimx8mn
Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-6845
2020-03-10 13:04:09 +01:00
Hector Palacios 6c9341bd8a trustfence: disable environment encryption for CC8X
Environment encryption is not yet supported in U-Boot.
Unset TRUSTFENCE_ENCRYPT_ENVIRONMENT on the machine configuration
and remove the platform conditional on the class.

Signed-off-by: Hector Palacios <hector.palacios@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
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
Mike Engel 31d8ff94fe meta-digi-arm: u-boot: Update recipes with new u-boot version
This commit updates the recipes to use the new u-boot version.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-02-04 12:20:38 +01:00
Gabriel Valcazar acdcaf5a45 imx-digi-base: sync with meta-fsl-bsp-release branch sumo-4.14.98-2.3.0
Update the values of the MACHINE_SOCARCH_FILTER variable with the ones in
meta-fsl-bsp-release's imx-base.inc.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-01-16 13:27:54 +01:00
Arturo Buzarra 9da5aac063 firmware-imx: remove custom do_deploy support to use upstream version
For the i.MX8M processors, the do_deploy support is provided by
the upstream recipe firmware-imx-8m.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-01-10 13:37:39 +01:00
Arturo Buzarra d394091a1b meta-digi-arm: ccimx8x: unify kernel defconfig for i.MX8 platforms
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-01-10 13:37:39 +01:00
Arturo Buzarra d430cc3bab recovery-initramfs: generalize recipe to avoid redefinitions
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-01-10 13:36:21 +01:00
Arturo Buzarra 6d23ee1fe7 hostapd: generalize recipe to reduce the overhead when adding a new platform
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-01-10 13:21:27 +01:00
Arturo Buzarra f81982571c bluez5: unify config file for all platforms
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-01-10 11:51:58 +01:00
Arturo Buzarra 017c2d0964 wpa_supplicant: unify config file for all platforms
WPA and P2P configuration files are basically the same between all
platforms, so we remove all duplicated files to use a common file
and modify it in the recipe logic.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-01-10 11:48:11 +01:00
Arturo Buzarra 580317486e meta-digi-arm: add support for ConnectCore 8M Nano DVK platform
https://jira.digi.com/browse/DEL-6806

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-01-10 11:31:27 +01: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