Commit Graph

372 Commits

Author SHA1 Message Date
Javier Viguera c4643eaf0f meta-digi: update revisions for dey-2.0-r5.2
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-02-03 16:58:40 +01:00
David Escalona 561532490c cloudconnector: compile cloudconnector from github by default
Signed-off-by: David Escalona <david.escalona@digi.com>
2017-02-03 14:43:02 +01:00
David Escalona 8ae033e89c Revert "meta-digi-dey: cloudconnector: Build from source tarball."
This reverts commit e0890e8866.
2017-02-03 14:43:02 +01:00
Alex Gonzalez e0890e8866 meta-digi-dey: cloudconnector: Build from source tarball.
https://jira.digi.com/browse/DEL-3570

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-01-26 17:02:36 +01:00
Javier Viguera e3ae7c8ea7 cloudconnector: add 'recovery-utils' compile time dependence
librecovery is needed to build the cloudconnector library.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-23 19:57:28 +01:00
Hector Palacios 02a0b4ab0b sysinfo: (cosmetic) make 'Version' field a JIRA table header
Add missing | char to make 'version' field in JIRA table a
header.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2017-01-23 16:12:22 +01:00
David Escalona 6e360e01bd examples: cloudconnector: fix uploaded file in the upload file example
Signed-off-by: David Escalona <david.escalona@digi.com>
2017-01-23 14:02:29 +01:00
Javier Viguera 5d8ea7aa35 dey-examples-cloudconnector: adapt recipe and makefiles to use static library
https://jira.digi.com/browse/DEL-3523

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-20 18:37:59 +01:00
Javier Viguera 30162ca76c cloudconnector: simplify recipe for static library
For the moment the cloudconnector is provided only as static library, so
the recipe can be simplified.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-20 18:37:59 +01:00
Javier Viguera 87cd5ed437 cloudconnector: add missing SRCBRANCH variable
Having explicitly SRCBRANCH in the recipe allows to override it in the
project's config file.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-20 18:37:59 +01:00
Diaz de Grenu, Jose 368a3b5990 meta-digi-dey: add dey-examples-cloud-connector
These examples can be used to test Device Cloud functionality. There are three
test applications available:

 * device_request_listener: Listen for requests from the Device Cloud
 * upload_data_points: Upload test data points to the Device Cloud
 * upload_file: Uploads the contents of a file as binary data points

https://jira.digi.com/browse/DEL-3305
https://jira.digi.com/browse/DEL-3309
https://jira.digi.com/browse/DEL-3397

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2017-01-18 19:00:28 +01:00
Javier Viguera f9096d43e6 cloudconnector: prevent certificate package being renamed
This avoids the certificate package being generated according to Debian
rules (libcloudconnector-cert).

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-18 17:52:42 +01:00
Javier Viguera b3e628dbf3 swupdate: fix typo in description file
The attribute supported in the description file is 'type' (in singular),
not 'types'.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-17 18:20:08 +01:00
Javier Viguera a63d5e6c31 meta-digi-dey: add cloud connector recipe
This includes library and example application

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-17 18:16:01 +01:00
Diaz de Grenu, Jose dacfe128b6 meta-digi-dey: swupdate: add recipes for update packages
These recipes allow to generate the .swu update packages to be used with
SWUpdate. The packages can be generated using:

bitbake dey-image-qt-swu
bitbake core-image-base-swu

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2017-01-02 15:34:01 +01:00
Pedro Perez de Heredia cf3f88f03c dey-examples: add adc_sample application for ccimx6ul
https://jira.digi.com/browse/DEL-3218

Signed-off-by: Pedro Perez de Heredia <pedro.perez@digi.com>
2016-12-02 17:49:35 +01:00
Pedro Perez de Heredia f57007a322 dey-examples: add tamper_sample application for ccimx6ul
https://jira.digi.com/browse/DEL-3195

Signed-off-by: Pedro Perez de Heredia <pedro.perez@digi.com>
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-11-18 11:37:53 +01:00
Diaz de Grenu, Jose e0b7905d67 sysinfo: fix device status report
The OTP word read was incorrect. HW_OCOTP_CFG5 corresponds to bank 0 word 6.

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-11-08 14:52:12 +01:00
Gabriel Valcazar 32a234b0d1 sysinfo: Add wireless configuration info
Print the wireless configuration as well as supplicant and hostapd version info

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2016-11-04 17:57:13 +01:00
Diaz de Grenu, Jose 7a1f46175c sysinfo: Add information about TrustFence (TM)
https://jira.digi.com/browse/DEL-3025

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-11-02 13:11:42 +01:00
Diaz de Grenu, Jose 66728c99fd sysinfo: read U-Boot from the device tree
This allows to correctly read the U-Boot version when using encrypted images.
Leave the current implementation as a fallback, in case the system is using an
old U-Boot which does not populate the device tree property.

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-11-02 11:05:45 +01: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
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
Isaac Hermida dc5d85cb3b meta-digi-dey: sysinfo: add support for CC6UL
https://jira.digi.com/browse/DEL-2729

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-07-18 16:31:12 +02:00
Isaac Hermida 529102b2dc meta-digi-dey: sysinfo: extend report information with more details
Extend the report with more details about:
 - memory usage
 - all network ports (-a) with their related PIDs (-p)
 - network link details (to determine if interface is up)

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-07-18 16:31:12 +02:00
Alex Gonzalez 7dda6380c2 meta-digi-dey: sysinfo: Use DISTRO and machine name.
The following utilities are supposed to be available on the environment's
PATH:

uptime, uname, cat, zcat, free, ps, mount, netstat, route, ifconfig, gzip

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-06-30 10:12:48 +02:00
Javier Viguera 1e16f6af66 meta-digi: global replace base_contains function
This function is deprecated in favor of bb.utils.contains. The same
change has been done in other layers.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-06-21 11:15:28 +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 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 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 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
Urko Nalda 54ba526157 meta-digi-dey: hdp-test: port HDP test application to bluez5
https://jira.digi.com/browse/DEL-1936

Signed-off-by: Urko Nalda <Urko.Nalda@digi.com>
2015-12-01 09:29:46 +01:00
Javier Viguera 9dbc427651 meta-digi-dey: Add support for bluez5
https://jira.digi.com/browse/DEL-1941

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2015-11-09 17:36:11 +01:00
Javier Viguera d35ac42dd0 meta-digi: remove support for MX5X platforms
ccimx51js and ccimx53js are not supported in this version of DEY.
Support for those platforms is in previous versions of DEY.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-11-05 13:56:38 +01:00
Javier Viguera 51a3bdb25f meta-digi: remove Linux preferred versions
There is only one kernel supported for each platform, so there is no
need to explicitly set the kernel preferred version.

Also:

* Remove IS_KERNEL_2X variable which is no longer needed.
* Simplify jenkins build script, now that we do not need to build two
  kernel versions for ccardimx28.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-10-07 16:44:26 +02:00
Jose Diaz de Grenu de Pedro 323de7c1b6 meta-digi-dey: dey-examples-rtc: added argument for selecting device node
Signed-off-by: Jose Diaz de Grenu de Pedro <Jose.DiazdeGrenudePedro@digi.com>
https://jira.digi.com/browse/DEL-1701
2015-09-17 12:38:43 +02:00
Jose Diaz de Grenu de Pedro 952a8db5a3 meta-digi-dey: dey-examples: Moved dey-examples-adc and dey-examples-gpio
dependences for consistency

The GPIO and ADC examples are not meant for the mx6 familiy, so make their
dependences platform dependent

Signed-off-by: Jose Diaz de Grenu de Pedro <Jose.DiazdeGrenudePedro@digi.com>
2015-08-13 10:02:55 +02:00
Jose Diaz de Grenu de Pedro a288517471 meta-digi-dey: dey-examples: Fixed individual examples recipes
https://jira.digi.com/browse/DEL-1698

Signed-off-by: Jose Diaz de Grenu de Pedro <Jose.DiazdeGrenudePedro@digi.com>
(cherry picked from commit 42997de56cf3f3943518e782332effad66965b21)

Conflicts:
	meta-digi-dey/recipes-digi/dey-examples/dey-examples-bt.bb
	meta-digi-dey/recipes-digi/dey-examples/dey-examples-btconfig.bb
	meta-digi-dey/recipes-digi/dey-examples/dey-examples-can.bb
	meta-digi-dey/recipes-digi/dey-examples/dey-examples-hdp.bb
2015-08-13 10:01:59 +02:00
Javier Viguera 6dd31598d0 meta-digi: clean PACKAGE_ARCH from some recipes
Those packages are not machine specific, so there is no need to set
PACKAGE_ARCH to ${MACHINE_ARCH}.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-04-16 18:10:20 +02:00
Javier Viguera 43bd3f4e4e meta-digi: use recommended BP and BPN variables for FILESEXTRAPATHS
Also move files from generic 'files' folders to a more specific '${BP}'
or '${BPN}' folders. This is recommended to speed up the fetch of files
from the local machine, as the search is done in a certain order: ${BP},
${BPN}, and 'files'.

More info:
http://thread.gmane.org/gmane.linux.embedded.yocto.general/23550/focus=23576

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-03-13 18:43:12 +01:00
Javier Viguera 6c3e81825c meta-digi: remove deprecated PR from recipes
https://jira.digi.com/browse/DEL-1558

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-03-13 18:43:11 +01:00
Alex Gonzalez cdec338906 dey-examples: v4l2_test: Set capture mode.
Now it depends on the last set capture mode which may be not compatible.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2015-02-24 13:45:22 +01:00
Javier Viguera 4de5782fe9 packagegroup*: set PACKAGE_ARCH before packagegroup inherit
This is now needed in yocto 1.7. Otherwise it fails with:

ERROR: Please ensure recipe packagegroup-dey-gstreamer.bb sets PACKAGE_ARCH before inherit packagegroup
ERROR: Please ensure recipe packagegroup-dey-examples.bb sets PACKAGE_ARCH before inherit packagegroup

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-11-17 16:30:10 +01:00
Javier Viguera bbb2758a79 v4l2_test: reset rotate to ROTATE_NONE on application launch
Start the application with a well known rotation value that works with
all the resolutions. Otherwise the rotation value is unknown because it
could have been changed in a previous run of the application.

Also in the kernel driver support was added to report EINVAL to
user-space in case the requested rotation is not supported. We use that
to not return from the 'v4l2_rotate' function without enabling again
the overlay preview.

https://jira.digi.com/browse/DEL-1068
https://jira.digi.com/browse/DEL-1205

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
(cherry picked from commit 2f7547a1b810683b813b708ba67e53ba156a9337)
2014-10-23 18:35:09 +02:00
Javier Viguera 411839713d v4l2_test: filter out invalid cropping height and width
The camera/driver does not support a cropping rectangle with height and
width less than 8 pixels. Add those limits to the sanity check of the
values in the user-space test application.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-10-09 16:05:33 +02:00
Javier Viguera bb66738f05 v4l2_still: add option to specify video source
https://jira.digi.com/browse/DEL-1225

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-10-08 16:47:03 +02:00
Javier Viguera 0d42da6e12 meta-digi: cosmetic, fix typos
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-08-05 16:07:11 +02:00
Javier Viguera 0afd50c1d8 dey-examples: add bluetooth examples for ccimx6
https://jira.digi.com/browse/DEL-1141

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-07-30 13:39:35 +02:00
Javier Viguera d664364858 dey-examples: generalize using platform family
https://jira.digi.com/browse/DEL-1105

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-07-16 14:41:34 +02:00
Javier Viguera 3ac3f03242 dey-examples: add opengl example apps for mx6
https://jira.digi.com/browse/DEL-804

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-06-04 13:49:58 +02:00
Alex Gonzalez c60d314512 meta-digi-dey: dey-examples-v4l2: Add to mx6 platforms.
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2014-05-23 18:57:34 +02:00
Alex Gonzalez e98d5d826a meta-digi-dey: dey-examples-v4l2: Add YUYV pixel format as argument.
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2014-05-23 18:57:34 +02:00
Alex Gonzalez 0e4a6616e7 meta-digi-dey: Use videodev2.h for kernels from 2.6.38 onwards.
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2014-05-23 18:57:34 +02:00
Alex Gonzalez 45f09525f4 meta-digi-dey: dey-examples-v4l2: The VIDIOC_G_FMT syscall needs a format
type.

Newer kernels (3.x) return an error if this is not the case.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2014-05-23 18:57:34 +02:00
Alex Gonzalez d0fc504a1e meta-digi-dey: dey-examples-v4l2: Remove dependency on ipu.h.
On newer kernels (3.x), including ipu.h brings in too many dependencies.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2014-05-23 18:57:34 +02:00
Alex Gonzalez 7e5708b5fc meta-digi-dey: dey-examples: ccimx6sbc: Add examples.
This is the same as for the ccimx6adpt.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2014-05-09 17:34:10 +02:00
Javier Viguera daba0679b2 meta-digi-dey: restrict SPIDEV warning for MXS platforms
https://jira.digi.com/browse/DEL-1022

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-03-28 18:48:33 +01:00
Javier Viguera 6044f0bac2 meta-digi-dey: enable can_test example for ccimx6adpt
https://jira.digi.com/browse/DEL-975

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-03-28 17:21:34 +01:00
Alex Gonzalez 03e440ca9f dey-examples-rtc: add minutes resolution mode
rtc_test now can run with minutes instead of seconds resolution. This
is needed for RTCs that trigger the alarm on the minute register.

It also allows to override the default timeout from the command line.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-02-24 12:33:59 +01:00
Alex Gonzalez 38a8b8b461 meta-digi-dey: support dey-examples for ccimx6adpt
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-02-24 12:33:59 +01:00
Javier Viguera e0aa5003d5 meta-digi: move libdigi and update-flash to BSP layer
These utilities are very tight to the hardware so they need to be in
the BSP layer. This way they can also be installed in a poky distro
core-image-minimal without meta-digi-dey layer.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-01-15 17:03:54 +01:00
Javier Viguera fed71f0ce3 rtc_test: do platform specific compilation
The source has machine specific code, so it needs the machine passed
in the compiler command line.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-11-14 11:36:36 +01:00
Javier Viguera 1866f03b0a meta-digi: do not enable spidev when touch is enabled
They conflict.

Warn the user about the problem and let they change the device tree
manually.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-10-29 18:13:52 +01:00
Javier Viguera 2efbca849d packagegroup-dey-examples: add virtual/kernel dependence
The availability of some examples depends on the kernel version, so we
need to add the dependence to the packagegroup as well.

This allows to build two ccardimx28 projects one for kernel 2.x and the
other for 3.x sharing the state-cache. Otherwise the first project
builds correctly but the second one fails.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-10-04 14:02:54 +02:00
Javier Viguera b381473a0f dey-examples: use kernel staging include files
This allows to build dey-examples while using the linux-libc-headers
provided by Yocto.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-09-25 16:18:51 +02:00
Javier Viguera 090c8754f6 packagegroup-dey-examples: remove redundant override
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-09-17 12:25:05 +02:00
Javier Viguera dc1499bd78 meta-digi: add IS_KERNEL_2X variable to be used in recipes
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-09-13 18:32:35 +02:00
Javier Viguera b1f76723a7 libdigi: support is_nand_oob_atomic for ccardimx28 in linux 3.x
Actually this is a workaround that probably needs to be generalized. But
at the moment the ccardimx28 is the only platform we have in linux 3.x
so it's enough.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-09-11 10:27:00 +02:00
Alex Gonzalez 2fbd3d55e7 meta-digi-dey: dey-examples, add linux-dey version dependency.
The dey-examples-adc and dey-examples-gpio packages are not meant to work
with a 3.10 kernel.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-08-26 10:17:48 +02:00
Javier Viguera 966753e404 dey-examples: restrict the compatible machines
Restrict the compatible machines to the ones we have tested the examples
on.

The rationale of this is to remove the compatibility with CPX2 where
we have not tested the DEL examples and actually adding 'dey-examples'
feature to a CPX2 project fails to build with:

ERROR: Nothing RPROVIDES 'dey-examples-adc' ..
ERROR: dey-examples-adc was skipped: incompatible with machine cpx2 (not in COMPATIBLE_MACHINE)

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-07-02 17:26:23 +02:00
Alex Gonzalez 8988542df3 meta-digi: Rename from DEL to DEY.
The final product will be called "Digi Embedded for Yocto" or DEY for
short.

This commit renames all relevant files.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-06-12 13:18:37 +02:00