Commit Graph

158 Commits

Author SHA1 Message Date
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
Javier Viguera 04f8a546aa meta-digi-arm: use 'v3.10/master' branch for MX6
Also remove support for device tree variants as it's not needed. We will
only have different device tree for the different CPUs, but not for the
different variants of the same CPU.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-03-20 17:28:21 +01:00
Javier Viguera 05c54002e3 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

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-03-12 14:42:44 +01:00
Javier Viguera 85b4977418 meta-digi-arm: fix device tree name for ccimx6sbc
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-03-10 10:53:20 +01:00
Javier Viguera 423c1115d1 meta-digi-arm: allow to build variant 0x8
Variant 0x8 does not have wireless/bluetooth, but it uses the same
device tree than the other variants.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
(cherry picked from commit 3ba5bff51ebbe6be8325128ae3beb950993607d2)
2015-02-27 17:28:33 +01:00
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 d206fc1d11 meta-digi-arm: configure the console for ccardimx28js dynamically
Revert to the old way of setting the console for ccardimx28js. Configure
the console on the generic ttyS0 port name and let the device managers
create a symbolic link to the correct device at runtime.

Trying to set it statically at compile time lead to some side effects
with some packages not being recompiled after a change of the preferred
kernel version in the project's local.conf (e.g. udev-extraconf and
sysvinit-inittab).

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-01-13 17:17:49 +01:00
Javier Viguera c926df2479 ccardimx28js: configure the serial console depending on kernel version
SERIAL_CONSOLES_CHECK is new functionality provided by Yocto, but it
needs '/proc/consoles' supported by the kernel. Our kernel 2.6.35 does
not support '/proc/consoles' so rework the serial console configuration
to work with both kernels (2.6.35 and 3.10).

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-01-12 17:52:21 +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 0a5aa1c24d meta-digi: support generation of sdcard images for ccardimx28js
https://jira.digi.com/browse/DEL-197

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-01-09 19:13:33 +01:00
Alex Gonzalez cb74a2250e meta-digi-arm: Add LDO and LDO bypass device trees.
The i.MX6 has an internal PMU with LDOs to supply voltages to the different
ARM sybdomains. There are two possible configurations, to use this internal
LDOs or to use the external PMIC to supply the voltages (LDO bypass).

The default is to boot with LDO bypass, and the device tree with the -dts
suffix will boot with the i.MX6 internal LDO.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2015-01-09 14:59:56 +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
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
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