Commit Graph

201 Commits

Author SHA1 Message Date
Alex Gonzalez c633b81b31 meta-digi-del: Add meta-fsl-demos to README.
http://fisheye.digi.com:8060/cru/CR-DEL-49

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-06-12 13:09:14 +02:00
Alex Gonzalez b6fa4c17db meta-digi: Remove sha1s from layer README files.
This lowers the maintenance of these layers. The manifest used with repo
deals with the specific sha1s.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-06-12 13:07:37 +02:00
Javier Viguera 23ae02204f meta-digi: move Digi mirrors below yoctoproject's
So yoctoproject's are used *before* Digi's.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-06-04 09:57:07 +02:00
Alex Gonzalez 88df6a4d1e meta-digi-del: Add a development graphical image.
https://jira.digi.com/browse/DEL-479

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-06-04 09:14:56 +02:00
Alex Gonzalez 8a7ab34482 meta-digi-del: Define xserver common virtual runtime for del-gui.
The xserver-common package in meta-openembedded replaces and conflicts
with the x11-common package in poky.

But by default poky sets the VIRTUAL-RUNTIME_xserver_common variable
in packagegroup-core-x11 to x11-common.

This causes a build error on the rootfs creation step when images with
the dev-pkgs image feature are compiled. The build error is not quite
understood, but forcing the xserver common in the distribution works
and resolves any doubt regarding to which is the package actually
being included in the target system.

xserver-common was also the package included by default in normal (non
development) builds.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-06-04 09:14:56 +02:00
Alex Gonzalez 2faf1c8292 meta-digi-del: Add sdk image targets for development.
These images contain debug tools as the tcf-agent which are required to
perform SDK operations like run and debug.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-06-04 09:14:56 +02:00
Alex Gonzalez b41c69e3b5 meta-digi-del: Add virtual ssh server.
This commit allows for the ssh server to be selected by the user in the
project's local.conf.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-06-04 09:14:56 +02:00
Javier Viguera 7dd9c33154 meta-digi-del: create '/etc/build' file with build statistics
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-05-28 19:58:42 +02:00
Javier Viguera 2b7fb6b3cf base-files: rework '/etc/os-release' file
* Do not hard-code the DISTRO* values and set them from the environment
* Move the build information to a different file (following commit)

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-05-28 18:40:22 +02:00
Javier Viguera 08589f8942 meta-digi: missing spaces around '='
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-05-28 10:46:12 +02:00
Alex Gonzalez de5be32935 Distro configuration: Allow to use the standard Yocto ADT installer.
The ADT installer compiled from "bitbake adt-installer" needs qemu images
available at adtrepo.yoctoproject.org/$VERSION. To avoid having to deploy
an adtrepo ourselves, we need to change the distro version to the upstream
version.

There are further problems with the ADT installation that need to change
the SDK_VENDOR to the poky default of pokysdk and to have the SDKPATH also
with the default value.

With this change the adt-installer is installed without errors.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-05-28 10:09:33 +02:00
Javier Viguera acbbde22f6 psplash: do not launch on target's shutdown
psplash utility is throwing errors on target's shutdown when using the
serial terminal as console. Override the psplash initscript configuration
so it only runs on target's boot.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-05-27 12:15:31 +02:00
Javier Viguera a448713777 gst-fsl-plugin: rework patches
The patches are specific to the package version, so move then to a
versioned folder and remove the version from the patch filenames.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-05-23 16:33:28 +02:00
Javier Viguera 289a003d2a gst-fsl-plugin: remove not needed patch
The patch has been accepted upstream, so it's no longer needed here:

http://git.yoctoproject.org/cgit/cgit.cgi/meta-fsl-arm/commit/?h=danny&id=b93c40348cdcb0022f4315edc1b9cb7474253b1e

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-05-22 18:15:13 +02:00
Javier Viguera b5e4c77c4e gst-fsl-plugin: fix video not working with mfw_isink
There were two problems here:

* The 'vssconfig' files need to be removed so the displays are
  auto-configured directly.

* Fix a problem with a missing library. The code tries to 'dlopen' a
  shared library using the symbolic link instead of the soname. But the
  symbolic link is only installed with the development package PN-dev,
  so it's not available with the normal 'gst-fsl-plugin' package. Added
  patch that fixes this problem.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-05-22 18:15:13 +02:00
Javier Viguera 02a3bc1fad gst-plugins-base: disable integer vorbis plugin
This plugin is conflicting somehow with the other vorbis plugin throwing
some error messages when using gstreamer:

(gst-plugin-scanner:873): GLib-GObject-WARNING **: cannot register existing type `GstVorbisDec'
(gst-plugin-scanner:873): GLib-CRITICAL **: g_once_init_leave: assertion `result != 0' failed
(gst-plugin-scanner:873): GStreamer-CRITICAL **: gst_element_register: assertion `g_type_is_a (type, GST_TYPE_ELEMENT)' failed

Disabling the plugin does remove the error messages with no
functionality loss (as we have the standard vorbis plugin)

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-05-21 18:09:23 +02:00
Alex Gonzalez 08d2833e27 meta-digi-del: Fix netbase postinst to work also in target install.
https://jira.digi.com/browse/DEL-428

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-05-21 17:19:13 +02:00
Javier Viguera ce61322b9c meta-digi-del: add sleep to suspend/resume script
This gives more time for the interfaces to resume.

This fixes a race condition where the script tries to bring up the
wireless interface before actually being available.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-05-16 18:38:07 +02:00
Javier Viguera 9b94c4bf3b meta-digi-del: customize 'udev' script to create static nodes
https://jira.digi.com/browse/DEL-458

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-05-16 12:16:09 +02:00
Alex Gonzalez 4e48ac91f6 meta-digi-del: Fix del-gstreamer for non mx5 platforms.
https://jira.digi.com/browse/DEL-279

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-05-15 19:17:27 +02:00
Alex Gonzalez 2a1efb61a0 meta-digi-del: Add udev rule to create ttyBt.
This is needed for the ConnectCard for MX28 bluetooth variants.

It is created by mdev in del-image-minimal and udev needs to do it in
del-image-graphical.

We are appending to the 10-imx.rules file which already exists in
meta-fsl-arm.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-05-10 18:37:19 +02:00
Javier Viguera 2404911629 Revert "gst-fsl-plugin: add fsl-mm-mp3enc and fsl-mm-flv dependences"
The patch sent upstream (meta-fsl-arm) was acepted and integrated so
this change is no longer needed.

This reverts commit 7d7d7ee49c.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-05-10 16:38:17 +02:00
Alex Gonzalez 41faf402e2 meta-digi-del: Do not use a network manager for graphical images.
The default network manager included with the x11-sato packagegroup is
connman. It cannot coexist with ifup and /etc/network/interfaces. For
connman to work properly we would require:

- To modify netbase to leave an interfaces file with only the loopback
interface for graphical images.
- To compile the wpa_supplicant with dbus support and to leave connman the
task of starting it without a configuration file but with the dbus API (-u)
- We would need a way to run pre up scripts for all interfaces, so that the
wired interfaces can set the mac addresses passed by uboot and the wireless
interfaces can use the appropriate launch scripts.

Currently connman has no way to launch scripts before bringing an interface
up. It could be done with udev, but reportedly this does not work well
because sometimes connman brings the interface up before the udev rule is
run.

It may be that future versions of connman fix this, for example by
providing a command line tool.

For the moment it is easier to have no graphical network manager. That way
both del-image types share the network settings. In the future we may want
to revisit the need for a graphical network manager.

Fixes https://jira.digi.com/browse/DEL-387

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-05-09 13:03:44 +02:00
Javier Viguera 90952358c9 meta-digi-del: clean udev build warning
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-05-08 13:36:53 +02:00
Javier Viguera e59768cd49 meta-digi: move DIGI_MIRROR to meta-digi-arm
If you don't want to use meta-digi-del and use only the BSP layer
(meta-digi-arm) to build a generic image (like core-image-minimal) you
need the DIGI_MIRROR variable in this layer because some of the BSP
recipes (kernel, u-boot) use it to get the source.

So this allows to build core-image-minimal for Digi platforms without
using meta-digi-del.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-05-03 18:30:39 +02:00
Javier Viguera dfa2477dc1 libdigi: fix error building del-image-minimal-dev
nvram-dev package has a runtime dependence on libdigi:

Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for nvram-dev:
 *    libdigi (= 1.0-del.r0) *
 * opkg_install_cmd: Cannot install package nvram-dev.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-05-03 18:30:06 +02:00
Javier Viguera 3c7f94a880 meta-digi-del: simplify del-image-minimal-dev
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-05-03 18:29:34 +02:00
Alex Gonzalez 091e921db6 READMEs: Update layers README files for meta-digi-1.0.0.2
They contain the sha1s of the upstream poky, meta-fsl-arm and
meta-openembedded we are basing this drop on. These sha1s are also
included in the manifest file for the drop so they could safely be removed
from here once we are building release images on the Jenkins server.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-05-02 13:42:15 +02:00
Javier Viguera fbdaae8050 packagegroup-del-gstreamer: remove fsl-mm rdepends
Those packages are already runtime dependences of gst-fsl-plugin, so
there is no need to explictly add them here.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-05-02 11:57:55 +02:00
Javier Viguera 7d7d7ee49c gst-fsl-plugin: add fsl-mm-mp3enc and fsl-mm-flv dependences
For MX5 machines, gst-fsl-plugin has build-time dependences on the
pre-built fsl-mm-mp3enc and fsl-mm-flv codec libraries.

If the mp3enc library is not in the sysroot, the 'libmfw_gst_mp3enc.so'
is not built.

If the fsl-mm-flv is not in the sysroot, the configure process warns
about:

"Unable to determine soname of lib_flv_parser_arm9_elinux.3.0.so library"

and the resulting 'aiur_registry.arm11.cf' gets a wrong entry for
flv_parser library.

Similar patch was sent upstream (meta-fsl-arm). Once upstream integrates
the patch, this commit should be reverted.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-04-30 19:36:09 +02:00
Javier Viguera 1bb7ddd94f gst-fsl-plugin: cosmetic, no functionality change
Follow Yocto coding style:

https://wiki.yoctoproject.org/wiki/Recipe_%26_Patch_Style_Guide

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-04-30 19:24:37 +02:00
Javier Viguera afbf2cd803 meta-digi: rework setting VIRTUAL-RUNTIME_dev_manager
As a result fix CRDA hard-dependence on busybox mdev.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-04-30 13:27:48 +02:00
Javier Viguera 88ea40e38a meta-digi-del: add udev-extraconf recommend in udev
So it gets installed in del-image-graphical and removable devices (like
MMC and micro SD) are automounted.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-04-29 18:37:44 +02:00
Javier Viguera 0bc9f87e2f meta-digi: fix corner case broken build
Running:

bitbake -c cleanall packagegroup-machine-base

was failing due to those trailing backslashes.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-04-29 18:35:40 +02:00
Javier Viguera a4c6504f5c base-files: add sysctl.conf
* Reduce kernel console loglevel for all platforms.
* Protect DMA zone for MX5 platforms (for gstreamer/vpu)

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-04-26 18:36:55 +02:00
Javier Viguera bb06677e47 meta-digi-del: simplify crda recipe
Yocto v1.3 (Danny) does *not* have python-m2crypto-native support so
enabling VIRTUAL-RUNTIME_crda_use_gcrypt breaks the build.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-04-25 20:12:57 +02:00
Javier Viguera 7445a69310 meta-digi-del: add udev-173 bbappend
Disable DEVCACHE to remove error message on boot.

https://jira.digi.com/browse/DEL-262 #resolve

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-04-25 19:04:17 +02:00
Javier Viguera 7f3ad176b6 meta-digi: replace DESCRIPTION with SUMMARY
According to the Yocto reference manual[1] and some mails in the mailing
list[2] we should set SUMMARY always as DESCRIPTION takes the value of
SUMMARY if not explicitly set.

[1] <http://www.yoctoproject.org/docs/current/poky-ref-manual/poky-ref-manual.html#var-SUMMARY>
[2] <http://thread.gmane.org/gmane.comp.handhelds.openembedded.core/36454>

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-04-25 19:02:23 +02:00
Alex Gonzalez 2d485936c4 meta-digi-del: Add kernel gadget modules if the usbgadget is defined.
Fixes https://jira.digi.com/browse/DEL-373

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-04-25 15:20:17 +02:00
Javier Viguera 618e2484f5 busybox: move symlinks to busybox-mdev package
Those symlinks point to files which belong to busybox-mdev package, so
at running time this adds a dependency to busybox package on
busybox-mdev package.

This is wrong for del-image-graphical where we want to use 'udev'
instead of 'mdev'.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-04-24 20:06:15 +02:00
Alex Gonzalez 5903da28e4 meta-digi-del: Only include iw for mxs platforms.
It uses the nl80211 API which some drivers (like Redpine) do not support.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-04-24 17:49:22 +02:00
Alex Gonzalez 788eb89aeb netbase: Parse .config file instead of /boot/config*
When building an RPM based system, the linux kernel image was installed
after the netbase image so the /boot/config* file was not found.

Strangely that worked fine on IPK based systems.

Fixes https://jira.digi.com/browse/DEL-364

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-04-23 18:24:52 +02:00
Alex Gonzalez e66c87bcc7 distro: Extend the distro features to cover all machine features.
According to the poky reference manual, if a machine feature is not
included in the distro features it will not be supported.

Not convinced that works that way, but just in case I am adding all the
machine features to distro features. It shouldn't hurt.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-04-22 17:28:44 +02:00
Alex Gonzalez c3c816ec52 Add support for variants
I have split the machine configuration in two:

-The module machine configuration include, for example ccimx53.inc
-The machine configuration (for example cimx53js.conf) which includes
the variant configuration.

This will allow for customers to create their own machine keeping the
module include file.

The variant can be configured in the local.conf file with a
MACHINE_VARIANT variable.

The variant names are made up of the interface initials as follows:

    w: wifi
    e: externel ethernel
    b: bluetooth
    1: 1-wire
    a: accelerometer
    g: GPU
    v: VPU
    128: 128MB RAM
    4k: 1024MB NAND (only for MX51 JTAG flash)

For details regarding the supported variants, each machine configuration
file contains a comment with a variants table.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-04-22 17:28:44 +02:00
Alex Gonzalez 890e235ee6 meta-digi-del: Replace VIRTUAL-RUNTIME_ntp for VIRTUAL-RUNTIME_ntp-client
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-04-22 10:45:07 +02:00
Javier Viguera 27cbea58e5 crda: remove not needed FILESEXTRAPATHS
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-04-19 19:02:22 +02:00
Javier Viguera 49bb00183b fbtest: code review recipe
* remove not needed FILESEXTRAPATHS
* simplify build command line

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-04-19 18:42:15 +02:00
Javier Viguera e79805f038 base-files: fix bitbake parsing error
An error appeared trying to setup a jenkins job to build yocto.

When using dettached repos for the different layers (as a result of
using 'repo' tool) bitbake somehow fails to parse 'base-files' recipe
because the branch of the layers is '(no branch)'.

The error message is:

ERROR: ExpansionError during parsing /data/jenkins/jobs/yocto_test/workspace/digi-yocto-sdk.jviguera_mkproject/sources/poky/meta/recipes-core/base-files/base-files_3.0.14.bb: Failure expanding variable do_install: ShellSyntaxError: LexToken(TOKEN,'nobranch',0,0)
followed by:
  LexToken(RPARENS,')',0,0)
  LexToken(TOKEN,':34e5537e67b655b8d2effbbecc207d88eea52b87"\nmeta-fsl-arm      = "',0,0)
  LexToken(LPARENS,'(',0,0)
  LexToken(TOKEN,'nobranch',0,0)
  LexToken(RPARENS,')',0,0)

This commit fixes the problem.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-04-19 15:08:02 +02:00
Javier Viguera 13ae6f8bc9 base-files: change check_output (not available on python 2.6)
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-04-19 12:04:39 +02:00
Alex Gonzalez 977f4d35e4 meta-digi-del: Implement code review changes.
iw, Remove summary and leave description.
packagegroup-del-bluetooth, remove trailing line.
vsftpd,pointercal-xinput, add colon at the end of FILESEXTRAPATHS_prepend
del-examples-*, add COMPATIBLE_MACHINE to some examples
packagegroup-del-qt, remove comments.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-04-18 18:37:32 +02:00