Commit Graph

2108 Commits

Author SHA1 Message Date
Jose Diaz de Grenu 608b001036 imx6ul: ubifs: increase max leb count for linux
The current value only allows partitions of up to 8 MiB, which is not
enough for the 0x04 variant (which uses a linux partition of 24 MiB by
default).

This new value allows for up to 32 MiB (assuming 128 KiB erase block size).

Also add comments explaining the -c value and maximum partition sizes
supported.

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

Signed-off-by: Jose Diaz de Grenu <Jose.DiazdeGrenu@digi.com>
2017-08-29 18:11:50 +02:00
Mike Engel d7889c28db DIGI_EULA: Update Digi EULA file.
Signed-off-by: Mike Engel <Mike.Engel@digi.com>

https://jira.digi.com/browse/DEL-4859
(cherry picked from commit 86000bb0bb)
2017-08-29 12:23:22 +02:00
Mike Engel 86000bb0bb DIGI_EULA: Update Digi EULA file.
Signed-off-by: Mike Engel <Mike.Engel@digi.com>

https://jira.digi.com/browse/DEL-4859
2017-08-28 13:56:38 +02:00
Javier Viguera 4c5a7fd3f8 packagegroup-dey-qt: rework default installed packages
This only affects the CC6UL, where by default now 'qtsmarthome' is
installed instead of 'qtbase-examples'.

This serves two purposes:

* Remove the 'qtbase-examples' package from the CC6UL to save space.
* Use 'qtsmarthome' as a demo of a QML application running on the CC6UL
  using Qt Quick 2D Renderer.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-08-10 11:33:46 +02:00
Javier Viguera 64010754d0 qtsmarthome: move desktop launcher from qt5-demo-extrafiles recipe
Instead of having a recipe to add launchers for a bunch of applications
(most of them are not available anymore) move the qtsmarthome launcher
to the recipe that installs the package.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-08-10 11:32:44 +02:00
Javier Viguera 48ff14dc78 qtsmarthome: fix missing runtime dependence
The demo application uses 'svg' images, so at runtime it depends on
'qtsvg-plugins' package.

Also add a patch to fix a runtime warning:

  Both point size and pixel size set. Using pixel size

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-08-10 11:32:11 +02:00
Javier Viguera e623c365ff qt: add support for Qt Quick 2D Renderer in the CC6UL
This is an alternative software based renderer for QtQuick2
applications for hardware that doesn't have a GPU.

This is the case of the CC6UL. It does not have a GPU, so the only way
to run QML applications is using this software renderer.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-08-09 18:31:12 +02:00
Hector Palacios bbe7743255 mca_tool: update checksums for build 1.10
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2017-08-08 13:06:50 +02:00
Arturo Buzarra 9c5774ed62 bridgeifupdown: fix script to create a bridge with a wireless interface
The supplicant support for a bridge was not being managed,
then the bridge was failing when the softap was configured
with an encryption. With this change we launch a supplicant
instance with the bridge support after checking that the
/etc/network/interfaces contains the required parameters.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2017-08-07 12:13:44 +02:00
Javier Viguera 06d353c410 meta-digi-arm: clean not used variables and machine features
After the 'ccardimx28js' platform removal, these variables and machine
features are not used anymore, so remove them.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-08-04 17:38:30 +02:00
Javier Viguera bb72455cd8 ccardimx28js removal: remove platform reference from bluez4 bootscript
https://jira.digi.com/browse/DEL-4771

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-08-04 17:38:30 +02:00
Javier Viguera be58e0c849 ccardimx28js removal: simplify dey-examples
https://jira.digi.com/browse/DEL-4771

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-08-04 17:38:30 +02:00
Javier Viguera 58480d6dff ccardimx28js removal: simplify alsa-state recipe
https://jira.digi.com/browse/DEL-4771

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-08-04 17:38:30 +02:00
Javier Viguera 8eb567e8ed ccardimx28js removal: simplify firmware-atheros recipe
https://jira.digi.com/browse/DEL-4771

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-08-04 17:38:30 +02:00
Javier Viguera 6a2699967c ccardimx28js removal: delete recipes not used by other platforms
https://jira.digi.com/browse/DEL-4771

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-08-04 17:38:30 +02:00
Javier Viguera d2df029153 ccardimx28js removal: clean image_type class
Actually remove the code to generate SD card images.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-08-04 17:38:30 +02:00
Javier Viguera 6b78236f42 ccardimx28js removal: delete machine and configuration files
https://jira.digi.com/browse/DEL-4771

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-08-04 17:38:30 +02:00
Isaac Hermida 4bc9e7cbd5 bluez5: port test-discovery and bluezutils.py to work with python3
https://jira.digi.com/browse/DEL-4039

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2017-08-04 10:47:17 +02:00
Javier Viguera 02547c6530 packagegroup-dey-qt: add fonts package
In the past QT package did include some fonts, but not anymore. New
versions of QT do rely on an external font package being installed in
the rootfs.

Without fonts the QT applications just show up in the screen but
obviously with no text at all.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-08-03 18:54:48 +02:00
Javier Viguera c62d5e1e42 qtbase: optimize libraries for size on CC6UL
This patch makes smaller libQt libraries saving some space in the CC6UL
rootfs.

Libraries size before the patch:

root@ccimx6ulsbc:~# ls -l /usr/lib/libQt*5.7.1
     22448 Aug  /usr/lib/libQt5Concurrent.so.5.7.1
   5347036 Aug  /usr/lib/libQt5Core.so.5.7.1
    508464 Aug  /usr/lib/libQt5DBus.so.5.7.1
   4419712 Aug  /usr/lib/libQt5Gui.so.5.7.1
   1367776 Aug  /usr/lib/libQt5Network.so.5.7.1
    275900 Aug  /usr/lib/libQt5OpenGL.so.5.7.1
    341688 Aug  /usr/lib/libQt5PrintSupport.so.5.7.1
     88628 Aug  /usr/lib/libQt5SerialPort.so.5.7.1
    290960 Aug  /usr/lib/libQt5Sql.so.5.7.1
    212432 Aug  /usr/lib/libQt5Test.so.5.7.1
   5306588 Aug  /usr/lib/libQt5Widgets.so.5.7.1
    894928 Aug  /usr/lib/libQt5XcbQpa.so.5.7.1
    191404 Aug  /usr/lib/libQt5Xml.so.5.7.1

Libraries size after the patch:

root@ccimx6ulsbc:~# ls -l /usr/lib/libQt*5.7.1
     18352 Aug  /usr/lib/libQt5Concurrent.so.5.7.1
   4032380 Aug  /usr/lib/libQt5Core.so.5.7.1
    303684 Aug  /usr/lib/libQt5DBus.so.5.7.1
   2867436 Aug  /usr/lib/libQt5Gui.so.5.7.1
    839428 Aug  /usr/lib/libQt5Network.so.5.7.1
    239044 Aug  /usr/lib/libQt5OpenGL.so.5.7.1
    267976 Aug  /usr/lib/libQt5PrintSupport.so.5.7.1
     59960 Aug  /usr/lib/libQt5SerialPort.so.5.7.1
    172192 Aug  /usr/lib/libQt5Sql.so.5.7.1
    171500 Aug  /usr/lib/libQt5Test.so.5.7.1
   4282740 Aug  /usr/lib/libQt5Widgets.so.5.7.1
    616420 Aug  /usr/lib/libQt5XcbQpa.so.5.7.1
    154556 Aug  /usr/lib/libQt5Xml.so.5.7.1

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-08-03 18:54:48 +02:00
Javier Viguera fe39b6675c Merge tag 'dey-2.2-r2.2' into dey-2.2/master
Tweaked to maintain some recipes' revisions to AUTOREV instead of the
fixed SHA1s from the tag.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-08-01 17:30:04 +02:00
Javier Viguera dd21bd7870 meta-digi: revert revisions to AUTOREV
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-27 18:11:45 +02:00
Javier Viguera 2c4c4dff4a meta-digi: update revisions for dey-2.2-r2.2
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-27 18:10:28 +02:00
Javier Viguera 258c7097a8 README.md: fix links to online documentation
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-27 17:49:40 +02:00
Javier Viguera b421fb7995 qualcomm: generalize log function to pass the log level
We need to pass different log levels depending on the message, so they
appear in the console, so generalize the 'log' function.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-27 14:05:29 +02:00
Jose Diaz de Grenu 071339a1d4 networkmanager: disable MAC spoofing for scanning
https://jira.digi.com/browse/DEL-4681

Signed-off-by: Jose Diaz de Grenu <Jose.DiazdeGrenu@digi.com>
2017-07-27 13:33:45 +02:00
Javier Viguera f8972e610d README.md: fix markdown not correctly rendered in GitHub
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-27 12:14:59 +02:00
Javier Viguera 2a7bc3717e busybox: disable 'init' for IPK package type support
Busybox's init enabled at build time collide with 'sysvinit' package.
This does not seem a problem when using RPM package manager, but using
IPK instead, the build is broken at image creation time:

Collected errors:
 * check_data_file_clashes: Package sysvinit wants to install file <...>/rcS
        But that file is already provided by package  * busybox

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-27 12:01:42 +02:00
Javier Viguera f83b5fcbe7 busybox: refresh defconfig file for version 1.24
No applet has been enabled or disabled, just the defconfig file has been
refreshed for the current busybox version 1.24.x

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-27 12:01:42 +02:00
Alex Gonzalez 309d7d5b99 README: Update dey-2.2-r2 changelog
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-07-27 10:37:32 +02:00
Javier Viguera f3c5920667 ppp: remove specific DNS scripts
NetworkManager manages the 'resolv.conf' file globally, so there is no
need for pppd specific scripts for DNS.

These scripts race with NM to set DNS, leading sometimes to a scenario
where you have ethernet as the default gateway, but with DNS only
reachable via cellular.

While on it, also remove not used 'mm_cellular' configuration file.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-26 13:32:54 +02:00
Javier Viguera 7ae81a4cdb modemmanager: allow to identify Digi XBee Cellular modems
Adding ID_MM_PHYSDEV_UID to the udev rule that manages the XBee Cellular
modems, allows to identify them when using ModemManager CLI.

Before:

~# mmcli -m 0

  -------------------------
  System   |         device: '/sys/devices/platform/soc/2100000.aips-bus/21e8000.serial'
           |        drivers: 'imx-uart'
           |         plugin: 'Telit'
           |   primary port: 'ttymxc1'
           |          ports: 'ttymxc1 (at)'
  -------------------------

After:

~# mmcli -m 0

  -------------------------
  System   |         device: 'Digi XBee Cellular'
           |        drivers: 'imx-uart'
           |         plugin: 'Telit'
           |   primary port: 'ttymxc1'
           |          ports: 'ttymxc1 (at)'
  -------------------------

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-26 12:42:55 +02:00
Javier Viguera 087f147b5d networkmanager: fix detection of slow initialization modems
Some modems (e.g. the XBee Cellular LTE Cat 1) have a long initilization
process and are not available when ModemManager tries to detect them
on boot.

For those modems schedule a rescan a bit later after NetworkManager has
been launched, so they are detected properly.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-26 11:09:28 +02:00
Javier Viguera ae6aa1ee25 meta-digi-dey: cosmetic, add missing newlines at end of file
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-25 18:25:34 +02:00
Jose Diaz de Grenu e7a7138439 networkmanager: check the PPP connection
These values configure the PPP daemon to check that the connection is
still alive (using an echo) and kill itself otherwise. On that event,
NetworkManager takes over and tries to restore the connection.

This is specially useful for modems with only one serial port, because
they are not able to signal the connectivity loss to the host (the only
data channel is used for the network data itself).

https://jira.digi.com/browse/DEL-4653
https://jira.digi.com/browse/DEL-4650

Signed-off-by: Jose Diaz de Grenu <Jose.DiazdeGrenu@digi.com>
2017-07-25 18:01:48 +02:00
Javier Viguera 4db64ea56d networkmanager: update package to version 1.8.2
Use the 1.8.x stable series, as it has some desired functionality (e.g.
connectivity check) and bug fixes over the default version included in
Yocto.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-25 11:28:54 +02:00
Jose Diaz de Grenu 1224d94de7 cryptoauthlib: change repository name
The name of the repository in Github is fixed, because it is a fork from
the original repository.

Signed-off-by: Jose Diaz de Grenu <Jose.DiazdeGrenu@digi.com>
2017-07-25 11:17:30 +02:00
Mike Engel e27257c53f meta-digi: Include package required for QT creator target debugging.
This commit includes the Python3-Json package that is required now
by QT creator python scripts when debugging an application with GDB
on the target.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2017-07-24 18:05:08 +02:00
Isaac Hermida 2faf4ae7f4 networkmanager: do not manage any p2p interface
For P2P interfaces, some drivers (CC6UL) create auxiliar interfaces based
on the parent one, like p2p-p2p0-0.
This commit adds a p2p* pattern to the list of unmanaged devices so that
NetworkManager doesn't try to manage P2P devices.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2017-07-21 15:43:11 +02:00
Isaac Hermida 28867d77b9 hostapd: remove 802.11d section
After January 01, 2015, the FCC does not allow the use of 802.11d in US.

https://www.ecfr.gov/cgi-bin/text-idx?SID=63ad9e61e7cc924b3199396521a61158&mc=true&tpl=/ecfrbrowse/Title47/47tab_02.tpl
https://apps.fcc.gov/kdb/GetAttachment.html?id=5NjjaXsjV97%2BhlMWvZ1QRw%3D%3D

https://jira.digi.com/browse/DEL-4291
https://jira.digi.com/browse/DEL-4630

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2017-07-20 11:58:31 +02:00
Isaac Hermida 6e2aafd952 networkmanager: adjust compilation options
Adjust the compilation time options to save space.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2017-07-20 08:52:55 +02:00
Sebastian Pastor c5b39acce0 mca_tool: update checksums for build 1.9
Signed-off-by: Sebastian Pastor <sebastian.pastor@digi.com>
2017-07-19 20:20:00 +02:00
Javier Viguera 1ac992bf52 dey: remove some default distro features
The removed distro features are mostly corner cases, not widely used,
and sometimes conflict with other packages serving the same purposes.

For example:

  * '3g' only adds ofono for cellular support, while we are
    using ModemManager.
  * 'nfc' adds 'neard' the NFC daemon (which at the moment we don't
    support)
  * 'zeroconf' adds 'avahi' package, but we are using NetworkManager
    instead to manage the network interfaces.
  * 'nfs' adds 'rpcbind' server, which is not needed at all to have
    an NFS mounted rootfs.

Needless to say that all those packages can be added to any image
without having the distro features enabled, or if preferred, you can add
the distro features back in the project's local.conf.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-19 19:20:58 +02:00
Javier Viguera 9903deaef8 core-image-base: do not install udev-cache
As we are using kernel's DEVTMPFS, using udev-cache on top of it does
not add much advantage. Disabling it has the extra advantage of avoiding
writing the udev-cache tarball under '/etc' (which probably won't work
on a read-only system).

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-19 19:20:58 +02:00
Arturo Buzarra 6f0b8a7356 kernel-module-qualcomm: reduce console log level to load wireless module
At the point this script is running from udev (the system log is not yet
available), so to avoid debug messages from qualcomm wireless module
reduce the console log level.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2017-07-19 17:06:16 +02:00
Sebastian Pastor 13dae1c00a mca_tool: update checksums for build 1.8
Signed-off-by: Sebastian Pastor <sebastian.pastor@digi.com>
2017-07-17 23:24:50 +02:00
Javier Viguera 4b7cf7cd2b hostapd: cosmetic, fix overlapped messages on stop
When bringing down the wireless interface used for hostapd, the messages
overlap:

# ifdown wlan1
Stopping HOSTAP Daemon: stopped /usr/sbin/hostapd (pid 569)
hostapd.

Adding the 'quiet' option to start-stop-daemon command fixes the
cosmetic issue.

# ifdown wlan1
Stopping HOSTAP Daemon: hostapd.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-14 18:09:02 +02:00
Diaz de Grenu, Jose d7cd1c0204 ccimx6ul: ubifs: increase max leb count for rootfs
This is required to be able to use the whole RootFS partition which is
512 MiB in the 0x04 CC6UL SOM variant.

The old value only allowed to manage partitions of up to 256 MiB, this new
value allows for up to 1 GiB (assuming 128 KiB erase block size).

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

Signed-off-by: Jose Diaz de Grenu <Jose.DiazdeGrenu@digi.com>
2017-07-12 17:37:00 +02:00
Javier Viguera 03dcd12f83 build.sh: build 'dey-image-aws' by default for CC6/CC6UL
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-11 19:46:33 +02:00
Javier Viguera d7a9f1a6ee build.sh: fix parsing of platform data
As the platform data is only separated by spaces, the data is assigned
to the incorrect variable:

ccardimx28js variants: -
ccardimx28js targets: e w wb web web1 dey-image-qt

After this commit:

ccardimx28js variants: - e w wb web web1
ccardimx28js targets: dey-image-qt

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-11 19:41:02 +02:00