Commit Graph

50 Commits

Author SHA1 Message Date
David Escalona 5a2b538bcd bluetooth-init: force hardware-init script to be executed first
- The Bluetooth daemon was always executed before setting up the
  hardware, generating several problems specifically in the CCIMX6SBC.
  This was causing the Bluetooth driver to override the Bluetooth name
  and alias, as well as avoiding any host function on Bluetooth profiles.
  Only pairing and ping was working, as well as client profile sides.
- This change also fixes some issues in the CCIMX6UL platforms with the
  Bluetooth daemon failing to perform several bluetoothctl operations.

https://jira.digi.com/browse/DEL-4000
https://jira.digi.com/browse/DEL-4015

Signed-off-by: David Escalona <david.escalona@digi.com>
2017-03-30 18:02:13 +02:00
Tatiana Leon b0171be93a busybox: disable '-n' udhcpc option from ifupdown
udhcpc's '-n' option means 'Exit if lease is not obtained'.

We want to keep udhcp client alive if lease is not obtained, so when it is
possible, an IP is assigned.

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

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-03-20 14:47:21 +01:00
Javier Viguera 3877b2a59f suspend: bring bluetooth interface down and up on suspend
https://jira.digi.com/browse/DEL-3858

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-03-15 19:01:06 +01:00
Gabriel Valcazar 42ac6ea6c2 busybox: remove libdigi dependency
The flash_eraseall busybox utility is not used in the ccimx6 and ccimx6ul
platforms. Its corresponding patch (and the library it depends on) can be
removed from the busybox recipe.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2017-03-07 17:32:34 +01:00
Javier Viguera 04cc6d470a morty migration: busybox: update package
https://jira.digi.com/browse/DEL-3451

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-02-28 11:46:56 +01:00
Mike Engel 0236c3dfb4 meta-digi-dey: suspend: add critical section
Add critical section in suspend script to avoid that more than
one instance can be executed concurrently. This happens, for
instance, when the power button key is pressed while the system
is resuming, causing issues on the wifi interface.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>

https://jira.digi.com/browse/DEL-3694
2017-02-15 16:36:28 +01:00
Pedro Perez de Heredia b869ecde82 meta-digi-dey: suspend: remove unnecesary delay
Signed-off-by: Pedro Perez de Heredia <pedro.perez@digi.com>
2017-02-01 16:11:12 +01:00
Pedro Perez de Heredia e0c4aa21fa meta-digi-dey: suspend: add critical section
Add critical section in suspend script to avoid that more than
one instance can be executed concurrently. This happens, for
instance, when the power button key is pressed while the system
is resumming, causing issues on the wifi interface.

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

Signed-off-by: Pedro Perez de Heredia <pedro.perez@digi.com>
2017-02-01 16:11:12 +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 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
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
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
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
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
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
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 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
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 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 7469df6e2e busybox: enable rtcwake applet
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-01-09 15:28:05 +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
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 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
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
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 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 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 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 98de9212f0 busybox: enable WATCHDOG applet
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-11-08 18:15:19 +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 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 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
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
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 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 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