Commit Graph

1834 Commits

Author SHA1 Message Date
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
Hector Palacios 80e5756770 ccimx6ulstarter/sbc: add support for CC6UL 1GB DDR3 variants
Add support to build U-Boot for variants with 1GB DDR3.
Add support in U-Boot install firmware script to select the
U-Boot artifact to use basing on variant.

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

https://jira.digi.com/browse/DEL-3970
2017-04-06 10:32:39 +02:00
Hector Palacios 2dcf33b283 hostapd: parametrize hostapd init script per interface
The original init script hardcodes the configuration file to use so it
cannot be re-utilized for concurrent AP/AP mode where two interfaces can
be used as SoftAP.

This commit uses the variable ${IFACE} to:
- select a specific configuration file per interface:
  /etc/hostapd_${IFACE}.conf
- create a specific PID file per interface:
  /var/run/hostapd.${IFACE}.pid

With this, the /etc/network/interfaces can use the script for using SoftAP
in different wireless interfaces.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2017-04-05 18:15:27 +02:00
Alex Gonzalez 5d2d0011d0 meta-digi-arm: qualcomm: Move cfg.dat and qcom_cfg.ini to module recipe
The firmware configuration and the driver configuration are part of the
driver repository. Stop duplicating the content in meta-digi so they
are updated with the driver itself.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-03-31 18:29:00 +02:00
Javier Viguera dba3244a3e dey-image-installer: fix missing artifacts in ZIP installer
With the migration to Morty, some of the paths to the artifacts (boot
and rootfs images) need to be updated.

While on it, also remove the temporary README.txt file which is not
needed after it has been packed in the zip installer.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-03-31 18:02:52 +02:00
David Escalona 5a2b538bcd bluetooth-init: force hardware-init script to be executed first
- The Bluetooth daemon was always executed before setting up the
  hardware, generating several problems specifically in the CCIMX6SBC.
  This was causing the Bluetooth driver to override the Bluetooth name
  and alias, as well as avoiding any host function on Bluetooth profiles.
  Only pairing and ping was working, as well as client profile sides.
- This change also fixes some issues in the CCIMX6UL platforms with the
  Bluetooth daemon failing to perform several bluetoothctl operations.

https://jira.digi.com/browse/DEL-4000
https://jira.digi.com/browse/DEL-4015

Signed-off-by: David Escalona <david.escalona@digi.com>
2017-03-30 18:02:13 +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
Tatiana Leon 432844a3a8 meta-digi: configure recipes to use maintenance branches
Updated recipes for linux, u-boot, trustfence-sign-tools, and
kernel-module-qualcomm.

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-03-28 11:30:06 +02:00
Tatiana Leon 38740f9a04 trustfence: get bytes from the console passphrase to feed the hash method
In Python 3, feeding string objects into hash method is not supported. Hashes
work on bytes, not on characters.

So we use 'encode()' on the passphrase to get the bytes object.

See:
 * https://docs.python.org/3/howto/pyporting.html#text-versus-binary-data
 * https://docs.python.org/3/library/hashlib.html#module-hashlib

This commit fixes build failures as:

Exception: TypeError: Unicode-objects must be encoded before hashing

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

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-03-27 10:38:13 +02:00
Alex Gonzalez a776eb1bd8 README: Update for dey-2.2-r1
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-03-27 09:57:27 +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 d1724ef6ff README: Update for dey-2.2
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-03-24 10:44:36 +01:00
Alex Gonzalez 4b5fe291f0 meta-digi-arm: kernel-module-qualcomm: Use single SRCREV for both external
and internal compilation.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-03-24 09:45:52 +01:00
David Escalona 748ffed314 trustfence-sign-kernel: fix the IVT table address padding
- The IVT table address inside the kernel image must be aligned at 0x1000
  bytes. The calculation of this offset was not working when the kernel image
  size was multiple of 0x1000 bytes. In this case the IVT table was moved an
  extra offset of 0x1000 bytes, causing U-Boot to fail to validate the image
  as the IVT table was not in the expected location.

  This fix uses the same offset calculation algorithm as U-Boot, ensuring both,
  the sign script and U-Boot will look for the IVT at the same address.

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

Signed-off-by: David Escalona <david.escalona@digi.com>
2017-03-23 14:16:33 +01:00
Alex Gonzalez 70f7c013da 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.

md5sums:

386475740ad0e41f4387eebdf2931c16  bdwlan30_US.bin
d349985b51353f430183f1bf9f6d90d1  bdwlan30_World.bin

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-03-23 13:04:49 +01:00
Javier Viguera 116d532813 trustfence-cst-native: add premirror for CST package
This will allow to get the package from a premirror in case it is not
already downloaded in the DL_DIR.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-03-23 12:36:57 +01:00
Javier Viguera 165f58e9df trustfence-cst-native: coding style, no functional change
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-03-23 12:36:57 +01:00
Javier Viguera 846f07b7ac meta-digi: change Freescale references to NXP
Mostly in config templates and readme files.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-03-22 19:58:32 +01:00
Javier Viguera 1744d40433 README.md: initial update for next DEY release
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-03-22 19:57:22 +01:00
Tatiana Leon f9194019b6 recovery init: detach 'update' MTD device from UBI if volume is not found
If the volume is not found, the partition cannot be wiped since it is attached.

Remove 'update' UBI device in:
 * mdev automount script if volume is not found
 * recovery init script before formatting 'update' partition

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

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-03-22 15:03:24 +01:00
Diaz de Grenu, Jose 4850d0ffa9 conf: machine: use weak assignment for SERIAL_CONSOLES
This allows to override the console using the local.conf.

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2017-03-22 11:36:46 +01:00
Javier Viguera c7da3e532c meta-digi-dey: disable ICU support for ccimx6ul
ICU support was not included in the rootfs in previous DEY versions
but it's included now through runtime dependences of 'harfbuzz' and
'libical'.

The support is not strictly needed, as ICU is a library for Unicode
support for applications:

http://site.icu-project.org/home

This commit disables ICU support directly for 'harfbuzz' and adds a
patch for 'libical' that allows to disable it. Notice that it's only
disabled for the CC6UL, as the CC6 has no rootfs space problems.

Only the 'libicudata' library is 25MB:

25M  /usr/lib/libicudata.so.57.1

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-03-21 12:10:21 +01:00
Salvador Penalva 1e2ee0589f meta-digi-dey: support for old FWs of Telit HE910
The unlock retries feature from the Telit plugin does not work properly with
old versions of the Telit HE910 firmware. This has been fixed in upstream
commit: fbb607f0c25be3a4bb8692ee48445cf437345b6c

Signed-off-by: Salvador Penalva <salvador.penalva@digi.com>

https://jira.digi.com/browse/DEL-3863
2017-03-20 19:37:54 +01:00
Salvador Penalva 65a17c522c Revert "meta-digi-dey: Add fix to return correct error code."
This reverts commit 3123085e72.

we revert this commit because the patch was already applied on mm-1.6.4

Signed-off-by: Salvador Penalva <salvador.penalva@digi.com>
2017-03-20 19:37:54 +01:00