Commit Graph

1631 Commits

Author SHA1 Message Date
Javier Viguera aea7e88db6 meta-digi: compile 'dey-image-qt' by default for ccimx6ulsbc
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-09-27 19:05:05 +02:00
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 3a39aacdd7 meta-digi-dey: rework installed packages for ccimx6ul
CCIMX6UL's rootfs partition is not big enough for the default
'dey-image-qt' image. This commit reworks the QT5 and SATO installed
packages for the ccimx6ul, so the image fits in the rootfs partition.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-09-27 11:27:50 +02:00
Javier Viguera a4c45ecd2d gst-player: disable 'glimagesink' patch for ccimx6ul
The ccimx6ul does not have a GPU, so opengl based gstreamer sink will
not work. Thus apply the patch only for the CCIMX6.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-09-27 11:27:50 +02:00
Javier Viguera 11ce6f30b7 qtbase: enable 'linuxfb' platform plugin
This plugin uses directly the framebuffer, so it can be used in non
X11-based systems, but it oly supports software rendered content,
no opengl/es.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-09-27 11:27:50 +02:00
Javier Viguera 6e96f4ac7e qtbase: add i.MX6UL overrides
This allows to build 'qtbase' for the CC6UL.

It only fixes the broken build, as any QT application that uses OpenGL/ES
will fail because there is no support for QT/OpenGL in modules without
a GPU.

Fix:

arm-dey-linux-gnueabi-g++  -march=armv7-a -mfloat-abi=softfp -mfpu=neon
--sysroot=/ssd/dey/jethro/fb/ccimx6ulsbc/tmp/sysroots/ccimx6ulsbc
-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,-O1 -o opengldesktop
opengldesktop.o   -lGL

.../arm-dey-linux-gnueabi/5.2.0/ld: cannot find -lGL

A similar commit was done in meta-fsl-arm.git (branch Krogoth).

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-09-27 11:27:49 +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
Javier Viguera e4e65538e8 pointercal.xinput: add empty calibration for ccimx6ul
Add an empty calibration file to prevent the 'xinput_calibrator' tool
being launched on X11 desktop start.

The file does not have any calibration data because capacitive touch
displays usually do not need calibration.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-09-27 11:20:33 +02:00
Javier Viguera 8341462161 matchbox-session-sato: synchronize with matchbox 'session' file in poky
This file has not been synchronized with the one in Poky since previous
versions of DEY. Not much has changed, but sync it anyway.

Also:

* Get SHOWCURSOR from formfactor config files, but fallback to one
  value depending on HAVE_TOUCHSCREEN if it was not configured.

* Rename the bbappend to the version generic '_%.bbappend'

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-09-20 16:59:31 +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
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