Commit Graph

2819 Commits

Author SHA1 Message Date
Gonzalo Ruiz 6451bc1990 imx-boot: [cosmetic] fix indentation
Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2020-04-08 14:23:18 +02:00
Gonzalo Ruiz ae49a255fa imx-boot: fix sign conditions
Do not evaluate TRUSTFENCE_SIGN_MODE on conditions where the sign mode
is not relevant:

1) U-Boot binary file should be signed directly after building it when simple
U-Boot images are used, but it should not be signed when imx-boot bundled
images are used.
For those, the signing process is performed later over the whole imx-boot
bundled binary file on a different recipe.
We use BOOTLOADER_IMAGE_RECIPE variable to evaluate this distinction.
BOOTLOADER_IMAGE_RECIPE is set to "u-boot" by default and is set to "imx-boot"
on ccimx8x and ccimx8mn machine configuration files.

2) For signing imx-boot images we should treat differently those images that
include the RAM configuration in their name and those that don't, as we do
for the rest of the tasks in the same recipe. We can ignore the sign mode
method in this case.

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

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2020-04-08 14:20:35 +02:00
Hector Bujanda 38a5b79718 bluetooth-init: recover delays
Commit 388ef5c3 updated the script to use libgpiod tools.
Some delays were removed which made the bluetooth not load.
This commit introduces a delay again in the power cycle.

https://jira.digi.com/browse/DEL-6424
https://jira.digi.com/browse/DEL-6423

Signed-off-by: Hector Bujanda <hector.bujanda@digi.com>
2020-03-22 02:43:29 -07:00
Francisco Gil Martinez f99ae24162 recovery: allow the user to cancel the recovery process
https://jira.digi.com/browse/DEL-6982

Signed-off-by: Francisco Gil Martinez <francisco.gilmartinez@digi.com>
2020-03-20 08:23:43 +01:00
Hector Bujanda 2e30987a7e libdigiapix: make use of libgpiod
Added libgpiod dependence.

The configuration file entries change to following format:
   - USER_LED = mca-gpio,12
   - USER_BUTTON = mca-gpio,10

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

Signed-off-by: Hector Bujanda <hector.bujanda@digi.com>
2020-03-19 02:57:59 -07:00
Gonzalo Ruiz 8cf13e7888 firmware-qualcomm: add bluetooth customizations for CC6Plus
Some CC6Plus units fail to communicate with the Bluetooth chip at a certain
temperature range, as happened on some CC6UL units.

Apply the following customizations to the NVM file so the communication is
maintained regardless of the temperature.

- Disable DEEP_SLEEP
- Enable Internal Clock

These customizations were already performed on the NVM file for the CC6UL.

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

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
(cherry picked from commit 400b31f652fb98bb1620e03f85a33c231bf6f244)
2020-03-18 10:42:07 +01:00
Gonzalo Ruiz afbc34f04a firmware-qualcomm: generalize bluetooth customizations
Generalize 'Disable Deep Sleep' and 'Enable Internal clock' customizations
so they can be applied on every platform by defining
BT_INTCLOCK_WORKAROUND to '1'.

Disable the customizations by default and enable them for ccimx6ul only.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
(cherry picked from commit 78ef498178abe587d6e2cb4b1ed8ba5f8979fb4e)
2020-03-18 10:41:53 +01:00
Gonzalo Ruiz f6e4656971 firmware-qualcomm: fix Bluetooth NVM file customization
We are currently applying customizations to the base NVM file on install.
There was an error that introduced the '"\' characters into the NVM file
instead of the intended hex data.

This commit fixes the implementation of this customization.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
(cherry picked from commit a204a7bfc54fc15aca0d87530c838fb427710a8e)
2020-03-18 10:41:43 +01:00
Gonzalo Ruiz f7276fd271 README: generalize wireless limitations
Generalize wireless concurrent mode and DFS-capable channels limitations
which apply for every platform.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2020-03-18 09:31:09 +01: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
Mike Engel e550d82c77 meta-digi-arm: uboot: Add firmware install script using fastboot support.
This commit adds a installation script that uses fastboot support to
update the target firmware.

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

https://jira.digi.com/browse/DEL-6845
2020-03-10 10:38:59 +01:00
Hector Bujanda 388ef5c388 bluetooth-init: scripts updated to use libgpiod tools
https://jira.digi.com/browse/DEL-6424
https://jira.digi.com/browse/DEL-6423

Signed-off-by: Hector Bujanda <hector.bujanda@digi.com>
2020-03-09 12:50:23 +01:00
Hector Bujanda f14d79f5a6 xbee-init: script updated to use libgpiod tools
Additionally:
   - The handling of gpios has been swapped so 'Set low XBEE_SLEEP_RQ' is done
 before 'Power cycle XBEE_RESET_N' to assure the device doesn't enter sleep mode.
   - Removed ExecStop entry from systemd service since it's doing nothing.

https://jira.digi.com/browse/DEL-6424
https://jira.digi.com/browse/DEL-6423

Signed-off-by: Hector Bujanda <hector.bujanda@digi.com>
2020-03-09 12:50:22 +01:00
Hector Bujanda baa4a6f57e packagegroup-dey-core: add libgpiod
Add support for handling the GPIOs through char device and the kernel API.

https://jira.digi.com/browse/DEL-6426
https://jira.digi.com/browse/DEL-6423

Signed-off-by: Hector Bujanda <hector.bujanda@digi.com>
2020-03-09 12:50:22 +01:00
Mike Engel acf9d41388 meta-digi-arm: u-boot: Add CC6UL to v2019.04 u-boot.
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-03-03 12:17:07 +01:00
Arturo Buzarra f95fa1d1c9 build.sh: Generalize release build flag so it is not dependent of a hardcoded job name
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-02-27 11:30:04 +01:00
Francisco Gil 1d91d3411b br0: move the br0 interface to the bottom
This interface should be the last item defined in the
/etc/network/interfaces file.

When you try to enable the interface br0 (bridge interface),
all the other interfaces should be available.
If the br0 interface is located before the other interfaces
involved in the bridge, it will fail.

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2020-02-24 13:14:53 +01:00
Francisco Gil d485af020a greengrass: add support for greengrass 1.10
Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2020-02-24 13:09:26 +01:00
Mike Engel 796eb9db91 meta-digi-dey: bump distro version to 2.6-r4
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-02-20 14:21:56 +01: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
Gonzalo Ruiz fa4fabe7dd README: add cc8mnano to the list of supported platforms
Also link SCFW note to latest release changelog entry.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2020-02-12 19:06:48 +01:00
Hector Palacios 5d063d6906 imx-boot: simplify copy of SRK_efuses.bin to DEPLOYDIR
There is no need to generate PV-PR revision of this file
since it's the same for any version.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-02-12 18:50:19 +01:00
Hector Palacios d21462302d trustfence-sign-tools: homogenize the sign script filename
The recipe needs to create a copy of the sign.sh script to be used by
other recipes, but the file is the same whether you use it for HAB or AHAB
images. This is determined through the use of an exported variable with
the mode. There is no need to have the script duplicated.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-02-12 18:50:19 +01:00
Hector Palacios b1776fcc63 trustfence-sign-kernel.sh: don't generate SRK_efuses for DEY sign script
The only script that needs to generate the SRK_efuses is the sign.sh
script in the U-Boot code. For the rest of signed non-bootable artifacts
this is not required and it was creating the SRK_efuses file on every
recipe where the script was called, like linux-dey and others, which
eventually resulted in a conflict when copying the artifacts to the shared
deploy-image-dir.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-02-12 18:50:19 +01:00
Hector Palacios b0ef3ea14f imx-mkimage: install mkimage_imx8 binaries to BOOT_TOOLS
This binary is required for signing the U-Boot scripts generated
by the U-Boot recipe but it wasn't available because this recipe
was not installing it anywhere.

At the same time, remove the installation from imx-boot, to avoid a
conflict between the two (imx-mkimage is a dependency from imx-boot
anyway).

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-02-12 18:50:19 +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 8d77f179df README: add support for TrustFence on ConnectCore 8X platform.
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-02-12 18:50:19 +01:00
Mike Engel f103bc78af trustfence: Change u-boot to v2019.04
This commit changes the u-boot sources needed to create standalone
signing tools to 2019.04. This u-boot supports all Trustfence
platforms.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-02-12 18:50:19 +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
Gabriel Valcazar 6caecc5c53 trustfence-initramfs: use "busybox halt" instead of "poweroff"
The poweroff command is not available in the initramfs due to a missing
sysvinit/systemd dependency. Use the busybox "halt" command, since it's
available regardless of the init manager used. Rework the error message and
script variables accordingly.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-02-12 18:31:33 +01:00
Gabriel Valcazar 6aa852dccd sdk: remove image name from default SDK path
Some configuration files inside of the SDK make use of the default SDK
installation path, so some tools might break unless the SDK is installed in said
default path.

Recently, we modified the default installation path to include the platform and
the image type, but the image type was added after the SDK was created, so even
though the environment script's paths include the image type, the "original"
default path in the config files inside of the SDK doesn't include the image
type. A side effect of this is that Qt5 apps cannot be built, since the qmake
and Qt configuration files are pointing to the "original" SDK path.

Remove the image type from the path so that the paths in the SDK's config files
match the real default installation path.

This partially reverts commit be0fe088e3.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-02-10 18:11:25 +01:00
Arturo Buzarra d05ddb3399 README: fix typo
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-02-10 14:23:01 +01:00
Arturo Buzarra bb36013e7a dey-image-installer: fix BOOTABLE_ARTIFACTS for ConnectCore 8M Nano platform
The bootable artifacts that must go inside the installer ZIP image, are defined
in the variable BOOTABLE_ARTIFACTS. For platforms without RAM_CONFIGS, these
artifacts are obtained from the UBOOT_CONFIG variable.

This commit fixes the final artifact name added to the BOOTABLE_ARTIFACTS that
for some platform is not strictly the same that the UBOOT_CONFIG name.
For example for the U-Boot configuration "ccimx8mn_dvk", corresponds the
bootable artifact "ccimx8mn-dvk"

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-02-10 14:22:52 +01:00
Arturo Buzarra 3c801aa3ea README: Update dey-2.6-r3 changelog
https://jira.digi.com/browse/DEL-6947

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-02-06 18:09:23 +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 1516bd03d0 image-type_digi.bbclass: Fix copy of initramfs when Trustfence is disabled.
This commit fixes the copy of the initramfs final image with the extension
*.tf when Trustfence is disabled. This was introduced by commit
5beec04b ("trustfence: Add Trustfence support for CCMX8X")

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-02-05 16:45:34 +01:00
Mike Engel 7477196c9b image-types_digi.bbclass: fix imx-mkimage dependency with sign mode is AHAB
Commit 5beec04b ("trustfence: Add Trustfence support for CCMX8X") introduces
a dependency when the imx-mkimage recipe and the SIGN_MODE is equal to AHAB.
However this dependency should be added only when the TRUSTFENCE_SIGN is equal
to 1 and when the SIGN_MODE is equal to AHAB, not only when the SIGN_MODE is
equal to AHAB. This commit introduces this double check.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-02-05 16:31:37 +01:00
Arturo Buzarra 25c6daf9b1 meta-digi-arm: u-boot: Fix license checksum for different u-boot versions
Commit 31d8ff94 ("meta-digi-arm: u-boot: Update recipes with new u-boot version")
updates the license checksum for the new u-boot_2019.04 recipe, however this
license file is different for the other u-boot versions.
This commit reverts this change and includes the updated checksum only for the
new u-boot_2019.04 recipe.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-02-05 11:37:59 +01:00
Mike Engel 909a8c9e83 Revert "ccimx8x: prohibit dey-image-qt from building when trustfence is enabled"
Added Trusfence support for the CC8X.

This reverts commit 8b5c710036.

https://jira.digi.com/browse/DEL-6917
2020-02-04 12:20:38 +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
Francisco Gil 8ebc7588d5 cc8mn: libdigiapix: change default values for examples
https://jira.digi.com/browse/DEL-6955

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2020-02-03 17:59:35 +01:00
Hector Palacios 92d658107f u-boot-dey: fix wrapped lines on install script
Wrapped lines must have a back-slash symbol so that U-Boot
doesn't interpret them as finished.
The missing symbol resulted in the script not being able to
determine the U-Boot image to program in some cases.

Reported-by: Leonid Makhnovskiy <leonid.makhnovskiy@digi.com>
Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-6953
2020-01-27 17:49:29 +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
Javier Viguera 571e4a521b ccimx8x-sbc-express: add XBee TTY device
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2020-01-24 13:19:36 +01:00
Hector Bujanda c005b004ae ccimx8mn-dvk: fix SERIAL_CONSOLES to ttymxc0
The ccimx8mn console is on ttymxc0 (uart1 thanks to aliases).

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

Signed-off-by: Hector Bujanda <hector.bujanda@digi.com>
2020-01-23 15:04:21 +01:00