Commit Graph

148 Commits

Author SHA1 Message Date
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
Javier Viguera dbd966543e meta-digi: remove not supported ccimx6adpt
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-12-01 12:15:54 +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
Javier Viguera 232fe6b06d meta-digi-arm: update github account
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-10-09 17:23:59 +02: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
Alex Gonzalez 1f7093e4b3 meta-digi-arm: ccimx6: change default DTS file name
This has changed on the kernel tree.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-06-24 10:42:08 +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
Alex Gonzalez f6febc28a0 meta-digi-arm: ccimx6sbc. Add machine configuration.
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2014-05-09 17:29:48 +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 cb1818f7b6 meta-digi-arm: add u-boot script to boot from SD card
https://jira.digi.com/browse/DEL-980

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-03-26 19:53:08 +01: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 1e2f8f98b1 meta-digi: add athtestcmd tool
This is a proprietary tool from Atheros to test wifi.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-01-23 15:07:03 +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 55ead71345 meta-digi: use SERIAL_CONSOLES instead of SERIAL_CONSOLE
SERIAL_CONSOLE variable has been deprecated in poky. The new
SERIAL_CONSOLES allows to configure multiple devices.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-01-14 17:19:38 +01:00
Javier Viguera 7a82eab0c7 meta-digi-arm: rework device tree customization
The do_update_dts function was hardcoded for ccardimx28js. We need to
make it mxs specific so the recipe can be used for other platforms that
do not share the same device tree configuration (for example the
upcoming ccimx6js)

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-01-14 12:24:29 +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 b89f5f6911 meta-digi: remove wr21 platform
This needs to be supported in 'meta-digi-dlr' layer.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-11-15 11:00:47 +01:00
Javier Viguera 44a5fa04b1 imx-bootlets: move BOARD selection to the machine config
Move the BOARD selection out of the bootlets recipe so it can be used
from machines defined in other layers.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-11-13 19:15:09 +01:00
Javier Viguera 1cb6073749 meta-digi: remove cpx2 platform
This needs to be supported in the DBL layer.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-11-08 14:21:09 +01:00
Javier Viguera 767fc18b85 meta-digi-arm: image_types_digi: separate data from implementation
Move the flash parameters to the machine configuration files so it's
easier to create derivative machines and use the image bbclass to create
flash images.

(based on a patch from Seth Bollinger <sethb@digi.com>)

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-11-04 13:25:13 +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
Seth Bollinger 0817e87e61 URI: Change DIGI_LOG_GIT to something generic
Most SRC_URI defaults to DIGI_LOG_GIT. This patch sets a more generic
name (DIGI_GIT) that defaults to DIGI_LOG_GIT, but is configurable by
someone who might want to tune it (DIGI_MTK_GIT, etc.).

Signed-off-by: Seth Bollinger <sethb@digi.com>
2013-10-14 08:48:45 -05:00
Javier Viguera c33540030b meta-digi-dey: ccardimx28: use standard serial port for console
In ccardimx28 depending on the kernel version the console is on 'ttyAM0'
or 'ttyAMA0'. Use the standard serial port name ttyS0 for login (through
inittab) and let the device handlers create the symlink to the correct
device.

This allows to boot the same rootfs regardless of the kernel version.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-10-04 13:57:32 +02:00
Javier Viguera b0247e7e05 meta-digi: add wmiconfig package for MXS
wmiconfig is Atheros proprietary code so the recipe builds from source
if DIGI_INTERNAL_GIT is defined or uses a prebuilt binary otherwise.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-10-03 14:06:37 +02:00