Commit Graph

719 Commits

Author SHA1 Message Date
Hector Palacios c12afdf563 recipes-kernel: sync ccimx6ul defconfig
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2016-09-27 12:17:24 +02:00
Javier Viguera b2ae79fb1a formfactor: move config files under machine directories
Otherwise they are overridden with config files from other layers (for
example meta-fsl-arm) that may not be valid for our platforms.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-09-27 11:22:22 +02:00
Isaac Hermida 387d1349e8 recipes-bsp: firmware-qualcomm: fix missing World code
Set of the World country code in the BDF file. It was lost after syncing to the
latest QCA BDF files (commit b80f00f14a).

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-09-16 14:22:56 +02:00
Isaac Hermida 05fd2e00b4 conf: machine: ccimx6ulsbc: include support for second ethernet
https://jira.digi.com/browse/DEL-2952

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-09-15 12:31:49 +02:00
Isaac Hermida 412f1b1e55 meta-digi: rename external ethernet references to second ethernet
The name "ext-eth" seems to indicate "External Ethernet". Rename that variable
and related ones to a more proper name like second ethernet.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-09-15 12:31:49 +02:00
Diaz de Grenu, Jose 6b0fbddf3b meta-digi-arm: trustfence-sign-tools: simplify script usage outside Yocto
* Check number of arguments
* Add platform argument
* Read user configuration from .config file
* Remove unused variable (dek_blob_size)
* Remove noise in output messages

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-09-12 18:07:28 +02:00
Diaz de Grenu, Jose c5df62cd05 meta-digi-arm: trustfence-sign-tools: avoid using 'xxd'
When writing the fake IVT table in raw, rely on tac (part of the core-utils
package) instead of on xxd.

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-09-12 18:07:28 +02:00
Diaz de Grenu, Jose c8ec33129d meta-digi-arm: trustfence-sign-tools: add sign tools recipe
Add a recipe to include all signing and encryption tools for U-Boot and
kernel images to the SDK. Move existing trustfence kernel scripts to this
new recipe.

This allows to use these scripts not only from the Yocto build system but
also as standalone tools for image signing and encryption.

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-09-12 18:07:28 +02:00
Isaac Hermida b80f00f14a recipes-bsp: firmware-qualcomm: sync BDF files to latest QCA release
https://jira.digi.com/browse/DEL-3007

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-09-07 15:54:44 +02:00
Javier Viguera ab5f50e16a meta-digi: trailing whitespace cleanup
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-08-31 13:52:15 +02:00
Diaz de Grenu, Jose c59a5e6214 Revert "meta-digi-arm: Exclude u-boot-fw-utils if U-Boot environment encryption is"
This reverts commit b8f50680e5.

The support to read and write to an encrypted environment has been added, so
there is no need to exclude the u-boot-fw-utils anymore.

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-08-26 10:13:17 +02:00
Diaz de Grenu, Jose 3a2c35d850 meta-digi: meta-digi-arm: add environment encryption support to fw_* utils
This patch adds the functionality to automatically detect if the enviroment
is encrypted (through the device tree). If it is, the environment is encrypted
and decrypted as required in a transparent way for the user.

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-08-26 10:13:17 +02:00
Isaac Hermida b952cdce8b ccimx6ulsbc: add U-Boot scripts for deploying and booting the system
- boot.txt
    Sets the device tree filename basing on the SOM variant read from
    the HWID and boots from NAND.
- install_linux_fw_sd
    Deploys a full system (as generated by Digi Embedded Yocto) from
    a FAT formatted micro SD card into the NAND flash.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-08-25 13:24:01 +02:00
Isaac Hermida d3dbf9399a conf: machine: add support for ccimx6ulsbc platform
Add initial support for Digi's ConnectCore 6UL SBC.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-08-25 13:24:00 +02:00
Isaac Hermida 1baa4c2b38 ccimx6ul: defconfig: add bridge support for ccimx6ul
https://jira.digi.com/browse/DEL-2923

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-08-25 10:58:30 +02:00
Isaac Hermida a47838ddc8 meta-digi-arm: remove APM machine feature
APM is an ancient power management API mainly for x86. There is an
optional emulation layer for ARM, but none of our platforms is using
it, so just remove the machine feature.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-08-22 16:05:17 +02:00
Javier Viguera a7400b47f4 Merge tag 'dey-2.0-r3.2' into dey-2.0/master
Tweaked to maintain the u-boot and linux revisions to AUTOREV instead of
the fixed SHA1s from the tag.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-08-16 12:30:29 +02:00
Javier Viguera c92db49554 meta-digi: update revisions for dey-2.0-r3.2
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-08-11 16:24:58 +02:00
Javier Viguera 45763aec39 u-boot-dey: cosmetic, add quotes to warning message
So the warning message shows the TF variable setting in the correct
syntax that they should be written in the project's local.conf

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-08-10 16:45:38 +02:00
Javier Viguera 0d2130625b image-types_digi.bbclass: fix u-boot image for SDCARD when TF is enabled
When TRUSTFENCE_SIGN is enabled, the u-boot binary for the SDCARD image
needs to be the "signed" one.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-08-10 13:11:50 +02:00
Isaac Hermida 6d5e1ba8b6 recipes-kernel: defconfig: sync ccimx6ul defconfig
https://jira.digi.com/browse/DEL-2863

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-08-10 12:25:11 +02:00
Alex Gonzalez b8f50680e5 meta-digi-arm: Exclude u-boot-fw-utils if U-Boot environment encryption is
enabled

There is currently no support on fw_printenv/fw_setenv to access an
encrypted environment.

This commit removes the package if U-Boot environment encryption is
enabled to avoid environment corruption on access.

It also documents the issue as a known issue.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-08-10 10:59:30 +02:00
Alex Gonzalez 35271a8dc9 Merge branch 'dey-2.0/master' into dey-2.0/maint
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-08-04 19:13:00 +02:00
Diaz de Grenu, Jose 4070d9efae meta-digi: meta-digi-arm: u-boot: copy the new artifact u-boot-usb-signed
https://jira.digi.com/browse/DEL-2843

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-08-04 10:34:42 +02:00
Alex Gonzalez 106efc4970 meta-digi-arm: linux-dey: Add TrustFence dependencies on Linux kernel.
When changing any of the secure boot configurable macros the Linux kernel
should be re-deployed so that it can be signed/encrypted as needed.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-08-03 15:42:07 +02:00
Diaz de Grenu, Jose 9e5ee61851 meta-digi: use CAAM for environment encryption
https://jira.digi.com/browse/DUB-652

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-08-01 20:00:11 +02:00
Diaz de Grenu, Jose 5a8e57da72 meta-digi-arm: trustfence-cst: use random password for generated PKI trees
Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-08-01 20:00:09 +02:00
Diaz de Grenu, Jose 36d7311459 meta-digi-arm: trustfence-cst: fix native recipe and Makefile
This package is native only, this patch ensures it can only be built
natively and fix the following problems:
* Add openssl-native rather than openssl to the dependencies.
* Use the $(CC) $(LDFLAGS) and $(CFLAGS) that Yocto provides to avoid a
  compilation error.

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-07-29 17:08:25 +02:00
Isaac Hermida fc959bd23f kernel-module-qualcomm: do not log any error if dtb regdomain is not set
Do not add a log error if there is not defined a device tree entry for the
regulatory domain.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-07-28 13:03:03 +02:00
Isaac Hermida 6d846bb7db recipes-kernel: defconfig: sync ccimx6ul defconfig
Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-07-26 16:23:12 +02:00
Javier Viguera 5726d97702 meta-digi: revert kernel and u-boot revisions to AUTOREV
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-07-26 12:11:54 +02:00
Javier Viguera 3957edbb0b meta-digi: update revisions for dey-2.0-r3.1
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-07-22 11:48:23 +02:00
Javier Viguera fdf8978e57 linux, u-boot: configure recipes to use maintenance branches
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-07-22 10:32:00 +02:00
Isaac Hermida 1e843089fe ccimx6ul: defconfig: update config file for ccimx6ul
Add support for ADC using the MCA driver.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-07-22 08:52:25 +02:00
Isaac Hermida 46c7508ee3 kernel-module-qualcomm: add support to override the region code
The region code is programmed in the OTP bits. We want to allow to be able to
override this behavior by setting the new value as a property in the device
tree called "regulatory-domain".
This can be done by setting the variable "regdomain=<code>" in uboot or well
by defining that entry in the device tree.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-07-21 18:32:07 +02:00
Isaac Hermida cd253b370b kernel-module-qualcomm: load specific firmware file per region
The country region is programmed in the OTP bits. Based on that value we need
to load the firmware file for the specific country region.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-07-21 18:29:34 +02:00
Isaac Hermida 0b5c74e836 recipes-bsp: firmware-qualcomm: add different firmware files for country regions
We are including two firmware files: one for setting the country to US and the
other one to set it to the World Wide Roaming region (SKU 0060).

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-07-21 18:29:34 +02:00
Diaz de Grenu, Jose 84cad4e4ad meta-digi-arm: linux-dey: fix check for uImage signing
TRUSTFENCE_SIGN can be defined to "0" to explicitly disable uImage sign and
encryption.

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-07-21 11:38:01 +02:00
Diaz de Grenu, Jose 5ee4340942 meta-digi-arm: u-boot: [cosmetic] correct DEY macro name
https://jira.digi.com/browse/DEL-2804

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-07-21 11:20:03 +02:00
Hector Palacios d9c4a586f2 ccimx6ulstarter: add device tree file for -id129 board
This device tree file corresponds to StarterBoard with ID=129
which corresponds to smart part number CC-WMX6UL-START.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2016-07-20 16:33:04 +02:00
Diaz de Grenu, Jose ebbe0e6d3e Revert "meta-digi-arm: u-boot: use v2015.04 maintenance branch"
The correct U-Boot branch to be used with dey-2.0/master is v2015.04/master, as
it contains the latest development changes (just like dey-2.0/master).

This reverts commit 728619a5bc.
2016-07-19 18:38:12 +02:00
Diaz de Grenu, Jose 3f25006148 meta-digi-arm: u-boot: copy signed and encrypted artifacts
After commit b0a766eafc8 in the U-Boot repository, both signed and
encrypted images will be generated. Copy both of them to the deploy folder

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-07-19 18:38:05 +02:00
Diaz de Grenu, Jose d91661d7de meta-digi-arm: add support for signed and encrypted uImages
https://jira.digi.com/browse/DUB-534
https://jira.digi.com/browse/DUB-602

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-07-19 15:48:12 +02:00
Diaz de Grenu, Jose f23d8c6abb trustfence: simplify TRUSTFENCE_ configuration macros
Adapt the U-Boot recipe to the last U-Boot Kconfig entries changes.

Simplify the name of some TRUSTFENCE_ configuration macros. These were
used to configure U-Boot, but they will also configure the uImage signature
and encryption processes.

https://jira.digi.com/browse/DUB-602
https://jira.digi.com/browse/DUB-618
https://jira.digi.com/browse/DUB-534

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-07-19 15:48:12 +02:00
Diaz de Grenu, Jose 37eb7db2dc meta-digi-arm: trustfence-cst: use /dev/urandom
This is needed in order to avoid indefinitely blocking.

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-07-19 15:48:12 +02:00
Diaz de Grenu, Jose ceb9ca1537 trustfence-cst: hab4_pki_tree-sh: automate script
This allows to automatically create a secure PKI tree without user
interaction.

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-07-19 15:48:12 +02:00
Diaz de Grenu, Jose 8ac7da51ef meta-digi-arm: add recipe for the Code Signing Tools
NXP Code signing Tool for the High Assurance Boot library is needed for
signing and encrypting different artifacts (U-Boot image, uImage, ...).

As the CST cannot be included in DEY, the user needs to download the
tarball and add it to the recipe folder.

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-07-19 15:48:12 +02:00
Javier Viguera d80aa91c28 meta-digi-arm: set 'boot.ubifs' image depends explictly
To build the CC6UL boot image, the u-boot and linux images need to be
already deployed. Also the native mtd-utils package needs to be
available in the sysroot.

Make all this dependences explicit for deterministic reproducibility.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-07-19 12:35:51 +02:00
Hector Palacios b71f2dacb5 u-boot-fw-utils: add support and config file for CC6UL platform
U-Boot environment on the CC6UL NAND is located at partition /dev/mtd1:
 - original copy is located at offset 0 in the partition
 - redundant copy is located 1 erase block (128K) after the original copy

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

https://jira.digi.com/browse/DEL-2552
2016-07-19 11:47:42 +02:00
Javier Viguera 8ccafb9492 u-boot: disable TF initramfs for CC6UL
At the moment there is no support for rootfs encryption for the CC6UL,
so there is not a ramdisk in the boot image. But with the initial
addition of TF support, the u-boot boot script was being on-the-fly
updated for TF regardless of the platform, making the CC6UL unable to
boot when TF was enabled.

This commit fixes the problem, by just changing the u-boot boot script
when TF is enabled only for the CC6.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-07-18 11:35:09 +02:00