Commit Graph

875 Commits

Author SHA1 Message Date
Alex Gonzalez 7031d2a53f linux-dey-3.10: Sync ccimx6sbc defconfig with the one in the kernel tree.
It corresponds to the following kernel sha1.
59b5ed1f8f9700cd7530e6d7d3282d9e157edd66

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2015-01-08 12:15:01 +01:00
Javier Viguera 217aadc7ae bluez init: rework script
Mostly coding style and simplifications. No functionality change.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-12-23 17:23:34 +01:00
Javier Viguera d6c2b36c6e alsa-state: do not remove 'asound.conf'
The removal was added as a workaround to avoid installing a generic
asound.conf that was conflicting with our cards.

This is no longer needed as poky installs an empty asound.conf and
meta-fsl-arm overrides it with per-platform asound.conf files.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-12-23 13:14:29 +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 0514d03e0e meta-digi-dey: Add a dey-image-tiny initramfs image.
To boot from TFTP/NFS you need something like:

    setenv uimage uImage-ccimx6sbc
    setenv initrdimg dey-image-tiny-initramfs-ccimx6sbc.rootfs.initramfs
    setenv fdt_file uImage-imx6q-ccimx6sbc.dtb
    setenv initrdaddr 0x22000000
    setenv bootargs console=ttymxc3,115200 rdinit=/sbin/init
    saveenv

    tftp $loadaddr $uimage
    tftp $initrdaddr $initrdimg
    tftp $fdt_addr $fdt_file

    bootm $loadaddr $initrdaddr $fdt_addr

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2014-12-01 11:51:51 +01:00
Alex Gonzalez aef38bc285 meta-digi-arm: Add rootfs.initramfs image generation.
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2014-12-01 11:51:51 +01:00
Alex Gonzalez d3d1b88cd5 meta-digi-dey: Add dey-image-tiny, a busybox only image.
This can be used as a template for size optimized images. It constraints
the use of X11 related packages and the image types used.

To build, add the following to your conf/local.conf:

DISTRO_FEATURES_remove = "x11"

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2014-11-28 09:44:38 +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 23a677a355 shadow-securetty: remove bbappend
Custom 'securetty' not needed anymore as a patch sent upstream was
accepted.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-11-26 18:21:30 +01:00
Javier Viguera d5f41bbf58 init-ifupdown: add missing gateway patterns for eth1 and wlan0
Also remove config entries in '/etc/network/interfaces' if corresponding
variable is not defined.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-11-25 14:39:35 +01:00
Javier Viguera e0fcd4d199 meta-digi-dey: cosmetics, no functionality change
Indent SRC_URI values according to openembedded coding style.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-11-25 13:48:02 +01:00
Javier Viguera e1d95f25cc meta-digi-dey: provide DNS configuration at build time
Allows to configure static DNS servers in resolv.conf setting following
variables in your project's config file:

ETH0_STATIC_DNS, ETH1_STATIC_DNS, WLAN0_STATIC_DNS

Those variables accept multiple dns servers (separated by spaces)

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-11-25 11:02:07 +01:00
Javier Viguera 4301bfc736 meta-digi-dey: rework rootfs resize on first boot
Use the package manager postinst framework to run the rootfs resize
script on first boot after the image has been flashed to the EMMC.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-11-20 18:01:29 +01:00
Javier Viguera f450cb3017 microwindows: fix build error
microwindows makefiles override some environment variables set by
bitbake. This makes the build fail with:

fatal error: gnu/stubs-soft.h: No such file or directory

Force those variables by passing them via the make command line.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-11-19 19:16:11 +01:00
Javier Viguera 919200e1aa busybox: update defconfig
* CONFIG_FEATURE_IFUPDOWN_EXTERNAL_DHCP to support 'connmand' for dhcp.
* CONFIG_CTTYHACK to make easier boot from an initramdisk.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-11-17 16:35:40 +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 dfadce7062 meta-digi-arm: use 'v3.10/master' branch for MX6
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-11-17 16:34:40 +01:00
Javier Viguera 1437c0c0cd nativesdk-packagegroup-sdk-host: remove bbappend
No longer needed because a patch with the same functionality was
accepted upstream (meta-fsl-arm).

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-11-17 16:34:10 +01:00
Javier Viguera a779fb6ce6 initscripts: remove runtime dependency on util-linux umount
This was added in the past (dey-1.4) as a workaround for reboot/poweroff
issues not completing properly [DEL-633]. At that time the util-linux
umount command worked while the one from busybox didn't. Now this
workaround is not needed anymore. The reboot/poweroff commands complete
correctly with busybox' umount, so just remove the runtime dependence.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-11-17 16:33:40 +01:00
Javier Viguera 952bb005f9 meta-digi-dey: update distro config file for yocto 1.7
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-11-17 16:33:10 +01:00
Javier Viguera ecd4d11e94 wpa-supplicant: update to version 2.2 for yocto 1.7
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-11-17 16:32:40 +01:00
Javier Viguera 981ef8ab0e util-linux: remove bbappend
This bbappend was added to be able to native build the util-linux
package in our old buildserver (with Debian 6). This is no longer needed
as we migrated our buildserver to newer Debian.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-11-17 16:32:10 +01:00
Javier Viguera 1a368aee2d shadow-securetty: update bbappend for yocto 1.7
ERROR: No recipes available for: shadow-securetty_4.1.4.3.bbappend

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-11-17 16:31:40 +01:00
Javier Viguera a9ed919c95 udev-extraconf: update bbappend for yocto 1.7
ERROR: No recipes available for: udev-extraconf_1.0.bbappend

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-11-17 16:31:10 +01:00
Javier Viguera a12152359c vsftpd: update bbappend for yocto 1.7
Remove the 'installed-vs-shipped' QA skip as it's not needed anymore.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-11-17 16:30:40 +01:00
Javier Viguera 4de5782fe9 packagegroup*: set PACKAGE_ARCH before packagegroup inherit
This is now needed in yocto 1.7. Otherwise it fails with:

ERROR: Please ensure recipe packagegroup-dey-gstreamer.bb sets PACKAGE_ARCH before inherit packagegroup
ERROR: Please ensure recipe packagegroup-dey-examples.bb sets PACKAGE_ARCH before inherit packagegroup

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-11-17 16:30:10 +01:00
Javier Viguera df83ee2116 meta-digi: update config templates for yocto 1.7
Added 'meta-python' to bblayers.conf.sample as it's now a dependence of
'networking-layer'. Otherwise if fails with:

ERROR: Layer 'networking-layer' depends on layer 'meta-python', but this
layer is not enabled in your configuration

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-11-17 16:29:40 +01:00
Javier Viguera 9a378a11bf bluez4: compile static version of the library
This installs 'libbluetooth.a' in the toolchain (needed to build static
binaries that use libbluetooth).

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
(cherry picked from commit f53ae4ab2af1bc5dd2f3f38f9d351d9eefd1f163)
2014-10-24 17:35:45 +02:00
Alex Gonzalez 9645162245 meta-digi-dey: wpa-supplicant: reduce verbosity
Do not log scan started events not to clutter the UI.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2014-10-24 11:48:29 +02:00
Javier Viguera bbb2758a79 v4l2_test: reset rotate to ROTATE_NONE on application launch
Start the application with a well known rotation value that works with
all the resolutions. Otherwise the rotation value is unknown because it
could have been changed in a previous run of the application.

Also in the kernel driver support was added to report EINVAL to
user-space in case the requested rotation is not supported. We use that
to not return from the 'v4l2_rotate' function without enabling again
the overlay preview.

https://jira.digi.com/browse/DEL-1068
https://jira.digi.com/browse/DEL-1205

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
(cherry picked from commit 2f7547a1b810683b813b708ba67e53ba156a9337)
2014-10-23 18:35:09 +02:00
Javier Viguera 45de4d6943 meta-digi-dey: add static libraries to generated toolchain
https://jira.digi.com/browse/DEL-1291

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-10-17 18:51:56 +02: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
Javier Viguera 411839713d v4l2_test: filter out invalid cropping height and width
The camera/driver does not support a cropping rectangle with height and
width less than 8 pixels. Add those limits to the sanity check of the
values in the user-space test application.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-10-09 16:05:33 +02:00
Javier Viguera bb66738f05 v4l2_still: add option to specify video source
https://jira.digi.com/browse/DEL-1225

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-10-08 16:47:03 +02:00
Javier Viguera 9542bd6b13 build.sh: copy SDK only if built
Fix jenkins error:
cp: cannot stat `tmp/deploy/sdk': No such file or directory

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-10-07 10:34:14 +02:00
Javier Viguera 8a8054fccc image-types_digi.bbclass: remove USE_DEVFS override
USE_DEVFS = "1" is the default now in poky

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-10-06 18:20:26 +02:00
Javier Viguera cae66238d2 meta-digi-dey: fix distro name
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-10-06 17:54:43 +02:00
Javier Viguera 4f2af4505f meta-digi-dey: add QT4 host tools to DEY toolchain
This allows to easily build QT applications sourcing the toolchain
environment setup script and then running:

$ qmake -project
$ qmake
$ make

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-10-06 17:03:10 +02:00
Javier Viguera 6a725b31fc meta-digi-dey: blacklist adt-installer for DEY distro
The adt-installer hardcodes the distro version in URL paths to
yoctoproject website. This is ok if you control the website and the
versioning of the distro (for example using Poky as distro).

In DEY the versioning is not compatible with the content of the website,
so just blacklist the recipe. If anyone needs the adt-installer they can
download it from the Yoctoproject.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-10-03 17:23:33 +02:00
Javier Viguera c4cc0c4329 build.sh: adapt script to build DEY toolchains
https://jira.digi.com/browse/DEL-1003

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-10-02 19:28:48 +02:00
Javier Viguera 41feae9ad6 nativesdk-packagegroup-sdk-host: add nativesdk-u-boot-mkimage
Add the 'mkimage' host tool to the toolchains generated with 'bitbake
meta-toolchain' or with 'bitbake -c populate_sdk <image>'.

This allows to use the standalone toolchain to build kernel images of
type uImage (with u-boot header)

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-10-02 19:08:05 +02:00
Javier Viguera 04c8925ded meta-digi-dey: remove poky references from DEY distro
We used to have these poky references to make 'adt-installer' happy when
built using DISTRO=dey.

But this has side effects on the standalone toolchain created with
'populate_sdk'. The standalone toolchain installer has:

* default install path referring to poky instead of dey
* default toolchain version not matching our DEY version

This is misleading for customers, so rework the distro config file
prioritizing the standalone toolchain over the adt-installer.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-10-02 18:35:54 +02:00
Javier Viguera a014ca4c09 meta-digi: improve mkproject script
Some minor enhancements to mkproject script:

* Add 'conf-notes' files with DEY specific information. This is shown
  when you create the project or when you reload the environment in an
  already created project.

* Create a 'dey-setup-environment' script in the project's folder that
  allows to reload the environment in a new terminal.

* Remove the PATH variable tweaking. This was needed in older versions
  of Yocto, where the PATH kept growing each time you reloaded the
  environment, but it has been fixed in poky, so there is no need to do
  the same in our mkproject script.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-09-26 16:29:22 +02:00
Javier Viguera c9b82ed477 build.sh: adapt script after 'dey-gui' distro removal
https://jira.digi.com/browse/DEL-858

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-09-25 16:23:40 +02:00
Javier Viguera 794f9f58dc meta-digi-dey: remove dey-gui distro
We used to have two distros:

  DEY: without X11 support
  DEY-GUI: with X11 support

After the change, we have just one DEY distro with X11 support. At the
same time add a CONFLICT_DISTRO_FEATURE to dey-image-minimal so it
cannot be built with X11 distro feature enabled. So now in order to
build 'dey-image-minimal':

DISTRO_FEATURES_remove = "x11"

needs to be added to your project's local.conf file.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-09-25 16:22:37 +02:00
Javier Viguera 5e3c8b3e13 meta-digi-dey: move NETWORK_MANAGER variable to x11-sato bbappend
NETWORK_MANAGER is a packagegroup-core-x11-sato recipe variable, so
override it in a bbappend instead of at a distro level.

At the same time remove a useless WEB variable from the image recipe.
WEB is a packagegroup-core-x11-sato local variable as well, and
overriding it in another recipe does not have any effect, so just
remove it.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-09-25 16:21:35 +02:00
Javier Viguera 9b59e02dea initscripts: recover support for static device table
This was working in dey-1.4 because there was a basic support for static
nodes in poky. They removed it in Yocto 1.6.

We still need this functionality, so add it here in the bbappend.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-09-19 15:50:47 +02:00
Javier Viguera f12cad7882 bluez4: use legacy pygobject instead of gobject-introspection
gobject introspection is not supported in Yocto, so there is not a
python binding package to use it.

Bluez4 uses such functionality in some of the test scripts. This patch
replaces it with the legacy pygobject, so they can work again.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-09-18 18:38:13 +02:00