Commit Graph

1521 Commits

Author SHA1 Message Date
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
Hector Palacios dd2eff6f01 README: wrongly reported CC6UL Starter Board version
U-Boot version dub-2015.04-r4.5 may report running on
Starter Board version 1 even when your Starter Board is
version 2. In that case Ethernet does not work in U-Boot.
More recent versions of U-Boot fix this issue.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2016-09-14 12:36:29 +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 8e69db8ac5 recipes-connectivity: crda: update wireless regulatory DDBB to 2016-06-10
https://jira.digi.com/browse/DEL-3010

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-09-09 15:33:06 +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 7b170b58ac meta-digi-dey: add static libraries for core-image-base based SDK
https://jira.digi.com/browse/DEL-2881

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-09-01 17:37:10 +02:00
Isaac Hermida 2cad47099d recipes-connectivity: hostapd-2.4: add defconfig with custom setup
Copy of the original defconfig in hostapd-2.4 and enabling next options:
    - CONFIG_LIBNL32
    - CONFIG_EAP_PSK
    - CONFIG_EAP_PWD
    - CONFIG_WPS
    - CONFIG_WPS_NFC
    - CONFIG_RADIUS_SERVER
    - CONFIG_IEEE80211N
    - CONFIG_IEEE80211AC
    - CONFIG_DEBUG_FILE

This means that the hostapd binary will have support for that features, but it
does not imply that the wireless chip does support it.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-09-01 14:27:22 +02:00
Isaac Hermida c164c462f1 recipes-connectivity: hostapd-2.4: removing machine dependency
The current applied patch is a backport of hostapd-2.5 so it is not any
machine dependency.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-09-01 09:27:32 +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
Javier Viguera fb656a8ed1 build.sh: support 'ccimx6ulsbc' platform
https://jira.digi.com/browse/DEL-2928

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-08-30 17:46:00 +02:00
Javier Viguera a63030f4fd meta-digi-dey: bump distro version to 2.0-r4
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-08-29 19:26:42 +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 51415b9e12 meta-digi: dey-wireless: add hostapd to the list of packages for ccimx6ul
https://jira.digi.com/browse/DEL-2913

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-08-25 18:42:56 +02:00
Isaac Hermida d3f1b0b18a meta-digi-dey: init-ifupdown: add commented code for softAP example
Add commented lines as example to configure and run the wlan0 interface in AP
mode using hostapd daemon.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-08-25 18:42:56 +02:00
Isaac Hermida 5444d3e8f8 recipes-connectivity: add hostapd functionality
Do not autostart hostapd daemon on boot because because it will conflict with
wpa-supplicant process and add a custom hostapd.conf file with WPA2-AES
encryption.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-08-25 18:42:56 +02:00
Isaac Hermida b2d6231d88 sdk: add ccimx6ulsbc support
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 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 1a36cbee70 build-github.sh: define default bitbake targets per platform
Instead of having one default image target for all platforms allow to
define this per platform.

This is needed because for example for the 'ccimx6ulstarter' we want to
define a default command line image instead of a QT-based one.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-08-18 17:47:49 +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 d19e9196a0 meta-digi: revert kernel and u-boot revisions to AUTOREV
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-08-11 16:26:21 +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 443092a6b0 README.md: fix FTP links not rendered in GitHub's markdown
FTP links are not correctly rendered in GitHub, so just put them as
text.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-08-11 16:21:30 +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 2e13e194d9 trustfence: disable SDCARD image generation when encryption is enabled
Currently we don't support booting encrypted images from an SDCARD, so
just disable the generation of such images.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-08-10 16:45:38 +02:00
Alex Gonzalez 59e805bdeb README.md: Update release notes.
* Add known issues for CC6UL.
* Refer to online documentation for interface and feature list.
* Add uSD encrypted image boot limitation.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-08-10 14:15:29 +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 0320e7734e README.md: Update release notes.
* Add trademark to TrustFence (TM) for consistency.
* Remove CC6UL non-wireless variant from supported products
* Added a note to check the online documentation for an updated known
issues and limitations list.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-08-10 10:59:30 +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
Javier Viguera 7727b4402e init-ifupdown: use [[:blank:]] posix expression instead of '\s' shorthand
According to 'grep' manual '\s' is a synonym for [[:space:]] which
matches spaces, TABs, but also newlines, etc. We want to only match
spaces and TABs, so use [[:blank:]] instead.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-08-09 19:32:00 +02:00
Diaz de Grenu, Jose c4bf4c791a meta-digi-dey: trustfence: add Yocto macro to unlock key revocation
By default, on closed devices you cannot revoke any key. To do so, it is
required to compile a U-Boot which instructs the HAB not to set the sticky
bit which write protects that field in the OCOTP controller.

This patch introduces a Yocto macro which allows to configure U-Boot in
that way.

In the ConnectCore 6, the value of this settings is ignored, because HAB never
sets the sticky bit which write protects that field.

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-08-09 19:11:08 +02:00
Stephan Klatt b31c09e59f init-ifupdown: misc cellular fixes
* set cellular user and password
* stricter replace to not match set values
* only set cellular interface to auto

Internal merge of Github's PR:

https://github.com/digi-embedded/meta-digi/pull/2

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-08-09 19:06:23 +02:00
Diaz de Grenu, Jose 6746254558 meta-digi-dey: trustfence: add Yocto macro to unlock key revocation
By default, on closed devices you cannot revoke any key. To do so, it is
required to compile a U-Boot which instructs the HAB not to set the sticky
bit which write protects that field in the OCOTP controller.

This patch introduces a Yocto macro which allows to configure U-Boot in
that way.

In the ConnectCore 6, the value of this settings is ignored, because HAB never
sets the sticky bit which write protects that field.

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-08-09 20:01:59 +02:00
Diaz de Grenu, Jose a9b8d74041 Revert "meta-digi-dey: trustfence: disable encryption for the ConnectCore 6UL"
Encryption is now supported in the ConnectCore 6UL

This reverts commit 454fff56ba.

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-08-08 13:15:22 +02:00
Diaz de Grenu, Jose d996dfd768 Revert "meta-digi-dey: trustfence: disable encryption for the ConnectCore 6UL"
Encryption is now supported in the ConnectCore 6UL

This reverts commit 454fff56ba.

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-08-08 11:50:01 +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 454fff56ba meta-digi-dey: trustfence: disable encryption for the ConnectCore 6UL
Encryption of U-Boot and kernel images is not yet supported in the Connect
Core 6 UL.

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-08-04 10:34:46 +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 a2bb75a602 README: Merge Release Notes and Changelog in a single document.
The README.md file is rendered by github using github's markdown syntax:
https://help.github.com/articles/basic-writing-and-formatting-syntax/

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-08-03 16:46:23 +02:00
Alex Gonzalez 0588b4b388 meta-digi-dey: trustfence: Do not disable console access by default.
While performing usability testing on the TrustFence documentation, it has
been noted that in order to follow the secure boot instructions the
console needs to be enabled.

We have now moved the secure console section to the end of the
documentation so that disabling the console is the last configuration to
make in a secure system.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-08-03 15:55:18 +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
Alex Gonzalez dcd13093d2 meta-digi-dey: dey-trustfence: Force to repackage on console state change.
https://jira.digi.com/browse/DEL-2852

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-08-03 15:38:04 +02:00
Alex Gonzalez fb2f7bd345 README: Merge Release Notes and Changelog in a single document.
The README.md file is rendered by github using github's markdown syntax:
https://help.github.com/articles/basic-writing-and-formatting-syntax/

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-08-03 12:24:34 +02:00