Commit Graph

3186 Commits

Author SHA1 Message Date
Hector Palacios c24d1d96a7 sysinfo: adapt script after removal of deprecated fsl_otp driver
- OTP section
  - Use just one fixed path to the OTP nvmem device descriptor (instead
    of a loop).
  - Use '-v' for dumping all values with hexdump.

- TrustFence section
  - For cc8x, determine if the device is closed by checking a new boolean
    property on the DT: digi,tf-open|closed
  - For the rest, check the SEC_CONFIG[1] bit using the new nvmem
    descriptor.
  - Change log from 'Device status' to 'Security status'
  - Report UNKNOWN if nvmem device does not exist.

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

https://jira.digi.com/browse/DEL-7185
(cherry picked from commit f6a8de0067)
2020-07-24 13:13:37 +02:00
Hector Palacios fc1a736758 recovery: change the way to determine if the device is closed
The old fsl_otp driver is deprecated and we need to determine
if the device is closed using a new property of the device tree
called 'digi,tf-closed'.

Assume the device is open if the property is not found.

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

https://jira.digi.com/browse/DEL-7185
2020-07-24 13:12:13 +02:00
Hector Palacios 8ced362766 u-boot-fw-utils: update patch to support encrypted env
The encryption of the U-Boot environment uses the HWID as key
modifier. The HWID was being read using the fsl_otp driver sysfs
entries and over two words. The driver is now deprecated and also
the cc8x and cc8m platforms have different number of HWID words.

This patch modifies the function that reads the HWID words by
using new entries on the device tree 'digi,hwid_X' where X is the
index of the HWID word.

It also removes the need to select CONFIG_MD5 which is already
auto-selected on sandbox_defconfig by other config switches.

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

https://jira.digi.com/browse/DEL-7185
2020-07-24 13:12:13 +02:00
Hector Palacios f6a8de0067 sysinfo: adapt script after removal of deprecated fsl_otp driver
- OTP section
  - Use just one fixed path to the OTP nvmem device descriptor (instead
    of a loop).
  - Use '-v' for dumping all values with hexdump.

- TrustFence section
  - For cc8x, determine if the device is closed by checking a new boolean
    property on the DT: digi,tf-open|closed
  - For the rest, check the SEC_CONFIG[1] bit using the new nvmem
    descriptor.
  - Change log from 'Device status' to 'Security status'
  - Report UNKNOWN if nvmem device does not exist.

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

https://jira.digi.com/browse/DEL-7185
2020-07-24 13:12:13 +02:00
Francisco Gil Martinez 6f8944a501 libdigiapix: spi: fix wrong index in configuration files
Since kernel 5.4 the index was set to 0 instead of 32766

Signed-off-by: Francisco Gil Martinez <francisco.gilmartinez@digi.com>
2020-07-24 09:13:02 +02:00
Francisco Gil Martinez f8e6bf523e libdigiapix: spi: fix wrong index in configuration files
Since kernel 5.4 the index was set to 0 instead of 32766

Signed-off-by: Francisco Gil Martinez <francisco.gilmartinez@digi.com>
2020-07-24 09:07:31 +02:00
Gabriel Valcazar 212448fe2d recovery-initramfs: don't format the rootfs partition unless it's necessary
By default, we generate SWU files which update both the linux and rootfs
partitions. This, along with the fact that platforms using NAND as the storage
media require a reboot for the rootfs partition's "enc" flag to take effect,
makes it safe to format the NAND's rootfs partition before performing an
update, regardless of having to encrypt the rootfs or not.

However, customers that wish to use the swupdate feature to update just the
linux partition will find that the rootfs is completely erased after the update
is finished, because a new rootfs hasn't been written in its place.

To avoid this scenario, parse the SWU package's description to verify that it
contains a rootfs image before formatting the partition.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-07-21 09:53:14 +02:00
Mike Engel e8d4360ebf imx-atf: Fix build error with disable Cortex-M7 debug console patch
The Cortex-M7 uses the UART4 as debug console, and it is
shared with the Cortex-A53. This commit disables it for the
ConnectCore 8M Nano DVK board to avoid conflicts.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-07-17 20:14:20 +02:00
Mike Engel fc0be97511 meta-digi-dey: bump distro version to 3.0-r2
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-07-17 20:10:26 +02:00
Gonzalo Ruiz bdc8f0fa6f imx-boot: ccimx8x: store mkimage log for signing
Store mkimage log for every built target so it can be later used by the
signing script to create the correct CSF file for every target.

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

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2020-07-16 17:53:24 +02:00
Gonzalo Ruiz 6fe7cbb1bf imx-boot: create mkimage log symlink before signing
The mkimage.log file is required by the signing script to create the CSF file.

Since there is one mkimage log file per target, update the mkimage.log symlink
right before signing the imx-boot file to ensure creating the CSF with the
corresponding mkimage log for every target.

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

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2020-07-16 17:53:24 +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
Hector Palacios 16a429a037 ccimx8x: add missing HDMI bridge overlay to KERNEL_DEVICETREE
Reported-by: Alfonso Martín Rey <alfonso.martinrey@digi.com>
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-07-16 08:19:55 +02:00
Mike Engel 18419c29c3 imx-m7-demos: Update imx8mn to new package v2.8.0 to EULA 228c72f
This commit updates the M7 demos to new package version v2.8.0
of the new NXP release imx-5.4.24-2.1.0.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-07-15 12:00:53 +02:00
Mike Engel 98999fbf79 imx-m4-demos: Update imx8qx to new package v2.8.0 to EULA 228c72f
This commit updates the M4 demos to new package version v2.8.0
of the new NXP release imx-5.4.24-2.1.0.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-07-15 12:00:53 +02:00
Mike Engel b452a7f728 vulkan-loader: Put libvulkan.so in main package
The loader library libvulkan.so is loaded dynamically and so
must be included in the main package.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-07-15 12:00:53 +02:00
Mike Engel 9641733039 recipes-multimedia: gstreamer: Update for the new NXP BSP release imx-5.4.24-2.1.0.
Upgrade GST version from 1.16.0 to 1.16.1

The headerfix.patch in gst-plugins-good needes to be removed
as these changes are already included in 1.16.1

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-07-15 12:00:53 +02:00
Mike Engel 26623ba00d recipes-graphics: imx-gpu-viv: Update to new NXP BSP release imx-5.4.24-2.1.0.
This commit updates the imx-gpu-viv to the next version.

It includes the following improvments and fixes

* The work-around that moves .so for OpenCL, OpenVX, and Vulkan
  to the main packages triggers the QA Issue for dev-so:

    ERROR: imx-gpu-viv-1_6.4.0.p2.4-aarch64-r0 do_package_qa:
    QA Issue: non -dev/-dbg/nativesdk- package contains symlink .so:
    libvulkan-imx path '/work/aarch64-mx8m-poky-linux/imx-gpu-viv/1_6.4.0.p2.4-aarch64-r0/packages-split/libvulkan-imx/usr/lib/libvulkan_VSI.so' [dev-so]

    Suppress the QA check.

* Add versions for OpenCL, OpenVX, and Vulkan.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-07-15 12:00:53 +02:00
Mike Engel 55c4048675 recipes-graphics: imx-dpu-g2d: Update to new NXP BSP release imx-5.4.24-2.1.0.
This commit updates the imx-dpu-g2d to the new version 1.8.7.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-07-15 12:00:53 +02:00
Mike Engel efe5d48cf7 recipes-bsp: imx-vpu: Update to new NXP BSP release imx-5.4.24-2.1.0.
Signed-off-by: Mie Engel <Mike.Engel@digi.com>
2020-07-15 12:00:53 +02:00
Mike Engel 2f212539e3 recipes-grahics: weston: Update to new NXP BSP release imx-5.4.24-2.1.0.
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-07-15 12:00:53 +02:00
Mike Engel e3e15a0046 recipes-multimedia: imx-vpuwrap: Update to new NXP BSP release imx-5.4.24-2.1.0.
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-07-15 12:00:53 +02:00
Mike Engel 258b197dcf recipes-multimedia: imx-parser: Update to new NXP BSP release imx-5.4.24-2.1.0.
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-07-15 12:00:53 +02:00
Mike Engel 421ffdd434 recipes-multimedia: imx-codec: Update to new NXP BSP release imx-5.4.24-2.1.0.
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-07-15 12:00:53 +02:00
Mike Engel 20fd7d8561 recipes-multimedia: alsa: Update to new NXP BSP release imx-5.4.24-2.1.0.
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-07-15 12:00:53 +02:00
Mike Engel b6a63cb606 recipes-graphics: mesa: Update to new NXP BSP release imx-5.4.24-2.1.0.
This commit removes the mesa-gl_%.bbappend file because that latest version
of the recipe is available in the zeus branch of meta-freescale.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-07-15 12:00:53 +02:00
Mike Engel 7c60547a8b recipes-graphics: xorg-server: Update to new NXP BSP release imx-5.2.24-2.1.0.
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-07-15 12:00:53 +02:00
Mike Engel aeb8042efa recipes-bsp: imx-seco Update to new NXP BSP release imx-5.4.24-2.1.0.
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-07-15 12:00:53 +02:00
Mike Engel 284563b71c recipes-bsp: imx-mkimage Update to latest NXP release.
This commit updates to the NXP imx-5.4.24-2.1.0 BSP.

Including following changes

In M4 MCUX SDK 2.8.0, it added PMS demo for CM40 to support Partition
reboot feature besides rpmsg pingpong. So change the m40 default image
to imx8qm_m4_0_TCM_power_mode_switch_m40.bin

Build i.MX 8DXL flash_linux_m4 with V2X off
Use option V2X=NO to switch V2X off.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-07-15 12:00:53 +02:00
Mike Engel 98a16a31d6 recipes-bsp: imx-aft: Update recipes to new BSP release imx-5.4.24-2.1.0.
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-07-15 12:00:53 +02:00
Mike Engel 10d610dfad recipes-bsp: firmware-imx: Update to new BSP version imx-5.4.24-2.1.0.
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-07-15 12:00:53 +02:00
Hector Palacios c4932093f2 ccimx8x: add missing HDMI bridge overlay to KERNEL_DEVICETREE
Reported-by: Alfonso Martín Rey <alfonso.martinrey@digi.com>
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-07-15 06:48:25 +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
Gonzalo Ruiz 45c3f1e0ef imx-boot: ccimx8x: do not sign flash_regression_linux_m4 files
imx-boot files for target flash_regression_linux_m4 fail the signature
process, so skip them while signing the rest of the targets.

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

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2020-06-22 23:08:09 +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
Gonzalo Ruiz 168800c3b5 trustfence-sign-artifact: [cosmetic] bring together DTB parameters
Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2020-06-19 16:29:15 +02:00
Gabriel Valcazar 48f8720a23 recovery-initramfs: register mdev regardless of /proc/sys/kernel/hotplug
Busybox's device manager mdev was originally meant to be set up by writing its
path to /proc/sys/kernel/hotplug before launching it, but that entry no longer
exists in Linux v5.4's procfs and mdev can be launched directly.

Since mdev is the element in the recovery initramfs that is in charge of
mounting all partitions where .swu packages can be found (update partition on
the eMMC/MTD, uSD and USB), checking for the existence of the hotplug entry in
the procfs before launching mdev in v5.4 was preventing the partitions from
being mounted, and causing all software updates to fail.

While at it, move the two second delay to before mdev is launched, so all
partitions can be mounted. Otherwise, some devices such as the USB might not
be ready when mdev is launched, causing its partition to not be mounted.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-06-18 13:43:47 +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
Arturo Buzarra 931898968c README: Update dey-3.0-r1 changelog
https://jira.digi.com/browse/DEL-7120

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-06-16 17:49:11 +02:00
Gabriel Valcazar 5ee0b61010 libp11: remove recipe
This recipe was originally ported from the zeus branch of poky into the dey-2.6
meta-digi branch to support the pkcs11 feature in cryptoauthlib. Now that we've
migrated to zeus, the recipe is now duplicated and no longer necessary.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-06-16 12:57:54 +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
Gabriel Valcazar 96c2b2f759 wireless: rework regulatory domain dependencies depending on the platform
Starting with Linux v4.15, regulatory domains are no longer handled via CRDA,
but via the kernel and a flexible database instead. Said database is included
in the wireless-regdb-static package, which conflicts with the old
wireless-regdb package.

To accomodate for this new package, add CRDA as a dependency for ccimx6
platforms only, and incorporate wireless-regdb-static for the rest of the
platforms. Additionally, the ccimx6 kernel should inherit the
kernel_wireless_regdb .bbclass so the plaintext database is copied to the
kernel sources, but since we use the same recipe for all kernel versions and
ccimx6 platforms are not yet supported in zeus, omit this change for now.

Remove the package-base .bbappend, since only ccimx6ulstarter images include
that packagegroup and they require wireless-regdb-static, anyway.

By adding the regulatory database, we avoid delays when going to suspend,
caused by the kernel waiting for the database to appear.

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 be60a8f4e2 firmware-qualcomm: rename pcie UTF firmware file
When loading the wireless driver in test mode, the UTF firmware file
is loaded.

On pcie chips, the UTF file is expected to be named 'utf.bin'.
On sdio chips, the UTF file is expected to be named 'utf30.bin'.

Rename the pcie UTF file to match this requirement.

md5sum
----------------------------------------------------------
qca65X4_pcie:	utf.bin	    ->	41cfb4e50613cd0eeb0fa99a005131bd
qca65X4_sdio:	utf30.bin   ->	4743dee015047752e433e69f4db89974

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

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2020-06-15 20:10:35 +02:00
Gonzalo Ruiz ea8447ec7f firmware-qualcomm: Add CTL tables to CC8X US BDF
Add Compliance Test Limits (CTL) information for FCC, CE and TELEC
certifications to the CC8X US Board Data File.

The rest of the file (calibration, target power levels, etc.) remains
intact.

Updated file:

- bdwlan30_US.bin (MD5SUM: 100a982b33b4a2cfeb34cdea794dc6d6)

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

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2020-06-15 20:10:35 +02:00