Commit Graph

1447 Commits

Author SHA1 Message Date
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
Javier Viguera f9096d43e6 cloudconnector: prevent certificate package being renamed
This avoids the certificate package being generated according to Debian
rules (libcloudconnector-cert).

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-18 17:52:42 +01:00
Hector Palacios c52de54ac0 ccimx6ul: synchronize kernel defconfig
This re-enables USB mass storage support that was unintentionally
removed in commit 6851ab23e4.

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

https://jira.digi.com/browse/DUB-713
2017-01-18 10:52:38 +01:00
Javier Viguera 9448e9d994 ccardimx28: add missing leading space for append operator
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-17 18:24:37 +01:00
Javier Viguera 6269b20c9c kernel-module-qualcomm: cosmetic, no functional change
According to openembedded coding style.

Signen-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-17 18:24:05 +01:00
Javier Viguera 29af4bb088 kernel-module-qualcomm: remove virtual/kernel dependence
The dependence on virtual/kernel is added implicitly through the module
class, so there is no need to add it explicitly.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-17 18:23:33 +01:00
Javier Viguera b3e628dbf3 swupdate: fix typo in description file
The attribute supported in the description file is 'type' (in singular),
not 'types'.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-17 18:20:08 +01:00
Javier Viguera a63d5e6c31 meta-digi-dey: add cloud connector recipe
This includes library and example application

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-17 18:16:01 +01:00
Javier Viguera 5ff236584d meta-digi-dey: add confuse library recipe
libConfuse is a configuration file parser library.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-17 18:16:01 +01:00
Hector Palacios 6851ab23e4 ccimx6ul: synchronize kernel defconfig
This updates the kernel configuration to the latest one
which disables unused drivers and options to optimize the
kernel size.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2017-01-17 16:24:13 +01:00
Hector Palacios 5c0627a517 gstreamer1.0-plugins-good: add support for VP8 enc/dec
VP8 is an open royalty-free video compression format by
Google Inc.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2017-01-17 15:40:47 +01:00
Hector Palacios 77d07b8ed7 packagegroup-dey-gstreamer: remove plugins-bad/ugly for CC6UL
The CC6UL has little video capabilities and reduced storage memory so lets
remove gstreamer plugins included in -bad and -ugly to reduce the rootfs
size.

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

https://jira.digi.com/browse/DUB-713
2017-01-16 17:11:19 +01:00
Alejandro Navarro caa932612d mca_tool: update checksums for the new version
Signed-off-by: Alejandro Navarro <alejandro.navarro@digi.com>

https://jira.digi.com/browse/DEL-3499
2017-01-16 16:19:53 +01:00
Alex Gonzalez 905ac5c483 meta-digi-arm: firmware-qualcomm: qcom_cfg.ini: Add debug bitmasks
Document as comments the enabling of the debug modules and levels

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-01-12 11:46:00 +01:00
Alex Gonzalez 6be939c535 meta-digi-arm: firmware-qualcomm: qcom_cfg.ini: Remove unused entries.
The following document,

JQCA61x4, QCA65x4, and QCA937x
Configuration Parameters Specification
80-Y7674-11 Rev. J
September 30, 2016

Contains a list of unused configuration arguments in page 29. This commit
removes those listed arguments that appeared on the default configuration
file to avoid confusion.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-01-12 11:35:08 +01:00
Alex Gonzalez 21209d4f36 meta-digi-arm: kernel-module-qualcomm: Pass BUILD_DEBUG_VERSION to kbuild.
Otherwise the module is built with debug as that is the Makefile's
default.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-01-12 11:30:48 +01:00
Javier Viguera 9c3f8245e1 meta-digi-dey: add new 'recovery-utils' recipe
recovery-utils allows to configure recovery commands and reboot into
recovery mode.

Internal recovery-utils.git SHA1: 5555d4c736e3

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-11 17:51:07 +01:00
Javier Viguera f787a22ef1 u-boot-fw-utils: add patch with minimal U-Boot environment API
Implements functions to get and set variables from U-Boot's environment.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-11 15:00:16 +01:00
Gabriel Valcazar 3e8887da53 meta-digi-dey: pulseaudio: load HDMI sink on hotplug
When hotplugging the HDMI cable after booting the target, pulseaudio doesn't
load the HDMI sink. This commit fixes this by adding a udev rule and a script
that prompts pulseaudio to detect the HDMI sound card and load its sink, as
well as making it the default one.

If alsa-utils is available, a faulty command is run to load the card without
any audio output. Otherwise, module-udev-detect is unloaded and reloaded.

This is based on commit fca507d316.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2017-01-11 09:36:00 +01:00
Alex Gonzalez 910b8761f0 meta-digi-arm: firmware-qualcomm: Update board calibration files.
These have been provided by the embedded hardware team and they are to
be used for certification testing. The calibration corresponds to the
internal antenna on the module. If using the current external antenna on the
CC6UL SBC they work fine, although they could be tweaked to improve.

The BDF files provided were generated from the original ones, by running a
test tree for output power calibration for QCA6564A-3 chip. This test
tree is called
‘FCCSP_Rome3.x_WLAN_CLPC_cal_and_WLAN_BT_Verify_Y8611-H341.xtt’ and it
belongs to the Qualcomm Design Package ‘DP25-WL420-100’.
The test tree is to be run in the QSPR software tool, part of the QDART
software tools set provided by Qualcomm.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-01-05 14:58:31 +01:00
Alex Gonzalez f5dac18ae5 meta-digi-arm: firmware-qualcomm: Match board file and UTF board file.
As discovered during certifications preparation work, calibration changes
applied only on the bdwlan30.bin file do not take effect.

Per QCA guidelines, the bdwlan30.bin and utfbd30.bin files should be the
same for the calibration changes to work.

This commit removes the current utfbd30.bin file, with an md5sum that
matches the original bdwlan30.bin file in QCA's chipcode
qca6564-le-1-0-3_qca_device repository, and creates a symbolic link to the
actual bdwlan30.bin board file used to certify Digi's module internal
antenna.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-01-05 14:58:31 +01:00
Hector Palacios 034aaa6fb1 psplash: fix init script to avoid running the app without fb
This is a clone from the original psplash recipe init script
but with the added fix:

	@@ -25,5 +25,7 @@
	        read rotation < /etc/rotation
	 fi

	-/usr/bin/psplash --angle $rotation &
	+if [ -c "${FBDEV:-/dev/fb0}" ]; then
	+       /usr/bin/psplash --angle $rotation &
	+fi

which avoids running the application when there is no framebuffer
in the system. This prevents the following error message during
boot:

	Error opening /dev/fb0: No such file or directory

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

https://jira.digi.com/browse/DEL-2747
2017-01-03 12:42:10 +01:00
Hector Palacios 951f20d36b pulseaudio: avoid headphone mute when no jack detection
Some platforms, like ccimx6ulsbc, don't support jack detection
out of the box.
PulseAudio will mute the Headphones by default if it believes
there is no headphones jack plugged-in. With this patch we
tell it to preserve ALSA default value for the headphones
controls.

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

https://jira.digi.com/browse/DEL-3435
2017-01-02 17:56:46 +01:00
Hector Palacios dbe23328da alsa-state: ccimx6ul: enable speaker right channel
The speaker right channel was left disabled in the default
configuration.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2017-01-02 17:56:46 +01:00
Diaz de Grenu, Jose dacfe128b6 meta-digi-dey: swupdate: add recipes for update packages
These recipes allow to generate the .swu update packages to be used with
SWUpdate. The packages can be generated using:

bitbake dey-image-qt-swu
bitbake core-image-base-swu

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2017-01-02 15:34:01 +01:00
Hector Palacios 96f6849668 alsa-state: ccimx6ul: add ALSA asound.state config file
The codec MAX98088 present on the ccimx6ulsbc only needs one
configuration file that can play and record.
The default file enables the interfaces present on the ccimx6ulsbc:
	- Headphones
	- Speaker
	- LineOut (in stereo mode)
	- LineIN-A
	- MIC2

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

https://jira.digi.com/browse/DEL-2352
2016-12-30 18:38:05 +01:00
Hector Palacios 8d9033138d alsa-state: ccimx6ul: add basic asound.conf for imxmax98088
Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-2352
2016-12-30 16:58:00 +01:00
Hector Palacios 0b3f878d54 ccimx6ul: synchronize v4.1 kernel defconfig
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2016-12-30 14:05:02 +01:00
David Escalona 4e52bab873 recovery: add psplash support to recovery
- Include psplash package in the recovery initramfs recipe.
- Start psplash in the recovery init.
- Add new methods to communicate with psplash from the init script.
- Show psplash progress information from the init script.
- Start progress binary to update psplash during a firmware update.

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

Signed-off-by: David Escalona <david.escalona@digi.com>
2016-12-30 12:42:09 +01:00
David Escalona eede1126ec psplash: customize psplash screen with Digi scheme
https://jira.digi.com/browse/DEL-3356

Signed-off-by: David Escalona <david.escalona@digi.com>
2016-12-30 12:42:05 +01:00
David Escalona 2a79bc29d0 swupdate: add patch to include command line support to progress client
- This patch comes from the sw-update upstream and adds command line support
  to the progress client binary.

a11e6f2b80

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

Signed-off-by: David Escalona <david.escalona@digi.com>
2016-12-30 12:41:46 +01:00
David Escalona f4ece3821e recovery: init script mount fixes
- Added a 5 seconds delay before mounting external disks so they have
  time to be recognized in the system.
- Check if UBI volume is mounted before formatting it.
- Check if eMMC block device exists before formatting it.

Signed-off-by: David Escalona <david.escalona@digi.com>
2016-12-30 12:22:41 +01:00
David Escalona 047849b848 recovery: add recovery image types for DEY images generation
- Added the new image type 'recovery.vfat' to the DEY images
  generation process. This new image is a clone of the 'boot.vfat'
  but including the recovery ramdisk and the recovery boot script.

- Added the new image type 'recovery.ubifs' to the DEY images
  generation process. This new image is similar to the 'boot.ubifs'
  but including the recovery ramdisk and the recovery boot script.

Signed-off-by: David Escalona <david.escalona@digi.com>
2016-12-27 17:37:53 +01:00
David Escalona c68a9d255a recovery: add recipe to generate the recovery ramdisk image
- This recipe generates the recovery ramdisk image with the contents of the
  recovery ramdisk tree (recovery-initramfs) and other packages.

Signed-off-by: David Escalona <david.escalona@digi.com>
2016-12-27 17:37:53 +01:00