Commit Graph

411 Commits

Author SHA1 Message Date
Isaac Hermida 412f1b1e55 meta-digi: rename external ethernet references to second ethernet
The name "ext-eth" seems to indicate "External Ethernet". Rename that variable
and related ones to a more proper name like second ethernet.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-09-15 12:31:49 +02:00
Isaac Hermida 8e69db8ac5 recipes-connectivity: crda: update wireless regulatory DDBB to 2016-06-10
https://jira.digi.com/browse/DEL-3010

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-09-09 15:33:06 +02:00
Javier Viguera 7b170b58ac meta-digi-dey: add static libraries for core-image-base based SDK
https://jira.digi.com/browse/DEL-2881

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-09-01 17:37:10 +02:00
Isaac Hermida 2cad47099d recipes-connectivity: hostapd-2.4: add defconfig with custom setup
Copy of the original defconfig in hostapd-2.4 and enabling next options:
    - CONFIG_LIBNL32
    - CONFIG_EAP_PSK
    - CONFIG_EAP_PWD
    - CONFIG_WPS
    - CONFIG_WPS_NFC
    - CONFIG_RADIUS_SERVER
    - CONFIG_IEEE80211N
    - CONFIG_IEEE80211AC
    - CONFIG_DEBUG_FILE

This means that the hostapd binary will have support for that features, but it
does not imply that the wireless chip does support it.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-09-01 14:27:22 +02:00
Isaac Hermida c164c462f1 recipes-connectivity: hostapd-2.4: removing machine dependency
The current applied patch is a backport of hostapd-2.5 so it is not any
machine dependency.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-09-01 09:27:32 +02:00
Javier Viguera ab5f50e16a meta-digi: trailing whitespace cleanup
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-08-31 13:52:15 +02:00
Javier Viguera a63030f4fd meta-digi-dey: bump distro version to 2.0-r4
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-08-29 19:26:42 +02:00
Diaz de Grenu, Jose c59a5e6214 Revert "meta-digi-arm: Exclude u-boot-fw-utils if U-Boot environment encryption is"
This reverts commit b8f50680e5.

The support to read and write to an encrypted environment has been added, so
there is no need to exclude the u-boot-fw-utils anymore.

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-08-26 10:13:17 +02:00
Isaac Hermida 51415b9e12 meta-digi: dey-wireless: add hostapd to the list of packages for ccimx6ul
https://jira.digi.com/browse/DEL-2913

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-08-25 18:42:56 +02:00
Isaac Hermida d3f1b0b18a meta-digi-dey: init-ifupdown: add commented code for softAP example
Add commented lines as example to configure and run the wlan0 interface in AP
mode using hostapd daemon.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-08-25 18:42:56 +02:00
Isaac Hermida 5444d3e8f8 recipes-connectivity: add hostapd functionality
Do not autostart hostapd daemon on boot because because it will conflict with
wpa-supplicant process and add a custom hostapd.conf file with WPA2-AES
encryption.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-08-25 18:42:56 +02:00
Javier Viguera 2e13e194d9 trustfence: disable SDCARD image generation when encryption is enabled
Currently we don't support booting encrypted images from an SDCARD, so
just disable the generation of such images.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-08-10 16:45:38 +02:00
Alex Gonzalez b8f50680e5 meta-digi-arm: Exclude u-boot-fw-utils if U-Boot environment encryption is
enabled

There is currently no support on fw_printenv/fw_setenv to access an
encrypted environment.

This commit removes the package if U-Boot environment encryption is
enabled to avoid environment corruption on access.

It also documents the issue as a known issue.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-08-10 10:59:30 +02:00
Javier Viguera 7727b4402e init-ifupdown: use [[:blank:]] posix expression instead of '\s' shorthand
According to 'grep' manual '\s' is a synonym for [[:space:]] which
matches spaces, TABs, but also newlines, etc. We want to only match
spaces and TABs, so use [[:blank:]] instead.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-08-09 19:32:00 +02:00
Stephan Klatt b31c09e59f init-ifupdown: misc cellular fixes
* set cellular user and password
* stricter replace to not match set values
* only set cellular interface to auto

Internal merge of Github's PR:

https://github.com/digi-embedded/meta-digi/pull/2

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-08-09 19:06:23 +02:00
Diaz de Grenu, Jose 6746254558 meta-digi-dey: trustfence: add Yocto macro to unlock key revocation
By default, on closed devices you cannot revoke any key. To do so, it is
required to compile a U-Boot which instructs the HAB not to set the sticky
bit which write protects that field in the OCOTP controller.

This patch introduces a Yocto macro which allows to configure U-Boot in
that way.

In the ConnectCore 6, the value of this settings is ignored, because HAB never
sets the sticky bit which write protects that field.

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-08-09 20:01:59 +02:00
Diaz de Grenu, Jose a9b8d74041 Revert "meta-digi-dey: trustfence: disable encryption for the ConnectCore 6UL"
Encryption is now supported in the ConnectCore 6UL

This reverts commit 454fff56ba.

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-08-08 13:15:22 +02:00
Alex Gonzalez 35271a8dc9 Merge branch 'dey-2.0/master' into dey-2.0/maint
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-08-04 19:13:00 +02:00
Diaz de Grenu, Jose 454fff56ba meta-digi-dey: trustfence: disable encryption for the ConnectCore 6UL
Encryption of U-Boot and kernel images is not yet supported in the Connect
Core 6 UL.

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-08-04 10:34:46 +02:00
Alex Gonzalez 0588b4b388 meta-digi-dey: trustfence: Do not disable console access by default.
While performing usability testing on the TrustFence documentation, it has
been noted that in order to follow the secure boot instructions the
console needs to be enabled.

We have now moved the secure console section to the end of the
documentation so that disabling the console is the last configuration to
make in a secure system.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-08-03 15:55:18 +02:00
Alex Gonzalez dcd13093d2 meta-digi-dey: dey-trustfence: Force to repackage on console state change.
https://jira.digi.com/browse/DEL-2852

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-08-03 15:38:04 +02:00
Diaz de Grenu, Jose 9e5ee61851 meta-digi: use CAAM for environment encryption
https://jira.digi.com/browse/DUB-652

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-08-01 20:00:11 +02:00
Javier Viguera 6203b101b6 trustfence-tool: update checksums
Version: 1.0-gd725a21

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-07-29 10:35:27 +02:00
Isaac Hermida 5e35a9ca00 recipes-core: suspend: down the bluetooth interface before entering suspend
Down the bluetooth interface before entering suspend and up it after resuming
if it is present and up.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-07-28 13:06:25 +02:00
Javier Viguera ba0834ed88 trustfence-tool: update checksums
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-07-26 16:47:32 +02:00
Isaac Hermida 8884970e5a meta-digi-dey: busybox: adapt acpid.map file for CC6UL
https://jira.digi.com/browse/DEL-2838

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-07-26 16:26:27 +02:00
Isaac Hermida ddd5d379a3 recipes-core: busybox: start syslog at a very early state
Start syslog earlier (from 20 to 02) so it is running and other init scripts
can use it to log into the system like the S03networking script.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-07-26 16:21:27 +02:00
Javier Viguera a8bec40bea meta-digi-dey: trustfence: implement encrypted rootfs installation
https://jira.digi.com/browse/DEL-2700

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-07-26 14:19:26 +02:00
Javier Viguera b37cbc26c3 base-files: fix resize-ext4fs script to work with DM devices
This is needed so the encrypted rootfs is properly resized to the
partition size.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-07-26 12:29:54 +02:00
Javier Viguera 416fb59bcf meta-digi-dey: bump distro version to 2.0-r3
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-07-22 10:53:46 +02:00
Javier Viguera a8c50c16ea trustfence-initramfs-init: remove cryptsetup from init script
New functionality has been implemented in trustfence-tool application,
so there is no need to call cryptsetup command.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-07-22 09:50:47 +02:00
Javier Viguera 4ca3aa176a trustfence-initramfs-init: clean mount rootfs warnings
Get filesystem type of rootfs block device and pass it explicitly to the
mount command to clean following warnings on boot:

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-07-22 09:50:47 +02:00
Isaac Hermida b81ce399f6 wpa-supplicant: add CC6UL specific configuration file
We need a different configuration file, because the SoftAP functionality is
supported using the hostapd package instead of the wpa_supplicant.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-07-21 18:23:47 +02:00
Diaz de Grenu, Jose f23d8c6abb trustfence: simplify TRUSTFENCE_ configuration macros
Adapt the U-Boot recipe to the last U-Boot Kconfig entries changes.

Simplify the name of some TRUSTFENCE_ configuration macros. These were
used to configure U-Boot, but they will also configure the uImage signature
and encryption processes.

https://jira.digi.com/browse/DUB-602
https://jira.digi.com/browse/DUB-618
https://jira.digi.com/browse/DUB-534

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-07-19 15:48:12 +02:00
Isaac Hermida dc5d85cb3b meta-digi-dey: sysinfo: add support for CC6UL
https://jira.digi.com/browse/DEL-2729

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-07-18 16:31:12 +02:00
Isaac Hermida 529102b2dc meta-digi-dey: sysinfo: extend report information with more details
Extend the report with more details about:
 - memory usage
 - all network ports (-a) with their related PIDs (-p)
 - network link details (to determine if interface is up)

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-07-18 16:31:12 +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 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
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
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
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 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