Commit Graph

95 Commits

Author SHA1 Message Date
Javier Viguera f1526b6813 meta-digi-arm: allow to build variant 0x5
Variant 0x5 (Furuno) does not have bluetooth, but the device tree in the
kernel is the same than the variant with bluetooth.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
(cherry picked from commit 7de11f08e95fecb8d4895556292a488a91af6817)
2015-02-13 18:24:39 +01:00
Javier Viguera f3dfa6a3b6 meta-digi-arm: support variants for ccimx6sbc
This completes the support for ccimx6sbc variants:

* support device tree variants
* split variants '0x01,0x02,0x04' group in two different groups (with or
  without kinetis)

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
(cherry picked from commit 3f20015411f4e270b2e2c8faf292678c75ff2aff)
2015-02-05 16:37:42 +01:00
Javier Viguera fb9ec7221a meta-digi: add variants table to config templates
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
(cherry picked from commit db1782bd24c4347cb9f4db33210e0f3fd6e73298)
2015-02-05 16:29:29 +01:00
Javier Viguera f42a61ab71 meta-digi-arm: support variants for ccimx6sbc
https://jira.digi.com/browse/DEL-1359

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
(cherry picked from commit 015d029255eb407cca4c986562a304aef7de3940)
2015-02-05 16:27:05 +01:00
Javier Viguera adb4611710 meta-digi-arm: disable perf features only for kernel 2.6.35
Kernel 3.10 does not fail to build perf features (as kernel 2.6.35
does), so there is no need to disable them for platforms using that
kernel version.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-01-19 18:28:00 +01:00
Javier Viguera e42a291557 meta-digi: support ccardimx28js SD images based on kernel 2.6.35
Notes:

  * This version of u-boot does not support comments in scripts
  * Enabled EXT4 in kernel config (for the SDCARD rootfs)

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-01-12 16:45:04 +01:00
Javier Viguera 1d3a359fba meta-digi-arm: rework udev extra rules
In Yocto 1.7 meta-fsl-arm replaced udev-extraconf bbappend with a new
package (udev-rules-imx). So we need to adapt our own bbappend to these
changes so all the needed udev rules are in place.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-01-08 16:33:30 +01:00
Javier Viguera e55fc16544 meta-digi-arm: migrate module_autoload to KERNEL_MODULE_AUTOLOAD
For MX5 platforms.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-12-02 16:49:45 +01:00
Javier Viguera 09e72aa0f4 meta-digi-arm: simplify flash images generation
We inherited from DEL the requirement to build more than one flash image
for the same rootfs contents depending on the EBS of the flash chip.

Yocto does not have support to generate more than one flash image so we
had to create functions in the image_types_digi bbclass to provide this
feature.

This commit removes that functionality and uses the standard yocto
support to generate ubifs and jffs2 flash images. The way to customize
the flash parameters is via EXTRA_IMAGECMD_jffs2 and MKUBIFS_ARGS
variables. In our case those variables are already set depending on the
different hardware variants.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-12-02 16:49:12 +01:00
Alex Gonzalez 19716dcde7 meta-digi-arm: Move images types to machine configuration.
This allows to override it easily.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2014-11-27 17:20:57 +01:00
Javier Viguera a7a7498b52 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 Dizzy maintenance branch.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-11-17 16:35:10 +01:00
Alex Gonzalez 8e7e7124d9 meta-digi-dey: init-ifupdown: Allow to configure interfaces file.
The interfaces file is now dynamically created for eth0, eth1 and wlan0. By
default they are configured if enabled in the machine features, and have
the same static configuration as before.

The static IPs can be configured as follows:

ETHn_STATIC_IP = "<ip address>"
ETHn_STATIC_NETMASK = "<netmask>"
ETHn_STATIC_GATEWAY = "<gateway>"

WLAN0_STATIC_IP = "<ip address>"
WLAN0_STATIC_NETMASK = "<netmask>"

To configure dynamic IPs you can use the following configuration in your
local.conf:

ETHn_DHCP = "dhcp"
WLAN0_DHCP = "dhcp"

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2014-09-11 18:01:59 +02:00
Javier Viguera 21d23c99d1 meta-digi-arm: set u-boot 2013.01 as preferred version
This will be the preferred version for ccardimx28. Then use platform
override to set the one for ccimx5 and ccimx6.

Not having a platform override in the machine config file allows to do
a simple version override in the project's local.conf file with:

PREFERRED_VERSION_u-boot-dey = "2009.08"

Otherwise, if we use a platform override in the machine config that
takes precedence over a normal override in the project's local.conf
and we would have needed something like:

PREFERRED_VERSION_u-boot-dey_ccardimx28 ?= "2013.01"

in the project's config.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-08-04 18:43:20 +02:00
Javier Viguera 3cdc5f14b5 meta-digi-arm: use kernel 3.10 by default for ccardimx28js
https://jira.digi.com/browse/DEL-1168

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-08-01 19:03:08 +02:00
Javier Viguera 3df330bd33 meta-digi-arm: disable gst-fsl-plugin for MX28 machines
FSL has this enabled but in our case it fails to build for ccardimx28js
using linux 3.10 with error:

fatal error: linux/mxcfb.h: No such file or directory

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-07-29 12:27:23 +02:00
Javier Viguera 1a54b81586 meta-digi-arm: add support for Digi platform families
Add platform family to SOC_FAMILY, so it's part of the MACHINEOVERRIDES
variable and it can be used to generalize bitbake recipes.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-07-16 14:39:00 +02:00
Javier Viguera 39f3fdcb28 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 Daisy maintenance branch.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-06-06 18:51:07 +02:00
Javier Viguera a4c9ddc270 ccardimx28: only install BT firmware on HW variants with BT
While on it, rework and simplify atheros firmware recipe:

* remove 'unknown' version (renamed recipe)
* do not create empty debug and development packages

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-05-29 17:09:29 +02:00
Javier Viguera be88589716 meta-digi-arm: fix code to generate JFFS2 and UBIFS images
It was broken after the upgrade to Yocto 1.6 because the framework to
generate images in Yocto 1.6 changed.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-04-03 19:40:00 +02:00
Javier Viguera 2d2013e8da meta-digi: install mtd-utils-ubifs only in machines with flash memory
The ccimx6 does not have flash memory so there is no need to install
mtd-utils.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-03-14 12:50:31 +01:00
Javier Viguera 60feecd578 meta-digi-arm: use xserver-xorg 1.14.4 for MX6
Currently Vivante does not provide a valid GL API so Xorg fails to link
against it, we cannot workaround it easily in newer Xorg version so
instead of maintaining a pile of patches for it we use 1.14.4 version
as an interim solution.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-03-14 12:49:49 +01:00
Javier Viguera fc1ac720c0 meta-digi-arm: use 'nl80211' wpa_supplicant driver for MX6
The Atheros wifi chip uses 'nl80211'

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-03-11 19:25:22 +01:00
Javier Viguera 6e5501a24f meta-digi-arm: remove udev bbappend
It was added to fix [DEL-898] but it is no longer needed after the
underlying changes in the rootfs hierarchy (added '/run' mountpoint)

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-03-06 17:17:26 +01:00
Javier Viguera 77be150871 meta-digi-arm: add new package u-boot-dey-fw-utils
Provides fw_printenv/fw_setenv utilities to read/write the u-boot
environment from Linux.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-02-27 13:43:02 +01:00
Javier Viguera 2660a0da27 meta-digi-arm: implement 'boot.vfat' image type
At the moment this image is a VFAT file system containing the kernel
and the device tree blobs.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-02-24 14:31:46 +01:00
Alex Gonzalez 584c8d32f9 meta-digi-arm: replace firmware-mxs for firmware-atheros
This package is now used in both ccimx6adpt and ccardimx28js.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-02-24 14:07:29 +01:00
Alex Gonzalez 629f349a9e meta-digi-arm: ccimx6: add bluetooth variant
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-02-24 13:43:05 +01:00
Javier Viguera 8e8cafb227 meta-digi: dynamically resize EXT4 filesystem to the partition size
https://jira.digi.com/browse/DEL-935

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-02-24 12:33:59 +01:00
Alex Gonzalez 45f329b27a meta-digi-arm: add the ccimx6adpt machine
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-02-24 12:33:59 +01:00
Javier Viguera f729e76654 meta-digi-arm: build JFFS2 images for ccardimx28 and kernel 3.10
Previously jffs2 images flashed from u-boot were not booting Linux. The
kernel was unable to mount the rootfs.

There have been some patches lately in the kernel that fix this problem,
so build jffs2 images.

Nevertheless the default image type is still ubifs when using linux 3.x.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-01-17 10:51:04 +01:00
Javier Viguera 1466a3ff79 meta-digi-arm: move UBOOT_SUFFIX to the machine config files
So it can be used out of the u-boot recipe (for example to create
bootable sdcard images).

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-01-16 10:37:04 +01:00
Javier Viguera 0dc6b44dee meta-digi: do not hardcode machine related utilities
nvram, ubootenv and update_flash are machine related utilities. They
need to be configured per-platform via MACHINE_EXTRA_RDEPENDS and thus
leaving packagegroup-dey-core as much platform-agnostic as possible.

This also allows to skip these utilities for platforms not using them.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-01-15 17:32:30 +01:00
Javier Viguera 0f34d4907d meta-digi-arm: fix UBOOT_ENTRYPOINT for all platforms
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-01-15 14:37:23 +01:00
Javier Viguera 4b1af59edc digi-defaults: cosmetic (alphabetical order)
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-01-14 19:20:06 +01:00
Javier Viguera 6abb629fc9 meta-digi-arm: use 'fsl-dynamic-packagearch' class in machine files
Functionality added in 'meta-fsl-arm' layer.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-12-26 14:50:45 +01:00
Javier Viguera 0a490894f7 meta-digi: remove packages removed upstream (meta-fsl-arm)
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-12-20 17:26:43 +01:00
Javier Viguera 1bc9e7efae meta-digi: add video player to graphical image
Also remove 'gplay' utility from dey-image-graphical. It's a command
line application suitable to be used on minimal (non-X) images.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-11-26 16:01:48 +01:00
Javier Viguera 1603b71fe1 meta-digi-arm: rewrite amd-gpu-bin package selection
Use a variable to select GPU flavour (X11, framebuffer).

No functionality change, just coding style.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-10-18 16:01:10 +02:00
Javier Viguera 328a6cdb5e meta-digi: move helper variables to a common place
Those boolean helper variables can be used in different recipes so move
them to a common place.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-10-17 10:36:51 +02:00
Javier Viguera a554c7be17 meta-digi-arm: fix SOC_FAMILY for all platforms
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-10-17 10:35:26 +02:00
Javier Viguera 2618ae353d meta-digi: build jffs2 images only with kernel 2.6.35
At the moment our kernel 3.10 on ccardimx28js does not support jffs2
images, so do not build them.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-10-15 17:50:49 +02:00
Javier Viguera ae5a6e060e meta-digi-arm: remove udev-extraconf runtime recommend
This is still a runtime-recommend of udev package so it gets installed
in udev based images (graphical) and not installed in mdev based images
(minimal).

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-10-15 14:36:28 +02:00
Javier Viguera c1e524cb39 meta-digi-arm: use Yocto's default headers
Following advise from:

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=babbf7a46acaefd9b36031483cafce053f607e66

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-09-25 16:19:24 +02:00
Javier Viguera 7ee46b00d8 meta-digi-arm: fix machine variant in machine overrides
The machine variant is most specific than machine name.

Before: MACHINEOVERRIDES="armv5:mxs:wb:ccardimx28js"
After:  MACHINEOVERRIDES="armv5:mxs:ccardimx28js:wb"

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-09-13 18:34:43 +02:00
Javier Viguera dc1499bd78 meta-digi: add IS_KERNEL_2X variable to be used in recipes
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-09-13 18:32:35 +02:00
Javier Viguera 97755ea730 meta-digi: fix build graphical image for ccardimx28
https://jira.digi.com/browse/DEL-585

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-08-09 16:31:28 +02:00
Alex Gonzalez 7795aa736c meta-digi-arm: ccardimx28js: Add 3.10 kernel version.
The UBOOT_LOADADDRESS and UBOOT_ENTRYPOINT variables are only used in
the kernel recipe, so remove from the machine configuration files.

Also, use the defconfig from the kernel tree which compiles all the
support by default and expects the device tree to be configured with
the desired support. Hence, remove all the empty configuration fragments
files.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-08-05 14:27:12 +02:00
Javier Viguera cd26bed35c meta-digi-arm: allow to configure kernel version in project
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-08-02 14:46:47 +02:00
Javier Viguera 93d275a43d meta-digi-arm: fix u-boot broken build
The build was failing for any IMX platform because it was trying to
build a bootstream u-boot.

The u-boot variables (UBOOT_*) used by yocto were incorrectly set,
so I reworked and simplified them to fix the bug and ease maintenance.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-08-02 14:45:16 +02:00
Javier Viguera f47915f45a meta-digi: remove udev-173 bbappend
That version of udev was removed from 'meta-oe' and thus bitbake fails
to parse the recipes.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-08-02 14:43:46 +02:00