Commit Graph

2964 Commits

Author SHA1 Message Date
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
Arturo Buzarra 496d8f8eda dey-image-installer: add release version to readme file in ZIP installer
This commit replaces the hardcoded text from the readme file by the environment
variables adding from this way the release version to the file content.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-10-22 13:33:45 +02:00
Gabriel Valcazar d7d8c7aa56 ccimx6qpsbc: add support for variants 0x02 and 0x03
Build the U-Boot for variants with 1GB of memory and make the installation and
boot scripts recognize all of the current variants.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-10-21 14:56:15 +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
Gabriel Valcazar e79e57d154 qtbase: set QT_QPA_EGLFS_INTEGRATION="eglfs_viv" on fb images
Otherwise, qt5 applications will fail to launch on the 8X and 6/6QP.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-10-20 12:38:58 +02:00
Gabriel Valcazar 441459b6d2 libdigiapix: change default PWM for the ccimx8x-sbc-pro
The indexes of the MCA PWM controllers are different in Linux v5.4, so the
default value used by libdigiapix results in an error. Reflect this change and,
while at it, replace the default PWM with an IO connected to a user LED to make
the example more visual.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-10-20 10:16:18 +02:00
Arturo Buzarra 3a5d193b09 u-boot: ccimx8x-sbc-express: sync installation sd card script
This commit added support to C0/B0 variants.

https://jira.digi.com/browse/DUB-974

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-10-19 17:12:51 +02:00
Arturo Buzarra 6e00349b0d u-boot: ccimx8x: fix default uboot name for 512MB variants with old-style HWID
https://jira.digi.com/browse/DUB-974

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-10-19 12:26:07 +02:00
Hector Palacios 0a0f376ea6 ARM64: dts: ccimx8mn: add overlay for DVK version < 3
Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-7279
2020-10-19 10:53:53 +02:00
Hector Palacios 4668745523 ARM64: dts: ccimx8x: [cosmetic] alphabetize DT files
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-10-19 10:53:53 +02:00
Arturo Buzarra f6c2cec797 sysinfo: add 0x prefix to SEC_CONFIG_WORD to fix conditional expression
Commit c24d1d96 ("sysinfo: adapt script after removal of deprecated fsl_otp
driver") introduced a mistake masking the SEC_CONFIG[1] bit read from the OTP.
This commit fix the read command to force it in hex format and finally match
with the mask in the script.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-10-15 11:10:09 +02:00
Gabriel Valcazar 666c361df2 ccimx8x-sbc-pro: add overlay for SBC versions 3 and lower
Since this overlay is only used in the SBC Pro bootscript, have a separate
bootscript for the SBC Express.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-10-13 16:19:34 +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
Hector Palacios 9557b49128 README: update changelog and URLs to DEY-3.0-r2 release
Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-7270
2020-10-08 16:37:51 +02:00
Hector Palacios 453444fd75 README: [cosmetic] use official product names.
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-10-08 16:01:19 +02:00
Hector Palacios d34d9de25a u-boot: remove 2019.04 recipe, superseeded by v2020.04
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-10-08 13:46:04 +02:00
Gonzalo Ruiz ee2167a574 firmware_qualcomm: ccimx8mn: update US Board Data File calibration data
Update file:

- bdwlan30_US.bin (8c8b575fb9a65714df0b7c6cb3399ed6)

  This file was generated by calibrating several CC8MN SOMs from spin 3
  and merging their resulting BDF files into a Golden file.
  It also encodes the Target output powers.

Reference calibration file is obtained from 'qca6574au-le-2-2-2_qca_oem' repo
at tag 'r00005.1' under path
'wlanfw/cnss_proc/wlan/fw/target/sdio_dst/qc6174/bdwlan30.bin':

- bdwlan30.bin (8a40d95698825e1718bee640b1f7982a)

Target output powers respect the maximum EVM for every data rate.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2020-10-07 17:27:38 +02: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
Gabriel Valcazar 54643df677 packagegroup-dey-wireless: make ccimx6/6qp platforms use wireless-regdb-static
Back when the ccimx6/6qp used Linux v4.9, we needed to use crda because
wireless-regdb-static wasn't supported until v4.15. Now that we use v5.4 on all
platforms, this workaround isn't needed anymore.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-10-07 11:06:06 +02:00
Mike Engel 2397f700cf meta-digi-dey: qtbase: fix build path error of qt5.sh script
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-10-07 09:32:42 +02:00
Arturo Buzarra 77e30407fd sysinfo: fix security status section for ConnectCore 8M platforms
Commit c24d1d96 ("sysinfo: adapt script after removal of deprecated fsl_otp
driver") introduced support to determine if a device is closed by checking
a new boolean property on the DT for the CC8X platforms, however the CC8M
platforms use the same mechanism. This commit modifies the sysinfo script to
check also the DT for the CC8M platforms.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-10-07 09:32:42 +02:00
Arturo Buzarra 06189293f4 sysinfo: fix error on devices without SOC revision in their device tree
Commit cbb38440 ("meta-digi-dey: sysinfo: Add chip revision sysinfo output")
introduced a new script variable to determine the SOC revision of the module.
However this entry only is available on the CC8X platforms. This commit checks
if the entry exist and then tries to read it to avoid unexpected issues with
devices without this entry.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-10-07 09:32:42 +02:00
Francisco Gil Martinez aad9e045cd ccimx8x/mn: add dt overlays for the keypad controller
Signed-off-by: Francisco Gil Martinez <francisco.gilmartinez@digi.com>
2020-10-07 09:32:30 +02:00
Gabriel Valcazar a872c5f4cd trustfence-tool: update to v2.4
This version includes changes needed to reflect the OTP driver update in the
kernel.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-10-05 13:06:36 +02:00
Mike Engel 58707b40ba meta-digi-dey: qtbase: update ccimx6 qt5.sh script to reflect xwayland migration
This commit adds new environment variables to support QT with wayland and
to fix the following error message when executing QT5 applications on the
target.

qt.qpa.plugin: Could not find the Qt platform plugin "eglfs" in ""
This application failed to start because no Qt platform plugin could be initialized.
Reinstalling the application may fix this problem.

Available platform plugins are: minimal, offscreen, vnc, wayland-egl, wayland, xcb.

Aborted.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-10-05 11:43:18 +02:00
Hector Palacios 2ade93d8eb u-boot-dey: restore modified env vars in case of error on bootscript
The boot script appends values to certain variables such as
$extra_bootargs and $overlays.

If the final instruction of the boot script (dboot command)
fails, these variables contain the new values, plus the original
one. Since the user recovers the prompt, he may do a 'saveenv'
to save the environment, and the modified variables will be
saved, only to be enlarged again on the next boot.
This can lead to repeated strings on such variables.

Save the original value and restore it in case of failure on
the dboot command.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-10-01 16:13:46 +02:00
Mike Engel 23b7815c17 meta-digi-dey: libdigiapix: Update GPIO rules for digiapix group.
This commit updates the GPIO udev rules to change the group owner
and permission of the new gpio char driver. This will allow users
that belong to the digiapix group to access the char driver.

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

https://jira.digi.com/browse/DEL-7255
2020-10-01 09:28:34 +02:00
Hector Palacios 3786647d1c ccimx8x/mn: rename dt overlays filenames
Follow the syntax:

  _ov_<som|board>_<functionality>[_<hardware>].dts

where:
  _ov_          identifies the file as an overlay.
  som|board     identifies whether the overlay applies to the SOM
		or to the carrier board.
  functionality identifies the function of the overlay.
  hardware      identifies the hardware to which the overlay
		applies.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-09-29 18:06:02 +02:00
Hector Palacios b198602b0c Merge branch 'zeus' into dey-3.0/maint
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-09-29 17:02:25 +02:00
Gabriel Valcazar 7938ddef8f dey-image-recovery-initramfs: remove openssl-bin from initramfs
This package was being included as a RRECOMMENDS from libcrypto, but we don't
need it in the initramfs at all. Since our recovery image is already pretty big
compared with the recovery partition size on ccimx6ul platforms with 256 MB of
storage, remove it to make sure the image can fit.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-09-29 09:48:16 +02:00
Gonzalo Ruiz f1c1bbdffb auto-serial-console: add systemd support
Add systemd auto-getty.service to run agetty on the console defined in the
kernel command line on platforms with systemd support.

This service replaces serial-getty@.service as the one responsible for
opening a tty port and prompting for a login name when
TRUSTFENCE_CONSOLE_DISABLE is configured.

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

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2020-09-28 17:39:44 +02:00
Gabriel Valcazar 3b0cf4eb76 qtbase: use platform-specific qt5.sh scripts instead of backend-specific ones
We have specific scripts per platform to export the qt5 environment variables,
because using the default backend-specific scripts ported from the meta-imx
layer results in mismatches in specific cases (for example, 6UL framebuffer
images only support linuxfb, but the qt5-fb.sh script exports eglfs instead).

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-09-28 17:13:48 +02:00
Gabriel Valcazar ff756dd8f7 meta-digi: revert revisions to AUTOREV 2020-09-28 13:50:28 +02:00
Gabriel Valcazar 5cb7ecc3a5 meta-digi: update revisions for dey-3.0-r1.6
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-09-28 13:47:32 +02:00
Hector Palacios fe6d67ad2c u-boot: fix scripts for variants with old-style HWID
Wrapping unterminated lines doesn't work for scripts (even
if they contain the backslash).
Substitute with full non-wrapped if/elif sentences.

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

https://jira.digi.com/browse/DEL-7252
2020-09-28 11:24:23 +02:00
Gabriel Valcazar 66471fd0c2 ccimx6qpsbc: bootscript: hardcode imx6qp soc_family for all SOC variants
In the ccimx6sbc, since each SOC has a separate set of device trees, we can use
the soc_family environment variable when generating the name of the final
device tree in the bootscript. However, for the ccimx6qpsbc, there is only one
set of device trees with the "imx6qp" prefix, even though there are SOC
variants such as the imx6dp. Running the bootscript on a ccimx6qpsbc with an
imx6dp SOC assembled will result in a failure, since it will look for a
non-existing device tree starting with a "imx6dp" prefix.

Stop using the soc_family variable and hardcode "imx6qp" instead.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-09-25 10:23:45 +02:00
Gabriel Valcazar c9d4bbbd94 layer.conf: remove weston-init from the BBMASK
We originally ignored the weston-init.bbappend in meta-freescale back in thud
because we were basing our recipe off of NXP's sumo BSP, and NXP's weston-init
customizations were incompatible with the ones in meta-freescale. Remove it
from the BBMASK to be able to incorporate the customizations in meta-freescale.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-09-24 10:48:53 +02:00
Gonzalo Ruiz 4db64974c1 imx-mkimage: ccimx8mn: preserve dtb file after running make
With the latest version of imx-mkimage, the original dtb file is being
removed at the end of the build.

Add a patch to preserve it and be able to run several builds during the
same compile run, like we do for imx-boot signing.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2020-09-23 14:50:37 +02:00
Arturo Buzarra c40a92b3bb recipes-graphics: xorg-server: refresh patch to fix warning build
This patch was updated to match with xorg-xserver v 1.20.5

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-09-22 08:28:02 +02:00
Arturo Buzarra 0069380c6b meta-digi: update config templates for CC6/CC6QP platforms
Both platforms were updated to use the XWayland desktop.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-09-22 08:26:23 +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
Gabriel Valcazar eda2f4177e weston: add a patch to fix issues on the ccimx6
The ccimx6 uses the g2d weston renderer to avoid graphical glitches, but the
default renderer code doesn't handle suspend/resume cycles properly, causing
other issues (notably in the framerate and the desktop not showing 66% of the
time when resuming from suspend). Add a patch to mitigate these issues.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-09-18 13:42:33 +02:00
Gabriel Valcazar 1fe0af568f weston-init: uncomment "use-g2d=1" from weston.ini on the ccimx6sbc
Without this option, moving any element on the desktop (cursor or windows) will
cause an undesired "trailing" effect, where parts of the moved elements remain
on the desktop.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-09-16 16:09:03 +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
Mike Engel c38d8ed84e meta-digi-dey: gstreamer: Remove unneeded patch for CCIMX6
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 47ae15ee54 imx-alsa-plugins: remove workaround for ccimx6 platforms
This workaround is no longer needed since ccimx6/6qp now use Linux v5.4

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@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