Commit Graph

1795 Commits

Author SHA1 Message Date
Pedro Perez de Heredia e7f590350c kernel-module-qualcomm: fix issue with _scan_callback at module unload
Protect the invocation of the _scan_done() callback function with the
global lock to avoid that it is called while the module is being unloaded
and the data structures have been freed.

Additionally, the commit also adds a patch to reduce the log level of the
driver that is logging some annoying messages.

https://jira.digi.com/browse/DEL-3607
https://jira.digi.com/browse/DEL-3393

Signed-off-by: Pedro Perez de Heredia <pedro.perez@digi.com>
2017-02-13 11:59:45 +01:00
Alex Gonzalez 8d716dd0e0 meta-digi-dey: wpa-supplicant: Add commented out sched_scan_interval.
This parameter allows to set the time interval for scheduled scans in
seconds. This is usually managed by the wpa-supplicant dynamically, but
for example with DFS channels and non broadcasting SSIDs re-associations
take too long if the periodic scans time interval is not reduced.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-02-13 11:15:18 +01:00
Sebastian Pastor e9c1cd4632 sdk: build: Add ccimx6ulrftest platform.
This is the manufacturing test harness used for the CC6UL module during
manufacturing RF test.

Signed-off-by: Sebastian Pastor <sebastian.pastor@digi.com>
2017-02-10 21:59:10 +01:00
Javier Viguera bbc03c5935 trustfence-cst: refresh patches with git
Refresh the patches with GIT so they apply cleanly using "git am".
Otherwise they fail with:

Applying: openssl_helper: use /dev/urandom as seed source
error: corrupt patch at line 16
Patch failed at 0003 openssl_helper: use /dev/urandom as seed source

Applying: hab4_pki_tree.sh: usa a random password for the default PKI generation
warning: keys/hab4_pki_tree.sh has type 100755, expected 100644

Notice that they were not failing in Yocto, as it does not use "git am"
to apply patches, but it's better to have the patches correctly done.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-02-10 19:37:55 +01:00
Alex Gonzalez 44ae297ea8 meta-digi-arm: firmware-qualcomm: Update board data files.
Use bdf with a -2db gain.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-02-10 19:00:03 +01:00
Javier Viguera e367ba8cc4 meta-digi: update README.md file
* Device Cloud has been renamed to Remote Manager.
* Removed "Data points" known issue (fixed in CloudConnector)

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-02-10 10:39:42 +01:00
Javier Viguera 1949581c54 mesa: make sure GLES3 headers are installed
Ship libgles3-mesa-dev package along with libgles2-mesa-dev because
otherwise GLES3 headers are missing from the toolchain and we have build
failures for example compiling QT applications.

Exactly the same workaround is done for the vivante implementation in
meta-fsl-arm layer.

Original patch (not merged into oe-core):

https://patchwork.openembedded.org/patch/134244/

Signed-off-by: Javier Viguera <javier.viguera@digi.com>

https://jira.digi.com/browse/DEL-3088
2017-02-10 10:36:03 +01:00
Hector Palacios 30ccd116f5 initscripts: add script to enable CAAM JS0 wakeup
According to NXP i.MX Linux Reference Manual:

The full CAAM function is exclusive with the Mega/Fast mix off feature
in DSM.  If CAAM is enabled, the Mega/Fast mix off feature needs to be
disabled, and the user should
  "echo enabled > /sys/bus/platform/devices/2100000.aips-bus/2100000.caam/2101000.jr0/power/wakeup"
after the kernel boots up, and then Mega/Fast mix will keep the power
on in DSM.

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

https://jira.digi.com/browse/DEL-3636
2017-02-09 18:09:14 +01:00
Javier Viguera 2e003d8385 meta-digi: revert revisions to AUTOREV
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-02-03 17:00:47 +01:00
Javier Viguera c4643eaf0f meta-digi: update revisions for dey-2.0-r5.2
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-02-03 16:58:40 +01:00
David Escalona 561532490c cloudconnector: compile cloudconnector from github by default
Signed-off-by: David Escalona <david.escalona@digi.com>
2017-02-03 14:43:02 +01:00
David Escalona 8ae033e89c Revert "meta-digi-dey: cloudconnector: Build from source tarball."
This reverts commit e0890e8866.
2017-02-03 14:43:02 +01:00
Javier Viguera a077822c3d README.md: add known issues and limitations
https://jira.digi.com/browse/DEL-3557

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-02-02 19:53:20 +01:00
Pedro Perez de Heredia aebaedd365 meta-digi-arm: firmware-qualcomm: qcom_cfg.ini: disable MCS8-9 for Tx mode
https://jira.digi.com/browse/DEL-3563

Signed-off-by: Pedro Perez de Heredia <pedro.perez@digi.com>
2017-02-02 18:13:16 +01:00
Alejandro Navarro 731edf319b mca_tool: update checksums for version 1.3
Signed-off-by: Alejandro Navarro <alejandro.navarro@digi.com>
2017-02-02 18:10:21 +01:00
Javier Viguera 1c61048b95 build.sh: enable zip installer generation by default
For automated builds in the buildserver we want the installer ZIP file
to be generated.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-02-02 13:32:18 +01:00
Javier Viguera aaf2524a08 meta-digi-dey: implement class to generate installer zip package
It's not enabled by default. It's controlled by DEY_IMAGE_INSTALLER
variable in the project's local.conf.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-02-02 13:32:18 +01:00
Javier Viguera 161117caf0 install_linux: fix failure to boot into recovery
On a CC6, the 'env default -a' command deletes the 'soc_family' variable
that is used on the U-Boot boot scripts to configure the name of the
device tree file to load.

Then if we try to boot into recovery directly (without a reset) because
the variable is not available, it fails to compose the correct name for
the fdt, and gives the error:

  reading uImage--ccimx6sbc-id129.dtb
  ** Unable to read file uImage--ccimx6sbc-id129.dtb **

Force a reset, so the 'soc_family' variable is available again and the
correct fdt_file is loaded.

While on it, add some blank lines to the 'recovery reboot' message, so
it's easier to read.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-02-02 13:32:18 +01:00
Javier Viguera 165f7097e4 Merge branch 'dey-2.0/master' into dey-2.0/maint
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-02-02 12:47:05 +01:00
Diaz de Grenu, Jose 6a431c5363 meta-digi-arm: fix encrypted env support when using ubootenv
The caam encryption check was only done from fw_env_write and fw_env_read
functions, which are not called when using the functions exported as a library.

Move the check_caam_encryption() call to fw_env_open(), which is called from
all code paths. A similar check for AES encryption cannot be moved because it
requires the AES key as an argument.

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2017-02-01 16:29:50 +01:00
Pedro Perez de Heredia b869ecde82 meta-digi-dey: suspend: remove unnecesary delay
Signed-off-by: Pedro Perez de Heredia <pedro.perez@digi.com>
2017-02-01 16:11:12 +01:00
Pedro Perez de Heredia e0c4aa21fa meta-digi-dey: suspend: add critical section
Add critical section in suspend script to avoid that more than
one instance can be executed concurrently. This happens, for
instance, when the power button key is pressed while the system
is resumming, causing issues on the wifi interface.

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

Signed-off-by: Pedro Perez de Heredia <pedro.perez@digi.com>
2017-02-01 16:11:12 +01:00
Alex Gonzalez e0bc435685 sdk: build: Add ccimx6ulsom platform.
This is the manufacturing test harness used for the CC6UL module
manufacturing test process.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-02-01 11:35:21 +01:00
Alex Gonzalez 9a1e8d2d41 sdk: build: Add custom layer machine support
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-02-01 11:34:33 +01:00
Alex Gonzalez 26187f47c6 meta-digi-arm: Add weak assignment for Linux and U-Boot
This will allow to override the variable easily.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-01-31 17:47:32 +01:00
Alex Gonzalez d0f727afeb sdk: mkproject: Generalize to use from custom layer.
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-01-31 17:47:32 +01:00
Alex Gonzalez 358961f2b1 sdk: mkproject: Remove variant support from usage
This feature is deprecated and will be permanently removed in future.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-01-31 17:47:32 +01:00
Javier Viguera 4dfaab9dc6 meta-digi-dey: fix layer name
Also update LAYERDEPENDS to add 'swupdate'

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-31 14:32:57 +01:00
Hector Palacios 50dc84d949 uboot: install_script: add missing semicolons
Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-3603
2017-01-31 11:37:37 +01:00
Gabriel Valcazar b2259f7a83 ccimx6sbc: pulseaudio: Make pulseaudio load the sgtl5000 sink
The profiles created for the sgtl5000 sound card didn't have any priorities
assigned, making pulseaudio map a different profile than before and causing the
sink to remain unloaded.

This commit fixes this by assigning a priority to each profile. The values
were taken directly from the default profile to assure that pulseaudio's
behavior is the same using one profile or the other.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2017-01-31 10:02:23 +01:00
Javier Viguera 1b387bbe5d meta-digi: revert revisions to AUTOREV
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-27 12:01:55 +01:00
Javier Viguera 615350dd26 meta-digi: update revisions for dey-2.0-r5.1
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-27 11:58:29 +01:00
Javier Viguera f53cb09e23 meta-digi: update README.md for release dey-2.0-r5
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-27 11:48:07 +01:00
Javier Viguera 7005b0a330 Merge branch 'dey-2.0/master' into dey-2.0/maint
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-26 18:17:12 +01:00
Hector Palacios 9ea7568d8d install_linux_fw_sd: erase NAND partitions before update
NAND partitions may have pre-existing UBI volume information
and that will tell U-Boot to use 'ubiwrite' to keep UBI wear
leveling information instead of erasing the NAND partition
beforehand. Given that the UBI support in U-Boot is not
particularly complete and stable, and specially if the NAND
partition table has been changed, this could result into
problems during the UBI volume initialization or during the
update process. To prevent such problems it is better that
the NAND partitions are erased.

This loses the UBI wear leveling information but provides
a more reliable deployment install script.

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

https://jira.digi.com/browse/DUB-718
2017-01-26 18:09:59 +01:00
Alex Gonzalez e0890e8866 meta-digi-dey: cloudconnector: Build from source tarball.
https://jira.digi.com/browse/DEL-3570

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-01-26 17:02:36 +01:00
Alejandro Navarro 2c7e8ade88 mca_tool: update checksums for version 1.2
Signed-off-by: Alejandro Navarro <alejandro.navarro@digi.com>

https://jira.digi.com/browse/DEL-3575
2017-01-25 19:48:05 +01:00
Javier Viguera 3371ed864c recovery init: disable interactivity for 'ubiformat' command
We have seen corner cases (e.g. when the partition to format has already
some corrupted UBI metadata) where ubiformat stops and ask the user for
confirmation to do the format. We cannot have such interactivity in the
recovery ramdisk so use the '-y' argument to assume yes for all
questions.

Also use the '-q' (quiet) parameter instead of the '/dev/null'
redirections to remove command's output.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-25 12:31:48 +01:00
Javier Viguera e80d5b021c recovery init: configure UBIFS update partition to use ZLIB compression
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-24 19:31:36 +01:00
Javier Viguera 7cf8aa6e06 recovery init: change default mountpoint for 'update' partition
So it matches the same mountpoint used in a normal boot.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-24 19:31:36 +01:00
Javier Viguera 6cb94fe22c build.sh: add support to build firmware update packages
https://jira.digi.com/browse/DEL-3449

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-24 19:28:06 +01:00
Javier Viguera 85efbb87e2 u-boot-fw-utils: clean compiler warning
Modify patch to clean compiler warning:

warning: passing argument 1 of 'sysfs_mmcboot_set_protection' discards
'const' qualifier from pointer target type

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-24 13:55:19 +01:00
David Escalona e0d6f4eda4 automount: add rule to automount update partition
https://jira.digi.com/browse/DEL-3512

Signed-off-by: David Escalona <david.escalona@digi.com>
2017-01-24 11:17:21 +01:00
Javier Viguera e3ae7c8ea7 cloudconnector: add 'recovery-utils' compile time dependence
librecovery is needed to build the cloudconnector library.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-23 19:57:28 +01:00
Hector Palacios 02a0b4ab0b sysinfo: (cosmetic) make 'Version' field a JIRA table header
Add missing | char to make 'version' field in JIRA table a
header.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2017-01-23 16:12:22 +01:00
Alex Gonzalez 98808b5938 kernel-module-qualcomm: Initialize auxiliary p2p0 interface at boot
Remove the commit that removes the p2p0 interface at boot. This interface
is the one used to establish p2p connections. Configuring the wlan0 command
for p2p does not work.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-01-23 15:45:20 +01:00
Alex Gonzalez e55d83ba14 kernel-module-qualcomm: Bring the module up with the p2p0 interface too
The qualcomm wlan driver creates two interfaces at load time, wlan0 and
p2p0. Both of them should load the module if not already loaded.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-01-23 15:45:20 +01:00
Alex Gonzalez 5d332c7800 ccimx6ul: Add P2P support
This commit adds a wpa supplicant P2P configuration file and configures
the p2p0 interface automatically at pre-up.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-01-23 15:45:20 +01:00
Alex Gonzalez 0bb2cb005d meta-digi-arm: ccimx6ul: Use HAVE macros as in other platforms.
For consistency, use the HAVE macros instead of grepping the machine
features directly.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-01-23 15:45:20 +01:00
David Escalona 6e360e01bd examples: cloudconnector: fix uploaded file in the upload file example
Signed-off-by: David Escalona <david.escalona@digi.com>
2017-01-23 14:02:29 +01:00