Commit Graph

1000 Commits

Author SHA1 Message Date
Javier Viguera 942165de06 meta-digi: set ccimx6sbc's default variant (kit variant)
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-02-19 13:46:06 +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 953b8ee3be meta-digi: add github build script
This script + jenkins jobs allows to detect regressions on already
released versions of DEY.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
(cherry picked from commit b831229c7ac4ce9b4012ff92f50c22dcc8df7675)
2015-02-13 18:24:34 +01:00
Javier Viguera 0a51761163 meta-digi-dey: add Digi mirror
Add a Digi mirror for packages that have dissapeared upstream.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
(cherry picked from commit 0a01d3a5d0203d1ce75482677739bf0113da624d)
2015-02-05 16:40:40 +01:00
Javier Viguera cac6566d3b meta-digi: rename DIGI_MIRROR to DIGI_PKG_SRC
It has never been a mirror of upstream packages.

It's the URL of packages needed for the BSP. These packages are mostly
Digi specific and not provided in any other location.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
(cherry picked from commit d4cf9a88c9db39c6ecfd0099437d82af81c96e85)
2015-02-05 16:40:03 +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 315e479b5a build.sh: support building platform variants
Depending on DY_BUILD_VARIANTS variable (set by Jenkins):

  'false':     don't build variants (only the default)
  <empty>:     build all the variants supported by the platform
  'var1 var2': build the ones specified in the variable

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
(cherry picked from commit de58d3fac52448ee7b1828c6ac71c6c10a3442ff)
2015-02-05 16:30:21 +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 d5f3361935 bluez init: add more HW variants for ccimx6
https://jira.digi.com/browse/DEL-1359

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
(cherry picked from commit 537803cb64809acbac243179d6d448ad6cd70b85)
2015-02-05 16:28:14 +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 e46757c866 meta-digi: remove os-release from base-files
Yocto 1.7 Dizzy added support for os-release file in a new recipe, so
we need to remove it from our base-files bbappend in order to avoid
conflicts between both packages.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-01-16 16:48:26 +01:00
Javier Viguera ab2a23f427 packagegroup-dey-core: cosmetic (alphabetical order)
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-01-16 16:41:22 +01:00
Javier Viguera e814742ebd meta-digi: revert revisions to AUTOREV
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-01-13 18:22:07 +01:00
Javier Viguera 1cd75a0a30 meta-digi: update revisions for dey-1.7.0.1
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-01-13 18:19:32 +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
Hector Palacios d8a24e0ce3 atheros: don't remove wireless module on ifdown for ccardimx28
A post-down script was unloading the Atheros wireless driver
when the network interfaces were brought down.
On rare occasions the 'rmmod' command was not able to complete
and may leave the system in an unexpected state.

This patch removes the post-down script for the ccardimx28 platform
and leaves it only for the ccimx6 platform, where the unloading
is wanted to reset the driver after suspend.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-1314
2015-01-13 16:48:06 +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
Javier Viguera 141a8f9d5f meta-digi-arm: use 'v3.10/dey-1.7/maint' branch for MX6
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-01-09 18:34:03 +01:00
Javier Viguera 7469df6e2e busybox: enable rtcwake applet
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-01-09 15:28:05 +01:00
Alex Gonzalez 64cb390862 meta-digi-dey: Remove oracle-jse-jre recipes.
Customers will have to use the meta-oracle-java layer directly.

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