Commit Graph

1934 Commits

Author SHA1 Message Date
Javier Viguera e700b4d0c3 networkmanager: implement wireless configuration
https://jira.digi.com/browse/DEL-4289

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-07 17:02:45 +02:00
Javier Viguera 09b7d4f2b1 networkmanager: implement ethernet configuration
https://jira.digi.com/browse/DEL-4289

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-07 17:02:45 +02:00
Javier Viguera bb7202b413 networkmanager: add boot script and config file
https://jira.digi.com/browse/DEL-4289

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-07 17:02:45 +02:00
Javier Viguera 4c7829c239 networkmanager: configure compile time PACKAGECONFIG options
* Disabled: dnsmasq and netconfig
* Enabled: cellular related options and connectivity check

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-07 17:02:45 +02:00
Diaz de Grenu, Jose 42e2202a7d custom-licenses: atmel: add copyright
Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2017-07-06 10:49:06 +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
Alex Gonzalez e15dc30800 meta-digi-arm: firmware-atheros: Update fw-4.bin for RED certification
The new fw-4.bin (v3.4.0.236) with md5sum e2fc33daba2c35fe2c4f62492a44f8b6
was used to pass RED (Radio Equipment Directive) certification on the CC6
module.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-07-05 13:43:28 +02:00
Javier Viguera 838a76e155 meta-digi: update conf-notes.txt with AWS support
https://jira.digi.com/browse/DEL-4274

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-05 13:43:28 +02:00
Javier Viguera 66d650a8cf scripts: add dey-aws-tool script
This script allows to create certificates (Root CA and Greengrass Core
device) and also register a GG Core device Thing.

It's expected to be used before building images with Greengrass core, so
the certificates and the proper configuration can be done in the
firmware.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-05 13:43:28 +02:00
Javier Viguera 0966b3d04e mkproject.sh: add meta-digi's scripts directory to the PATH
This will allow to create user helper scripts that are available (in the
PATH) when building DEY projects.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-05 13:43:28 +02:00
Javier Viguera f397ee2289 greengrass: add support to preconfigure the package
If values are provided in the local.conf, the package will have the
'config.json' file preconfigured.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-05 13:43:28 +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
Alex Gonzalez a5a09bdeff firmware-qualcomm: Remove cfg.dat and qcom_cfg.ini
These are now provided from the kernel-module-qualcomm recipe.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-07-05 13:43:28 +02:00
Javier Viguera a046ede89b kernel-module-gpio: remove recipe
Nothing is using this. It does not even compile with the kernel versions
we support.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-05 13:43:28 +02:00
Sebastian Pastor 146db45215 mca_tool: update checksums for build 1.7
Signed-off-by: Sebastian Pastor <sebastian.pastor@digi.com>
2017-07-05 13:43:28 +02:00
Tatiana Leon f898cc19fb meta-digi-dey: add awsiotsdk-c package
This is the AWS IoT device SDK for embedded C library.

Signed-off-by: Tatiana Leon <tatiana.leon@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
Sebastian Pastor 56b8cb8dd0 trustfence-tool: update recipe to v2.1
Signed-off-by: Sebastian Pastor <sebastian.pastor@digi.com>
2017-07-05 13:43:28 +02:00
Sebastian Pastor 2a6c4d6e04 trustfence-tool: update recipe to v2.1
Signed-off-by: Sebastian Pastor <sebastian.pastor@digi.com>
2017-07-05 13:43:28 +02:00
Isaac Hermida 4618c76208 recovery-initramfs: execute all post installation scripts
In the recovery images we are using a custom init so we are not executing
any post-installation that is required for a correct rootfs setup, so call
all the post installation scripts from our custom init.
The package installation could be ipk, rpm or deb, so call to the
*postint folder.
Given that the recovery rootfs is a ramdisk, there is no need to remove the
post installation scripts.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2017-07-05 13:43:28 +02:00
Hector Palacios f439506eb8 ccimx6ul/ccimx6: synchronize kernel defconfig
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2017-07-05 13:43:28 +02:00
Alex Gonzalez 14a7d127f0 meta-digi-arm: Remove worldwide board data file.
https://jira.digi.com/browse/DEL-4291

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-06-21 12:30:08 +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
Hector Palacios 5126a6049b u-boot-fw-utils: dynamically create fw_env.config for NAND-based platforms
A mechanism was introduced in U-Boot to dynamically locate the environment
copies within a NAND partition, skipping bad blocks and making full use of
the partition blocks.
To trigger this mechanism in Linux tools (fw_printenv/fw_setenv) the
configuration file /etc/fw_env.config must have both copies entries
pointing to the same offset.

This commit substitutes the hardcoded configuration file for CC6UL with a
stub and generates one on an RPM post-script basing on:

- Supplied DEY variables (with default values per platform):
  - UBOOT_ENV_OFFSET: starting offset of the environment within the
    partition.
  - UBOOT_ENV_SIZE: size of each copy of the environment.
  - UBOOT_ENV_RANGE: size in the partition that the environment copies may
    occupy, starting from UBOOT_ENV_OFFSET. If undefined, the whole
    partition is used.

- Calculated values:
  - NAND Erase block size
  - Number of blocks available for the environment copies

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

https://jira.digi.com/browse/DEL-4256
2017-06-16 11:59:30 +02:00
Hector Palacios 3d4f6dffd0 digi-defaults.inc: add kernel v4.1 for CC6 in comment
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2017-06-16 11:59:30 +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 91698844c0 dey-image-aws: new image including Amazon Web Services
https://jira.digi.com/browse/DEL-4304

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-06-15 18:31:13 +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
Mike Engel 38dccefc9c meta-digi: revert revisions to AUTOREV
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2017-06-14 13:53:15 +02:00
Mike Engel aa2d5fd346 meta-digi: update revisions for dey-2.2-r1.5
Signed-off-by: Mike Engel <Mike.Engel@digi.com>

https://jira.digi.com/browse/DEL-4364
2017-06-14 13:53:15 +02:00
Mike Engel a28cdcc707 meta-digi: Update Readme with hot-fix changes.
Signed-off-by: Mike Engel <Mike.Engel@digi.com>

https://jira.digi.com/browse/DEL-4364
2017-06-14 13:53:15 +02:00
Javier Viguera 1eccad50b7 image_types class: fix build error due to missing images dependencies
A couple of commits in poky.git broke the dependence from our boot and
recovery images to the trustfence and recovery initramfs images:

http://git.yoctoproject.org/cgit.cgi/poky/commit/?h=morty&id=6c3d10ea62ad282a764da83aa701f92c6d3db6cb
http://git.yoctoproject.org/cgit.cgi/poky/commit/?h=morty&id=99c6c878ee122a04f23ef49ea653208ca1c7aa77

This commit fixes the dependencies again, so when you build those images,
it builds first the required initramfs images.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
(cherry picked from commit efba5b5e7c)
2017-06-13 17:34:25 +02:00
Salvador Penalva db6d57284a modemmanager: update to fix QMI bug and add Ublox patches for XBee
QMI modems didn't work with the version of
modemmanager that the dey-2.2-r1 release was
using.

We were using two patches for uBlox plugin to use XBee Cellular 3G
that are now merged in modemmanager master.

This updates modemmanager to use the commit where QMI
problem was fixed and also include uBlox patches.

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

Signed-off-by: Salvador Penalva <salvador.penalva@digi.com>
(cherry picked from commit a2063b11a3)
2017-06-13 16:33:25 +02:00
Javier Viguera 7a06a9ce5d modemmanager: add support for u-blox based XBee Cellular
Add patch to MM, so it detects the U-Blox modem connected to the XBee
socket.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
(cherry picked from commit c1762b40f5)
2017-06-13 16:32:39 +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 f853e3a3df mca_tool: update checksums for build 1.7
Signed-off-by: Sebastian Pastor <sebastian.pastor@digi.com>
2017-06-08 20:36:03 +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
Javier Viguera a8f0024403 AWS Greengrass: update to version 1.0.0
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-06-07 20:49:58 +02:00
Javier Viguera 8e8e7f8982 AWS Greengrass: add daemon launcher wrapper bootscript
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-06-06 19:35:03 +02:00
Javier Viguera f59d27e5a8 AWS Greengrass: wait some time to check GG daemon status on launch
GG daemon may die due to misconfigurations, but this takes a bit of
time, so wait a bit to check whether the daemon is still alive.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-06-06 18:39:33 +02:00
Javier Viguera 95c511d100 AWS Greengrass: add python dependences for lambda_runtime.py
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-06-06 17:20:02 +02:00