Commit Graph

676 Commits

Author SHA1 Message Date
Javier Viguera 4db64ea56d networkmanager: update package to version 1.8.2
Use the 1.8.x stable series, as it has some desired functionality (e.g.
connectivity check) and bug fixes over the default version included in
Yocto.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-25 11:28:54 +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
Mike Engel e27257c53f meta-digi: Include package required for QT creator target debugging.
This commit includes the Python3-Json package that is required now
by QT creator python scripts when debugging an application with GDB
on the target.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2017-07-24 18:05:08 +02:00
Isaac Hermida 2faf4ae7f4 networkmanager: do not manage any p2p interface
For P2P interfaces, some drivers (CC6UL) create auxiliar interfaces based
on the parent one, like p2p-p2p0-0.
This commit adds a p2p* pattern to the list of unmanaged devices so that
NetworkManager doesn't try to manage P2P devices.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2017-07-21 15:43:11 +02:00
Isaac Hermida 28867d77b9 hostapd: remove 802.11d section
After January 01, 2015, the FCC does not allow the use of 802.11d in US.

https://www.ecfr.gov/cgi-bin/text-idx?SID=63ad9e61e7cc924b3199396521a61158&mc=true&tpl=/ecfrbrowse/Title47/47tab_02.tpl
https://apps.fcc.gov/kdb/GetAttachment.html?id=5NjjaXsjV97%2BhlMWvZ1QRw%3D%3D

https://jira.digi.com/browse/DEL-4291
https://jira.digi.com/browse/DEL-4630

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2017-07-20 11:58:31 +02:00
Isaac Hermida 6e2aafd952 networkmanager: adjust compilation options
Adjust the compilation time options to save space.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2017-07-20 08:52:55 +02:00
Javier Viguera 1ac992bf52 dey: remove some default distro features
The removed distro features are mostly corner cases, not widely used,
and sometimes conflict with other packages serving the same purposes.

For example:

  * '3g' only adds ofono for cellular support, while we are
    using ModemManager.
  * 'nfc' adds 'neard' the NFC daemon (which at the moment we don't
    support)
  * 'zeroconf' adds 'avahi' package, but we are using NetworkManager
    instead to manage the network interfaces.
  * 'nfs' adds 'rpcbind' server, which is not needed at all to have
    an NFS mounted rootfs.

Needless to say that all those packages can be added to any image
without having the distro features enabled, or if preferred, you can add
the distro features back in the project's local.conf.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-19 19:20:58 +02:00
Javier Viguera 9903deaef8 core-image-base: do not install udev-cache
As we are using kernel's DEVTMPFS, using udev-cache on top of it does
not add much advantage. Disabling it has the extra advantage of avoiding
writing the udev-cache tarball under '/etc' (which probably won't work
on a read-only system).

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-19 19:20:58 +02:00
Javier Viguera 4b7cf7cd2b hostapd: cosmetic, fix overlapped messages on stop
When bringing down the wireless interface used for hostapd, the messages
overlap:

# ifdown wlan1
Stopping HOSTAP Daemon: stopped /usr/sbin/hostapd (pid 569)
hostapd.

Adding the 'quiet' option to start-stop-daemon command fixes the
cosmetic issue.

# ifdown wlan1
Stopping HOSTAP Daemon: hostapd.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-14 18:09:02 +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
Javier Viguera 3f5d3425e2 libmbim: fix runtime dependence
"glibc-gconv" packages are GLIBC library specific, so add the proper
override to fix the build of the package using other C libraries (e.g.
MUSL).

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-10 19:41:53 +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
Javier Viguera f94e039cc8 suspend: check module variant before bringing down/up BT interface
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-07 17:02:45 +02:00
Javier Viguera eb76b2ac68 suspend: adapt script for NetworkManager integration
Now the suspend script brings down all the wireless interfaces that are
managed by ifupdown command (in the '/etc/network/interfaces' file) and
then unloads the wireless driver.

On resume the script triggers an event so udev reloads the wireless
driver and then brings up the interfaces that were brought down on
suspend.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-07 17:02:45 +02:00
Javier Viguera 092305e8f6 modemmanager: remove cellularifupdown script
The cellular interface is now managed by NetworkManager, so there is no
need for this custom script.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-07 17:02:45 +02:00
Mike Engel baddd28fc8 packagegroup-dey-core: add networkmanager package
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2017-07-07 17:02:45 +02:00
Mike Engel 58c5fe96c8 networkmanager: add unmanaged devices to NetworkManager config file
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2017-07-07 17:02:45 +02:00
Mike Engel 308d9c02ce init-ifupdown: remove interfaces managed by Networkmanager
This commit removes the interfaces that are managed by Networkmanager
from the /etc/network/interfaces entry.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2017-07-07 17:02:45 +02:00
Mike Engel 308cb251d3 wpa-supplicant: enable control socket interface when executed by D-Bus
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2017-07-07 17:02:45 +02:00
Javier Viguera 3834dd5065 networkmanager: disable IPv6 by default from connections
It's giving a periodic failure in the log file:

nm-lndp-rdisc.c:68] send_rs(): (wlan0): cannot send router solicitation: -101.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-07 17:02:45 +02:00
Javier Viguera d72c3019b9 networkmanager: disable features that depend on X11 library
So the package can be compiled in a non-X11 graphical system.

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 fbc6b188f5 networkmanager: implement cellular 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 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
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
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 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 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
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