Commit Graph

1518 Commits

Author SHA1 Message Date
Isaac Hermida 948149208e recipes-kernel: Update config file for ccimx6ul
Update config file to include power management MCA support.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-07-15 16:16:32 +02:00
Isaac Hermida 8143f6f638 meta-digi-dey: add suspend script support to ccimx6ul
https://jira.digi.com/browse/DEL-2773

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-07-15 14:29:21 +02:00
Diaz de Grenu, Jose 3d6f705a14 Revert "pulseaudio: remove module-udev-detect"
Using module-detect there are some audio reverb problems. Reverting that commit
will make pulseaudio use module-udev-detect again instead, which takes longer
to initialize but does not have that problem.

This reverts commit e021f738ee.

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

Signed-off-by: Jose Diaz de Grenu de Pedro <Jose.DiazdeGrenudePedro@digi.com>
2016-07-15 10:10:30 +02:00
Diaz de Grenu, Jose b67d7e02e9 Revert "meta-digi-dey: pulseaudio: add HDMI audio sink on hotplug"
When module-alsa-sink is used, the audio is sometimes heard with
reverb. We will go back to module-udev-detect, so the functionality
introduced in the commit being reverted won't longer work.

This reverts commit fca507d316.

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

Signed-off-by: Jose Diaz de Grenu de Pedro <Jose.DiazdeGrenudePedro@digi.com>
2016-07-15 10:10:24 +02:00
Diaz de Grenu, Jose fa853e0c2e Revert "pulseaudio: remove module-udev-detect"
Using module-detect there are some audio reverb problems. Reverting that commit
will make pulseaudio use module-udev-detect again instead, which takes longer
to initialize but does not have that problem.

This reverts commit e021f738ee.

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

Signed-off-by: Jose Diaz de Grenu de Pedro <Jose.DiazdeGrenudePedro@digi.com>
2016-07-14 17:48:00 +02:00
Diaz de Grenu, Jose 5bd0835150 Revert "meta-digi-dey: pulseaudio: add HDMI audio sink on hotplug"
When module-alsa-sink is used, the audio is sometimes heard with
reverb. We will go back to module-udev-detect, so the functionality
introduced in the commit being reverted won't longer work.

This reverts commit fca507d316.

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

Signed-off-by: Jose Diaz de Grenu de Pedro <Jose.DiazdeGrenudePedro@digi.com>
2016-07-14 17:16:42 +02:00
Alex Gonzalez 9585e313af meta-digi-arm: u-boot-dey: Do not use external compilation unless multiple
u-boots are being build.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-07-13 14:14:45 +02:00
Alex Gonzalez da92e2f07d meta-digi-arm: u-boot: Do not override defconfig targets on multiple u-boot
builds.

When building multiple u-boots they get compiled externally into a
directory named after machine defconfigs.

Once there is a directory with the same name as a defconfig it is not
possible to run the defconfig make target.

Fixes https://jira.digi.com/browse/DEL-2644

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-07-13 14:14:45 +02:00
Alex Gonzalez c43c9897ad meta-digi-arm: u-boot.inc: Do not override defconfig targets on multiple u-boot
builds.

When building multiple u-boots they get compiled externally into a
directory named after machine defconfigs.

Once there is a directory with the same name as a defconfig it is not
possible to run the defconfig make target.

This change should be only temporary until it gets upstream.

Fixes https://jira.digi.com/browse/DEL-2644

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-07-13 14:14:45 +02:00
Alex Gonzalez e22244edde meta-digi-arm: Add u-boot.inc from poky's meta layer.
Moving this file into meta-digi should be temporary until a patch is
upstreamed.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-07-13 14:14:45 +02:00
Isaac Hermida 6e76f9f7e4 bluez5: include hcitool patches (increase "conn" limit and "refresh" typo)
Add a couple of bluez patches: one for increasing the number of connection
showed with "hcitool con" command and remove "refresh" option in hcitool
help that is not supported.
The qca6564 chip can support more than 10 simultaneous BLE connections.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-07-12 13:01:28 +02:00
Isaac Hermida c90aaaaadd ccimx6ulstarter: update conf-notes.txt for core-image-base support
Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-07-11 12:22:19 +02:00
Javier Viguera 7b9cabe389 packagegroup-dey-qt: restrict qtwebengine to ccimx6sbc
qtwebengine does not support armv5 platforms (for example ccardimx28js),
so we need to restrict that package to the ccimx6sbc

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-07-08 14:55:04 +02:00
Javier Viguera 6f8c58291e meta-digi: add support for Trustfence secure rootfs
When Trustfence is enabled, this adds a dependence on the TF initramfs,
so it's built and added to the boot image.

It also modifies the u-boot boot script on the fly, to boot correctly
using the Trustfence initramfs.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-07-07 18:04:08 +02:00
Javier Viguera 7a38d609f2 meta-digi-dey: new Trustfence initramfs image recipe
This recipe builds the initramfs image that is used to boot from an
encrypted rootfs.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-07-07 17:59:55 +02:00
Javier Viguera 4dd7d438af meta-digi-dey: new Trustfence initramfs package
This package adds some files needed by the trustfence initramfs and that
are not included in other packages.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-07-07 17:59:25 +02:00
Javier Viguera 778aade696 meta-digi-dey: new recipe for trustfence-tool binary package
https://jira.digi.com/browse/DEL-2278

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-07-07 17:58:55 +02:00
Javier Viguera f80c531fb8 lvm2: split libraries to a different package
lvm2 package provides some user-space tools, but also some dynamic
libraries: libdevmapper, libdevmapper-event, etc.

This commit allows to package the LVM2 libraries in a different package
than the LVM2 user-space tools. This way other user-space tools (e.g.
cryptsetup) that runtime depends on the LVM2 libs can only add that libs
package to the rootfs, instead of the whole LVM2 utilities.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-07-07 17:58:25 +02:00
Javier Viguera 6ec562b601 linux: enable rootfs encryption options in kernel config
https://jira.digi.com/browse/DEL-2278

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-07-07 17:57:55 +02:00
Javier Viguera 0f09bbad7a kernel-module-imx-gpu-viv: refresh patches after module upgrade
The external module revision has been upgraded in meta-fsl-arm, thus
refresh the patches so they apply cleanly.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-07-07 11:03:32 +02:00
Hector Palacios a2554a08cc ccimx6ul: add support to build boot.ubifs image
The size of the destination partition (linux) is around 14MiB so the
max-leb-cnt must be reduced compared to the one used for the rootfs
partition.

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

https://jira.digi.com/browse/DEL-2697
2016-07-06 18:05:30 +02:00
Hector Palacios 846e1cd07f image-types_digi.bbclass: implement boot.ubifs image type
This creates a UBIFS file with the kernel, device tree files, and U-Boot
bootscripts generated by Digi Embedded Yocto.
The resulting image can be then programmed into the boot (linux) partition.

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

https://jira.digi.com/browse/DEL-2697
2016-07-06 18:05:30 +02:00
Hector Palacios ff59bf653d ccimx6ulstarter: add U-Boot scripts for deploying and booting the system
- boot.txt
	Sets the device tree filename basing on the SOM variant read from
	the HWID and boots from NAND.
- install_linux_fw_sd
	Deploys a full system (as generated by Digi Embedded Yocto) from
	a FAT formatted micro SD card into the NAND flash.

The u-boot-dey recipe is now fully shared by ccimx6 and ccimx6ul platforms
so we can remove the platform-specific appends.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2016-07-06 16:26:49 +02:00
Hector Palacios 6f2acb17c6 install_linux_fw_sd: parametrize the mmc device index containing the firmware
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2016-07-06 16:26:49 +02:00
Hector Palacios a32cea139b install_linux_fw_sd: expand variables when setting bootcmd to avoid redefining them
The setting of 'bootcmd' in the script was done using single quotes, which
doesn't expand variables. As a consequence the following variables must
be defined again (during the execution of the second part of the script):
 - mmcdev
 - INSTALL_LINUX_FILENAME
 - INSTALL_ROOTFS_FILENAME

This patch changes the single quotes with double quotes, so that these
variables are expanded during the setting of 'bootcmd' with the values
assigned at the begining of the installation script (notice these are
not dynamically generated so there is no risk to expand them).

At the same time we need to escape with a backslash:
 - double quotes containing strings
 - variables that we don't want to expand (like the return value $?)

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2016-07-06 16:26:49 +02:00
Hector Palacios 052775a34c install_linux_fw_sd: fix semi-colons in script
- Add semi-colons to instructions inside 'setenv' commands
- Remove semi-colons in instructions where they are not needed (for
  consistency with the rest of instructions)

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2016-07-06 16:26:49 +02:00
Isaac Hermida cf7c6b0af8 kernel-module-qualcomm: compile the driver without debug messages
By default the driver was being compiled with debug messages. Disabled it
but leave the option there so it can be enabled by user.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-07-06 08:43:13 +02:00
Isaac Hermida 9ec5895eb0 pulseaudio: only install hdmi_hotplug.sh for ccimx6 platforms
The ccimx6ul or ccardimx28 do not have hdmi interface, so do not install the
hdmi hotplug script.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-07-05 15:52:38 +02:00
Isaac Hermida 04c3220bd9 hostapd-2.4: add support to compile hostapd for ccimx6ul
https://jira.digi.com/browse/DEL-2654

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-07-05 15:52:38 +02:00
Diaz de Grenu, Jose d223bc68c2 meta-digi-dey: trustfence: fix TRUSTFENCE_UBOOT_DEK_SIZE setting
The TRUSTFENCE_UBOOT_DEK_SIZE Yocto macro maps to the UBOOT_DEK_SIZE U-Boot
Kconfig entry, which is defined as a choice entry. This makes necessary
to explicitly define the choice Kconfig entry for the configuration to
work.

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-07-01 16:26:53 +02:00
Diaz de Grenu, Jose d7a26cc3e6 meta-digi-arm: u-boot: change name of encrypted artifacts for clarity
https://jira.digi.com/browse/DEL-2663

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-07-01 16:26:53 +02:00
Diaz de Grenu, Jose a91cc4e796 meta-digi-arm: u-boot: fix trustfence checks logic
There are several possible values for TRUSTFENCE_UBOOT_ENV_DEK:

* Not defined: if the trustfence support is not included.
               Should not include the feature.
* 32 characters: when defining a valid key.
                 Should include the feature.
* "0": when explicitly disabling the feature.
       Should not include the feature
* <other>: Invalid value, should trigger the error.

This commits fixes the logic so that 'None' (no defined) is taken as a valid
value.

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-07-01 16:26:53 +02:00
Isaac Hermida 8bc38a2cbc core-image-base: add dey-image tweaks
Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-07-01 11:49:37 +02:00
Mike Engel e5dca69e96 ccimx6ul: Add cryptodev module to kernel configuration.
This commit will add the cryptodev module to the CC6UL kernel to use
the CAAM from user space through this device.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>

https://jira.digi.com/browse/DEL-2719
2016-07-01 09:08:40 +02:00
Alex Gonzalez 7dda6380c2 meta-digi-dey: sysinfo: Use DISTRO and machine name.
The following utilities are supposed to be available on the environment's
PATH:

uptime, uname, cat, zcat, free, ps, mount, netstat, route, ifconfig, gzip

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-06-30 10:12:48 +02:00
Isaac Hermida 36e3a2c6c3 bluez5-init; redirect bluetooth daemon messages to a log file
https://jira.digi.com/browse/DEL-2632

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-06-30 10:06:03 +02:00
Mike Engel f88ea99ed3 ccimx6ul: Removed CONSOLE_ENABLE_GPIO_NR platform specific naming.
This commit changes the CONFIG_CCIMX6SBC_CONSOLE_ENABLE_GPIO_NR define
into a platform independent setting.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>

https://jira.digi.com/browse/DEL-2641
2016-06-29 17:23:21 +02:00
Isaac Hermida bc98b6f362 ccimx6ul: defconfig: do not use static DDBB for regulatory domain
Do not compile the kernel for supporting the static regulatory domain
but force the system to do that by using crda.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-06-29 08:43:17 +02:00
Isaac Hermida 7a95663c5e kernel-module-qualcomm: do not create an auxiliar p2p interface on init
https://jira.digi.com/browse/DEL-2656

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-06-28 11:06:18 +02:00
Isaac Hermida 7ecd73da73 kernel-module-qualcomm: [cosmetic] rework patches to do not include numbering
Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-06-27 13:21:52 +02:00
Isaac Hermida 9db7e6eb33 ccimx6ulstarter.conf: update U-Boot defconfig file
Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-06-27 11:06:31 +02:00
Isaac Hermida 021bc9d29d kernel-module-qualcomm: qualcomm-pre-up: compatibility improvement for modprobe
The root filesystem can have installed the busybox modprobe implementation or
the kmod modprobe implementation.
Check the version installed and compound the modprobe arguments.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-06-27 11:06:31 +02:00
Isaac Hermida 113e9a0e0b recipes-core: expand core-image-base recipe
Expand the core-image-base recipe by including some default packages to the
image.

https://jira.digi.com/browse/DEL-2695
https://jira.digi.com/browse/DEL-2693

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-06-27 11:06:31 +02:00
Isaac Hermida 9cd2009300 ccimx6ul.inc: add imx-kobs as a required package
This tool is required to update the U-Boot NAND in linux.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-06-27 11:06:30 +02:00
Isaac Hermida 552f9a4567 meta-digi: dey-wireless: add iw to the list of wireless packages
Add iw to the list of packages to be installed regardless the platform.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-06-24 16:06:49 +02:00
Isaac Hermida 32ae76e1cf bluez5-init: rename the CTS gpio name and make the code more robust
Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-06-23 15:49:16 +02:00
Isaac Hermida a6d0a1d139 bluez5-init: reset bluetooth qualcomm chip before initialization
The power regulator connected to the qca6554 chip is always on, which causes
the Bluetooth part to not work correctly after a software-reset.
This commit asserts momentarily the BT_EN line during the start-up sequence
to reset the Bluetooth controller so that it is in a predictable state after a
reset.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-06-23 15:48:43 +02:00
Isaac Hermida 0793dbf75b ccimx6ul.inc: add kernel-module-qualcomm as machine feature if wifi is set
https://jira.digi.com/browse/DEL-2653

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-06-22 14:49:17 +02:00
Isaac Hermida bf32fec01e kernel-module-qualcomm: initial support to compile qca6564 module externally
Add recipe kernel-module-qualcomm to compile kernel module externally with all
the patches for kernel 4.1.15.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-06-22 14:49:17 +02:00
Isaac Hermida 6809d1f568 ccimx6ul: defconfig: compile 80211 modules as built in
We compile those modules as built in to avoid a mismatch
between the current kernel version and the wlan.ko module.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-06-21 18:36:17 +02:00