Commit Graph

3808 Commits

Author SHA1 Message Date
Tatiana Leon 13f2924399 ccmp15: crank: remove some features from crank image to reduce its size
Generated Crank rootfs image for the ConnectCore MP15 is too big to fit in a
dual boot system. This commit removes gstreamer and package-management features.

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2022-11-11 10:08:34 +01:00
Tatiana Leon e951c89073 meta-digi-dey: crank: update to Crank engine 7.2 and demo
This commit updates:

   * Crank engine version to the latest one (7.2)
   * Crank demo to the provided one instead of the Thermostat example.
     New demo is a launcher that includes 3 applications:
        * Electrical vehicle charger demo
        * Robot arm demo
        * Medical demo

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2022-11-11 10:05:43 +01:00
Gonzalo Ruiz b1ee0307cc u-boot-dey: ccmp1: update install scripts for CCMP1 platform
Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2022-11-11 09:39:28 +01:00
Gonzalo Ruiz 44a05a819e u-boot-dey: fix install scripts for dual boot
The first time the 'dualboot' variable is tested it is directly run in
the script and doesn't need to escape the special characters.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2022-11-10 14:09:25 +01:00
Gonzalo Ruiz 0e221d2ce3 u-boot-dey: ccmp1/cc6ul: ensure 'rootfsvol' value in every case
When Dual Boot is not enabled, 'rootfsvol' variable must point to the
single boot system rootfs partition 'rootfs'.

Explicitly set this value. Otherwise the script relays on the default
rootfsvol value, which may be a Dual Boot partition.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2022-11-10 11:19:52 +01:00
Arturo Buzarra 49dbae051e dey-image-installer: fix recipe to add USB driver installation script
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-11-10 10:57:16 +01:00
Arturo Buzarra feab76d675 dey-image-installer: fix ZIP installer generation for ccmp1 platforms
The ccmp1 build generates ubifs images for the NAND on the device and vfat and
ext4 images for the SD card. This commit reuses the already implemented
mechanism to match only ubifs images for the ccmp1 platforms.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-11-10 10:57:16 +01:00
Arturo Buzarra ea4277e2c9 ccmp1: move common CCMP1 headers to common configuration file
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-11-10 10:57:16 +01:00
Hector Palacios 373931f36e ccmp13/ccmp15: rename MikroE device tree overlays
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2022-11-09 09:50:08 +01:00
Francisco Gil 19bf22059f ccmp15: dey-examples: update the configuration file for ccmp15
https://onedigi.atlassian.net/browse/DEL-8151

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2022-11-09 08:13:51 +01:00
Javier Viguera df572d0ef3 meta-digi: delete linux 5.4 recipe
No supported platform is using kernel version 5.4.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-11-08 14:20:51 +01:00
Javier Viguera e5acc6f84a firmware-imx: make bbappend version agnostic
meta-freescale updated the base recipe and that broke the build:

ERROR: No recipes in default available for:
  meta-digi-arm/dynamic-layers/freescale-layer/recipes-bsp/firmware-imx/firmware-imx_8.16.bbappend

The differences in our bbappend are simple enough that we can make a
version agnostic bbappend.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-11-08 14:07:43 +01:00
Tatiana Leon 9b1008c7fd libdigiapix: ccimx6ulsbc: update user button GPIO
Cloud Connector opens USER_BUTTON GPIO as an interrupt to listen for rising and
falling edge events and upload them to Remote Manager as data point values.
Having MCA_IO1 as user button and opened by the Cloud Connector (or any other
software) prevents the device to go to sleep when it is not connected (all
MCA GPIOs are wake-up sources when configured as interrupt)

https://onedigi.atlassian.net/browse/DEL-8155

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2022-11-07 18:43:44 +01:00
Gonzalo Ruiz 76a8f5e2df meta-digi-arm: ccmp1: add uuu script to installer
Set 'UBOOT_HAS_FASTBOOT=true' on CCMP1 platforms and therefore add the
UUU installation script to the installer ZIP file.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2022-11-07 14:41:35 +01:00
Gonzalo Ruiz 901c747730 meta-digi-arm: ccmp1: set dey-image-installer bootable-artifacts
For platforms with a FIP artifact, ignore U-Boot artifacts and instead
add to the installer zip file the FIP artifact and the ATF artifacts.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2022-11-07 14:41:27 +01:00
Isaac Hermida c7f2960b4e meta-digi: revert revisions to AUTOREV
Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2022-11-04 12:38:21 +01:00
Isaac Hermida dad34f1006 meta-digi: update revisions for dey-4.0-r1.1
Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2022-11-03 18:21:46 +01:00
Javier Viguera 3a147dc6cd trustfence-cst: update openssl to version 1.1.1s
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-11-03 10:34:55 +01:00
Arturo Buzarra 0001e6608d modemmanager: fix blacklist rules for Ethernet interfaces on ccmp13 platform
This commit fixes the Ethernet entries to prevent ModemManager from trying to
manage it:
    ModemManager[177]: <info>  [base-manager] couldn't check support for device
     '/sys/devices/platform/soc/5800a000.eth1': not supported by any plugin

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-10-31 07:52:09 +01:00
Arturo Buzarra 0eb0f15e7b pulseaudio: add support to pulseaudio-server initscript for sysvinit system
This commit fixes the pulseaudio recipe to launch the pulseaudio-server
service at boot time for sysvinit systems.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-10-31 07:51:22 +01:00
Arturo Buzarra 3b99bf3821 pulseaudio: define runtime user-specific directory XDG_RUNTIME_DIR
This commit exports the environment variable XDG_RUNTIME_DIR if does not exists
for services that require sharing a pulseaudio instance.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-10-31 07:50:33 +01:00
Francisco Gil 9cd5ae591d usb_driver: add a script to install Cypress usb driver
The new DVKs of the cc8mn, cc8mm and ccmp1 have a new ftdi
usb to serial chip that is recognized as a thermal device by default.

With the install_usb_driver.sh script this driver is replaced
to a USB to serial driver.

This script is included for the needed platforms in the zip
installer provided in the getting started.

https://onedigi.atlassian.net/browse/DEL-8126

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2022-10-26 11:30:46 +02:00
Francisco Gil 8c1b0f8f9e dualboot: get rid of configuration file for dualboot
Now the cloud connector has all the logic to detect if its
running in a dual_boot system, so it is not needed this anymore.

We need to modify on the fly the path to save the image in a
dualboot system.

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2022-10-26 11:29:23 +02:00
Francisco Gil 378135b9c6 dualboot: rename firmware-update-dual.sh to update-firmware
Use the same name for both firmware update mechanism.

Add a dependency to only add recovery-utils used by the
non dual-boot firmware update system.

Adding this only one binary/script called update-firmware will
be added.

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2022-10-26 11:29:23 +02:00
Hector Palacios 1105a8fecd dualboot: move contents of meta-digi-dualboot layer into meta-digi as a class
- create dualboot.bbclass that
  - sets DUALBOOT_ENABLED variable
  - defines partition names and function for changing the sw-description
    for swupdate
- move files from layer into meta-digi

https://onedigi.atlassian.net/browse/DEL-7962

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

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2022-10-26 11:29:23 +02:00
David Escalona 1ec5cc172c meta-digi-dey: crank-demos: fix crank demo for CCMP15
Crank demo was not working on CCMP15 devices due to several changes on weston
service and the user launching it. This commit makes several fixes to make
the demo to work again:

- Add 'DEMO_USER' parameter to determine which user will launch the demo. Update
  recipe and start script accordingly.
- Add 'DEMO_DISPLAY' parameter to determine the display that will be used to
  launch the demo. Update recipe and start script accordingly.
- Parameterize the name of the Weston service after which the demo must be started.
  Update recipe and service file accordingly.
- Give Crank engine read and execution permissions so the engine can be started
  by any user.
- Add new method to the demo start script to wait until Wayland is fully setup
  before actually starting the demo.

Signed-off-by: David Escalona <david.escalona@digi.com>
2022-10-25 18:09:27 +02:00
David Escalona 64cea0e066 meta-digi-dey: dey-examples: add required packages to 'connectcore-demo'
The new ConnectCore demo functionality makes use of some new Python libraries. Add these libraries
as a dependency in the demo recipe.

Signed-off-by: David Escalona <david.escalona@digi.com>
2022-10-25 18:09:27 +02:00
Hector Palacios e346958131 ccmp1: remove usage of $singlemtdsys variable
On the CCMP1 SOMs, we only consider a single system partition called UBI,
with many UBI volumes.
The variable 'singlemtdsys' allowed to change between this and
a system with multiple MTD partitions with one UBI volume each
(old approach on CC6UL).
This commit removes the variable and uses the logic as if it was set.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2022-10-25 16:57:02 +02:00
Arturo Buzarra 30022f556b run-postinsts: Set dependency for ldconfig to avoid boot issues
If a package with a postsints script requires ldconfig, the package class adds
a ldconfig postinst fragment to initialize it before. Systemd has its own
ldconfig.service to initialize it and sometimes if both services are running
at the same time in the first boot, the first one will work, but the second
one will fail with the following error:

    ldconfig[141]: /sbin/ldconfig: Renaming of /etc/ld.so.cache~ to /etc/ld.so.cache failed: No such file or directory

This commit adds an ordering dependency between them to make sure that only one
service is running at the same time

https://onedigi.atlassian.net/browse/DEL-8133

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-10-21 17:48:20 +02:00
Gonzalo Ruiz 4a97851d4e firmware-murata: update 2AE NVRAM file
Use the latest 2AE NVRAM file from the master branch. This file improves
the EVM performance for the 2AE murata module.

MD5SUM:
- cyfmac4373-sdio.2AE.txt: 6301804650847946c79797387eda9c7a

https://onedigi.atlassian.net/browse/DEL-7936

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2022-10-20 16:06:09 +02:00
Arturo Buzarra af034aa971 u-boot-dey: ccmp1: add dualboot support to boot script
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-10-20 11:42:25 +02:00
Arturo Buzarra 3e0d713837 sysinfo: improve script to avoid errors on platforms without some variables
This commit improves the sysinfo script to skip error on platforms that don't
provide some variables.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-10-20 09:32:35 +02:00
Arturo Buzarra d4544a7f43 libubootenv: adapt recipe to platforms with bootloader environment in UBI volume
This commit adds support to read bootloader environment from a UBI volume.

https://onedigi.atlassian.net/browse/DEL-8133

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-10-20 09:32:24 +02:00
Javier Viguera 05d25ab36d build.sh: add core-image-base for ccimx6ulsbc
In the CC6UL this is the only image that has the connectcore demo
included, so add it to the daily build.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-10-19 14:00:29 +02:00
Javier Viguera f56d4db107 build.sh: code review, no functional change
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-10-19 14:00:20 +02:00
Javier Viguera 021e80d1e1 build.sh: remove support for building variants
This is dead code used in the past for the ccardimx28. It is not used in
any other platform, so just remove it.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-10-19 13:58:13 +02:00
Javier Viguera cd9e12da32 meta-digi-dey: on CC6UL add connectcore demo only for core-image-base
If we add the demo to the graphical images (dey-image-qt) the resulting
image does not fit on the rootfs partition for the smallest variant.

https://onedigi.atlassian.net/browse/DEL-8004

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-10-18 11:30:26 +02:00
Gonzalo Ruiz 2395378ec4 optee-os-stm32mp: enable OTP program support
Add extra configuration 'CFG_STM32_BSEC_WRITE=y' to the make line to
enable OTP write support.

https://onedigi.atlassian.net/browse/DEL-8074

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2022-10-17 09:36:11 +02:00
Javier Viguera 46150cf07e linux-dey: use branch v5.15.52/nxp/master
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-10-13 18:16:07 +02:00
Tatiana Leon 23fe285d62 meta-digi-dey: libdigiapix: add 'bluez5' dependency required by new features
https://onedigi.atlassian.net/browse/DEL-8065
https://onedigi.atlassian.net/browse/DEL-7964

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2022-10-13 15:07:35 +02:00
Arturo Buzarra 3dbc5d72a3 ccmp15-dvk: add CAN1 overlay
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-10-11 16:48:57 +02:00
Hector Palacios 822432e87c ccmp15-dvk: rename Fusion 10" overlay to 'lvds'
This filename was wrongly named 'parallel' when it is actually
an LVDS interface.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2022-10-11 13:35:29 +02:00
Arturo Buzarra 269b148c60 libdigiapix: ccmp15: fix user LED for DVK v2
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-10-10 14:40:39 +02:00
Arturo Buzarra b3d46473df ccmp1: add support to DT overlays for ccmp1 platforms
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-10-10 09:44:14 +02:00
David Escalona b0db58fe53 meta-digi-dey: cloudconnector: add 'json-c' dependency required by new features
Signed-off-by: David Escalona <david.escalona@digi.com>
2022-10-07 16:49:12 +02:00
David Escalona 44a3c1a123 meta-digi-dey: dey-examples: start pulseaudio with 'connectcore-demo' example
The demo now has a "Play music" feature, which requires pulseaudio to be running in the device.
This commit checks if pulseaudio is running before starting the demo, and starts the service in
the case it is not.

Signed-off-by: David Escalona <david.escalona@digi.com>
2022-10-07 16:49:12 +02:00
Arturo Buzarra 443b5dbc1d pulseaudio: add support to ccmp1 platforms
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-10-05 13:05:21 +02:00
Arturo Buzarra 6efe239a23 packagegroup-dey-audio: add pulseaudio packages for non-graphical images
These packages were added only for graphical images, however it could be used
also in non-graphical environments. This commit removes this restriction.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-10-05 09:17:56 +02:00
Arturo Buzarra 9db258786e dey-examples: connectcore-demo: add mpg123 dependency
The latest ConnectCore demo updates introduced support for audio controls that
use the mpg123 library to manage audio on the device. This commit adds a
runtime dependency for that package.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-10-05 09:05:34 +02:00
Isaac Hermida 877e501076 meta-digi: revert revisions to AUTOREV
Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2022-10-04 17:03:57 +02:00