Commit Graph

2504 Commits

Author SHA1 Message Date
Gabriel Valcazar 9fae56c116 meta-digi: update revisions for dey-2.6-r1.1
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-04-02 09:42:47 +02:00
Gabriel Valcazar e20f2877db README: Update dey-2.6-r1 changelog
https://jira.digi.com/browse/DEL-6518

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-04-02 09:40:32 +02:00
Hector Palacios 86104b4ffa libdigiapix: add and fix GPIO aliases
For CC6/CC6Plus
 - Add USER_LED0 alias (same as default USER_LED)
 - Change aliases of the other LEDs to USER_LED1 and
   USER_LED2 (without additional underscore and fixed
   indexes, to match the board schematics)

For CC8X SBC Pro
 - Add USER_LED0 alias (same as default USER_LED)
 - Add USER_LED1 which was missing
 - Increase indexes (due to removed MCA_IO19 on SOM v3)

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2019-04-02 09:23:18 +02:00
Gabriel Valcazar df3858f473 systemd: add patch to avoid spurious stalling during reboots
This modifies the behavior of the sd-resolve libsystemd component to prevent
the system from freezing whenever a service that uses said component is
stopped. Even though this doesn't free the terminated thread's resources
properly, this procedure only gets executed during the final moments of a
service's process before it exits, so resource leaks aren't an issue.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-03-28 18:08:19 +01:00
Hector Palacios 47f88d1d24 switch to building from maintenance branches for dey-2.6
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2019-03-27 17:47:32 +01:00
Hector Palacios 42d28c76cb dey-examples: remove old examples now superseeded by digiapix
This commit removes the following examples that were accessing
hardware interfaces:
 - dey-examples-adc
 - dey-examples-can
 - dey-examples-gpio-sysfs
 - dey-examples-spidev
 - dey-examples-watchdog

The recipe 'dey-examples-digiapix' builds similar examples that make
use of Digi's APIX for accessing the hardware. Add this recipe to images
 - dey-image-qt
 - core-image-base

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

https://jira.digi.com/browse/DEL-5169
2019-03-27 10:58:40 +01:00
Hector Palacios 04aa734d75 dey-examples: create common file for the dey-examples repo URL/branch
This reduces the number of files that must be modified when changing
branches between development/release modes.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2019-03-27 10:52:44 +01:00
Francisco Gil fd8701845e greengrass: add support for greengrass 1.8.0
Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2019-03-27 09:52:54 +01:00
Francisco Gil 7ea3714d9c greengrass: generalize the recipe to compile greengrass
Organize the common code in the recipe to make easy the
inclusion of new greengrass versions.

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2019-03-27 09:52:45 +01:00
Gabriel Valcazar 12e603021c init-ifupdown: add virtwlans script to pre-up and post-down hook directories
This way, the wlan1 interface will only be created whenever a user wants to
bring the interface up with ifupdown. Modify the script to be able to delete
the interface whenever it gets brought down and remove its .sh file extension
so run-parts can run it properly during the ifup process.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-03-22 09:46:51 +01:00
Gabriel Valcazar 9f76a50e57 Revert "kernel-module-qualcomm: create wlan virtual interface"
Don't create the wlan1 interface automatically to improve the general
performance of the wireless interface.

This reverts commit a5ae6a5b3c.

https://jira.digi.com/browse/DEL-6353
2019-03-22 09:46:51 +01:00
Gabriel Valcazar 26df169ea2 init-ifupdown: don't bring wlan1 up automatically
Tests have shown that having this interface up hinders wlan0's performance,
so don't bring it up by default.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-03-22 09:46:51 +01:00
Francisco Gil 24de2e5302 firmware-qualcomm: update qca6564 firmware to r10005.1
Update following firmware binaries to tag r10005.1 from
qca6574au-le-2-2-1_qca_oem repo at meta_build/firmware/sdio/
in order to support fast roaming (802.11r) for the qca6564
wireless chip:

    e018e7b629b055dc4616c7e88c615b41  otp30.bin
    8b638fdaf21f089940d98db518323767  qwlan30.bin
    d6ece5037e595000770fbbb6015c0461  utf30.bin


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

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2019-03-21 17:19:32 +01:00
Gonzalo Ruiz 5ff26164c3 u-boot-dey: remove support for U-Boot v2015.04
Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2019-03-21 15:44:54 +01:00
Gonzalo Ruiz c0065f64e3 u-boot-fw-utils: update to version 2018.07
Update u-boot-fw-utils patches to apply on current upstream version. Remove
recipe for version 2017.09 since both U-Boot v2017.03 and v2018.03 work fine
with the newer version.

https://jira.digi.com/browse/DUB-881

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2019-03-21 15:44:54 +01:00
Gonzalo Ruiz 4803dba689 dtc: use version 1.4.5 only on platforms that build U-Boot 2017.X
This version is only required to build U-Boot 2017.X, so select it as preferred
version only on those platforms that build this U-Boot (CC6 and CC6UL).

https://jira.digi.com/browse/DUB-881

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2019-03-21 15:44:54 +01:00
Gonzalo Ruiz 32bc5199fc imx-boot: remove our .bb file and add a .bbappend
Most of the support has been added to the meta-freescale layer, so
substitute our recipe for a .bbappend and redefine the tasks to build
U-Boot images for our two variants (1GB and 2GB).

https://jira.digi.com/browse/DUB-881

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2019-03-21 15:44:54 +01:00
Gonzalo Ruiz 9daabff5e7 imx-mkimage: remove our .bb file and add a .bbappend
Every task in this recipe is already supported in the same way in the
meta-freescale layer, so just keep the .bbappend file to select SRCBRANCH and
SRCREV.

The DDR patch can be removed since that source code is now included into the
SCFW project.

https://jira.digi.com/browse/DUB-881

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2019-03-21 15:44:54 +01:00
Gonzalo Ruiz 5f302013f9 u-boot-dey: add support for U-Boot v2018.03
This adds support for U-Boot v2018.03 for CC8X platforms only.

Create 'digi-u-boot.inc' with the common definitions for both v2017.03
and v2018.03.

https://jira.digi.com/browse/DUB-881

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2019-03-21 15:44:54 +01:00
Jose Diaz de Grenu 9e349305a3 sysinfo: add device tree used to the report
The device-tree being used on a system is a very important piece of
information to debug issues. On a host machine, dtc can be used to
reconstruct the DTS used from the /proc/device-tree folder structure.

While on it, remove extra white lines at the beginning and end.

Signed-off-by: Jose Diaz de Grenu <Jose.DiazdeGrenu@digi.com>
2019-03-21 11:15:34 +01:00
Hector Bujanda 9b4aa277f3 mca_tool: update checksums for build 1.16
Collects following changes:
   - fix compatible string parsing: Only first compatible string
     was being parsed from "/proc/device-tree/compatible"
     while looking the device the application is running on.

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

Signed-off-by: Hector Bujanda <hector.bujanda@digi.com>
2019-03-20 16:28:42 +01:00
Arturo Buzarra 05c9cd566d qualcomm: add enable_p2p parameter to driver initialization
Add kernel module parameter to enable/disable the p2p interface.
By default p2p interface is disabled.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2019-03-19 18:15:42 +01:00
Arturo Buzarra 626d594952 bridgeifupdown: fix bridge initialization timing issue with wireless interface
This script introduces a minor delay when the own script
launch the wpa_supplicant daemon, however this minor delay
is needed in the boot process when the wireless interface
is loaded, if not the bridge mechanism throws an unexpected
error trying to add the interface to the bridge before the
wireless is ready to use.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2019-03-18 18:41:54 +01:00
Gabriel Valcazar 65072fb04c greengrass: add systemd support
Since our initscript contains logic to dynamically generate the path containing
the greengrass daemon (it changes depending on the version), keep it in the
rootfs. Create a symlink to it inside of /etc/init.d for sysvinit images and
create a systemd service wrapper that calls it on systemd images.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-03-18 14:11:59 +01:00
Gabriel Valcazar 6e282ec51b bluez: rework bluetooth and bluetooth-init services
Soften the dependencies between the services and start the bluetooth stack
regardless of the existence of a bluetooth chip. Also, update the standby
script to reflect that there is no longer a strong dependency between the
services.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-03-14 17:27:00 +01:00
Gabriel Valcazar 1ddd7e57ee systemd: add upstream patch to expand the list of rules.d directories
Unlike eudev, which is used on images without systemd, the list of paths
systemd-udev uses to look for rules is very limited. Include an upstream patch
(commit 116b91e8ccfee1d44fc2b140d831d688e3747902 in the systemd repo) that
expands said list.

This fixes an issue with crda's regulatory domain rule file, which was being
excluded due to it being in a path systemd-udev was ignoring (/usr/lib/udev).
Because of this, the regulatory domain was never set properly and hostapd was
failing when configured to use 5GHz channels (which is the default config).

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-03-14 13:34:16 +01:00
Gabriel Valcazar ae2abd926a init-ifupdown: add systemd support
To avoid bringing up interfaces before they're created by udev scripts
(specifically wlan1), wait until udev settles before starting the service.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-03-14 13:34:16 +01:00
Gabriel Valcazar b957f0ef75 hostapd: add systemd support
When using systemd, putting the wlan1 interface up wasn't working because it
was relying on initscripts that are no longer in the filesystem.

Add a parametrized version of the upstream hostapd service to be able to use a
configuration that's different from the default one. Also, modify the
generation of the wlan1 entry in /etc/network/interfaces to be able to use
different post-up/pre-down hooks depending on the init manager that's being
used.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-03-14 13:34:07 +01:00
Arturo Buzarra e13d086612 vsftpd: enable user authentication through PAM when it is enabled
https://jira.digi.com/browse/DEL-6502

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2019-03-11 13:05:24 +01:00
Alex Gonzalez 54abbc80a7 meta-digi-arm: kernel-module-qualcomm: Use new branch names
The naming of branches in the qcacld repository is now in the qca65x4
namespace.

Also, the qca6564/master branch now does not hardcode the TX MCS to 0 as
this change should only apply to the CC6UL and not other platforms like
the CC6+.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2019-03-11 12:27:43 +01:00
Arturo Buzarra 70c2a73b3f wpa-supplicant: enable control socket interface for systemd service
https://jira.digi.com/browse/DEL-6483

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2019-03-07 16:17:04 +01:00
Gonzalo Ruiz ea22a0b72c firmware_qualcomm: update Board Data File with a calibrated one
Update file:

- fakeboar.bin (f9f8dc905be5732525e0c9e8db7822f3)

This file was generated by calibrating several CC8X SBC Pro boards and merging
their resulting BDF files.

Reference calibration file is:

- bdwlan30.bin (8a558fa38dacee7038f04c1b10ec69a5)

located at 'cnss_proc/wlan/fw/target/pcie_dst/qc6174/' from tag r10005.1 on
qca6574au-le-2-2-1_qca_oem repo.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2019-03-06 17:37:51 +01:00
Gabriel Valcazar 6ecae7b7d4 linux-dey: fix trustfence_sign() errors
Device tree files no longer have the kernel type prefixed to their name, so the
trustfence_sign() function must be updated to reflect this change or else
errors will occur.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-03-06 10:58:33 +01:00
Gabriel Valcazar ec7511ee8f trustfence-cst: add support for cst v3.1.0
This version supports OpenSSL v1.1.0 by default, which is used in DEY 2.6.
Trying to build older versions of the package will result in failures, so
remove support for said versions entirely.

Our patches apply cleanly except for the hab4_pki_tree.sh automation patch,
which needs a small tweak so it can get applied over the latest version of the
script.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-03-06 10:58:33 +01:00
Arturo Buzarra 61dd975687 networkmanager: remove upstreamed fix for ppp support
This change was added to meta-openembedded layer by commit
0814df2e9179b71b5f5c99b962aca35ede1f242f.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2019-03-04 18:14:20 +01:00
Arturo Buzarra 78360255f0 networkmanager: disable terminal colors by default for nmcli
Since the version 1.12, NetworkManager enables the colors in the
terminal output by default. This pretty output is not compatible
with several terminal emulators and makes it difficult to parse
the output of the CLI commands.
This patch uses the standard linux util called 'terminal-colors.d'
to disable the colors by default in the NetworkManager CLI interpeter.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2019-02-27 16:59:49 +01:00
Arturo Buzarra bccb5890b8 busybox: generalize bbappend to support different revisions
Latest update to version 1.29.3 in upstream breaks the compatibility
of our bbappend, to avoid it in future updates, this commit
generalizes the bbappend to apply all the 1.29 series.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2019-02-26 16:47:06 +01:00
Arturo Buzarra 2ecc433295 pulseaudio: generalize recipe and add support to MAX98089 sound card profile
Add pulseaudio audio profile for MAX98089 sound card and
generalize the recipe to support multiple platforms with
the same audio sound card.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2019-02-26 14:13:44 +01:00
Hector Palacios eafa8684a3 imx-gpu-viv: remove GPU driver kernel module and dependencies
The driver now builds directly from the kernel source and the
fixes are already included in the kernel tree so there is no need
to build the module externally.

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

https://jira.digi.com/browse/DEL-6460
(cherry picked from commit a0990a7e1dcd03af239efb620b83b7dee126484e)
2019-02-26 10:21:30 +01:00
Alex Gonzalez b1d5d3e4ac meta-digi-dey: Add batctl application
This is a user space tool to manage BATMAN advanced network interfaces.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2019-02-25 09:57:29 +01:00
Gabriel Valcazar 4d739d1d7e vsftpd: change path used for systemd runtime data
systemd-tmpfiles throws warnings of /var/run being deprecated in favor of /run.
Even though this is corrected automatically, the warnings appear several times
during runtime, polluting the systemd journal.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-02-22 11:14:29 +01:00
Arturo Buzarra fce8d2bb10 xserver-xf86-config: Sync i.MX xorg.conf files with meta-fsl-bsp-release layer
- Remove upstreamed config files
- Add a base version
- Add i.MX 6ULL config file

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2019-02-20 09:27:11 +01:00
Arturo Buzarra 111c0b4af8 build.sh: fix missing dey-image-aws for CC8X platforms
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
(cherry picked from commit 318bb9ac313b0989939e0e9f8bf379e1d258276e)
2019-02-20 09:25:38 +01:00
Tatiana Leon 3b280e92f3 build.sh: remove references to 'manufacturing.xml' file
The file 'manufacturing.xml' file in the manifests repository does not exist.
When building manufacturing artifacts, we must use the 'manufacturing/morty'
branch, that already contains the right repositories to clone.

For a manufacturing job, this commit only adds the 'meta-digi-mfg' if it is not
already there.

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
(cherry picked from commit 379ca469dff949e09c667d1a448012881b8812d2)
Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2019-02-19 16:27:54 +01:00
Gabriel Valcazar c76469fba7 dnsmasq: disable dnsmasq.service by default
Similar to what we did on sysvinit, stop dnsmasq from starting automatically
on boot so NetworkManager can launch it via dbus.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-02-18 18:01:57 +01:00
Gabriel Valcazar b769f90e2a hostapd: rework postinst script to avoid lock-ups on first boot
The postinst script tries parsing the wireless MAC address from the sysfs, and
in case of failure, obtains a random string from /dev/urandom. This caused two
problems when booting with systemd:

 * The wifi interface's sysfs entry is not available because the interface
hasn't had time to start up yet, forcing the script to always resort to the
/dev/urandom fallback.
 * Even though the postinst scripts are run after populating the volatile
filesystems (as can be seen in run-postinsts.service's dependencies), trying
to read either /dev/random or /dev/urandom at this point in the system's
initialization causes it to lock up indefinitely.

To avoid either situation, add the following changes:

 * Immediately exit when running on a non-wireless target, as the script isn't
necessary in this use case.
 * Parse the wireless mac address from /proc/device-tree/wireless, which is
guaranteed to always be available when the script runs. By doing this, we can
remove the /dev/urandom fallback entirely.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-02-18 18:01:57 +01:00
Gabriel Valcazar 803dde16b0 busybox: add suspend-actions script for the ccimx8x and ccimx6ul
This script behaves the same way as our custom standby script, with a few
modifications, for example:

 * instead of using initscripts to stop/start daemons, it uses systemctl calls
 * save variables that are needed when resuming in /tmp, because the script is
executed twice instead of once (when suspending and when resuming)
 * remove the locking/unlocking of the critical section and the actual state
change, since that is handled by systemd-suspend now

Also, add a different standby script for when systemd is enabled. Said script
acts as a wrapper for systemd's suspend mechanism.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-02-18 18:01:57 +01:00
Gabriel Valcazar 2d2f9fcbb0 ccimx8x: explicitly set VIRTUAL-RUNTIME_initsctiprs to "initscripts"
In Yocto 2.6, this variable is null whenever systemd is enabled. Explicitly set
this variable to keep some necessary scripts in /etc/init.d.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-02-18 18:01:57 +01:00
Gabriel Valcazar d0b99c14fc bluez5: add patch to modify bluetooth.service's properties
These changes are needed in order to achieve a behavior similar to our
bluetooth initscripts'.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-02-18 18:01:57 +01:00
Gabriel Valcazar ae1dfa5901 bluez5: add bluetooth-init.service
This service acts as a systemd replacement for our bluetooth-init initscript.
All it does is call the initscript before starting the bluetooth stack.

Since initscripts dissapear from /etc/init.d when disabling sysvinit, move the
script to /etc/. Also, include bluez5-init as a packagegroup-dey-bluetooth
dependency regardles of whether systemd is enabled or not.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-02-18 18:01:57 +01:00