Commit Graph

252 Commits

Author SHA1 Message Date
Hector Palacios da13b50f42 ccimx8_sbc_express: add device tree -id129
This is the same than the default -wb variant.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2018-09-14 12:31:38 +02:00
Gabriel Valcazar ec7eded4cb ccimx8x: override SDIMG_BOOTLOADER instead of UBOOT_SYMLINK
Since we were modifying UBOOT_SYMLINK for the ccimx8x, we were generating
u-boot symlinks with imx-boot names. This also caused the imx-boot recipe to
fail during compilation, because it couldn't find the old UBOOT_SYMLINK that
we replaced.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2018-09-05 16:12:03 +02:00
Gabriel Valcazar ea48787676 ccimx8x: set bootloader variables for sdcard image creation
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2018-09-04 18:29:02 +02:00
Gabriel Valcazar 20f9486f9a imx-digi-base: sync our machine overrides with NXP's
Some overrides that were missing (imxgpu, imxdpublit) are needed for certain
packages to build.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2018-08-17 17:56:14 +02:00
Gabriel Valcazar 5fda306e36 ccimx8x: add xwayland support
Also add gtk3+ and clutter demos that depend on wayland since they are also
included in NXP's images.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2018-08-14 13:11:25 +02:00
Gabriel Valcazar 96ff70acbd mx8qxp: remove 'imxvpuamphion' from MACHINEOVERRIDES_EXTENDER
This syncs our MACHINEOVERRIDES with NXP's.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2018-08-14 13:11:25 +02:00
Arturo Buzarra 1abcef9130 ccimx8x.inc: add mca-tools package by default
This package includes applications to:
- Update the MCA firmware
- Manage different MCA settings
- Configure the tamper settings

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2018-08-01 16:06:03 +02:00
Gabriel Valcazar 77e656cf21 imx-boot: add support for the imx-boot package
This package is the combination of U-Boot and the other i.MX firmware binaries.
In our case, these binaries are: the SCFW, the ATF and the DCD.

The recipe has been ported from the meta-fsl-bsp-release repo, with a couple of
important changes:

    * Support for our platform (based on the mx8qxpa0, which uses A0-specific
      parameters for mkimage and appends the DCD explicitly)
    * Support for multiple UBOOT_CONFIG values (NXP only uses one UBOOT_CONFIG
      string per platform; so the compile, install and deploy functions had to
      be tweaked to build both 1GB and 2GB variants for our platform).

Our DCD patch used in imx-mkimage is also used, since both packages share the
same repo and imx-boot is the one responsible for generating the final,
bootable image.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2018-08-01 11:26:35 +02:00
Hector Palacios fb765741a5 ccimx8x: change kernel to Image.gz and support all SOM variants in DT
U-Boot's 'dboot' command now supports uncompressing Image.gz.
This will be the default kernel image type for the CC8X.

This also changes the names of the device tree artifacts, that must be
updated on the boot script. While on it, add support for all the SOM
variants (wireless and non-wireless).

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2018-07-06 16:20:47 +02:00
Gabriel Valcazar d9b333db05 cryptochip: add cryptochip MACHINE_FEATURE in several recipes
This simplifies some dependencies and makes them more explicit.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2018-07-02 10:55:11 +02:00
Gonzalo Ruiz e6cf2811c7 u-boot: add support for CC8X variants on v2017.03
CC8X variants include either 1GB or 2GB DDR. This requires
different defconfig files for each possible DDR size and so,
different U-boot binary files.

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

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2018-06-22 15:32:03 +02:00
Hector Palacios 07759dc458 ccimx8x: remove imx-alsa-plugins, not supported/needed
On NXP BSP for the iMX8 this is specifically removed.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2018-06-19 10:56:05 +02:00
Hector Palacios 4768643b6e xf86-video-imx-vivante: update recipe to 6.2.4.p1.2
This includes the recipe renaming.

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

https://jira.digi.com/browse/DEL-6029
2018-06-15 11:21:29 +02:00
Hector Palacios 9650efe7e0 firmware-qualcomm: add support for QCA6574 in ConnectCore 8X
The firmware-qualcomm recipe now provides the Bluetooh and WiFi firmware
for QCA6564 (CC6UL, CC6PLUS) and QCA6574 (CC8X).

The Bluetooth firmware is the same for both chip models.

Regarding the Wifi firmware:
- If using the QCA6564, the proprietary firmware is used.
- If using the QCA6574, the recipe allows to select between the proprietary
  or the community driver (via QUALCOMM_WIFI_DRIVER), and will install the
  associated firmware. For the community driver, the firmware files have
  been copied from linux-firmware repo at SHA1 7518922bd5b9, except for
  the file 'board.bin' which needs to be substituted with the proprietary
  one by Qualcomm. Default, is to use the community driver.

The do_install() has been improved for re-using the variables with the list
of files.

The package has been renamed basing on the QCA_MODEL variable which can
be set per platform.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2018-06-12 18:22:09 +02:00
Hector Palacios 5ff8b186ce linux-dey: add support for ConnectCore 8X SBC Express
- This is an AARCH64 platform that requires to build "Image", so let's
  change KERNEL_IMAGETYPE to a weak assignment in imx-digi-base.inc
- The device tree is inside a vendor folder.
- For the moment, this platform builds from a different branch.

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

https://jira.digi.com/browse/DEL-5936
2018-06-01 17:05:00 +02:00
Hector Palacios 55af779bf6 linux-dey: use custom kernel defconfig or else the one in the Linux tree
With this patch a user can provide his own kernel 'defconfig' file by:

 - setting the variable KERNEL_DEFCONFIG to a custom kernel configuration
   file inside the kernel repository.

 - setting the variable KERNEL_DEFCONFIG to a kernel configuration file
   using the full path to the file.

 - clearing the variable KERNEL_DEFCONFIG and providing a kernel
   configuration file in the layer (in this case the file must be named
   'defconfig').

Otherwise the default platform's kernel configuration file will be taken
directly from the Linux source code tree.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2018-06-01 17:04:52 +02:00
Hector Palacios 624ace0055 conf: install 'imx-alsa-plugins' depending on alsa distro and machine features
Reference: e3374a33c19686f0e233a7fbccd4d5caa5085936
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2018-05-31 12:06:59 +02:00
Hector Palacios 8af8817796 u-boot: add support for U-Boot v2017.03
This adds support for U-Boot v2017.03 for all platforms (including CC8X).

For legacy v2015.04:
  - Renames u-boot.inc as a versioned file only for v2015.04.
  - Moves boot/install scripts from versioned folder into non-versioned
    folder (since the scripts remain the same between versions).

For new v2017.03:
  - Re-uses poky's u-boot.inc in rocko for v2017.03
  - DEY recipe re-writes the do_compile for special U-Boot configuration
    required for TrustFence.
  - DEY recipe appends the do_deploy, for U-Boot scripts and deploy of
    special TrustFence artifacts.
  - Adds u-boot-dtb.xxx to UBOOT_CONFIG, required for new U-Boots.
  - Adds CC8X scripts.

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

https://jira.digi.com/browse/DEL-5936
2018-05-31 12:06:37 +02:00
Hector Palacios d981f999f0 meta-digi-arm: add support for ccimx8x SBC Express platform
Add initial support for Digi ConnectCore 8X SBC Express.
- ccimx6qp was used as reference machine from meta-digi.
- imx8qxpmek was used as a reference machine from meta-fsl-bsp-release.

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

https://jira.digi.com/browse/DEL-5936
2018-05-28 18:37:56 +02:00
Gabriel Valcazar d08f067e12 recipes-digi: add cryptoauth-openssl-engine
https://jira.digi.com/browse/DEL-5592

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2018-05-09 09:16:00 +02:00
Javier Viguera 518ccf11ac imx: install 'imx-alsa-plugins' depending on alsa distro feature
This is how it's done for the NXP reference boards in 'meta-freescale'

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2018-02-12 11:01:45 +01:00
Hector Palacios 02504c6730 ccimx6: default kernel image to zImage
As a side effect, remove U-Boot entry point variable and LOADADDR
extra parameter from the kernel recipe.

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

https://jira.digi.com/browse/DEL-5554
2018-01-18 18:50:18 +01:00
Jose Diaz de Grenu 7416361505 rocko migration: remove rng-tools
This tool was only needed for old kernels, newer kernels use the hardware
random number generator themselves.

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

Signed-off-by: Jose Diaz de Grenu <Jose.DiazdeGrenu@digi.com>
2018-01-12 15:59:12 +01:00
Jose Diaz de Grenu 75d235d0bf rocko migration: linux: update ConnectCore6 to v4.9
Also update vivante driver and graphic components.

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

Signed-off-by: Jose Diaz de Grenu <Jose.DiazdeGrenu@digi.com>
2018-01-12 15:59:11 +01:00
Hector Palacios f94533e137 ccimx6ulsbc: add support for SBC Pro board ID=136
Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DUB-769
2017-11-22 13:37:40 +01:00
Hector Palacios 5d18ee6731 ccimx6/ccimx6ul: default kernel image to zImage, except for CC6
U-Boot has been able to boot kernel zImage for a long time so make this
the default kernel image.
For the CC6 we still want to use uImage for compatibility reasons.

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

https://jira.digi.com/browse/DEL-5237
2017-11-21 10:14:39 +01:00
Arturo Buzarra 2d0da1cc55 imx-gpu-g2d: move imx-gpu-g2d out of imx-gpu-viv v6
This commit re-adds the imx-gpu-g2d recipe that was removed
from the imx-gpu-viv v6 driver.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2017-11-03 15:08:09 +01:00
Arturo Buzarra 1fec236192 xf86-video-imxfb-vivante: Upgrade to 6.2.2.p0
https://jira.digi.com/browse/DEL-5234

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2017-11-03 15:08:09 +01:00
Arturo Buzarra e6f9137f7c imx-gpu-viv: Upgrade GPU driver to 6.2.2.p0
This commit adds the recipe to update the GPU driver
to the latest version.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2017-11-03 15:08:08 +01:00
Hector Palacios 295bad2bbf ccimx6qpsbc: added device tree for CC6PLUS non-wireless variant
Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-5229
2017-10-25 19:28:28 +02:00
Hector Palacios 37e4a2f9c3 ccimx6qpsbc: added device tree for board ID=160
ARM: dts: added CC6PLUS id160 device tree

ID160 corresponds to ConnectCore 6 QuadPlus SBC with:
 - i.MX6QP, 1 GHz
 - 4 GB eMMC
 - 2 GB DDR3
 - Microcontroller Assist (MKL14Z32VFT4)
 - 802.11a/b/g/n/ac
 - Bluetooth 4.2
 - Gigabit Ethernet
 - CryptoAuth

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2017-10-25 10:53:39 +02:00
Arturo Buzarra 3a5a92f542 kernel-module-imx-gpu-viv: update to recipe v6.2.2.p0
This commit adds the recipe to update the Vivante GPU
driver to the latest version and refresh patches.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2017-10-19 14:07:57 +02:00
Arturo Buzarra 8e6ce42528 meta-digi-arm: add support for ccimx6qpsbc platform
Add initial support for Digi's ConnectCore 6 QuadPlus SBC.
The ccimx6qp platform has the QCA6564 chip instead of the
other Atheros chips and included the Atmel ECC508A cryptographic
chip.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2017-10-18 09:20:11 +02:00
Jose Diaz de Grenu 608b001036 imx6ul: ubifs: increase max leb count for linux
The current value only allows partitions of up to 8 MiB, which is not
enough for the 0x04 variant (which uses a linux partition of 24 MiB by
default).

This new value allows for up to 32 MiB (assuming 128 KiB erase block size).

Also add comments explaining the -c value and maximum partition sizes
supported.

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

Signed-off-by: Jose Diaz de Grenu <Jose.DiazdeGrenu@digi.com>
2017-08-29 18:11:50 +02:00
Javier Viguera 06d353c410 meta-digi-arm: clean not used variables and machine features
After the 'ccardimx28js' platform removal, these variables and machine
features are not used anymore, so remove them.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-08-04 17:38:30 +02:00
Javier Viguera 6b78236f42 ccardimx28js removal: delete machine and configuration files
https://jira.digi.com/browse/DEL-4771

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-08-04 17:38:30 +02:00
Diaz de Grenu, Jose d7cd1c0204 ccimx6ul: ubifs: increase max leb count for rootfs
This is required to be able to use the whole RootFS partition which is
512 MiB in the 0x04 CC6UL SOM variant.

The old value only allowed to manage partitions of up to 256 MiB, this new
value allows for up to 1 GiB (assuming 128 KiB erase block size).

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

Signed-off-by: Jose Diaz de Grenu <Jose.DiazdeGrenu@digi.com>
2017-07-12 17:37:00 +02:00
Hector Palacios 5126a6049b u-boot-fw-utils: dynamically create fw_env.config for NAND-based platforms
A mechanism was introduced in U-Boot to dynamically locate the environment
copies within a NAND partition, skipping bad blocks and making full use of
the partition blocks.
To trigger this mechanism in Linux tools (fw_printenv/fw_setenv) the
configuration file /etc/fw_env.config must have both copies entries
pointing to the same offset.

This commit substitutes the hardcoded configuration file for CC6UL with a
stub and generates one on an RPM post-script basing on:

- Supplied DEY variables (with default values per platform):
  - UBOOT_ENV_OFFSET: starting offset of the environment within the
    partition.
  - UBOOT_ENV_SIZE: size of each copy of the environment.
  - UBOOT_ENV_RANGE: size in the partition that the environment copies may
    occupy, starting from UBOOT_ENV_OFFSET. If undefined, the whole
    partition is used.

- Calculated values:
  - NAND Erase block size
  - Number of blocks available for the environment copies

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

https://jira.digi.com/browse/DEL-4256
2017-06-16 11:59:30 +02:00
Hector Palacios 3d4f6dffd0 digi-defaults.inc: add kernel v4.1 for CC6 in comment
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2017-06-16 11:59:30 +02:00
Diaz de Grenu, Jose ff93cd2b28 recipes-digi: add cryptoauthlib
This library adds support to use the Atmel CryptoAuth device available
in the ConnectCore 6UL.

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2017-06-05 13:10:02 +02:00
Hector Palacios 80e5756770 ccimx6ulstarter/sbc: add support for CC6UL 1GB DDR3 variants
Add support to build U-Boot for variants with 1GB DDR3.
Add support in U-Boot install firmware script to select the
U-Boot artifact to use basing on variant.

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

https://jira.digi.com/browse/DEL-3970
2017-04-06 10:32:39 +02:00
Diaz de Grenu, Jose 4850d0ffa9 conf: machine: use weak assignment for SERIAL_CONSOLES
This allows to override the console using the local.conf.

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2017-03-22 11:36:46 +01:00
Tatiana Leon 3aeb49cce1 meta-digi-arm: use DHCP IPs by default
The main purpose is to improve our kits usability. This way users do not need
to follow the steps in the documentation to change from static to DHCP IPs.

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

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-03-20 14:47:21 +01:00
Mike Engel 19563821d2 ccim6ul_sbc: Add wireless concurrent as default setup
This commit adds the wireless concurrent mode as a default
configuration to the CC6UL machine.

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

https://jira.digi.com/browse/DEL-3818
2017-03-07 17:20:12 +01:00
Javier Viguera f778c69b98 morty migration: sync machine config files with meta-freescale
https://jira.digi.com/browse/DEL-3451

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-02-28 11:46:56 +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
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
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
Hector Palacios 7f092fe4cd imx-digi-base.inc: build gstreamer plugins for i.MX6UL
The i.MX6UL supports some basic multimedia functionality
using the pixel pipeline (PXP).

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

https://jira.digi.com/browse/DEL-2358
2016-12-26 10:54:37 +01:00