Commit Graph

193 Commits

Author SHA1 Message Date
Hector Palacios d9c4a586f2 ccimx6ulstarter: add device tree file for -id129 board
This device tree file corresponds to StarterBoard with ID=129
which corresponds to smart part number CC-WMX6UL-START.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2016-07-20 16:33:04 +02:00
Hector Palacios b71f2dacb5 u-boot-fw-utils: add support and config file for CC6UL platform
U-Boot environment on the CC6UL NAND is located at partition /dev/mtd1:
 - original copy is located at offset 0 in the partition
 - redundant copy is located 1 erase block (128K) after the original copy

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

https://jira.digi.com/browse/DEL-2552
2016-07-19 11:47:42 +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 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
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 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 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
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
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
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
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
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
Hector Palacios a8d9d7a292 meta-digi-arm: ccimx6sbc: add *.dtb files for SBC IDs
There are different SBC boards IDs each one having a different
device tree file in the form imx6X-ccimx6sbc-idZZZ.dtb, where:
	X is the CPU family (q=Quad/Dual, dl=DualLite/Solo).
	ZZZ is the board ID number.

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

https://jira.digi.com/browse/DEL-2160
2016-02-02 12:22:21 +01:00
Javier Viguera 8b93981e40 meta-digi-arm: remove 256MB u-boot configuration
That's the u-boot configuration used by variants 0x07 and 0x09, which
have been cancelled and are no longer supported by DEY.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-12-16 12:05:48 +01:00
Javier Viguera 000ad17184 meta-digi: remove machine specific WPA_DRIVER
Now that the MX5 platforms have been removed the only value for
WPA_DRIVER is 'nl80211' (used by Atheros wireless driver), so there is
no need to have a platform specific value.

Just initialize the value in the init-ifupdown recipe with a weak
assignment so it can be override from the project's local.conf.

https://jira.digi.com/browse/DEL-1890
https://jira.digi.com/browse/DEL-1969

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-11-09 17:40:11 +01:00
Javier Viguera 89f6265803 meta-digi-arm: add gplay and grecorder demo tools
These tools are part of the official FSL gst1.0 plugin. Add then to the
MACHINE_GSTREAMER_1_0_PLUGIN variable so they get added to the rootfs.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-11-05 14:02:31 +01:00
Javier Viguera 8e22cd80a9 meta-digi: remove gstreamer 0.10 support
Also remove QT4 phonon patches and qtmediaplayer demo as they depend on
gstreamer-0.10.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-11-05 14:02:29 +01:00
Javier Viguera 4e3563a706 meta-digi-arm: sync machine files with meta-fsl-arm
This synchronizes the machine configuration files with the latest
changes in meta-fsl-arm for yocto 2.0

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-11-05 14:01:27 +01:00
Javier Viguera d35ac42dd0 meta-digi: remove support for MX5X platforms
ccimx51js and ccimx53js are not supported in this version of DEY.
Support for those platforms is in previous versions of DEY.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-11-05 13:56:38 +01:00
Javier Viguera 7bdd639621 meta-digi: add gstreamer-1.0 to DEY images
https://jira.digi.com/browse/DEL-1850

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-10-23 11:23:28 +02:00
Javier Viguera 7d126d318b meta-digi-arm: split ath6kl firmware from kernel module
Split the ATH6KL firmware files to a different recipe and package so
they can be used regardless of what driver we are using (the external
module or the upstream driver).

Reuse the 'firmware-atheros' recipe which was creating a package with
bluetooth firmware, to create the package with wireless firmware as
well.

Also remove 'ccimx6' as compatible machine for the external atheros
module, as the module does not even compile with the kernel version we
are using (3.14).

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-10-15 18:01:15 +02:00
Javier Viguera afd194568f meta-digi: move WIRELESS_MODULE to machine config files
Which wireless module to use belongs more to the machine config files in
the BSP layer, than to the generic wireless packagegroup.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-10-15 18:01:15 +02:00
Javier Viguera 4580ea842e meta-digi-arm: sync machine files with meta-fsl-arm
This synchronizes the machine configuration files with the latest
changes in meta-fsl-arm for yocto 1.8

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-10-08 11:38:41 +02:00
Javier Viguera d6f4515517 meta-digi-arm: remove u-boot preferred versions
There is only one u-boot supported for each platform, so there is no
need to explicitly set the u-boot preferred version.

As a result it was needed to rework the nvram recipe which was using the
removed PREFERRED_VERSION_u-boot-dey variable.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-10-07 17:11:14 +02:00
Javier Viguera 51a3bdb25f meta-digi: remove Linux preferred versions
There is only one kernel supported for each platform, so there is no
need to explicitly set the kernel preferred version.

Also:

* Remove IS_KERNEL_2X variable which is no longer needed.
* Simplify jenkins build script, now that we do not need to build two
  kernel versions for ccardimx28.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-10-07 16:44:26 +02:00
Javier Viguera 03ec36e4be meta-digi-arm: remove kernel 3.10 support for CC6
We will only support kernel 3.14 for CC6 in this DEY release.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-10-07 16:44:26 +02:00
Javier Viguera 6fdcbf5f40 meta-digi-arm: use u-boot fw-utils from Poky
Instead of creating a new recipe for u-boot fw-utils (fw_printenv) just
bbappend the recipe in Poky.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-10-06 10:30:00 +02:00
Javier Viguera 3b0d4e1797 meta-digi-arm: rework u-boot 2015.04 recipe
* Merge u-boot-dey-rev_2015.04.inc into the recipe. There is no need to
  split the recipe, as there is no other recipe using this u-boot code.

* Update uboot configurations to the new format '_defconfig'. Also add
  the new 2GB variant.

* Remove PREFERRED_VERSION_u-boot-dey for CC6, as there is only one
  version available for this platform.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-10-05 17:27:11 +02:00
Alex Gonzalez f33afc53b4 meta-digi-arm: update uboot to v2015.04 and make default for CC6
https://jira.digi.com/browse/DEL-1829

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-10-05 16:04:04 +02:00
Alex Gonzalez d2203d4850 meta-digi-arm: Add dual-lite non wireless/non bluetooth/non kinetis variant
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2015-08-10 12:59:20 +02:00
Javier Viguera 4077100240 meta-digi-arm: set preferred kernel version for ccimx6sbc to 3.14
Linux 3.10 is still available via project's local.conf.

PREFERRED_VERSION_linux-dey = "3.10"
KERNEL_DEVICETREE = "..."

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-08-07 15:30:09 +02:00
Javier Viguera 44f1b44830 meta-digi-arm: create recipe to build linux-3.14
Platform defconfig corresponds to sha1 'e1506ff' in the kernel.

At this point linux-3.10 continues to be the default, some device-tree
files were renamed and the external atheros module does not compile with
linux-3.14, so to use this kernel with dey-1.8, following lines are
needed in the project's local.conf:

PREFERRED_VERSION_linux-dey = "3.14"
KERNEL_DEVICETREE = " \
    imx6dl-ccimx6sbc-wb.dtb \
    imx6dl-ccimx6sbc-w.dtb \
    imx6q-ccimx6sbc.dtb \
    imx6q-ccimx6sbc-wb.dtb \
    imx6q-ccimx6sbc-wb-ldo-bypass.dtb \
    imx6q-ccimx6sbc-w.dtb \
"
MACHINE_FEATURES_remove = "wifi"

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-08-07 13:15:46 +02:00
Javier Viguera db5ab5f048 meta-digi-arm: remove support for u-boot 2009.08 on ccardimx28js
https://jira.digi.com/browse/DEL-1747

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-08-05 11:55:37 +02:00
Javier Viguera 6a7f06b410 meta-digi-arm: remove support for kernel 2.6.35 on ccardimx28js
https://jira.digi.com/browse/DEL-1747

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-08-05 11:54:55 +02:00
Javier Viguera 03b561269a meta-digi-arm: ccimx6sbc: use soft assignment for KERNEL_DEVICETREE
So it can be override for example from the project config file.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-07-27 14:51:12 +02:00
Javier Viguera 473880294f meta-digi-arm: install e2fsprogs-resize2fs package
The 'resize2fs' command we use to resize the filesystem on first boot
has been moved from standard 'e2fsprogs' package to its own
'e2fsprogs-resize2fs', so this is the one we need to include now.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-07-27 10:59:06 +02:00
Javier Viguera 6b31e716a5 meta-digi-arm: rework SD card generation class
This is needed in the context of CC6 variants 0x7 and 0x9 (EMMC-less).

Changes:

* Do not use 'meta-fsl-arm' image generation class: removed include and
  override SDCARD generation function
* Use same VFAT boot image for EMMC and SD card. The u-boot bootscript
  has been adapted to be able to boot Linux from both SD and EMMC.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
(cherry picked from commit 8b8456b8fd90facd92dfc87632effa582ca60475)
2015-06-25 18:44:13 +02:00
Javier Viguera d9b4d0731e meta-digi-arm: set BOARD_BOOTIMAGE_PARTITION_SIZE in KiB
This will allow in following commit to use the same VFAT boot image for
EMMC and SD. Until now we were creating different boot images for EMMC
and SD card images.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
(cherry picked from commit 13e9ec7608d42430c2a01a728d030752a71f7948)
2015-06-25 18:43:37 +02:00
Javier Viguera 2765fc195c meta-digi-arm: set UBOOT_SYMLINK for all platforms
It will be used in a later commit to create SD card images.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-06-25 18:43:00 +02:00
Javier Viguera 9048ab3477 meta-digi-arm: build all CC6 u-boot variants
https://jira.digi.com/browse/DEL-1569

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-05-15 17:14:31 +02:00
Javier Viguera 5cc2a7182d meta-digi-arm: adapt machines to new u-boot configure system
Use Yocto's UBOOT_CONFIG new functionality to select the u-boot
configuration to build.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-05-15 17:13:57 +02:00
Javier Viguera 2c6f44c53d meta-digi-arm: add support for other CC6 hardware variants
https://jira.digi.com/browse/DEL-1569

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-05-15 17:13:17 +02:00
Javier Viguera 20671e874d meta-digi: remove current variants support for CC6
Remove the current DEY variants support and framework for CC6 because in
following commits we will add support for all *hardware* variants in
just one set of DEY images for CC6.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-05-15 17:12:45 +02:00
Javier Viguera fa30892ada meta-digi-arm: fix IMAGE_FSTYPES for MX5 platforms
The IMAGE_FSTYPES variable for ccimx51js and ccimx53js was not correct,
it was taking the default one from Poky (IMAGE_FSTYPES="tar.gz")
instead of the one in 'imx-digi-base.inc' file. This happened because we
were using the weak '??=' assignement while the default in Poky was
using '?='.

Also rework a bit how this variable is set, so it is easily overriden on
project config files or initramfs recipes.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-04-27 17:14:16 +02:00
Javier Viguera 5200b47e1f meta-digi-arm: update layer for new MACHINE_SOCARCH_SUFFIX support
After upstream (meta-fsl-arm) commit:

https://git.yoctoproject.org/cgit/cgit.cgi/meta-fsl-arm/commit/?id=bfe01a0ebde407086f4a7710ea165c6beff310d7

our layer needs to be adapted.

Otherwise the build is broken and fails with a bitbake parse error.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-04-13 15:43:05 +02:00