Commit Graph

650 Commits

Author SHA1 Message Date
Mike Engel 8eedf4407e meta-digi-arm: Add new CC6UL variants
Signed-off-by: Mike Engel <Mike.Engel@digi.com>

https://jira.digi.com/browse/DEL-7169
2020-09-14 18:14:03 +02:00
Francisco Gil Martinez 9249c60c88 ccimx8mn: add support for QUAD overlay
Signed-off-by: Francisco Gil Martinez <francisco.gilmartinez@digi.com>
2020-09-14 16:39:57 +02:00
Francisco Gil Martinez 1306bbd3ee ccimx8mn: remove the soc type from overlays
With the previous solution we would need to generate
multiple overlays for each soc_type, so if we have a
new soc type (for example the solo), we would need
to generate 3 different overlays.

Signed-off-by: Francisco Gil Martinez <francisco.gilmartinez@digi.com>
2020-09-14 16:39:57 +02:00
Arturo Buzarra bbb73aad2b imx-boot: generate signed U-Boot binary even when encryption is enabled
This commit fixed the sdcard generation when encryption is enabled.
In the sdcard image always is included the signed image instead of the
encrypted.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-09-09 09:03:58 +02:00
Gonzalo Ruiz d516aa96d3 u-boot-dey: add 2020.04 recipe for ccimx8x
Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2020-09-03 13:36:14 +02:00
Arturo Buzarra 68720f869b trustfence-cst: add support for cst v3.3.1
This version supports encryption for devices with Advanced High Assurance Boot
(AHAB) capabilities. This commit also updates and simplifies Digi custom
patches.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-09-03 12:04:30 +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
Gonzalo Ruiz ae05d9633a u-boot-dey: add mmc partconf command to uuu scripts
Add running 'mmc partconf 0 1 1 1' command to the uuu scripts after
writing the new U-Boot into the internal eMMC.

This is required for blank eMMCs on CC8MN and CC8X SOMs where the
'update' command has never been run to be able to boot from eMMC.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2020-08-20 10:36:12 +02:00
Gabriel Valcazar 6609611d2b digi-sc-firmware: update to v1.5.1
Update to NXP's v1.4.0 porting kit

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-08-14 11:16:17 +02:00
Hector Palacios 5403b831df 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
(cherry picked from commit 8ced362766)
2020-07-24 13:13:40 +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
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 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 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 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
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
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
Gonzalo Ruiz d88969aac2 imx-boot: sign images for every target in IMXBOOT_TARGETS
https://jira.digi.com/browse/DEL-7024

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2020-06-15 16:37:46 +02:00
Gonzalo Ruiz b6edb0076f imx-boot: add 'signed' to the signed images prefix
Signed imx-boot files had the '-signed' appended at the end of the file.
Add it after the file prefix instead, so it is easier to replace using an
unsigned file for a signed one just by changing the file prefix.

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

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2020-06-15 16:34:23 +02:00
Gonzalo Ruiz 09991407df imx-mkimage: fix compilation issue for nativesdk builds
The '-fmacro-prefix' option is a new GCC option introduced in gcc version 8.

To keep compatibility with previous GCC versions, remove this option from
the DEBUG_PREFIX_MAP list so nativesdk builds are able to compile this recipe.

Following is the compilation issue avoided by this patch:

| gcc: error: unrecognized command line option ‘-fmacro-prefix-map=<yocto-workspace>/tmp/work/x86_64-nativesdk-deysdk-linux/nativesdk-imx-mkimage/git-r0=/usr/src/debug/nativesdk-imx-mkimage/git-r0’

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2020-06-15 16:17:07 +02:00
Gonzalo Ruiz 25738b4ac5 imx-mkimage: remove legacy native configurations
This recipe is now built as native and nativesdk by means of the
BBCLASSEXTEND configuration.

Remove every remaining legacy native configuration since all will be covered
by the class extension.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2020-06-12 11:49:38 +02:00
Gabriel Valcazar 95e7f61f33 firmware-imx: add custom sdma-firmware service for the ccimx8mn-dvk
This service is the same as the one provided by NXP, but with altered
dependencies. Start it before the kernel modules are loaded so the firmware is
ready by the time the mcp25xxfd module is loaded.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-06-08 17:08:42 +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
Gonzalo Ruiz 02646996b9 imx-boot: add dtbs parameter to print_fit_hab build
https://jira.digi.com/browse/DEL-7024

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2020-06-04 19:01:34 +02:00
Gonzalo Ruiz 9b4a03c14c trustfence: [cosmetic] rename script to trustfence-sign-artifact
The signing script is used for signing multiple artifacts, not just the
kernel, so rename it for a broader use.

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

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2020-06-04 19:01:34 +02:00
Gonzalo Ruiz ce979e9323 u-boot-dey: simplify trustfence signing process
Signing with AHAB mode only requires an additional prior step, so
reuse as much code as possible.

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

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2020-06-04 19:01:34 +02:00
Gonzalo Ruiz 1a600bcded u-boot-dey: allow bootscript signing for ccimx8mn
TRUSTFENCE_SIGN_MODE for ccimx8mn is "HAB", although the
BOOTLOADER_IMAGE_RECIPE is "imx-boot".

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 8af14c257e digi-sc-firmware: update to v1.4.0.3
This adds support to configure the PF8100/PF8200 PMIC via Linux

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-06-04 13:58:31 +02:00
Arturo Buzarra 616e2059d3 meta-digi-arm: uboot: Add kernel parameter to center custom logo
https://jira.digi.com/browse/DUB-948

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-06-04 08:33:51 +02:00
Gabriel Valcazar 0115fe8fa7 switch to building from maintenance branches for dey-3.0
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-06-01 13:43:29 +02:00
Arturo Buzarra da4145dd13 imx-mkimage: move recipe to native and include its binaries in the SDK
imx-mkimage is a host recipe to provide the mkimage_imx8 binaries, required
for the trustfence support with platform based on AHAB (ccimx8x). Since
these binaries are required to the sign process we need to export it in the
SDK to allow the standalone sign mode, and with that we can simplify the
mechanism to share these binaries with another recipes (u-boot, linux).

Also the do_deploy() from imx-mkimage recipe was removed to avoid overriding
the implementation from the native class and allow populating the mkimage
binaries.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-06-01 08:56:20 +02:00
Arturo Buzarra dbd6cb6bd7 imx-boot: fix build ccimx8x images with trustfence support
Commit 3fbd38ca ("imx-boot: build ccimx8x images for B0 and C0 silicon
revisions") added support to build images for B0 and C0 revisions,
forgetting include this support on trustfence builds.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-05-29 15:08:48 +02:00
Hector Palacios f42b966925 Revert "meta-digi-arm: u-boot: Add CC6UL to v2019.04 u-boot."
U-Boot v2019.04 has unresolved issues on CC6UL.
This reverts commit acf9d41388.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-05-29 09:56:07 +02:00
Arturo Buzarra ae195525a0 imx-m7-demos: add recipe for M7 binary demos
This recipe takes several binaries demo for the Cortex M7 CPU,
and are provided in the deploy directory.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-05-29 08:25:09 +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 aa68675f45 ccimx8x-sbc-pro: add support for the C0 SOC in the fw installation scripts
The scripts need to know the SOC's revision to be able to select the correct
imx-boot image. Modify the boot-artifacts bbclass so the renamed imx-boot files
are included in the installation .zip.

Also, bypass the SECO fw check in the uSD script so it can install future
versions that aren't recognized by U-Boot's SECO fw checking logic. The UUU
script doesn't require this bypass, since it doesn't use the Digi update
command to flash the bootloader.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-05-28 18:03:09 +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 37071483f7 u-boot: fix typo on cc8x boot script
Commit bc7320f203 introduced a double quote typo.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-05-27 09:51:55 +02:00
Hector Palacios f58ccb7463 boot: don't set fdt_file on bootscript; just the overlays
With the device tree overlays mechanism in place, the bootscript
doesn't need to set the fdt_file variable. Instead, it will use
the value it has (which can be changed by the user) and it will
simply update the 'overlays' variable with the device tree
overlays that apply basing on the hardware capabilities found
on the HWID, SOM version, and carrier board version.

This allows a user to override the default fdt_file to point
to his custom device tree, but still make use of the boot script
for hardware-detected overlays.

Without the need to set the base filename, the boot script is the
same for any carrier board of the ccimx8x SOM, so this commit
moves it to a common folder.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-05-27 07:06:29 +02:00