Commit Graph

510 Commits

Author SHA1 Message Date
Arturo Buzarra 01be6cf386 swu-images: add support for ccimx8x platform
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2018-07-30 09:43:38 +02:00
Gabriel Valcazar 13d9d941cc libdigiapix: add board.conf file for the ccimx8x-sbc-express
The PWM and ADC values are still to be determined, since their SOM support is
currently unavailable.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2018-07-05 18:58:00 +02:00
Gabriel Valcazar d9b333db05 cryptochip: add cryptochip MACHINE_FEATURE in several recipes
This simplifies some dependencies and makes them more explicit.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2018-07-02 10:55:11 +02:00
Hector Bujanda 3687457ad0 dey-examples: adc_sample, adc_cmp_sample: Add support for CC8X
adc_sample:
   - extend list of supported devices with MCA_CC8X
adc_cmp_sample:
   - Add '-t' argument to specify the type of device.
   - Added checking of threshold ranges to avoid confusion between
     raw and voltage configurations.

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

Signed-off-by: Hector Bujanda <hector.bujanda@digi.com>
2018-06-20 12:23:57 +02:00
Hector Palacios dfbb7917f1 dey-examples: add support for ccimx8x platform
- For most examples, since they apply to all platforms, remove
  COMPATIBLE_MACHINE.
- For recipes related to specific hardware, add support to the new platform

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2018-06-19 11:02:06 +02:00
Hector Palacios 29cf0c2f17 packagegroup-dey-examples: move common examples to common RDEPENDS
While on it:
- add dey-examples-rtc unconditionally (rtc is never in MACHINE_FEATURES)
- add missing recipes: digiapix, cryptochip
- re-order them alphabetically.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2018-06-19 11:01:33 +02:00
Hector Palacios 1de3d5e8a2 cryptoauth-openssl-engine: add support for ccimx8x platform
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2018-06-19 10:56:05 +02:00
Gabriel Valcazar d08f067e12 recipes-digi: add cryptoauth-openssl-engine
https://jira.digi.com/browse/DEL-5592

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2018-05-09 09:16:00 +02:00
Jose Diaz de Grenu 223d51b19b dey-examples-opengles: fix runtime dependency
https://jira.digi.com/browse/DEL-5862

Signed-off-by: Jose Diaz de Grenu <Jose.DiazdeGrenu@digi.com>
2018-04-12 12:18:25 +02:00
Hector Palacios 47f42f7606 meta-digi: revert revisions to AUTOREV
This reverts commit 1246ecff2c.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2018-03-12 17:19:48 +01:00
Hector Palacios 1246ecff2c meta-digi: update revisions for dey-2.4-r1.2
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2018-03-12 10:33:55 +01:00
Arturo Buzarra e3d086c472 meta-digi: revert revisions to AUTOREV
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2018-02-27 16:05:38 +01:00
Arturo Buzarra 42d43ff5fb meta-digi: update revisions for dey-2.4-r1.1
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2018-02-27 15:56:19 +01:00
Arturo Buzarra f7625f0026 meta-digi: configure recipes to use maintenance branches
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2018-02-27 11:33:45 +01:00
Isaac Hermida 49ecabe4bf dey-examples-cryptochip: inherit pkgconfig
With the migration from dey-2.2 to dey-2.4, now it is mandatory to include
all required applications for compilation. This fixes the next error:

| make: pkg-config: Command not found
| main.c:20:10: fatal error: cryptoauthlib.h: No such file or directory
|  #include <cryptoauthlib.h>

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2018-02-23 09:48:21 +01:00
Alex Gonzalez 2ae061cbab meta-digi: Move cryptoauthlib to meta-digi-arm
The MACHINE_EXTRA_RRECOMMENDS for the ccimx6ul in meta-digi-arm contains
cryptoauthlib. If we want to use meta-digi-arm as a standalone BSP layer
we need to move the cryptoauthlib recipe to meta-digi-arm, that or not make it
a machine dependency.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2018-02-02 12:14:33 +01:00
Arturo Buzarra 314d4c82d6 meta-digi: fix scripts to remove undesired warning ignoring null bytes
Bash v4.4 or higher warns when discarding NULL bytes in command substitution
output. Remove these bytes to avoid the undesired warnings.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2018-01-24 17:59:14 +01:00
Jose Diaz de Grenu 22d3fd3e52 auto-serial-console: fix MIT license
This fixes the following warning:

WARNING: auto-serial-console-0.1-r0 do_populate_lic:
${COREBASE}/LICENSE is not a valid license file, please use
'${COMMON_LICENSE_DIR}/MIT' for a MIT License file in LIC_FILES_CHKSUM.

This will become an error in the future.

Signed-off-by: Jose Diaz de Grenu <Jose.DiazdeGrenu@digi.com>
2018-01-23 16:49:59 +01:00
Javier Viguera a45357940a libdigiapix: add udev rules for digiapix API
These udev rules allow to use the digiapix API by a normal user that
belongs to the 'digiapix' group.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-11-28 17:44:41 +01:00
Francisco Gil b8d04da22a apix: adc: change adc default pin
Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2017-11-27 16:26:10 +01:00
Francisco Gil d8d95f6348 apix: adc: Add default adc pins in all the platforms
Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2017-11-22 08:10:49 +01:00
Mike Engel bd51c63b2a libdigiapix: Add digiapix group
Signed-off-by: Mike Engel <Mike.Engel@digi.com>

https://jira.digi.com/browse/DEL-5231
2017-11-16 16:30:28 +01:00
Arturo Buzarra 5200bfc1b8 cryptoauthlib: add support for ccimx6qpsbc platform
https://jira.digi.com/browse/DEL-5082

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2017-10-18 11:58:20 +02:00
Arturo Buzarra d305a5dcc8 aws-iot-sdk: add support for ccimx6qpsbc platform
https://jira.digi.com/browse/DEL-5082

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2017-10-18 09:20:11 +02:00
Arturo Buzarra 8c14ae877f meta-digi recipes: adjust machine overrides for new platform
This commit modifies different recipes to support the new platform
ccimx6qpsbc and adapt it to maintain the support to ccimx6sbc.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2017-10-18 09:20:11 +02:00
Arturo Buzarra 957e8623a5 sysinfo: fix IOEXP and MCA kernel nodes
This commit modifies sysinfo tool to use the kernel symlinks for
the devices instead of using the full node path and maintain
compatibility with different kernel versions.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2017-10-17 14:03:21 +02:00
Francisco Gil Martinez b06513e402 libdigiapix: add Digi APIX examples recipe
These examples show how to use the Digi APIX.

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

Signed-off-by: Francisco Gil Martinez <francisco.gilmartinez@digi.com>
2017-10-13 10:41:50 +02:00
Mike Engel b56c4ecc65 libdigiapix: Add platform board files
This commit adds the some platform board files and removes
the symbolic link to libsoc.conf

Signed-off-by: Mike Engel <Mike.Engel@digi.com>

https://jira.digi.com/browse/DEL-5096
2017-10-10 14:09:06 +02:00
Tatiana Leon ef46270207 libdigiapix: add Digi APIX library recipe
This library will provide a common API to access Digi hardware interfaces and/or
other features.

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

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-09-06 11:01:26 +02:00
Jose Diaz de Grenu 270f890494 recovery-initramfs-init: remove parted dependency
Turns out that the busybox' fdisk applet is also able to parse the GPT
partition tables. This saves around 0.5 MiB of space.

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

Signed-off-by: Jose Diaz de Grenu <Jose.DiazdeGrenu@digi.com>
2017-08-29 18:15:43 +02:00
Javier Viguera be58e0c849 ccardimx28js removal: simplify dey-examples
https://jira.digi.com/browse/DEL-4771

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-08-04 17:38:30 +02:00
Javier Viguera fe39b6675c Merge tag 'dey-2.2-r2.2' into dey-2.2/master
Tweaked to maintain some recipes' revisions to AUTOREV instead of the
fixed SHA1s from the tag.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-08-01 17:30:04 +02:00
Javier Viguera 2c4c4dff4a meta-digi: update revisions for dey-2.2-r2.2
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-27 18:10:28 +02:00
Jose Diaz de Grenu 1224d94de7 cryptoauthlib: change repository name
The name of the repository in Github is fixed, because it is a fork from
the original repository.

Signed-off-by: Jose Diaz de Grenu <Jose.DiazdeGrenu@digi.com>
2017-07-25 11:17:30 +02:00
Arturo Buzarra 2064525ede meta-digi: revert revisions to AUTOREV
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2017-07-11 18:06:32 +02:00
Arturo Buzarra b5ab28b4b4 meta-digi: update revisions for dey-2.2-r2.1
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2017-07-11 17:47:06 +02:00
Arturo Buzarra 4ab483ed66 meta-digi: configure recipes to use maintenance branches
Updated recipes for cryptoauthlib, awsiotsdk-demo and
dey-examples-cryptochip.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2017-07-11 16:45:35 +02:00
Diaz de Grenu, Jose 234f783b81 sysinfo: remove errors if the IOEXP is not programmed
If the IOExpander is not programmed but the kernel is running its driver,
the following messages will appear when running sysinfo:

cat: can't open '/sys/devices/platform/soc/2100000.aips-bus/21a0000.i2c/i2c-0/0-006e/hw_version': No such file or directory
cat: can't open '/sys/devices/platform/soc/2100000.aips-bus/21a0000.i2c/i2c-0/0-006e/fw_version': No such file or directory

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2017-07-10 10:53:22 +02:00
Diaz de Grenu, Jose 0de15a93eb dey-examples: add example to use the Atmel ATECC508A
https://jira.digi.com/browse/DEL-4371

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2017-07-06 10:49:06 +02:00
Javier Viguera 991a087e85 awsiotsdk-c: rename bbclass to aws-iot
Rename the class so it's not specific to the C version of the AWS IoT
Device SDK, and can be used for anything related with AWS IOT (for
example Greengrass).

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-05 13:43:28 +02:00
Diaz de Grenu, Jose cc77b83644 dey-examples-opengles: add LDFLAGS and clean target
This avoids the following errors:

ERROR: dey-examples-opengles-1.0-r0 do_package_qa: QA Issue: No GNU_HASH in the elf binary

and when cleaning:

ERROR: dey-examples-opengles-1.0-r0 do_configure: oe_runmake failed
| make: *** No rule to make target 'clean'.  Stop.

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2017-07-05 13:43:28 +02:00
Tatiana Leon 97c13c0d19 dey-examples: add awsiotsdk-demo application
Demo application to connect devices to AWS IoT using the AWS IoT device SDK for
embedded C.

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-07-05 13:43:28 +02:00
Tatiana Leon e49bda97e0 swu-images: new swu update package including Amazon Web Services
This recipe allows to generate the swu update package to be used with SWUpdate.
The package can be generated using:

bitbake dey-image-aws-swu

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

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-07-05 13:43:28 +02:00
Tatiana Leon 44df1f3a5f swu-images: add include file to reuse in swu update package recipes
Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-07-05 13:43:28 +02:00
Hector Palacios 4591165832 memwatch: [cosmetic] print new line after printing 16 bytes
The fix in 0ae172613a wrongly printed
a new line after each value, wich resulted in the following output for a
command like this, that reads two 32-bit words:

	root@ccimx6ulsbc:~# memwatch -r -l 8 -w -a 0x2008008
	0x02008008: 0x0070e501
	0x00000100

Instead, it should print a line feed after every 16 bytes.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2017-06-19 15:57:58 +02:00
Arturo Buzarra ce709e3cfc dey-examples: upgrade spidev_test application
This commit updates the spidev_test application from Linux kernel upstream
at /tools/spi/spidev_test.c adding support to new features
commit: 9006a7b3220e7293ef8bc1ac9bba6c54411051c1

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2017-06-16 11:04:42 +02:00
Javier Viguera 84f63905ac aws-iot-sdk: minor fixes
* Create the certificates directory before copying files into it.
* Give the downloaded tarball a meaningful name (otherwise tarballs
  downloaded from GitHub don't have a proper name (only the version) and
  may collide with other packages with the same version.
* Allow to create certs package if certs are available at build time.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-06-15 18:31:13 +02:00
Sebastian Pastor e6f072384d dey-examples: tamper: check tamper_events before waiting for events
If the event is already signaled, read the timestamp, log and ack the event,
perform actions and exit. If it is already acknowledged, then do nothing.
Signed-off-by: Sebastian Pastor <sebastian.pastor@digi.com>
2017-06-15 16:54:50 +02:00
Tatiana Leon 0e93ab73d5 awsiotsdk-demo: use ISC license for AWS IoT device SDK demo
Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-06-15 11:09:01 +02:00
Tatiana Leon 78843e5cba aws-iot-sdk: remove certificates dependency
Only copy the certificates to the image if they are provided and exists.

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

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-06-15 11:08:36 +02:00
Tatiana Leon ab909175f0 aws-iot-sdk: remove the samples provided by Amazon
We have our own AWS IoT Device SDK demo application.

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

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-06-15 11:03:47 +02:00
Tatiana Leon b0b0becc7a aws-iot-sdk: move awsiotsdk-c and awsiotsdk-demo recipes
This commit moves awsiotsdk-c recipe into 'recipes-aws' and awsiotsdk-demo into
'recipes-digi/dey-examples'.

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

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-06-15 11:00:11 +02:00
Sebastian Pastor 1872ef5f06 dey-examples: adc_cmp_sample: remove sample_rate argument
This argument now is only valid for the behavior of the comparator in
sleep mode, so it no longer makes sense in this application.

Signed-off-by: Sebastian Pastor <sebastian.pastor@digi.com>
2017-06-08 22:29:02 +02:00
Sebastian Pastor 2653fe0063 dey-examples: adc_cmp_sample: show_usage() to always output the long help
Signed-off-by: Sebastian Pastor <sebastian.pastor@digi.com>
2017-06-08 22:27:33 +02:00
Sebastian Pastor f5cdab182c dey-examples: tamper: use string intead of magic number for acking the event
This will only work if the kernel has the latest driver for MCA tamper.
Signed-off-by: Sebastian Pastor <sebastian.pastor@digi.com>
2017-06-08 20:34:10 +02:00
Diaz de Grenu, Jose ff93cd2b28 recipes-digi: add cryptoauthlib
This library adds support to use the Atmel CryptoAuth device available
in the ConnectCore 6UL.

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2017-06-05 13:10:02 +02:00
Diaz de Grenu, Jose c9b11f0ded dey-examples: adc: fix help output
When not enough arguments are given (this includes using only the '-h'
argument for help), show the complete help.

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2017-05-31 11:51:08 +02:00
Diaz de Grenu, Jose 0ae172613a memwatch: [cosmetic] fix output format
The new line should be printed after the result, instead of before.

Example:

root@ccimx6sbc:~# memwatch -r -w -a 0x2190034

0x02190034: 0x00000000 root@ccimx6sbc:~#

After this patch:

root@ccimx6sbc:~# memwatch -r -w -a 0x2190034
0x02190034: 0x00000000

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2017-05-19 15:38:11 +02:00
Tatiana Leon a3bced4a17 awsiotsdk-demo: add recipe to compile the AWS IoT device SDK demo application
https://jira.digi.com/browse/DEL-4149

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-05-19 12:18:19 +02:00
Sebastian Pastor 7f59bc7eda dey-examples: add cmp_sample application for ccimx6ul
This application tests the MCA comparator feature by configuring
the thresholds, sample rate and other parameters.

Signed-off-by: Sebastian Pastor <sebastian.pastor@digi.com>

https://jira.digi.com/browse/CC6UL-600
2017-05-18 21:55:03 +02:00
Tatiana Leon c525e2caaf aws-iot-sdk: patch aws iot sdk samples code to properly work on our platforms
This patch modifies the code of some of the provided samples to be able to run
them in our platforms. By default, these applications cannot find the
certificates in the device, and the command line options are not working.

Patched samples:
 * shadow_sample
 * shadow_sample_console_echo
 * subscribe_publish_sample

See https://github.com/aws/aws-iot-device-sdk-embedded-C.

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

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-05-11 19:10:10 +02:00
Tatiana Leon 8a1a67f592 aws-iot-sdk: add variable to establish the logging level
Variable 'AWS_IOT_LOGGING_LEVEL' can be used from the project 'local.conf' to
establish the logging level of the AWS IoT Device SDK.

There are 6 incremental levels: none, error, warn, info, debug, and trace.

Default is 'debug'.

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

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-05-11 19:10:10 +02:00
Tatiana Leon cd078339f7 meta-digi-dey: add aws iot sdk embedded-c recipe
The AWS IoT device SDK for embedded C is a collection of C source files that
can be used in embedded applications to securely connect to the AWS IoT
platform.

The SDK code is available in GitHub and includes the library code and several
sample applications.

A user must provide from its 'local.conf':
  * AWS_IOT_CERTS_DIR: Absolute path to the directories where the required
    certifies are stored:
      * Root CA.
      * Device signed certificate.
      * Device private key.

And optionally, values for the rest of variables defined in the 'awsiotsdk-c'
bbclass.

This recipe is building the library code and the binaries for the samples:
  * shadow_sample
  * shadow_sample_console_echo
  * subscribe_publish_sample

See https://github.com/aws/aws-iot-device-sdk-embedded-C.

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

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-05-11 19:10:10 +02:00
Javier Viguera 3fa939fdc3 Merge tag 'dey-2.2-r1.4' into dey-2.2/master
Tweaked to maintain some recipes' revisions to AUTOREV instead of the
fixed SHA1s from the tag.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-05-04 13:58:33 +02:00
Mike Engel 29e3d0de40 meta-digi: update revisions for dey-2.2-r1.4
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2017-04-28 17:10:48 +02:00
Diaz de Grenu, Jose 02730dcdab sysinfo: add meta-digi revision
Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2017-04-27 13:01:51 +02:00
Mike Engel d3bb596732 meta-digi: revert revisions to AUTOREV
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2017-04-26 13:51:58 +02:00
Mike Engel 9fed79fd45 meta-digi: update revisions for dey-2.2-r1.3
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2017-04-26 13:48:57 +02:00
Diaz de Grenu, Jose b75f48d1dc sysinfo: escape wildcard
Sysinfo was showing error messages if the working directory contains any file
with .log extension.

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2017-04-19 10:57:26 +02:00
Mike Engel 247df66459 meta-digi: revert revisions to AUTOREV
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2017-04-12 11:45:47 +02:00
Mike Engel 4ba24391c2 meta-digi: update revisions for dey-2.2-r1.2
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2017-04-12 11:45:47 +02:00
Alejandro Navarro 36d35d2ed4 sysinfo: add new wireless configuration files
We have introduced new default configuration files for wireless that do
not show on sysinfo, so add them if they exist.

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

Signed-off-by: Alejandro Navarro <alejandro.navarro@digi.com>
2017-04-11 11:31:59 +02:00
David Escalona 98d514c1c2 dey-examples-hdp: update sample to python3
- Some Python modules are no longer available in DEY-2.2 since
  the official supported Python version is now 3. This caused the
  HDP application to fail importing some of the old modules. For this
  reason the sample application has been updated to use Python3
  syntax and modules.

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

Signed-off-by: David Escalona <david.escalona@digi.com>
2017-03-29 09:25:52 +02:00
Tatiana Leon c1709e4fd3 meta-digi: revert revisions to AUTOREV
Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-03-28 18:54:25 +02:00
Tatiana Leon 28bc61a089 meta-digi: update revisions for dey-2.2-r1.1
Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-03-28 18:20:52 +02:00
Sebastian Pastor da6e2198b1 sysinfo: Add information about I/O Expander if present
Print the HW and FW versions for the I/O Expander in the CC6UL SBC platform.

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

Signed-off-by: Sebastian Pastor <sebastian.pastor@digi.com>
2017-03-24 18:42:23 +01:00
Alex Gonzalez fd7239da8a meta-digi-dey: Add LDFLAGS to do_compile override
This is to avoid the following QA error:

ERROR: fbtest-1.0-r0 do_package_qa: QA Issue: No GNU_HASH in the elf binary: '/usr/local/ssd/dey-2.2/workspace/ccimx6ulstarter/tmp/work/cortexa7hf-neon-dey-linux-gnueabi/fbtest/1.0-r0/packages-split/fbtest/usr/bin/fbtest' [ldflags]
ERROR: fbtest-1.0-r0 do_package_qa: QA run found fatal errors. Please consider fixing them.
ERROR: fbtest-1.0-r0 do_package_qa: Function failed: do_package_qa
ERROR: Logfile of failure stored in: /usr/local/ssd/dey-2.2/workspace/ccimx6ulstarter/tmp/work/cortexa7hf-neon-dey-linux-gnueabi/fbtest/1.0-r0/temp/log.do_package_qa.6755
ERROR: Task (/usr/local/ssd/dey-2.2/sources/meta-digi/meta-digi-dey/recipes-digi/fbtest/fbtest.bb:do_package_qa) failed with exit code '1'

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-03-17 19:15:27 +01:00
Sebastian Pastor 294880ddac dey-examples: adc_sample: add I/O Expander ADCs to the available interfaces.
Signed-off-by: Sebastian Pastor <sebastian.pastor@digi.com>
2017-03-15 17:21:05 +01:00
David Escalona 00d22c3d7e swu-sign: do not expand private sign key in TrustFence class
- Trying to set the complete SWU packages signature key in the
  TrustFence class was causing a build error when keys were not
  yet generated. To avoid this, set only the key wildcard in the
  TrustFence class and expand the variable in the SWU packages
  recipes, when keys already exist.

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

Signed-off-by: David Escalona <david.escalona@digi.com>
2017-03-15 12:02:17 +01:00
Tatiana Leon 3cb44334c6 swu-images: cc6ul: add pre-install script to remove enc flag
For CC6UL, when not using rootfs encryption, the "enc" flag must be removed from
the "mtdparts" U-Boot variable.

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

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-03-14 17:39:09 +01:00
Tatiana Leon 0a64ff89e4 swu-images: cc6: add pre-install script to open the virtual dev
For CC6, when using rootfs encryption, the encrypted device must be opened
before trying to update.

https://jira.digi.com/browse/DEL-3664
https://jira.digi.com/browse/DEL-3665

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-03-14 17:39:09 +01:00
Tatiana Leon 976d79db9c swupdate: define variables for flash paths and volume names
Software update recipes ('core-image-base-swu' and 'dey-image-qt-swu') are able
to set default or customized values for:
 * In the CC6, the proper path for:
    * linux partition (default to '/dev/mmcblk0p1')
    * rootfs partition (default to '/dev/mmcblk0p3' if no encrypted, always
      '/dev/mapper/cryptroot' otherwise)
 * In the CC6UL, the proper volume name for
    * linux partition (default to 'linux')
    * rootfs partition (default to 'rootfs')

https://jira.digi.com/browse/DEL-3666
https://jira.digi.com/browse/DEL-3686

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-03-14 17:39:09 +01:00
Tatiana Leon 4b6b4ecc5f dey-examples: cloudconnector: use Remote Manager references instead of Device Cloud
https://jira.digi.com/browse/DEL-3683
https://jira.digi.com/browse/DEL-3793

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-03-10 21:49:40 +01:00
David Escalona 319576805a swupdate: add sign and hash support to swupdate packages generation
- Enabled signing support while generating the swupdate
  packages for 'core-image-base' and 'dey-image-qt'. The
  signing support is only enabled when 'TUSTFENCE_SIGN=1'
  and requires the recipe to set the private key that will
  be used to generate the signature.
- Enabled hash support while generating the swupdate
  packages for 'core-image-base' and 'dey-image-qt'. The
  hash support requires the sw-description files to include
  a new line for each image and/or file that will be added
  to the update package. The hash is automatically calculated
  and replaced in the sw-description files.

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

Signed-off-by: David Escalona <david.escalona@digi.com>
2017-03-07 17:04:21 +01:00
Javier Viguera 187ee9bdcd morty migration: packagegroups: remove explicit LICENSE variable
The LICENSE is added through the packagegroup bbclass and the checksums
were outdated making the build fail with:

The LIC_FILES_CHKSUM does not match for poky/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-02-28 11:46:57 +01:00
Javier Viguera c8d17d4a93 Merge tag 'dey-2.0-r5.3' 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>
2017-02-15 13:25:35 +01:00
Javier Viguera 99afac66f4 meta-digi: update revisions for dey-2.0-r5.3
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-02-13 12:05:13 +01:00
Javier Viguera 2e003d8385 meta-digi: revert revisions to AUTOREV
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-02-03 17:00:47 +01:00
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