Commit Graph

1781 Commits

Author SHA1 Message Date
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
Javier Viguera 5d8ea7aa35 dey-examples-cloudconnector: adapt recipe and makefiles to use static library
https://jira.digi.com/browse/DEL-3523

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-20 18:37:59 +01:00
Javier Viguera 30162ca76c cloudconnector: simplify recipe for static library
For the moment the cloudconnector is provided only as static library, so
the recipe can be simplified.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-20 18:37:59 +01:00
Javier Viguera 87cd5ed437 cloudconnector: add missing SRCBRANCH variable
Having explicitly SRCBRANCH in the recipe allows to override it in the
project's config file.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-20 18:37:59 +01:00
Gabriel Valcazar 5d34a217ab ccimx6sbc: pulseaudio: change module-suspend-on-idle timeout to 0
In pulseaudio, module-suspend-on-idle controls how much time a sink spends
in the 'idle' state before going to 'suspended'. This means the ALSA device
associated with the sink stays busy for a few seconds after loading or using
the sink.

This commit adds the timeout=0 parameter when loading module-suspend-on-idle.
Now the sink will go to the 'suspended' state right after being loaded or used.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2017-01-20 17:43:33 +01:00
Gabriel Valcazar 25a5e7c7d3 meta-digi-dey: pulseaudio: reduce pulseaudio loading time
On boot, pulseaudio looks for the sound cards' corresponding profile sets, and
uses a default configuration if none is found. This was causing pulseaudio to
take up to 5 seconds trying every possible default profile.

This commit fixes this by creating a specific profile set for each of the sound
cards on the ccimx6sbc so pulseaudio doesn't spend time trying different
profiles that don't apply to our platform. It also adds udev rules so
pulseaudio knows which configuration to load for each card.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2017-01-20 17:43:33 +01:00
Gabriel Valcazar 73ebf262de meta-digi-dey: pulseaudio: improve HDMI hotplug script
The HDMI hotplug script required alsa-utils to be installed in order to work.
This commit avoids this by adding a recipe for a small binary that replaces
aplay in the script.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2017-01-20 17:40:04 +01:00
Javier Viguera 0cd1c803ce recovery-utils: reset URI for local SWU update packages
Internal recovery-utils.git SHA1: e30c2a3c9729

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-20 17:34:41 +01:00
Javier Viguera b2abb5bc80 recovery init: search update package in the different partitions
Instead of using a hardcoded path to the SWU update package, just get
the filename and search the file in the different mounted partitions
(giving priority to the internal 'update' partition over other external
media).

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-20 17:34:09 +01:00
Javier Viguera 75f2c00025 recovery init: pass filesystem type to mount command
For block devices we can get the filesystem in the partition using the
'blkid' command.

This cleans up some warnings on mounting:

EXT4-fs (sda2): couldn't mount as ext3 due to feature incompatibilities
EXT4-fs (sda2): couldn't mount as ext2 due to feature incompatibilities
EXT4-fs (mmcblk0p4): couldn't mount as ext3 due to feature incompatibilities
EXT4-fs (mmcblk0p4): couldn't mount as ext2 due to feature incompatibilities

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-20 17:33:37 +01:00
Javier Viguera a7a8916018 recovery init: remove trailing slash from USB_MOUNT_DIR variable
Just the same than UPDATE_MOUNT_DIR, which doesn't have a trailing slash.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-20 17:33:04 +01:00
Javier Viguera b0e241d3a3 recovery init: fix device name
"i" variable in the nested loop is expanded to the absolute path
of the device, so prepending it with the ${device} results in
"/dev/sda/dev/sda1" for a 'sda1' partition.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-20 17:32:33 +01:00
David Escalona 2771549da3 uboot: install_script: add recovery image and wipe_update to DEY install script
https://jira.digi.com/browse/DEL-3513

Signed-off-by: David Escalona <david.escalona@digi.com>
2017-01-20 13:25:36 +01:00
Diaz de Grenu, Jose 368a3b5990 meta-digi-dey: add dey-examples-cloud-connector
These examples can be used to test Device Cloud functionality. There are three
test applications available:

 * device_request_listener: Listen for requests from the Device Cloud
 * upload_data_points: Upload test data points to the Device Cloud
 * upload_file: Uploads the contents of a file as binary data points

https://jira.digi.com/browse/DEL-3305
https://jira.digi.com/browse/DEL-3309
https://jira.digi.com/browse/DEL-3397

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2017-01-18 19:00:28 +01:00
Alex Gonzalez 255030e94c meta-digi-arm: firmware-qualcomm: qcom_cfg.ini: Recover gRoamingTime
Even though this variable is documented as unused, removing it fails
wireless regression tests.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-01-18 18:31:42 +01:00