Commit Graph

665 Commits

Author SHA1 Message Date
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
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 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
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
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
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 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 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
Javier Viguera a2aaa26e50 meta-digi-arm: use linux branch 'v3.14/master'
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-06-21 11:50:27 +02:00
Javier Viguera 1e16f6af66 meta-digi: global replace base_contains function
This function is deprecated in favor of bb.utils.contains. The same
change has been done in other layers.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-06-21 11:15:28 +02:00
Javier Viguera e2fb845970 ccimx6ulstarter: remove sdcard image creation
The CC6UL does not support booting from SD card, so it does not make
sense to create a SDCARD image by default.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-06-20 19:18:49 +02:00
Jose Diaz de Grenu de Pedro 62e0e1c6c6 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 explicetily 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: Jose Diaz de Grenu de Pedro <Jose.DiazdeGrenudePedro@digi.com>
2016-06-20 15:04:47 +02:00
Jose Diaz de Grenu de Pedro ba6b5ffd8c meta-digi-arm: u-boot: add secure boot configuration checks
https://jira.digi.com/browse/DEL-2618

Signed-off-by: Jose Diaz de Grenu de Pedro <Jose.DiazdeGrenudePedro@digi.com>
2016-06-20 09:39:04 +02:00
Jose Diaz de Grenu de Pedro 5c6de74288 meta-digi-dey: trustfence: Explicitely check for "1" for variable enable.
https://jira.digi.com/browse/DEL-2603

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
Signed-off-by: Jose Diaz de Grenu de Pedro <Jose.DiazdeGrenudePedro@digi.com>
2016-06-20 09:39:04 +02:00
Isaac Hermida c715e16c45 ccimx6ulstarter.conf: fix incorrect serial port console
Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-06-17 10:05:27 +02:00
Isaac Hermida 68746632f1 linux: update kernel source branch for ccimx6ul
Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-06-13 16:32:18 +02:00
Jose Diaz de Grenu de Pedro 64c488a821 meta-digi-arm: u-boot: fix syntax error in U-Boot recipe
Signed-off-by: Jose Diaz de Grenu de Pedro <Jose.DiazdeGrenudePedro@digi.com>
2016-06-06 10:06:22 +02:00
Jose Diaz de Grenu de Pedro 5f45a87ebd meta-digi-arm: trustfence: implement Yocto secure boot configuration
Implement the set of TRUSTFENCE_ macros to configure each secure boot feature
available in U-Boot.

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

Signed-off-by: Jose Diaz de Grenu de Pedro <Jose.DiazdeGrenudePedro@digi.com>
2016-06-03 17:46:52 +02:00
Isaac Hermida 8361d98e5a linux: update kernel source branch for ccimx6ul
https://jira.digi.com/browse/DEL-2368

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-06-02 11:33:32 +02:00
Alex Gonzalez 12b196bc0f meta-digi-arm: u-boot-dey: Add secure console trustfence configuration
support.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-05-31 17:51:00 +02:00
Alex Gonzalez 5351b71c82 meta-digi-dey: sysvinit: No getty in inittab if console disabled.
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-05-31 17:51:00 +02:00
Isaac Hermida b4c0c0af9a ccimx6ul: Add recipe support for firmware-qualcomm
https://jira.digi.com/browse/DEL-2581

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-05-31 08:20:51 +02:00
Isaac Hermida 78370fce07 recipes-kernel: Update config file for ccimx6ulsbc
https://jira.digi.com/browse/DEL-2370

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-05-31 08:20:51 +02:00
Javier Viguera 2edc86c877 meta-digi-arm: more kernel config options for CAAM
This enables the Cryptographic Accelerator and Assurance Module (CAAM).

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-05-27 19:16:14 +02:00
Javier Viguera 49f55ce7d0 u-boot: u-boot: use v2015.04 master branch
'v2015.04/master' is the branch with Trustfence support.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-05-27 18:25:35 +02:00
Javier Viguera 988ca78f31 meta-digi-arm: add rng-tools for CC6
This daemon (rngd) feeds random data from hardware device to kernel
entropy pool.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-05-27 16:10:36 +02:00
Javier Viguera 951627ea02 cryptodev: install cryptodev-module for CC6
This module is the interface between user-space (openssl, gnutls) and
the hardware cryptographic acceleration support (CAAM).

This commit installs the module in the rootfs and configures it so it is
loaded on boot.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-05-27 16:10:36 +02:00
Javier Viguera 6e71709075 meta-digi-arm: enable NXP's CAAM support
This enables the Cryptographic Accelerator and Assurance Module (CAAM).

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-05-27 16:10:36 +02:00
Isaac Hermida 5d147152f9 alsa-state: Support for ccimx6ul
Adding some early initial support as a copy of ccimx6 files.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-05-13 10:10:14 +02:00
Isaac Hermida 0775ee38e0 recipes-kernel: Support for ccimx6ulsbc
Used ccimx6ul_defconfig from v4.1/master repository.
The defconfig file will live under module folder and not specific platform
folder because it will be the same for other ccimx6ul platforms.

https://jira.digi.com/browse/DEL-2381
https://jira.digi.com/browse/DEL-2529

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-05-13 10:10:13 +02:00
Isaac Hermida 68d5f7d536 recipes-bsp: u-boot: Support for ccimx6ul
https://jira.digi.com/browse/DEL-2381
https://jira.digi.com/browse/DEL-2529

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-05-13 10:10:13 +02:00
Isaac Hermida 313d902a8b Initial support for ccimx6ulstarter platform
Added initial support for Digi's ConnectCore 6UL Starter Board.

https://jira.digi.com/browse/DEL-2380
https://jira.digi.com/browse/DEL-2529

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-05-13 10:10:10 +02:00
Isaac Hermida 0cfe463c26 conf: machine: Creating new files for ccimx6ul and ccimx6ulstarter
Creating new file for ccimx6ul module as a clone of ccimx6.
Creating new file for ccimx6ulstarter platform as a clone of ccimx6sbc.

https://jira.digi.com/browse/DEL-2380
https://jira.digi.com/browse/DEL-2381
https://jira.digi.com/browse/DEL-2529

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-05-11 13:23:28 +02:00
Isaac Hermida 620f94596f meta-digi: Replace COMPATIBLE_MACHINE string for ccimx6
COMPATIBLE_MACHINE is a regular expression, so we need to update the current
pattern for ccimx6 due to it will also match with ccimx6ul.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-05-11 10:22:25 +02:00