Commit Graph

1659 Commits

Author SHA1 Message Date
Tatiana Leon 9a296b79a3 meta-digi: add awsiotsdk-c configuration class
This commit adds an awsiotsdk-c class to encapsulate all AWS IoT device SDK
configurations.

In general, the variables are the macros that users can configure in their
'aws_iot_config.h' file.

See for example, the header file for the 'shadow_sample' at GitHub:
https://github.com/aws/aws-iot-device-sdk-embedded-C/blob/master/samples/linux/shadow_sample/aws_iot_config.h

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 b1d3b02cd9 meta-digi-dey: add mbedtls recipe
mbedTLS is an open source, portable, easy to use, readable and flexible SSL
library.

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

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-05-11 19:10:10 +02:00
Salvador Penalva 0dbe44072f README: add support for EC-25 and U-Blox L200/L-210
Signed-off-by: Salvador Penalva <salvador.penalva@digi.com>
2017-05-11 12:52:17 +02:00
Salvador Penalva a2063b11a3 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>
2017-05-11 09:55:41 +02:00
Javier Viguera f7dbce6923 README: bump version for 2.2-r2
Add the support for Digi XBee Cellular 3G Global in the changelog.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-05-05 15:54:28 +02:00
Javier Viguera c1762b40f5 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>
2017-05-04 17:24:25 +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
Mike Engel dacbe6eadb meta-digi: Update Readme with latest release changes.
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2017-04-28 10:49:52 +02:00
Javier Viguera b1f2b85197 modemmanager: delay the launch of MM for XBee Cellular
The XBee Cellular needs more time to settle down before MM is able to
detect it on boot. As this is connected to one of the 'ttymxc' serial
ports, use that port to conditionally delay the launch of MM.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-04-27 19:09:15 +02:00
Javier Viguera 7554f05b5f Revert "modemmanager: add more retries for port AT probing"
Adding more retries to the port AT probing has an impact in modems not
using serial drivers (for example using qmi, mbim). It takes longer for
MM to detect those modems and then user space gives up waiting for the
modems to be available.

This reverts commit 682d77e414.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-04-27 19:09:15 +02:00
Alejandro Navarro 45f84286a3 pulseaudio: disable memfd for CC6
Pulseaudio 9.0 relies on the syscall memfd_create, which was introduced
in kernel 3.17, but the version currently supported for the CC6 SBC is
3.14.

There is a corner case where the configure script does not detect the
actual kernel version, thus enabling memfd_create. When Pulseadio tries
to call memfd_create, it shows error messages, so disable memfd
explicitly.

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

Signed-off-by: Alejandro Navarro <alejandro.navarro@digi.com>
2017-04-27 16:59:57 +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
Alex Gonzalez 448e98aca7 README: update
https://jira.digi.com/browse/DEL-3949

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-04-26 10:32:38 +02:00
Sebastian Pastor 8a9e333086 mca_tool: update checksums for build 1.6
Signed-off-by: Sebastian Pastor <sebastian.pastor@digi.com>
2017-04-25 18:37:04 +02:00
Salvador Penalva 955e395151 Revert "README: add known issue for Telit LE910"
This reverts commit fcdada265e.

Signed-off-by: Salvador Penalva <salvador.penalva@digi.com>
2017-04-25 10:46:57 +02:00
Javier Viguera bc8ac0507d init-ifupdown: disable wlan interfaces on non-wireless variants
Added a post-installation script to disable the wireless interfaces on
module variants without wireless support.

This fixes following messages on boot:

wlan: driver load failure
modprobe: can't load module wlan (extra/wlan.ko): No such device
...

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-04-21 16:53:32 +02:00
Hector Palacios 71323796fd mca_tool: update checksums for v1.5
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-04-20 20:30:18 +02:00
Alex Gonzalez d776c9c282 meta-digi-dey: bluez5-5.41: ccimx6ul: Rewrite bluetooth-init
The following changes have been made to the bluetooth-init script:

* Remove "hciconfig hci0 up/down" and this is now deprecated and likely
to fail. We use the AutoEnable feature of bluetoothd for this now.
* Move setting the MAC address to hciattach instead of using hcitool.
* Remove resets performed by hcitool and hciconfig. The hciattach
application already performs a reset and that should suffice.
* Remove hciattach retries.

https://jira.digi.com/browse/DEL-3711
https://jira.digi.com/browse/DEL-3436
https://jira.digi.com/browse/DEL-3636
https://jira.digi.com/browse/DEL-3955

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-04-20 17:37:55 +02:00
Alex Gonzalez ae8e695cf7 meta-digi-dey: bluez5-5.41: ccim6ul: Modify hciattach
This commits adds patches to hciattach for the following:

* Strict flow control setting

  The hciattach application has a flow | noflow command line argument that is
  currently only applied on the first configuration of the uart port. The
  hciattach_rome plugin ignores this setting and assumes hardware flow
  control is always supported. This commits makes hciattach obey the user flow
  control indication.

* Modify hciattach_rome to set MAC address. The MAC address setting
  feature in the rome plugin now works with the command line specified
  MAC.

* Reduce verbosity. hciattach now accepts a "-v" verbose flag. By
  default verbose output it omitted.

https://jira.digi.com/browse/DEL-3711
https://jira.digi.com/browse/DEL-3436
https://jira.digi.com/browse/DEL-3636
https://jira.digi.com/browse/DEL-3955

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-04-20 17:37:49 +02:00
Alex Gonzalez 3ab6c6caa5 meta-digi-dey: Add bluetooth main configuration files
Configure bluetoothd to enable the controller automatically.

https://jira.digi.com/browse/DEL-3711
https://jira.digi.com/browse/DEL-3436
https://jira.digi.com/browse/DEL-3636
https://jira.digi.com/browse/DEL-3955

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-04-20 17:37:43 +02:00
Diaz de Grenu, Jose 1974e5a73e ccimx6sbc: linux-dey: add defconfig for v4.1
Imported from the kernel branch.

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2017-04-20 16:24:34 +02:00
Javier Viguera a7105c70d0 init-ifupdown: remove wrong sed command
This 'sed' command was used in the past, when DHCP or MANUAL was
configured in the '/etc/network/interfaces' (for cellular). This is no
longer true as we always configure the interface with a custom (manual)
script.

This was breaking the rest of interfaces when configured to use 'dhcp':

iface eth0 inet manual
       umanualc_opts -S -b >/dev/null &

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-04-20 13:56:52 +02:00
Javier Viguera b56bdf126c modemmanager: add B230400 and B921600 missing baudrates
So they can be used by MM to open the serial port (configured via udev
tags).

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-04-20 13:56:52 +02:00
Javier Viguera 682d77e414 modemmanager: add more retries for port AT probing
Launching the MM on target's boot fails to detect the XBee cellular
because this needs more time to complete the initialization. So add some
more retries for the AT port probing to allow the XBee cellular to be
detected.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-04-20 13:56:52 +02:00
Javier Viguera 68df122989 modemmanager: enable log file
Instead of redirecting the MM logging to '/dev/null' use a file, so we
can see what's going on in case of failure.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-04-20 13:56:52 +02:00
Javier Viguera 3de76b2eae modemmanager: update revision to get flow control patches from repo
The flow control patches have been merged to the master branch, so
update the revision to remove those patches from our layer.

This reverts commit a7c51af5b8.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-04-20 13:56:52 +02:00
Alex Gonzalez 3d45a10ead Update README
https://jira.digi.com/browse/DEL-3839
https://jira.digi.com/browse/DEL-1152
https://jira.digi.com/browse/DEL-3720
https://jira.digi.com/browse/DEL-4049

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-04-20 13:39:58 +02:00
Diaz de Grenu, Jose 6f7e1ad548 meta-digi-dey: bump distro version to 2.2-r2
Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2017-04-19 11:07:42 +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
Diaz de Grenu, Jose 4180320e1a ccimx6: update kernel to v4.1
Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2017-04-18 11:48:39 +02:00
Mike Engel 2f47dfb48c meta-digi-arm:gpu: Add GPU memory reserved configuration.
This commit adds support to read the GPU reserved memory
from the DT.

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

https://jira.digi.com/browse/DEL-3868
2017-04-12 11:54:07 +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
Mike Engel fae66340dd mca: Fix build error when binary is already-stripped.
This commit fixes a build error issue for the MCA because the
binary is stripped.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2017-04-12 11:45:47 +02:00
Tatiana Leon b7facb3ff5 recovery init: log messages to the stderr instead of to stdout
Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-04-11 14:30:17 +02:00
Tatiana Leon 15214a198e recovery init: check the update package before setting a key and/or formatting
The recovery init checks if the configured update package exists and it is valid
before setting a new key and/or formatting the rootfs partition.

This change avoids getting non-booting devices after performing a firmware
update with a non-existing or invalid update package.

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

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-04-11 14:30:17 +02:00
Alejandro Navarro ff82ecdf87 mca_tool: update checksums for build 1.5
Signed-off-by: Alejandro Navarro <alejandro.navarro@digi.com>
2017-04-11 14:11:34 +02:00
Hector Palacios 07d11072d2 ccimx6ul_defconfig: sync defconfig with kernel
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2017-04-11 11:47:18 +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
Salvador Penalva fcdada265e README: add known issue for Telit LE910
Signed-off-by: Salvador Penalva <salvador.penalva@digi.com>

https://jira.digi.com/browse/DEL-3930
2017-04-11 11:14:58 +02:00
Alex Gonzalez 6377c0c13d meta-digi-arm: firmware-qualcomm: Update board data files.
These new US and world board data files contain new settings updated
with the latest certification results including the 2 dB power reduction
from DVT.

md5sums:

a5635e39aaaa220094e0d07f7a4f4567  bdwlan30_US.bin
cabebad84a6afc1c2a7d795d31dda480  bdwlan30_World.bin

https://jira.digi.com/browse/CC6UL-740

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-04-11 10:40:13 +02:00
Hector Palacios 68a1940d7f ccimx6ulstarter/sbc: select correct fdt_file for variant 0x04
Variant 0x04 has wireless and must select the '-wb' device tree.

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

https://jira.digi.com/browse/DEL-4100
2017-04-10 11:27:22 +02:00
Javier Viguera a7c51af5b8 modemmanager: add flow control patch series
https://jira.digi.com/browse/DEL-3841

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-04-07 19:45:27 +02:00
Javier Viguera f67e7e949b modemmanager: add udev rules for XBee cellular
These rules are needed so the modem is detected.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-04-07 19:45:27 +02:00
Javier Viguera a774da80be modemmanager: new recipe to build from git repository
The XBee cellular support is at the moment only in modemmanager's git
repository (master branch).

Also remove one Telit patch from the bbappend because it's already
included in the git repo.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-04-07 19:45:27 +02:00
Javier Viguera ad122d2605 libqmi: new recipe for version 1.18.0
This version of libqmi is needed for newer versions of ModemManager.

Remove bbappend and patch to previous version as the patch is now
included in the new version.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-04-07 19:45:27 +02:00
Hector Palacios 505eb19aa4 hostapd: let start-stop-daemon create PID and background process
The current script cannot launch the hostapd twice (for dual HostAP mode)
because start-stop-daemon finds an already existing PID for hostapd after
running the first instance.

The solution is:
 - Do not launch the hostapd in background (so that it does not fork the
   process, which assigns a different PID)
 - Use -b option of start-stop-daemon so that it launches the daemon in
   the background.
 - Let start-stop-daemon create the PID (since the hostapd will not fork
   now this PID will match the hostapd process, allowing to kill it later)

This solution also hides the hostapd log messages that appeared before.

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

https://jira.digi.com/browse/DEL-4045
2017-04-07 12:28:14 +02:00