Commit Graph

348 Commits

Author SHA1 Message Date
Isaac Hermida 756ba7b8cf bluez5-init: disable the HW flow control for qca6564
Add a software workaround to disable the HW flow control because the SOM
revision 3 (and older) has swapped the bluetooth TX and RX lines so we need
to operate in DTE mode which implies that the HW control lines are swapped.
This also implies reducing the baudrate to avoid the need for HW flow control.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-06-17 10:05:27 +02:00
Isaac Hermida 9765192fbd bluez5-init: add support for qca6564
Add initial support for the qca6564 chip.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-06-17 10:05:27 +02:00
Alex Gonzalez ac740b7fdc meta-digi-dey: trustfence: Explicitely check for "1" for variable enable
https://jira.digi.com/browse/DEL-2603

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-06-10 09:48:05 +02:00
Jose Diaz de Grenu de Pedro 5f45a87ebd meta-digi-arm: trustfence: implement Yocto secure boot configuration
Implement the set of TRUSTFENCE_ macros to configure each secure boot feature
available in U-Boot.

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

Signed-off-by: Jose Diaz de Grenu de Pedro <Jose.DiazdeGrenudePedro@digi.com>
2016-06-03 17:46:52 +02:00
Victor Rubio 0aa26fb70a meta-digi-dey: add sysinfo package to dey-core packagegroup
sysinfo is a bash script which gathers all the relevant information
from a running system on a timestamped compressed file.

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

Signed-off-by: Victor Rubio Victor.RubioTorroba@digi.com
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-06-02 20:04:31 +02:00
Alex Gonzalez 2e95ff7519 meta-digi: Add TrustFence configuration class.
This commit adds a trustfence class to encapsulate all trustfence
configurations.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-05-31 17:51:00 +02:00
Alex Gonzalez 1fa78eb3de meta-digi-dey: Add dey-trustfence packagegroup and feature.
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-05-31 17:51:00 +02:00
Alex Gonzalez 05f1daeecc meta-digi-dey: systemd: Disable getty on console disable.
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-05-31 17:51:00 +02:00
Alex Gonzalez 5351b71c82 meta-digi-dey: sysvinit: No getty in inittab if console disabled.
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-05-31 17:51:00 +02:00
Alex Gonzalez f15d7c3e31 meta-digi-dey: Add auto-serial-console recipe.
This support comes from meta-linaro @9f899282caa9 and adds the ability
to configure getty dynamically from the console argument in the kernel
command line.

This will make it possible to enable/disable the console dynamically as
signalled by U-Boot.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-05-31 17:51:00 +02:00
Isaac Hermida 325c3b9da9 bluez5: add support for qca6564 bluetooth chip
Port the bluez5 qca6564 support based on 5.19 to the current version 5.33.
The ported version is based on qualcomm tag r110048.3.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-05-31 08:20:51 +02:00
Javier Viguera 988ca78f31 meta-digi-arm: add rng-tools for CC6
This daemon (rngd) feeds random data from hardware device to kernel
entropy pool.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-05-27 16:10:36 +02:00
Javier Viguera 2a8e1d7002 openssl: update cryptodev engine implementation
As of Yocto 2.0, the cryptodev module used as interface between
user-space and hardware encryption is the version 1.7.

According to that cryptodev's version documentation, the cryptodev
engine in openssh is outdated:

https://github.com/cryptodev-linux/cryptodev-linux/blob/cryptodev-linux-1.7/README

They provide an URL with two patches to update openssl. This commit
forward port those patches to the Openssl version used in this version
of Yocto.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-05-27 16:10:36 +02:00
Arturo Buzarra d5501d31c6 dey.conf: update distro version to 2.0-r2
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2016-05-26 13:58:10 +02:00
Isaac Hermida e975240bde packagegroup-dey-examples: Defining initial list for ccimx6ul
https://jira.digi.com/browse/DEL-2529

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-05-13 10:10:14 +02:00
Isaac Hermida 620f94596f meta-digi: Replace COMPATIBLE_MACHINE string for ccimx6
COMPATIBLE_MACHINE is a regular expression, so we need to update the current
pattern for ccimx6 due to it will also match with ccimx6ul.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-05-11 10:22:25 +02:00
Javier Viguera ff3f42d899 dey-image-tiny: remove X11 distro feature limitation
That restriction does not make any difference in the final image
contents, because no package depending on X11 is added to the image, and
it prevents the image from being built with the default DEY
configuration (that has X11 distro feature enabled).

This also allows to build the image in the buildserver with the same job
that builds other X11 based images.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-04-22 10:30:57 +02:00
Javier Viguera 658a52497b meta-digi: add layer dependences
Use LAYERDEPENDS to configure the layer dependences for meta-digi-arm
and meta-digi-dey.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-04-08 16:18:00 +02:00
Javier Viguera 2a9b0b73b0 qt5everywheredemo: add 'qtsvg' build-time dependence
Otherwise building the demo application fails with:

| DEBUG: Executing shell function do_configure
| Project ERROR: Unknown module(s) in QT: svg

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-03-23 16:34:14 +01:00
Jose Diaz de Grenu de Pedro fca507d316 meta-digi-dey: pulseaudio: add HDMI audio sink on hotplug
This patch adds a udev rule and a script to detect HDMI hotplug and create
the HDMI audio pulseaudio sink if needed (that is, if the system was
booted with no HDMI cable plugged).

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

Signed-off-by: Jose Diaz de Grenu de Pedro <Jose.DiazdeGrenudePedro@digi.com>
2016-03-22 11:51:14 +01:00
Javier Viguera 8260fb9226 Revert "qtconnectivity, qtsystems: fix bluetooth support"
A patch sent upstream has been finally merged so this commit is not
needed anymore.

This reverts commit 6a66656161.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-03-01 12:19:51 +01:00
Jose Diaz de Grenu de Pedro e021f738ee pulseaudio: remove module-udev-detect
module-udev-detect blocks the sound interface on boot for about five
seconds while detecting the hardware. This patch removes it so that
module-detect is used instead, which uses static hardware detection and is
faster.

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

Signed-off-by: Jose Diaz de Grenu de Pedro <Jose.DiazdeGrenudePedro@digi.com>
2016-02-25 11:46:38 +01:00
Hector Palacios 92f744ab75 meta-digi-dey: move ${GRAPHICAL_BACKEND} to DEY distro conf
Move this variable to DEY distro conf so that it is available for any
recipe built with the distro.

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

https://jira.digi.com/browse/DEL-2192
2016-02-12 12:09:53 +01:00
Javier Viguera 58219a5cb3 demo-extrafiles: remove desktop launcher of hellogl_es2 application
There is another OpenGL demo application QT5 Hello Windows for testing
purposes.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-02-10 19:07:03 +01:00
Isaac Hermida 3a9825b27d meta-digi-dey: Add wifi pre/post actions to suspend script
It has been observed that the wireless interface ocassionally fails to resume
from suspend on extensive long run validation testing, so we workaround it by
bringing the interface down before suspend and bring it up again after resume

This reverts commit a77cd1406d.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-02-09 16:47:21 +01:00
Javier Viguera e64abf4d17 meta-digi-dey: remove old minimal and graphical images
DEY provides a new dey-image-qt image (for fb and X11).

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-02-04 19:56:22 +01:00
Javier Viguera 7fa60f80f9 meta-digi-dey: add new 'dey-image-qt' image
This image provides a demo rootfs with QT. It can be built for
framebuffer and also for X11.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-02-04 19:55:51 +01:00
Javier Viguera f4920f2837 meta-digi-dey: bump distro version to 2.0-r1
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-02-02 16:21:40 +01:00
Javier Viguera 2bc7e6b026 meta-dig-dey: remove BBMASK
We were masking meta-fsl-arm linux recipes to clean some warnings on
bitbake parsing. This does not happen anymore with new versions of
Yocto, so just remove this BBMASK.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-02-01 18:50:14 +01:00
Javier Viguera f9d9544e5f packagegroup-dey-qt: add qtconnectivity-examples
Adds the QT5 bluetooth libraries and examples.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-01-25 16:18:24 +01:00
Javier Viguera d7b18512dc packagegroup-dey-bluetooth: add bluez5-obex package
This install the 'obexd' server which is needed for the QT5 bluetooth
file transfer example applications.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-01-25 16:17:53 +01:00
Javier Viguera 6a66656161 qtconnectivity, qtsystems: fix bluetooth support
Generalize bluetooth support so it can be used not only with bluez4 but
with bluez5 as well. Use EXTRA_QMAKEVARS_PRE to pass the packageconfig
options to the do_configure task.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-01-25 16:17:21 +01:00
Javier Viguera 0b07af3bef sysvinit: disable all cpu cores but cpu0 on halt/reboot
This is a user-space workaround for the reboot/poweroff problems we
are having in the ccimx6sbc. Seems that they are not reproducible when
only one core is enabled, so the workaround is to disable the rest of
the cores for rebooting/halting.

https://jira.digi.com/browse/DEL-2133
https://jira.digi.com/browse/DEL-2148

Signed-off-by: Javier Viguera <javier.viguera@digi.com>

(cherry picked from commit a9e36a74bb20ab38f220116ba2742dca3d80c293)
2016-01-22 10:36:31 +01:00
Javier Viguera ef230a3616 gst-player: support setting the video sink from environment var
Also initialize the video sink to 'glimagesink' in case it has not been
configured from the environment, but only for the X11 application
(gtk-play). This recipe also provides a command line application for
framebuffer (gst-play) that is not affected by this change.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-01-15 17:25:19 +01:00
Javier Viguera 93864cc3c4 gstreamer packagegroup: add gstreamer1.0-rtsp-server
Adds the library and the example applications.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-12-29 16:52:00 +01:00
Javier Viguera 3605d12627 gstreamer1.0-rtsp-server: create examples package
The example applications are not packaged by default, so extend the
recipe to create a package with the example applications.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-12-29 16:50:19 +01:00
Hector Palacios ee27c907d1 bluez-init: skip BT power GPIO toggling if undefined
The script toggles the BT power GPIO regardless of the value being
undefined.
Check that the GPIO is defined before trying to toggle it.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2015-12-28 17:08:18 +01:00
Hector Palacios 84e152f1ca bluez-init: get BT power GPIO basing on compatible module
The BT power GPIOgpio was determined basing on machine name on device tree.
This corresponds to the name of the board, and might be changed by a user
that designs his own carrier board to use the module on.
Besides, the BT power GPIO is a pin that's routed on the module (both on
the ConnectCore 6 and on the ConnectCard for i.MX28) not on the carrier
board.

This commit determines the BT power GPIO basing on the module string inside
the 'compatible' property. This must exactly match the module name and is
a required property for using Digi module's BSP.

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

https://jira.digi.com/browse/DEL-2109
2015-12-28 17:08:18 +01:00
Javier Viguera 52c8fb836a meta-digi-dey: remove X11 limitation for dey-image-graphical
So we can build a 'dey-image-graphical' image for framebuffer with
support for QT5.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-12-22 14:35:04 +01:00
Javier Viguera eb01102976 meta-digi-dey: clean dey-image-graphical image
No functional change, as 'package-management' is added via the included
dey-image-minimal recipe, and 'pointercal-xinput' is a dependence of
xinput-calibrator which is added for X11 images.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-12-22 14:35:04 +01:00
Javier Viguera e3b4c006f5 qt5: configure EGLFS platform automatically for non-X11 images
By default QT5 applications use 'xcb' platform plugin but this can be
changed using the QT_QPA_PLATFORM environment variable. On non-X11
images the 'xcb' platform plugin obviously does not work, so just
configure 'eglfs' for non-X11 images.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-12-22 14:35:04 +01:00
Javier Viguera 4ca14779ca qt5: qt5everywheredemo: update to latest from upstream
It has been adapted to work with more recent versions of QT5.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-12-21 19:05:56 +01:00
Javier Viguera 616b933e7b qt5: qtbase: enable sqlite build-time configuration
There are some demo apps that otherwise fail with:
  QSqlDatabase: QSQLITE driver not loaded
  QSqlDatabase: available drivers:

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-12-21 19:05:24 +01:00
Javier Viguera 9248b31956 Revert "meta-digi-dey: add desktop shortcut for camera demo app"
This demo app is very generic and does not play well with FSL gstreamer
plugin, so using it just crashes in different ways (doing a camera zoom,
recording a video, etc)

This reverts commit 2776dcd654.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-12-16 18:50:04 +01:00
Javier Viguera 2776dcd654 meta-digi-dey: add desktop shortcut for camera demo app
https://jira.digi.com/browse/DEL-2015

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-12-14 17:48:06 +01:00
Javier Viguera 449008366f meta-digi-dey: configure default video source for qtmultimedia apps
https://jira.digi.com/browse/DEL-2015

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-12-14 17:40:02 +01:00
Javier Viguera 0f4606386c meta-digi-dey: add desktop shortcut for qmlvideo player
We will use 'qmlvideo' application for QT5 media player demo, so just
create a desktop launcher.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-12-14 17:24:37 +01:00
Javier Viguera fef0cd8da3 qt5: remove desktop launchers of some not-provided applications
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-12-14 14:33:46 +01:00
Javier Viguera 6dc6cadb72 meta-digi-dey: remove FSL QT5 camera and media player demo apps
These demo applications are only distributed in binary form. We don't
have the source code as an example for customers, so just remove them.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-12-14 12:07:20 +01:00
Javier Viguera 0e1bf79e56 qt5: qtwebengine: reduce parallel make jobs
The aim is to reduce even more the memory used by the host at build time
to avoid the OOM killer killing the linker.

Otherwise it can fail in machines with few memory even though the linker
is configured with '--no-keep-memory'.

Notice that we also reduce the parallel jobs expanded by 'ninja' build
system configuring and exporting NINJAFLAGS variable. Otherwise this
build system does not honor PARALLEL_MAKE variable.

Fix:
  arm-dey-linux-gnueabi-g++: internal compiler error: Killed (program cc1plus)
  ninja: build stopped: subcommand failed.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-12-10 10:30:31 +01:00