Commit Graph

1012 Commits

Author SHA1 Message Date
Alex Gonzalez f6852b1bf9 meta-digi-arm: u-boot-dey: boot.txt: Remove 0x7 and 0x9 variants.
These eMMC-less variants have been cancelled.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2015-08-10 13:12:32 +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 66853e465f meta-digi: disable atheros kernel module for ccimx6sbc
The external kernel module does not build with linux 3.14, and we want
to test the upstream driver included in the kernel tree.

So for the moment disable the external kernel module, to allow start
building images in the buildserver.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-08-07 15:59:40 +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 262957995c pointercal-xinput: remove PREFERRED_VERSION_linux-dey override
Now each platform is only supported in one kernel version, so there is
no need to have multiple calib files per linux kernel version.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-08-05 11:56:51 +02:00
Javier Viguera 9c992309b0 alsa-state: remove PREFERRED_VERSION_linux-dey override
Now each platform is only supported in one kernel version, so there is
no need to have multiple alsa config files per linux kernel version.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-08-05 11:56:16 +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 75a3a71e45 firmware-atheros: fix Digi EULA md5sum after latest changes
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
(cherry picked from commit 5819ce98ddcecf0e4c8936d45e35de3240fa05a6)
2015-08-04 16:31:24 +02:00
Alex Gonzalez 90a6730c54 DIGI_EULA: Correct part number.
PN 90001132 is marked as obsolete. It was deprecated along with the
ConnectCore for i.MX51 EAK.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2015-07-30 16:06:33 +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 3c1526ede5 meta-digi-arm: enable SPIDEV for ccardimx28js in kernel 3.10
Also remove kernel configuration fragments for kernel 3.10. This is not
needed for 3.10 as all the configuration is done via device-trees.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
(cherry picked from commit b0031915f1c7f3eeba680161827e78bbac9eebb4)
2015-07-17 10:21:03 +02:00
Javier Viguera 80c0eeab42 module-atheros: fix module not loading in kernel 2.6.35
This is a regression introduced in a74363c. The MOD_VARIANT variable was
not correctly set because in kernel 2.6.35 there is no device-tree
support.

The fix is to get the module variant from the sysfs as a fallback for
old kernels.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
(cherry picked from commit 6357d71152c38c4713fc534b78b6c2993b201aa8)
2015-07-16 17:19:50 +02:00
Alex Gonzalez ff946261ef meta-digi-dey: btfilter: ccimx6: Add variants 0x11/0x12 as bluetooth enabled.
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2015-07-14 15:07:03 +02:00
Alex Gonzalez c014df997f packagegroup-dey-gstreamer: Add bluetooth plugin.
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2015-07-03 17:26:49 +02:00
Alex Gonzalez 269e7644cb packagegroup-dey-bluetooth: Add alsa bluez plugin for bluetooth audio support.
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2015-07-03 17:26:45 +02:00
Alex Gonzalez df93676695 bluez4: Configure bluetooth audio.
Add the following lines to add support for the HSP/HFP and A2DP profiles,
and to route the audio through the HCI SCO channel:

	Enable=Source,Sink,Headset,Gateway,Control,Socket,Media
	SCORouting=HCI

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2015-07-03 17:26:40 +02:00
Alex Gonzalez 3da25843d8 alsa-state: Add bluetooth audio default headset and speaker devices
This commit adds virtual PCM devices which are used for HSP/HFP and A2DP
profiles.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2015-07-03 17:26:20 +02:00
Alex Gonzalez 6173fd3f34 firmware-atheros: Add bluetooth audio configuration to pst file.
The following section configures the Audio Data Path to Voice Over UART.

//Audio - Audio main config
[H:S]0041
[H:S]0004
[H:A]01 00 00 00

The syntax is explained in the AR3002 2.2 Tag definition 1.0 document from
Qualcomm/Atheros.

Other audio sections are removed as they are not being used.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2015-07-03 17:25:24 +02:00
Javier Viguera 7409ad875c meta-digi-arm: fix u-boot boot script
Adapt u-boot bootscript after latest changes in 'mmcdev' variable
semantics. Now the boot media device is stored in 'mmcbootdev' variable.

Also set the device tree filename depending on the hardware variant.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-06-25 18:48:49 +02:00
Javier Viguera 10a25a621f imx-bootlets: update revision
Support new memory chips for 'ccardimx28js'.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
(cherry picked from commit b7d108c35f6a26a78a4fbab399fd2c0878976a67)
2015-06-25 18:48:48 +02:00
Javier Viguera b203540adf module-atheros: add calibration for wireless no bluetooth variants
Some CC6 variants have wireless but not bluetooth. Those variants need a
different calibration file.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
(cherry picked from commit a74363cf4a9b239edf9d628f84fe7e88002c0f5c)
2015-06-25 18:48:45 +02:00
Javier Viguera ed251520b5 u-boot-fw-utils: reconfigure u-boot env depending on boot media
Add post-installation script that runs on first boot to reconfigure the
u-boot environment depending on the media (EMMC,SD) the target is
booting from.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
(cherry picked from commit 8486d120355d80ea8ad5864596c8486a1d3c0db2)
2015-06-25 18:48:33 +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
Paul Osborne d9284d96a7 meta-digi-arm: ccimx6: restrict maximum output power for class 1 bluetooth
The previous class 1 settings for the atheros bluetooth resulted in
output power higher than what is allowable in all regulatory
domains where class 1 devices are allowed on the CC6.  The updated class 1
regulatory settings here reduce the maximum output power to levels
which pass when tested at an external lab.

This change resolves CCIMX6-389.

Signed-off-by: Paul Osborne <Paul.Osborne@digi.com>
2015-05-07 13:02:38 -05: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 6dd31598d0 meta-digi: clean PACKAGE_ARCH from some recipes
Those packages are not machine specific, so there is no need to set
PACKAGE_ARCH to ${MACHINE_ARCH}.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-04-16 18:10:20 +02:00
Javier Viguera 8dee301e7d u-boot-dey: remove redundant PACKAGE_ARCH
It's already set in the included 'u-boot.inc' (in poky)

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-04-16 18:10:20 +02:00
Javier Viguera 3bd1aef5d7 ath-prop-tools: fix package installation from prebuilt binaries
athtestcmd and wmiconfig are proprietary tools from Atheros. When
installed from GitHub we use prebuilt binaries because we cannot provide
the source code to the customers.

The prebuilt binaries need to be platform dependent, because the
'ccardimx28' uses soft-float binaries while the 'ccimx6' uses hard-float
binaries. Otherwise there is a failure:

root@ccimx6sbc:~# /usr/sbin/athtestcmd
-sh: /usr/sbin/athtestcmd: not found

While on it, removed the checksums for the binaries, as Yocto does
not verify checksums for local files by default, only for downloaded
files.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
(cherry picked from commit 8a3a124c75a885a619b41bf1e17118f1b3dec13c)
2015-04-15 18:54:36 +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 276cfa58f5 u-boot: add native mkimage dependence
The SD card images support added a dependence to mkimage native tool.
Otherwise the build may fail with:

mkimage: not found

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-03-31 12:23:47 +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 f8da7787ef image-types_digi.bbclass: fix typo
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-03-13 18:43:12 +01:00
Javier Viguera 43bd3f4e4e meta-digi: use recommended BP and BPN variables for FILESEXTRAPATHS
Also move files from generic 'files' folders to a more specific '${BP}'
or '${BPN}' folders. This is recommended to speed up the fetch of files
from the local machine, as the search is done in a certain order: ${BP},
${BPN}, and 'files'.

More info:
http://thread.gmane.org/gmane.linux.embedded.yocto.general/23550/focus=23576

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-03-13 18:43:12 +01:00
Javier Viguera 7f3e1a4d1a meta-digi-dey: use 'extrausers' class to set root password
This simplifies the code and as an extra allows to override the default
root password from the project's local.conf (setting MD5_ROOT_PASSWD
variable)

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-03-13 18:43:12 +01:00
Javier Viguera ef92164fb2 meta-digi-dey: use 'image-buildinfo' to create '/etc/build'
Poky added a new class that provides the same functionality we
implemented in our 'dey-image' class. So just use that class instead
of reimplementing it in our layer.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-03-13 18:43:12 +01:00
Javier Viguera 8b2e4812fc meta-digi-dey: create sares-image bbclass
Remove 'dey-test' image feature and create a SARES bbclass with the
same functionality. This makes easier the creation of images suitable
for SARES testing just adding:

INHERIT += "sares-image"

to your project's local.conf

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-03-13 18:43:11 +01:00
Javier Viguera 6c3e81825c meta-digi: remove deprecated PR from recipes
https://jira.digi.com/browse/DEL-1558

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-03-13 18:43:11 +01:00
Javier Viguera 26d41b7d09 meta-digi-dey: update dey-image-graphical for yocto 1.8
owl-video and gpu-viv-bin packages have been removed

Fix:

ERROR: Nothing RPROVIDES 'owl-video'
ERROR: Nothing RPROVIDES 'gpu-viv-bin-mx6q'
ERROR: Nothing RPROVIDES 'gpu-viv-g2d'

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-03-13 18:43:11 +01:00
Javier Viguera 4112aeb056 meta-digi-arm: fix build error in imx-bootlets-dey
With yocto 1.8 we need to pass CC and LD from yocto environment to
imx-bootlets makefile. Otherwise it fails:

arm-dey-linux-gnueabi-ld: cannot find -lgcc
make[1]: *** [output-target/linux_prep] Error 1

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-03-13 18:43:11 +01:00
Javier Viguera 1ddee2d028 meta-digi-arm: fix build errors in nvram and ubootenv
Yocto 1.8 is more strict in the syntax when you append more flags to the
CFLAGS variable, because with previous yocto versions these packages
used to build fine and now fail with:

run.sstate_create_package: Syntax error: "(" unexpected

Use a different EXTRA_CFLAGS variable for our custom flags instead of
the standard CFLAGS.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-03-13 18:43:11 +01:00
Javier Viguera c451c96dd6 meta-digi-arm: do not override EXTRA_OEMAKE variable
We need to append our config to EXTRA_OEMAKE variable instead of
overriding it, because otherwise we lose some config from the
environment (e.g. KERNEL_SRC) and the build fails with:

make: *** M=...kernel-module-.../git: No such file or directory

Also remove redundant PACKAGE_ARCH setting, as it's inherited from
module-base class.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-03-13 18:42:02 +01:00