Commit Graph

833 Commits

Author SHA1 Message Date
Javier Viguera c3e5f0d359 busybox: remove 'resume_storage_devices' function from suspend script
This was needed to overcome some corner cases with storage devices on
suspend/resume using MDEV as device handler.

Now we are using UDEV and after some tests done it seems that the
'resume_storage_devices' hack is not needed anymore.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-06-26 10:38:51 +02:00
Javier Viguera f4857a582c busybox: disable '-R' udhcpc option from ifupdown
udhcpc's '-R' option means 'Release IP on exit'.

This fixes a strange corner case on reboot: if you configure your network
interface to DHCP in '/etc/network/interfaces' AND you have some NFS
share mounted on your system, then running reboot command fails to
complete and it hangs on:

'Unmounting local filesystem'

This happens because on reboot TERM and KILL signals are sent to all
the processes in the system before umounting the local filesystem. When
udhcpc daemon receives the signal it exits and releases the IP (because
it was launched with '-R') leaving an unconfigured network interface
that later is unable to umount a network filesystem (NFS), resulting on
'reboot' command being unable to complete.

Removing the '-R' option from udchpc allows to kill the process without
unconfiguring the network interface.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-06-25 17:32:43 +02:00
Javier Viguera 07866bdab1 linux-dey: sync defconfig for ccimx6adpt and ccimx6sbc
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-06-24 18:37:29 +02:00
Javier Viguera e4dd8983ed busybox: tweak defconfig
The original defconfig came from DEL. Make the defconfig more similar to
the Yocto default one.

This restores the default udhcpc options when running via ifup to '-R
-n'. This is important because without '-n' the target can wait forever
to get an IP on boot while maybe the network is not available.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-06-24 17:22:31 +02:00
Javier Viguera da15544343 cherokee: remove not needed mirror
Finally OE added a copy of cherokee tarball in its own mirror:

http://sources.openembedded.org/cherokee-1.2.98.tar.gz

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-06-24 13:47:22 +02:00
Javier Viguera 162a33a0aa meta-digi: sync config templates with upstream (poky)
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-06-24 13:46:37 +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 d5b236b4dc meta-digi-arm: use 'v3.10/master' branch for MX6
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-06-23 18:49:57 +02:00
Javier Viguera db9de11b17 ccimx6sbc: set bluetooth variant by default in config file
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-06-17 15:48:16 +02:00
Javier Viguera 616940ec5d mkproject.sh: prepare framework to blacklist platforms
This allows to blacklist platforms not officially supported in a DEY
release. It only works at help-level, you can actually create projects
for any platform whose config files exist, but the help of the mkproject
command will only show the officially supported platforms.

At the moment the BLACKLIST variable is not filled. This will be done in
the release branch.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-06-17 10:49:44 +02:00
Javier Viguera c91898e4b1 build.sh: purge sstate of all packagegroups between builds
Packagegroups define sets of packages to be installed in the rootfs
*depending* on the hardware variant (~MACHINE_FEATURES). For example
installing or not the bluetooth firmware depending on machine variant
having bluetooth.

It may happen that we build sequentially machines with different
features using the same sstate and thus it may happen we end with a
rootfs lacking bluetooth firmware for a bluetooth variant.

So add all packagegroups to the list of packages to purge state-cache
between platform builds.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-06-16 11:31:55 +02:00
Javier Viguera dbf830b6a0 kernel-module-atheros: add calibration file for mx6
This adds the calibration file for US regulatory (still missing the
world-regulatory calibration file)

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-06-12 18:36:40 +02:00
Javier Viguera c726a9c0bb mplayer: remove bbappend
In Yocto Daisy mplayer is not supported. Trying to build it fails with:

ERROR: Nothing PROVIDES 'mplayer'
ERROR: mplayer2 PROVIDES mplayer but was skipped: Recipe is blacklisted: Requires newer libav which has negative D_P

This is because it has been blacklisted in commit:

http://cgit.openembedded.org/meta-openembedded/commit/?id=2e7f3ce93b2c9864037fba8cc68fde46aafac4b0

The reason is that is has a build-time dependence on libav being newer
than the one provided by Yocto.

We don't use mplayer on ccimx6 as it has accelerated video using
gstreamer, so just remove the bbappend for this release.

Probably we need to revisit this when we upgrade our ccardimx28 support
to new versions of Yocto and upstream has removed the recipe from the
blacklist.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-06-12 13:20: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 3ac3f03242 dey-examples: add opengl example apps for mx6
https://jira.digi.com/browse/DEL-804

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-06-04 13:49:58 +02:00
Javier Viguera 68883946ec libdigi: cosmetic, fix coding-style and whitespace
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-05-30 13:45:34 +02:00
Javier Viguera e95192f965 libdigi: use standard bitbake vars for lib and include dirs
libdir     -> /usr/lib
includedir -> /usr/include

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-05-30 13:44:57 +02:00
Javier Viguera 6677b913b0 meta-digi: remove ALLOW_EMPTY hacks for libdigi and microwindows
Those hacks were added to fix a problem when building development images
(with 'dev-pkgs' image feature enabled). In that case the developemnt
packages (libdigi-dev and microwindows-dev) have a dependence on the
normal packages (libdigi and microwindows). But those packages are not
created by default because they are empty, thus the needed ALLOW_EMPTY hack.

Fix the problem by just resetting the runtime dependences of the -dev
packages. This allows to not create empty libdigi and microwindows
packages.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-05-29 17:20:45 +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 4cb49ab09d meta-digi: revert revisions to AUTOREV
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-05-27 14:13:23 +02:00
Javier Viguera 8514398726 meta-digi: update revisions for dey-1.6.1.1
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-05-27 14:09:32 +02:00
Javier Viguera 898d63947d dey.conf: bump distro version to 1.6.1
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-05-27 12:43:12 +02:00
Javier Viguera d8229f9f40 meta-digi-arm: reset linux 3.10 branch for MX6
Use 'v3.10/dey-1.6/maint' which has the stable fixes from upstream
merged.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-05-27 12:36:44 +02:00
Alex Gonzalez 19e1cbd9f3 meta-digi-arm: linux-dey-3.10: Sync defconfigs for ccimx6sbc and ccimx6adpt
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2014-05-23 18:57:34 +02:00
Alex Gonzalez c60d314512 meta-digi-dey: dey-examples-v4l2: Add to mx6 platforms.
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2014-05-23 18:57:34 +02:00
Alex Gonzalez e98d5d826a meta-digi-dey: dey-examples-v4l2: Add YUYV pixel format as argument.
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2014-05-23 18:57:34 +02:00
Alex Gonzalez 0e4a6616e7 meta-digi-dey: Use videodev2.h for kernels from 2.6.38 onwards.
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2014-05-23 18:57:34 +02:00
Alex Gonzalez 45f09525f4 meta-digi-dey: dey-examples-v4l2: The VIDIOC_G_FMT syscall needs a format
type.

Newer kernels (3.x) return an error if this is not the case.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2014-05-23 18:57:34 +02:00
Alex Gonzalez d0fc504a1e meta-digi-dey: dey-examples-v4l2: Remove dependency on ipu.h.
On newer kernels (3.x), including ipu.h brings in too many dependencies.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2014-05-23 18:57:34 +02:00
Javier Viguera 140121d71c linux-dey: sync defconfig for ccimx6adpt
Synchronize with FSL 3.10 GA release.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-05-22 11:11:44 +02:00
Javier Viguera 0db56937bb meta-digi: set RPM as default package format in config templates
RPM is more polished than IPK and it's the default used by
Poky/Openembedded so just use it.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-05-20 13:51:37 +02:00
Javier Viguera be2be26029 cherokee: add again a mirror for the SRC_URI
cherokee-project.de mirror is no longer available

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-05-20 10:28:46 +02:00
Javier Viguera bc267130c9 meta-digi-arm: make u-boot boot script platform specific
https://jira.digi.com/browse/DEL-1061

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-05-13 18:18:37 +02:00
Alex Gonzalez 59f33e67c6 meta-digi-dey: wpa-supplicant: ccimx6sbc: Add defconfig and configuration.
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2014-05-09 17:34:10 +02:00
Alex Gonzalez 7ca94dba05 sdk: Add ccimx6sbc support.
Copied from the ccimx6adpt.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2014-05-09 17:34:10 +02:00
Alex Gonzalez 7e5708b5fc meta-digi-dey: dey-examples: ccimx6sbc: Add examples.
This is the same as for the ccimx6adpt.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2014-05-09 17:34:10 +02:00
Alex Gonzalez 6c96b14f99 meta-digi-dey: sysvinit: ccimx6sbc: Resize rootfs on boot.
This is the same as for the ccimx6adpt.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2014-05-09 17:34:10 +02:00
Alex Gonzalez 7477b7d446 meta-digi-dey: btfilter: ccimx6sbc: Add bluez init script.
This is the same as for the ccimx6adpt.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2014-05-09 17:34:01 +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
Alex Gonzalez 16f90dedb5 meta-digi-arm: kernel-module-atheros: Add ccimx6sbc init script.
This is a copy of the one for the ccimx6adpt.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2014-05-09 10:29:19 +02:00
Alex Gonzalez 0900d9b5c1 meta-digi-arm: linux-dey-3.10: ccimx6sbc: Add defconfig.
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2014-05-09 10:29:19 +02:00
Alex Gonzalez 954a356d7d meta-digi-arm: u-boot-dey: ccimx6sbc: Add environment configuration.
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2014-05-09 10:29:19 +02:00
Alex Gonzalez 98fe20dff1 meta-digi-arm: alsa-state: Add state for ccimx6sbc.
This is just a copy of the states for the ccimx6adpt.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2014-05-09 10:29:19 +02:00
Javier Viguera 3131cb6da8 meta-digi-arm: reset linux 3.10 branch for MX6
User-space has been updated in meta-fsl-arm for the general availability
(GA) FSL release, so use the kernel branch with the GA support.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-05-06 16:32:35 +02:00
Javier Viguera e639db7ebf meta-digi-arm: rename kernel and fdt files to uboot defaults
https://jira.digi.com/browse/DEL-1057

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-05-06 14:09:03 +02:00
Javier Viguera f14807643c meta-digi-dey: handle dynamic layer configuration
Patch taken from meta-mentor and meta-fsl-arm.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-04-30 17:33:28 +02:00
Javier Viguera 52c741c9cb meta-digi-arm: revert to 'v3.10/dey-1.6/maint' branch for MX6
The 'v3.10/master' master branch has been updated with the latest
general availability (GA) release from FSL, but the user-space is not
ready yet, so using the new kernel the build is broken:

imx-lib: error: 'PXP_IOC_GET_CHAN' undeclared

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-04-28 14:36:12 +02:00
Javier Viguera bf0a75ade6 meta-digi-arm: reset linux 3.10 development branch
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-04-25 18:54:55 +02:00
Javier Viguera 2fd13737cb meta-digi-arm: remove SRCBRANCH support for external repos
Needing to set the branch where a specific SHA1 revision is contained is
a unnecessary constraint that can be bypassed setting 'nobranch=1' in
the SRC_URI.

We do that for all the external repos (GitHub) plus the internal ones
for the im-xbootlets and the atheros kernel module (as those two repos
are stable enough and we are not developing actively on them).

For U-Boot and Linux we keep the SRCBRANCH framework for internal repos
as this is needed for the AUTOREV yocto feature.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-04-25 16:56:27 +02:00
Javier Viguera 5569e543d0 build.sh: make sure the clean command returns success
This is needed so jenkins jobs not using 'meta-digi-dey' (the layer
containing the cleaned recipe) can complete. Otherwise they fail with:

ERROR: Nothing PROVIDES 'packagegroup-dey-examples'

(for example using just the BSP layer 'meta-digi-arm' with standard
image recipes, e.g. core-image-minimal)

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-04-25 12:11:29 +02:00