Commit Graph

312 Commits

Author SHA1 Message Date
Javier Viguera 3371ed864c recovery init: disable interactivity for 'ubiformat' command
We have seen corner cases (e.g. when the partition to format has already
some corrupted UBI metadata) where ubiformat stops and ask the user for
confirmation to do the format. We cannot have such interactivity in the
recovery ramdisk so use the '-y' argument to assume yes for all
questions.

Also use the '-q' (quiet) parameter instead of the '/dev/null'
redirections to remove command's output.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-25 12:31:48 +01:00
Javier Viguera e80d5b021c recovery init: configure UBIFS update partition to use ZLIB compression
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-24 19:31:36 +01:00
Javier Viguera 7cf8aa6e06 recovery init: change default mountpoint for 'update' partition
So it matches the same mountpoint used in a normal boot.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-24 19:31:36 +01:00
Alex Gonzalez 5d332c7800 ccimx6ul: Add P2P support
This commit adds a wpa supplicant P2P configuration file and configures
the p2p0 interface automatically at pre-up.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-01-23 15:45:20 +01:00
Javier Viguera 30162ca76c cloudconnector: simplify recipe for static library
For the moment the cloudconnector is provided only as static library, so
the recipe can be simplified.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-20 18:37:59 +01:00
Javier Viguera 0cd1c803ce recovery-utils: reset URI for local SWU update packages
Internal recovery-utils.git SHA1: e30c2a3c9729

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-20 17:34:41 +01:00
Javier Viguera b2abb5bc80 recovery init: search update package in the different partitions
Instead of using a hardcoded path to the SWU update package, just get
the filename and search the file in the different mounted partitions
(giving priority to the internal 'update' partition over other external
media).

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-20 17:34:09 +01:00
Javier Viguera 75f2c00025 recovery init: pass filesystem type to mount command
For block devices we can get the filesystem in the partition using the
'blkid' command.

This cleans up some warnings on mounting:

EXT4-fs (sda2): couldn't mount as ext3 due to feature incompatibilities
EXT4-fs (sda2): couldn't mount as ext2 due to feature incompatibilities
EXT4-fs (mmcblk0p4): couldn't mount as ext3 due to feature incompatibilities
EXT4-fs (mmcblk0p4): couldn't mount as ext2 due to feature incompatibilities

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-20 17:33:37 +01:00
Javier Viguera a7a8916018 recovery init: remove trailing slash from USB_MOUNT_DIR variable
Just the same than UPDATE_MOUNT_DIR, which doesn't have a trailing slash.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-20 17:33:04 +01:00
Javier Viguera b0e241d3a3 recovery init: fix device name
"i" variable in the nested loop is expanded to the absolute path
of the device, so prepending it with the ${device} results in
"/dev/sda/dev/sda1" for a 'sda1' partition.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-20 17:32:33 +01:00
Javier Viguera a63d5e6c31 meta-digi-dey: add cloud connector recipe
This includes library and example application

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-17 18:16:01 +01:00
Javier Viguera 9c3f8245e1 meta-digi-dey: add new 'recovery-utils' recipe
recovery-utils allows to configure recovery commands and reboot into
recovery mode.

Internal recovery-utils.git SHA1: 5555d4c736e3

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-11 17:51:07 +01:00
Hector Palacios 034aaa6fb1 psplash: fix init script to avoid running the app without fb
This is a clone from the original psplash recipe init script
but with the added fix:

	@@ -25,5 +25,7 @@
	        read rotation < /etc/rotation
	 fi

	-/usr/bin/psplash --angle $rotation &
	+if [ -c "${FBDEV:-/dev/fb0}" ]; then
	+       /usr/bin/psplash --angle $rotation &
	+fi

which avoids running the application when there is no framebuffer
in the system. This prevents the following error message during
boot:

	Error opening /dev/fb0: No such file or directory

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

https://jira.digi.com/browse/DEL-2747
2017-01-03 12:42:10 +01:00
David Escalona 4e52bab873 recovery: add psplash support to recovery
- Include psplash package in the recovery initramfs recipe.
- Start psplash in the recovery init.
- Add new methods to communicate with psplash from the init script.
- Show psplash progress information from the init script.
- Start progress binary to update psplash during a firmware update.

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

Signed-off-by: David Escalona <david.escalona@digi.com>
2016-12-30 12:42:09 +01:00
David Escalona eede1126ec psplash: customize psplash screen with Digi scheme
https://jira.digi.com/browse/DEL-3356

Signed-off-by: David Escalona <david.escalona@digi.com>
2016-12-30 12:42:05 +01:00
David Escalona f4ece3821e recovery: init script mount fixes
- Added a 5 seconds delay before mounting external disks so they have
  time to be recognized in the system.
- Check if UBI volume is mounted before formatting it.
- Check if eMMC block device exists before formatting it.

Signed-off-by: David Escalona <david.escalona@digi.com>
2016-12-30 12:22:41 +01:00
David Escalona c68a9d255a recovery: add recipe to generate the recovery ramdisk image
- This recipe generates the recovery ramdisk image with the contents of the
  recovery ramdisk tree (recovery-initramfs) and other packages.

Signed-off-by: David Escalona <david.escalona@digi.com>
2016-12-27 17:37:53 +01:00
David Escalona f13767ecd3 recovery: add recipe to generate recovery ramdisk file tree
Signed-off-by: David Escalona <david.escalona@digi.com>
2016-12-27 17:37:53 +01:00
Hector Palacios 1496d740d7 ccimx6ul: suspend: do not bring hci0 down/up
Bringing the Bluetooth interface down and up during suspend
is not needed and it even showed problems on the Starter Board
where the Bluetooth interface does not come up again after
having been brought down in suspend.

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

https://jira.digi.com/browse/DEL-3416
https://jira.digi.com/browse/DEL-3081
2016-12-27 16:35:34 +01:00
Hector Palacios cb46deba38 dey-image-qt: build gstreamer for 'ccimx6ulsbc' platform
Separately add 'dey-gstreamer' to ccimx6ulsbc platform.
This platform does not have 'accel-video' but we want gstreamer
for using it with video/camera.

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

https://jira.digi.com/browse/DEL-2358
2016-12-26 10:55:01 +01:00
Hector Palacios 41e3209549 ccimx6ul: suspend: remove delays
Remove preventive delays during the removal of Bluetooth and Wireless
interfaces. Tests revealed they are not needed.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2016-12-02 10:58:28 +01:00
Hector Palacios 368d1ebe56 ccimx6ul: suspend: do not load the wireless module on resume
The loading of the wireless module without proper arguments does nothing.
Besides, if the interface was down before going to suspend, there is no
need for the wireless module to be loaded.

The wireless module will be loaded nevertheless (with proper arguments)
when the interface is brought up.

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

https://jira.digi.com/browse/DEL-3241
2016-12-02 10:58:28 +01:00
Hector Palacios e7a21cdad0 ccimx6ul: suspend: unload wireless module always before suspending
The suspend script was unloading the wireless module driver *only* if the
interface 'wlan0' was previously up. If the interface is down the module
does not unload and the system fails to suspend.

This patch removes the module always if it appears in the list of loaded
modules.

While on it, move the unloading of wireless after the unloading of
Bluetooth, to be in line with the reversed order in which they are loaded
on the resume_interfaces() call.

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

https://jira.digi.com/browse/DEL-3241
2016-12-02 10:58:28 +01:00
Javier Viguera e441b6fec5 trustfence-tool: install tool from tarball
Use the static binary from the tarball, which should be common across
different platforms and operating systems.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-11-30 14:51:54 +01:00
Diaz de Grenu, Jose 2fee1a85b0 dey-image-tiny-initramfs: use cpio.gz.u-boot.tf image
The u-boot header is required for U-Boot to boot the image in secure boot.
The cpio.gz.u-boot.tf image gets signed and encrpyted if required.

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-11-29 19:40:47 +01:00
Javier Viguera 37b9c9c5e3 trustfence-tool: install tool from local binaries
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-11-23 16:30:34 +01:00
Javier Viguera 55c291e340 trustfence-tool: update checksums
Version: 2.0-g49bafeb

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-11-18 11:07:59 +01:00
Alex Gonzalez 22fe619976 meta-digi-dey: trustfence-initramfs-init: Use printf instead of echos
This is a cosmetic change so that the newline characters are actually
used.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-11-17 11:50:02 +01:00
Alex Gonzalez b3e5837cf4 trustfence-initramfs: Extend for the ccimx6ul
https://jira.digi.com/browse/DEL-3173

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-11-14 18:40:30 +01:00
Diaz de Grenu, Jose 7a02e1b00a trustfence: define new type of image for signed/encrypted ramdisks
Also change the image type of dey-image-trustfence-initramfs.

https://jira.digi.com/browse/DUB-615

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-10-19 10:33:34 +02:00
Isaac Hermida 2f275ca47b dey-image-qt: do not include package-management for ccimx6ul
The ccimx6ul has a small NAND flash rootfs partition, and removing
package-management image feature saves around 10MB.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-10-05 11:55:45 +02:00
Isaac Hermida 412f1b1e55 meta-digi: rename external ethernet references to second ethernet
The name "ext-eth" seems to indicate "External Ethernet". Rename that variable
and related ones to a more proper name like second ethernet.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-09-15 12:31:49 +02:00
Javier Viguera 7b170b58ac meta-digi-dey: add static libraries for core-image-base based SDK
https://jira.digi.com/browse/DEL-2881

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-09-01 17:37:10 +02:00
Diaz de Grenu, Jose c59a5e6214 Revert "meta-digi-arm: Exclude u-boot-fw-utils if U-Boot environment encryption is"
This reverts commit b8f50680e5.

The support to read and write to an encrypted environment has been added, so
there is no need to exclude the u-boot-fw-utils anymore.

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-08-26 10:13:17 +02:00
Isaac Hermida d3f1b0b18a meta-digi-dey: init-ifupdown: add commented code for softAP example
Add commented lines as example to configure and run the wlan0 interface in AP
mode using hostapd daemon.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-08-25 18:42:56 +02:00
Alex Gonzalez b8f50680e5 meta-digi-arm: Exclude u-boot-fw-utils if U-Boot environment encryption is
enabled

There is currently no support on fw_printenv/fw_setenv to access an
encrypted environment.

This commit removes the package if U-Boot environment encryption is
enabled to avoid environment corruption on access.

It also documents the issue as a known issue.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-08-10 10:59:30 +02:00
Javier Viguera 7727b4402e init-ifupdown: use [[:blank:]] posix expression instead of '\s' shorthand
According to 'grep' manual '\s' is a synonym for [[:space:]] which
matches spaces, TABs, but also newlines, etc. We want to only match
spaces and TABs, so use [[:blank:]] instead.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-08-09 19:32:00 +02:00
Stephan Klatt b31c09e59f init-ifupdown: misc cellular fixes
* set cellular user and password
* stricter replace to not match set values
* only set cellular interface to auto

Internal merge of Github's PR:

https://github.com/digi-embedded/meta-digi/pull/2

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-08-09 19:06:23 +02:00
Javier Viguera 6203b101b6 trustfence-tool: update checksums
Version: 1.0-gd725a21

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-07-29 10:35:27 +02:00
Isaac Hermida 5e35a9ca00 recipes-core: suspend: down the bluetooth interface before entering suspend
Down the bluetooth interface before entering suspend and up it after resuming
if it is present and up.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-07-28 13:06:25 +02:00
Javier Viguera ba0834ed88 trustfence-tool: update checksums
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-07-26 16:47:32 +02:00
Isaac Hermida 8884970e5a meta-digi-dey: busybox: adapt acpid.map file for CC6UL
https://jira.digi.com/browse/DEL-2838

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-07-26 16:26:27 +02:00
Isaac Hermida ddd5d379a3 recipes-core: busybox: start syslog at a very early state
Start syslog earlier (from 20 to 02) so it is running and other init scripts
can use it to log into the system like the S03networking script.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-07-26 16:21:27 +02:00
Javier Viguera a8bec40bea meta-digi-dey: trustfence: implement encrypted rootfs installation
https://jira.digi.com/browse/DEL-2700

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-07-26 14:19:26 +02:00
Javier Viguera b37cbc26c3 base-files: fix resize-ext4fs script to work with DM devices
This is needed so the encrypted rootfs is properly resized to the
partition size.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-07-26 12:29:54 +02:00
Javier Viguera a8c50c16ea trustfence-initramfs-init: remove cryptsetup from init script
New functionality has been implemented in trustfence-tool application,
so there is no need to call cryptsetup command.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-07-22 09:50:47 +02:00
Javier Viguera 4ca3aa176a trustfence-initramfs-init: clean mount rootfs warnings
Get filesystem type of rootfs block device and pass it explicitly to the
mount command to clean following warnings on boot:

EXT4-fs (dm-0): couldn't mount as ext3 due to feature incompatibilities
EXT4-fs (dm-0): couldn't mount as ext2 due to feature incompatibilities

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-07-22 09:50:47 +02:00
Isaac Hermida 8143f6f638 meta-digi-dey: add suspend script support to ccimx6ul
https://jira.digi.com/browse/DEL-2773

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-07-15 14:29:21 +02:00
Javier Viguera 7a38d609f2 meta-digi-dey: new Trustfence initramfs image recipe
This recipe builds the initramfs image that is used to boot from an
encrypted rootfs.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-07-07 17:59:55 +02:00
Javier Viguera 4dd7d438af meta-digi-dey: new Trustfence initramfs package
This package adds some files needed by the trustfence initramfs and that
are not included in other packages.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-07-07 17:59:25 +02:00
Javier Viguera 778aade696 meta-digi-dey: new recipe for trustfence-tool binary package
https://jira.digi.com/browse/DEL-2278

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-07-07 17:58:55 +02:00
Isaac Hermida 8bc38a2cbc core-image-base: add dey-image tweaks
Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-07-01 11:49:37 +02:00
Isaac Hermida 113e9a0e0b recipes-core: expand core-image-base recipe
Expand the core-image-base recipe by including some default packages to the
image.

https://jira.digi.com/browse/DEL-2695
https://jira.digi.com/browse/DEL-2693

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-06-27 11:06:31 +02:00
Javier Viguera 1e16f6af66 meta-digi: global replace base_contains function
This function is deprecated in favor of bb.utils.contains. The same
change has been done in other layers.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-06-21 11:15:28 +02:00
Alex Gonzalez ac740b7fdc meta-digi-dey: trustfence: Explicitely check for "1" for variable enable
https://jira.digi.com/browse/DEL-2603

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-06-10 09:48:05 +02:00
Victor Rubio 0aa26fb70a meta-digi-dey: add sysinfo package to dey-core packagegroup
sysinfo is a bash script which gathers all the relevant information
from a running system on a timestamped compressed file.

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

Signed-off-by: Victor Rubio Victor.RubioTorroba@digi.com
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-06-02 20:04:31 +02:00
Alex Gonzalez 05f1daeecc meta-digi-dey: systemd: Disable getty on console disable.
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-05-31 17:51:00 +02:00
Alex Gonzalez 5351b71c82 meta-digi-dey: sysvinit: No getty in inittab if console disabled.
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-05-31 17:51:00 +02:00
Javier Viguera ff3f42d899 dey-image-tiny: remove X11 distro feature limitation
That restriction does not make any difference in the final image
contents, because no package depending on X11 is added to the image, and
it prevents the image from being built with the default DEY
configuration (that has X11 distro feature enabled).

This also allows to build the image in the buildserver with the same job
that builds other X11 based images.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-04-22 10:30:57 +02:00
Hector Palacios 92f744ab75 meta-digi-dey: move ${GRAPHICAL_BACKEND} to DEY distro conf
Move this variable to DEY distro conf so that it is available for any
recipe built with the distro.

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

https://jira.digi.com/browse/DEL-2192
2016-02-12 12:09:53 +01:00
Isaac Hermida 3a9825b27d meta-digi-dey: Add wifi pre/post actions to suspend script
It has been observed that the wireless interface ocassionally fails to resume
from suspend on extensive long run validation testing, so we workaround it by
bringing the interface down before suspend and bring it up again after resume

This reverts commit a77cd1406d.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-02-09 16:47:21 +01:00
Javier Viguera e64abf4d17 meta-digi-dey: remove old minimal and graphical images
DEY provides a new dey-image-qt image (for fb and X11).

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-02-04 19:56:22 +01:00
Javier Viguera 7fa60f80f9 meta-digi-dey: add new 'dey-image-qt' image
This image provides a demo rootfs with QT. It can be built for
framebuffer and also for X11.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-02-04 19:55:51 +01:00
Javier Viguera 0b07af3bef sysvinit: disable all cpu cores but cpu0 on halt/reboot
This is a user-space workaround for the reboot/poweroff problems we
are having in the ccimx6sbc. Seems that they are not reproducible when
only one core is enabled, so the workaround is to disable the rest of
the cores for rebooting/halting.

https://jira.digi.com/browse/DEL-2133
https://jira.digi.com/browse/DEL-2148

Signed-off-by: Javier Viguera <javier.viguera@digi.com>

(cherry picked from commit a9e36a74bb20ab38f220116ba2742dca3d80c293)
2016-01-22 10:36:31 +01:00
Javier Viguera 52c8fb836a meta-digi-dey: remove X11 limitation for dey-image-graphical
So we can build a 'dey-image-graphical' image for framebuffer with
support for QT5.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-12-22 14:35:04 +01:00
Javier Viguera eb01102976 meta-digi-dey: clean dey-image-graphical image
No functional change, as 'package-management' is added via the included
dey-image-minimal recipe, and 'pointercal-xinput' is a dependence of
xinput-calibrator which is added for X11 images.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-12-22 14:35:04 +01:00
Javier Viguera 1240e259c1 meta-digi-dey: remove QT4 support
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-11-30 19:27:04 +01:00
Alex Gonzalez 8599227cd8 meta-digi-dey: busybox: acpi: Modify the behaviour of power key button.
We switch to the way it works in Android, short press (<2s) takes the target
to suspend and long press, >2s but <9s, performs a software controlled
power down.

Pressing longer than 9 seconds does the uncontrolled hardware power off
directly from the PMIC.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2015-11-24 19:36:10 +01:00
Alex Gonzalez 71e1c61f8a busybox: pswitch-release: Fix incorrect return value.
For Busybox's ash, -1 is an Invalid Number.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2015-11-19 16:08:34 +01:00
Alex Gonzalez f9884afc12 meta-digi-arm: Remove the RTC pre/post actions in the suspend script.
These were historically needed for other platforms.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2015-11-13 16:24:46 +01:00
Alex Gonzalez a77cd1406d meta-digi-arm: Remove wifi pre/post actions from suspend script
The suspend script did a ifup/ifdown on wlan0 to workaround issues we
had using wireless drivers on some platforms.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2015-11-13 16:24:04 +01:00
Jose Diaz de Grenu de Pedro 3cb3c7c03b init-ifupdown: add support for cellular interfaces
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-11-12 16:49:03 +01:00
Javier Viguera 000ad17184 meta-digi: remove machine specific WPA_DRIVER
Now that the MX5 platforms have been removed the only value for
WPA_DRIVER is 'nl80211' (used by Atheros wireless driver), so there is
no need to have a platform specific value.

Just initialize the value in the init-ifupdown recipe with a weak
assignment so it can be override from the project's local.conf.

https://jira.digi.com/browse/DEL-1890
https://jira.digi.com/browse/DEL-1969

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-11-09 17:40:11 +01:00
Isaac Hermida 4dbb6185d7 Revert "meta-digi-dey: disable dey-bluetooth image feature temporarily"
This reverts commit e745219eb2.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2015-11-09 17:36:11 +01:00
Javier Viguera 59cc4b79c7 meta-digi-dey: update Digi logo used by webservers
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-11-06 16:20:35 +01:00
Javier Viguera e745219eb2 meta-digi-dey: disable dey-bluetooth image feature temporarily
It has a hard-coded dependence in bluez4 and this has been removed from
openembedded-core.

There is a different Jira for the bluez5 migration.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-11-05 14:02:31 +01:00
Javier Viguera 23ebc6951b meta-digi-dey: update busybox to 1.23.2
Used in Yocto 2.0

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-11-05 14:01:35 +01:00
Javier Viguera d35ac42dd0 meta-digi: remove support for MX5X platforms
ccimx51js and ccimx53js are not supported in this version of DEY.
Support for those platforms is in previous versions of DEY.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-11-05 13:56:38 +01:00
Paul Osborne 35c0f5b8da meta-digi-dey: include microcom with busybox
Microcom is a minimal version of minicom and is extremely useful
for doing basic testing on target (for instance, talking to a modem
or other serial connected device).

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
(cherry picked from commit 90c6708e948c9b9942b48d425ff21e0affc2f8d7)
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-10-19 14:50:12 +02:00
Jose Diaz de Grenu de Pedro 7084920cb4 meta-digi-dey: busybox: Moved bridgeifupdown into the version specific path.
Signed-off-by: Jose Diaz de Grenu de Pedro <Jose.DiazdeGrenudePedro@digi.com>
2015-09-18 13:17:33 +02:00
Jose Diaz de Grenu de Pedro 7d8955430a meta-digi-dey: Add bridging support.
Add the networking configuration to support the creation of a bridge
interface.

Signed-off-by: Jose Diaz de Grenu de Pedro Jose.DiazdeGrenudePedro@digi.com
2015-09-17 10:45:45 +02: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 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 b224ff2dd4 meta-digi-dey: update busybox to 1.23
Used in Yocto 1.8

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-03-12 14:43:18 +01:00
Javier Viguera 66dc64f9f2 dey-image-graphical: fix QT support in toolchain/sdk
Changes in Poky (Dizzy) made our SDK unable to build QT applications.
This commit syncs again with upstream so the toolchain is able to build
QT apps.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-02-19 13:46:26 +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 7469df6e2e busybox: enable rtcwake applet
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-01-09 15:28:05 +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 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
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 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 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 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 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 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 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 15bc6db536 meta-digi-dey: rework dey-image-graphical image to save space
* Remove inconditional inclusion of dey-gstreamer: dey-image-minimal
  includes dey-gstreamer if MACHINE_FEATURES contains 'accel-video'
  so dey-image-graphical inherits this from dey-image-minimal.
  This does not make any difference for IMX platforms but allows to
  remove inconditional inclusion of dey-gstreamer for MXS. To allow
  'gaku' (sato audio player) playing MP3 files COMMERCIAL_AUDIO_PLUGINS
  is added to the distro config file.

* Only include 'owl-video' if MACHINE_FEATURES contains 'accel-video'.

* Remove inconditional inclusion of qt4-examples from dey-qt
  packagegroup. Package qt4-examples is part of the RRECOMMENDS for
  package qt4-demos, so it will be included anyway and not having it
  hard-coded allows to bad-recommend it for some platforms and not
  for others.

* Use BAD_RECOMMENDATIONS to avoid inclusion of 'qt4-demos-doc' package
  for all platforms (this package does not add any value and weights
  about 50MB) and 'qt4-examples' for ccardimx28js.

With all those changes, we get a graphical image with GTK + QT that fits
in the standard rootfs partition for ccardimx28js.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-09-18 12:09:58 +02:00
Javier Viguera 9c98226892 dey-image-graphical: include QT
https://jira.digi.com/browse/DEL-1145

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-09-12 18:49:45 +02:00
Alex Gonzalez 8e7e7124d9 meta-digi-dey: init-ifupdown: Allow to configure interfaces file.
The interfaces file is now dynamically created for eth0, eth1 and wlan0. By
default they are configured if enabled in the machine features, and have
the same static configuration as before.

The static IPs can be configured as follows:

ETHn_STATIC_IP = "<ip address>"
ETHn_STATIC_NETMASK = "<netmask>"
ETHn_STATIC_GATEWAY = "<gateway>"

WLAN0_STATIC_IP = "<ip address>"
WLAN0_STATIC_NETMASK = "<netmask>"

To configure dynamic IPs you can use the following configuration in your
local.conf:

ETHn_DHCP = "dhcp"
WLAN0_DHCP = "dhcp"

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2014-09-11 18:01:59 +02:00
Javier Viguera 0d42da6e12 meta-digi: cosmetic, fix typos
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-08-05 16:07:11 +02:00
Alex Gonzalez f0222aba8d kernel-module-atheros: Remove atheros wireless before suspend.
By removing the driver on ifdown and loading it on ifup we workaround some
problems found in long run suspend stability testing.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2014-08-05 09:45:12 +02:00
Javier Viguera 9e8c3630de meta-digi-dey: remove splash support
This removes the Openembedded logo and leaves the kernel splash until
the desktop is ready.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-07-29 19:36:50 +02:00
Javier Viguera b4a589e196 sysvinit: generalize using platform family
https://jira.digi.com/browse/DEL-1105

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-07-16 14:41:29 +02:00
Javier Viguera 7e5c25fc70 sysvinit: use update-rc.d to remove bootlogd symlinks
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-07-09 18:36:25 +02:00
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 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
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
Javier Viguera be2bf5df10 init-ifupdown: make sure the exit value of the script is 0
Rework the conditional expression so the overall return value of the
script is not failure, because in that case the 'ifup' command fails
with:

run-parts: /etc/network/if-up.d/ifup exited with code 1

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-04-04 10:18:20 +02:00
Javier Viguera 9b370d5a79 meta-digi: remove PRINC from recipes and use a local PR server
This cleans following warning:

  Use of PRINC is deprecated.
  The PR server should be used to automatically increment the PR.
  See: https://wiki.yoctoproject.org/wiki/PR_Service

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-03-27 18:44:35 +01:00
Alex Gonzalez 83b69de704 meta-digi-dey: Add eclipse-debug to sdk images.
This is needed in order to use eclipse as a graphical debugging IDE with
the Yocto eclipse plugin.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2014-03-14 18:24:29 +01:00
Javier Viguera 5f5d88e853 busybox: rework bootscripts
So the output of 'reboot' command does not spread over different lines.
This is basically a cosmetic change to make target's output on reboot a
bit more beautiful.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-03-14 12:50:31 +01:00
Javier Viguera 2d2013e8da meta-digi: install mtd-utils-ubifs only in machines with flash memory
The ccimx6 does not have flash memory so there is no need to install
mtd-utils.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-03-14 12:50:31 +01:00
Javier Viguera 814b145ef5 meta-digi-dey: upgrade busybox
https://jira.digi.com/browse/DEL-996

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-03-14 12:47:38 +01:00
Javier Viguera a3f3d6125f meta-digi: mount boot partitions read-only
https://jira.digi.com/browse/DEL-949

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-03-10 11:53:20 +01:00
Javier Viguera 987418e5ee meta-digi: remove not needed files
These files were needed in previous versions of Yocto to overcome
different problems. Remove them as the default ones in current Yocto
version are good enough for our platforms.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-03-06 14:25:29 +01:00
Javier Viguera 49c4bf8951 meta-digi-dey: drop ALLOW_EMPY from packagegroup recipes
This is not needed anymore after:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/classes/packagegroup.bbclass#n14

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-02-26 10:44:39 +01:00
Javier Viguera 6e3694565e busybox: remove mdev extensions
We use udev as device manager both for minimal and graphical images so
there is no need for these mdev extensions anymore.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-02-26 10:31:39 +01:00
Javier Viguera 8e8cafb227 meta-digi: dynamically resize EXT4 filesystem to the partition size
https://jira.digi.com/browse/DEL-935

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-02-24 12:33:59 +01:00
Javier Viguera 0a7b0619d0 meta-digi-dey: sync local checkroot.sh script with upstream's
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-02-24 12:33:59 +01:00
Alex Gonzalez 765bc52bda meta-digi-dey: add evtest, i2c-tools and tcpdump to dey-debug
While on it sort alphabetically.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-02-24 12:33:59 +01:00
Alex Gonzalez 461b010e10 meta-digi-dey: add gpu binaries to graphical image
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-02-24 12:33:59 +01:00
Javier Viguera 9a681704d4 meta-digi-dey: remove support for wayland
Also make DEY image recipes more robust to misconfigurations, by setting
explicitly the required and conflict distro features.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-01-16 15:41:08 +01:00
Javier Viguera 0dc6b44dee meta-digi: do not hardcode machine related utilities
nvram, ubootenv and update_flash are machine related utilities. They
need to be configured per-platform via MACHINE_EXTRA_RDEPENDS and thus
leaving packagegroup-dey-core as much platform-agnostic as possible.

This also allows to skip these utilities for platforms not using them.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-01-15 17:32:30 +01:00
Javier Viguera 57ff70da45 meta-digi: use udev for all images (minimal and graphical)
https://jira.digi.com/browse/DEL-856
https://jira.digi.com/browse/DEL-898

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-12-27 14:03:01 +01:00
Javier Viguera 7033be548c meta-digi: update busybox to version 1.21
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-12-20 17:27:48 +01:00
Javier Viguera 5bd6bae9ca meta-digi-dey: enable again pulseaudio
This comes from the old Danny release where pulseaudio in minimal image
was giving a build failure (probablye due to dependences on X libraries)

This is not true anymore in Dylan, so just remove it for easier
maintenance.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-11-29 11:43:54 +01:00
Javier Viguera 1bc9e7efae meta-digi: add video player to graphical image
Also remove 'gplay' utility from dey-image-graphical. It's a command
line application suitable to be used on minimal (non-X) images.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-11-26 16:01:48 +01:00
Javier Viguera 301bd662d6 meta-digi: move udev-extraconf to BSP layer
So the IMX udev rules can be used without meta-digi-dey layer. For
example when building core-image-minimal with poky distro.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-11-11 13:20:14 +01:00
Javier Viguera 98de9212f0 busybox: enable WATCHDOG applet
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-11-08 18:15:19 +01:00
Javier Viguera c2055a5383 meta-digi-dey: remove legacy IMAGE_BASENAME
Fix: SDK graphical images '-sdk' being created with a filename without
'-sdk' suffix.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-10-28 14:38:10 +01:00
Javier Viguera 0c6eb85b0c meta-digi-dey: add bootscript to create static device nodes
Some test applications (e.g. gpio_test) use static device nodes. This
commit adds a bootscript that creates such device nodes reading from a
config file.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-10-21 17:12:14 +02:00
Javier Viguera a137f4f190 init-ifupdown: rework whole package
Simplify the package for maintainability and fix some minor things.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-10-17 11:36:48 +02:00
Javier Viguera f21718153c packagegroup-dey-core: add mtd-utils-ubifs package
This package provides 'ubiformat' command which is needed by
'update_flash' for UBI images.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-10-15 13:25:31 +02:00
Javier Viguera 6b937bfa5a meta-digi-dey: mdev.conf: remove existing symlinks
https://jira.digi.com/browse/DEL-817

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-10-09 14:09:38 +02:00
Javier Viguera c33540030b meta-digi-dey: ccardimx28: use standard serial port for console
In ccardimx28 depending on the kernel version the console is on 'ttyAM0'
or 'ttyAMA0'. Use the standard serial port name ttyS0 for login (through
inittab) and let the device handlers create the symlink to the correct
device.

This allows to boot the same rootfs regardless of the kernel version.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-10-04 13:57:32 +02:00
Javier Viguera 82a0937ff6 meta-digi-dey: add tslib dependence only for non-X11 images
X11 graphical images do not use tslib. They use the 'evdev' X11 driver
to handle input events.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-09-24 17:21:55 +02:00
Javier Viguera e10600ea69 meta-digi-dey: rework mdev touchscreen handler
So it creates '/dev/input/touchscreen0' symbolic link for well known
touch screen devices.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-09-23 16:34:20 +02:00
Javier Viguera 8ca43c4a78 initscripts: add runtime dependency on util-linux umount
The initscripts package includes a '/etc/init.d/umountfs' script used
for reboot/poweroff purposes. That script calls the 'umount' command
but seems that the combination of busybox' umount + linux-3.x fails in
this script (it hangs without completing the reboot/poweroff).

So as a workaround use the umount command from util-linux package

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-09-17 12:17:10 +02:00
Alex Gonzalez d4df2750d4 meta-digi-dey: mdev, udev: Add serial and bluetooth devices.
https://jira.digi.com/browse/DEL-572

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-08-22 18:07:17 +02:00
Alex Gonzalez cfd04a953b meta-digi-dey: Add acpid support for power key suspend/poweroff.
The acpid applet will run at startup and will listen for power input
events.

On arrival, it will timestamp the press event, wait for the release event
and decide whether to suspend or poweroff based on the time elapsed.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-08-13 13:50:04 +02:00
Javier Viguera 84a66ee287 meta-digi-dey: simplify packagegroup recipes
The MACHINE_ESSENTIAL_EXTRA_* vars need to be only in the
'packagegroup-dey-core' recipe not in the rest of the packagegroups.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-08-09 16:31:28 +02:00
Javier Viguera e5ef733383 packagegroup-dey-core: add MACHINE_EXTRA_RRECOMMENDS
This is needed so the kernel modules configured in the kernel defconfig
get added to the rootfs image.

At the same time there is no need to add the usb gadget modules
separately because they are added in the machine extra recommends as
well.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-08-09 16:31:27 +02:00
Javier Viguera 1aa3e88855 netbase, init-ifupdown: rename bbappend
The 'netbase' package in poky's meta layer was splitted in netbase +
init-ifupdown.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-08-02 14:44:16 +02:00
Javier Viguera f47915f45a meta-digi: remove udev-173 bbappend
That version of udev was removed from 'meta-oe' and thus bitbake fails
to parse the recipes.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-08-02 14:43:46 +02:00
Javier Viguera 91291212b9 meta-digi-dey: clean bitbake warnings
QA Issue: Variable ALLOW_EMPTY is set as not being package specific
QA Issue: Variable RPROVIDES is set as not being package specific

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-08-02 14:42:16 +02:00
Alex Gonzalez f5aa5e1a74 meta-digi-dey: Define different USB gadgets for 3.10 kernel.
The g-file-storage kernel has been replaced by the g-mass-storage.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-07-30 10:43:55 +02:00
Alex Gonzalez 038f782d33 meta-digi-del: Add ttyAMA0 to mdev.
This is the serial name in the 3.x kernels for the ccardimx28js.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-07-30 10:43:55 +02:00
Javier Viguera a4c6472815 meta-digi-dey: allow to mount the rootfs with 'noatime'
Remount the rootfs with 'noatime' option to minimize writes (avoiding
wearing-out the flash).

This also improves slightly the system performance.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-07-04 11:48:24 +02:00
Javier Viguera 7a2cd37ad3 udev-extraconf: fix automount of block devices
Some block devices are incorrectly mounted by udev. Instead of mounting
the partition device it mounts the disk device. This commit enhances the
automount udev rule and mount script so it only applies to partitions.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
Reviewed-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-06-20 11:09:01 +02:00
Javier Viguera f92a7ad84a busybox: enable FEATURE_STAT_FORMAT
Allows to use '-c' parameter to 'stat' command.

This is needed in udev's automount script (next commit).

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
Reviewed-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-06-20 11:07:49 +02:00
Alex Gonzalez 698df28ed6 meta-digi-dey: Fix ifup script for manual configuration.
The system freezes if we try to set the MAC addresses before the interface
is up, so check the state before doing it.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-06-18 17:02:10 +02:00
Alex Gonzalez 8988542df3 meta-digi: Rename from DEL to DEY.
The final product will be called "Digi Embedded for Yocto" or DEY for
short.

This commit renames all relevant files.

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

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