Commit Graph

3881 Commits

Author SHA1 Message Date
Javier Viguera faef4f90d9 linux-dey: rename branch for NXP supported platforms
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-02-22 10:19:49 +01:00
Mike Engel d3b7fca933 busybox: add power safe and reboot safe scripts for the MCA
This commit adds power safe and reboot safe script for the MCA
and substitute default reboot and poweroff busybox commands.

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

https://onedigi.atlassian.net/browse/DEL-7828
2022-02-18 18:17:07 +01:00
Isaac Hermida c29c47e3a0 modemmanager: add udev rules for ConnectCard 8M Plus
https://onedigi.atlassian.net/browse/DEL-7784

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-02-08 12:29:57 +01:00
Isaac Hermida f86b3629a8 libdigiapix: add config file for ConnectCore 8M Plus
https://onedigi.atlassian.net/browse/DEL-7784

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-02-03 12:00:26 +01:00
Javier Viguera 9cf07d25aa imx-boot: add SOC target for ConnectCore 8M Plus
https://onedigi.atlassian.net/browse/DEL-7784

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-02-03 12:00:26 +01:00
Isaac Hermida 3166345250 u-boot: add boot script for ConnectCore 8M Plus
https://onedigi.atlassian.net/browse/DEL-7784

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-02-03 12:00:26 +01:00
Javier Viguera 682fc8c169 u-boot: add recipe for v2021.04 (at the moment only for ccimx8mp)
https://onedigi.atlassian.net/browse/DEL-7784

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-02-03 12:00:26 +01:00
Javier Viguera 946c2fe6cf linux-dey: add recipe for kernel 5.10 (at the moment only for ccimx8mp)
https://onedigi.atlassian.net/browse/DEL-7784

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-02-03 12:00:26 +01:00
Isaac Hermida 148b1b443b meta-digi-arm: add support for ConnectCore 8M Plus platform
https://onedigi.atlassian.net/browse/DEL-7784

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2022-02-03 11:45:31 +01:00
Javier Viguera b6137c5d5e linux-dey: move the version specific info to the proper bitbake recipes
The license checksum and the source branch should be on the properly
versioned bitbake recipes. Otherwise, when we include this common file
in a different version linux recipe (for example, the upcoming 5.10) it
will inherit incorrect values.

While on it, fix the incorrect license checksum values for the linux 5.4
recipes.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-02-02 10:34:33 +01:00
Gabriel Valcazar 42e4d177fe dnsmasq: remove v2.83 recipe to use the latest available version
We originally included this recipe to fix some vulnerabilities in the dnsmasq
version used in zeus (v2.80), but the recipe has been updated since then. The
current version used by default in hardknott is v2.85.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-31 11:16:40 +01:00
Gabriel Valcazar 668b4e8138 cog: adapt patches to v0.12.0
Now that the "--platform" parameter is optional, we don't need to hardcode the
platform anymore, so remove the first patch.

In this version, the FDO platform has been renamed to WL, and since the default
PACKAGECONFIG is meant to work with older cog versions, we need to manually
append the "wl" PACKAGECONFIG to build the wayland platform.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-25 12:58:22 +01:00
Gabriel Valcazar 3a62855de4 weston-init: restore profile script to previous implementation
This is a partial revert of commit 3819ee6672.
NXP simplified the profile script when updating to hardknott-5.10.72-2.2.0, but
since the /run/user/0 directory isn't automatically created in sysvinit
environments, the weston desktop fails to start in these cases. The previous
version of the script automatically creates said directory if it's missing, so
use that version instead.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-24 16:47:22 +01:00
Arturo Buzarra 771d5af74c firmware-qualcomm: update proprietary firmware to release r00006.3.470144.2a
Latest release r00006.3.470144.2a - CS3 0.0.006.3.470144.2a updates the
following files from qca6574au-le-2-2-2_qca_oem repository to fix
CVE-2021-30310:

qca65X4_pcie:   qwlan30.bin ->  b4a3730e9084871ef89faa5a34aae790
                utf.bin     ->  fd5c746e80dcb45f76e739f766055f5a
qca65X4_sdio:   qwlan30.bin ->  550701e51751928458a83d7dafadc017
                utf30.bin   ->  273bd31372afa2d7736a8e7639e44830

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-01-18 12:03:37 +01:00
Arturo Buzarra 7fbcde38bf firmware-qualcomm: Update BDF to pass EN 300 328 V2.2.2 blocking test.
This commit updates the US Board Data File (BDF) to include the changes
required to pass the EN 300 328 V2.2.2 blocking test.

The new BDF files are:

- ccimx6/bdwlan30_US.bin (eb3d3cdafd30b30e837974177a281648)
- ccimx8m/bdwlan30_US.bin (72531e6e0870673e4ba2b02bd551925b)
- ccimx8x/bdwlan30_US.bin (1cf667271da33f6eb207360eeb3d4d63)

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-01-17 13:00:31 +01:00
Gabriel Valcazar b0ff9ec03a linux-firmware: remove SDMA packages
This makes it so bitbake obtains the SDMA firmware from the firmware-imx recipe
instead.

This also avoids including all of the linux-firmware packages in i.MX6 SDK
builds, preventing errors when building the ccimx6sbc SDK (linux-firmware
provides the community versions of the ath6k and ar3k firmwares, which clash
with our versions).

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-12 17:09:33 +01:00
Gabriel Valcazar d58c6d30da freerdp: remove cups PACKAGECONFIG in sysvinit builds
Otherwise, cups pulls in procps as a dependency, causing SDK build failures.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-12 13:04:46 +01:00
Gabriel Valcazar 830c9ff629 weston-init: add customization directly in weston.ini instead of do_install()
We already have a copy of NXP's weston.ini, so there's no need to manuallly
append to it in our do_install_append(). Simply add our changes for our custom
desktop background directly in the source file.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-11 13:22:38 +01:00
Gabriel Valcazar 3bdc32b9f4 weston-init: change target from "graphical" to "multi-user"
In older Yocto versions, weston was launched via a udev rule, but now it gets
launched as part of the "graphical" system target. Since this target isn't
reached automatically on boot, the weston desktop will only appear if you
manually launch said target (or the weston service itself).

To make the desktop launch automatically, change the target to "multi-user",
which is the default target laucnhed on boot.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-11 12:57:06 +01:00
Gabriel Valcazar 9862a504fd hardknott: tesseract-lang: fix SRC_URI
Otherwise, bitbake won't be able to fetch the sources and the build will fail

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar 01611bdf3e hardknott: tensorflow-lite: rename to tensorflow-lite-coral
This makes it possible to distinguish between two different packages:

    * NXP's tensorflow-lite, which contains modifications for i.MX platforms
    * Our tensorflow-lite, which is meant to be used with Google Coral

Since tensorflow-lite-coral provides a subset of the files provided by
tensorflow-lite (specifically, the python libraries), make the packages
conflict during runtime.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar 28dedd9050 hardknott: perf: sync with meta-imx hardknott-5.10.72-2.2.0 branch
This package is used by the eIQ recipes, so make sure we have NXP's .bbappend
so it works as expected

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar 9ec62ed4cc hardknott: libgpuperfcnt: sync with meta-imx hardknott-5.10.72-2.2.0 branch
Add these recipes, which are needed by some eIQ packages

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar c39b855807 hardknott: refpolicy: update patches for latest revision
Update a patch so it applies cleanly and remove another one, since it has
already been applied upstream

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar cea6ef12c3 hardknott: imx-gpu-viv-6: remove kernel-module-imx-gpu-viv from RRECOMMENDS
This package was originally being added via RDEPENDS, and its removal was
missing when porting the newer file from NXP's meta-imx. Re-incorporate the
removal to avoid including the package in our images, but do so by adding it
to our images' BAD_RECOMMENDATIONS.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar 93a4bd0086 hardknott: busybox: re-use files from poky
Even though our busybox recipe (v1.34.1) is backported from poky's honister
branch, it has many elements in common with the recipe provided from poky's
hardknott branch (v1.33.1). To simplify our backport, re-use poky's busybox
files when possible, replacing them only when strictly necessary.

While at it, remove the busybox-inittab recipe, since there are barely any
differences between the honister and hardknott versions.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar a7f8fe487c hardknott: digi-sc-firmware: update to v1.11.0
This includes NXP's code from the SCFW porting kit v1.11.0

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar d3ec43b3a1 hardknott: imx-vpu-hantro-vc: make package compatible with all i.MX8MP boards
This is a small oversight on NXP's part, because this package is pulled in as a
dependency of imx-vpuwrap, but it's only compatible with their EVK board,
making the build fail on any other i.MX8MP board.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar 2079aec5e0 hardknott: cog: remove drm PACKAGECONFIG for ccimx6/ccimx6qp
This PACKAGECONFIG existed in gatesgarth, but it's included by default in
hardknott and it pulls in libgbm as a dependency. This package isn't available
for i.MX6 platforms, causing the build to fail immediately. Remove this from
the ccimx6 PACKAGECONFIG and leave it how it was on gatesgarth.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar f73321ff54 hardknott: dey.conf: explicitly set NXP's forks as the preferred version
For packages such as weston or opencv, bitbake will sometimes choose the poky
recipes, causing build errors. Explicitly set the NXP version of these packages
as the preferred version by mimicking the layer.conf configuration in the
meta-bsp layer of meta-imx.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar 54d0d58147 hardknott: imx-boot: adapt patch for latest revision
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar cf38841b02 hardknott: imx-atf: adapt patches to latest revision
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar 8db6ddabd7 hardknott: image_types_digi: shorten VFAT label name
It seems like the version of mkfs.vfat used in Yocto 3.3 has a label name
length limit of 11 characters. All of the labels for our current platforms
surpassed this limit ("Boot ccimxX" alone already occupies 11 characters), so
replace the machine name with "DEY"

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar a357f47f3b hardknott: ccimx8x: use both versions of the SECO firmware (B0 and C0)
We lost this logic when migrating to hardknott, so re-incorporate it

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar 99a72aa189 hardknott: imx-boot: explicitly set IMX_BOOT_SOC_TARGET and ATF_PLATFORM
These variables were originally set in NXP's recipes, but they moved their
definitions to each platform's configuration file. Set the appropriate values
where needed. While at it, replace every mention of the SOC_TARGET variable
with its new name, IMX_BOOT_SOC_TARGET.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar 4d483a665e hardknott: Revert "meta-digi-dey: filter out the weston_9.0.0.imx recipe from meta-freescale"
We now use the meta-freescale recipe as a base for our .bbappend, so remove
the filter.

This reverts commit 9e68d61f7c465800d62913c044e43c541f2eacd7.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar 1184f74439 hardknott: meta-digi-arm: filter out imx-atf recipe from meta-freescale
The recipe we ported from meta-imx has the same version number (v2.4) and
bitbake chooses the meta-freescale version because said layer comes before
meta-digi-arm in the BBLAYERS. Since the meta-freescale version uses different
platform overrides, the build fails, so filter it out to use our version
instead.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar 45302d67c1 hardknott: networkmanager: adapt patches to v1.30.4
Aside from the file paths changing, there are a few cosmetic differences
between v1.22.14 and v1.30.4 that prevented the patches from applying, so
re-work them.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar 52c37a6fe5 hardknott: meta-digi: replace GPL-2.0 license file with GPL-2.0-only
The common license file GPL-2.0 is now called GPL-2.0-only in poky, so we need
to reflect this name change to avoid errors

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar 1f2d0b8535 hardknott: packagegroup-dey-core: add firmwared dependency
This is a generic package that is currently being used by NXP to load firmware
on the target, so include it in our images as well. Since it only works with
systemd, leave it out of builds that use sysvinit.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar 16e8c39225 hardknott: conf: sync with meta-imx hardknott-5.10.72-2.2.0 branch
Reflect NXP's changes in each platform's MACHINE_FIRMWARE in our layer

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar 67995fe118 hardknott: Revert "distro: set GLIBC preferred version to 2.32"
poky now provides glibc v2.33 by default, and there aren't any alternative
versions available, so there's no need for this.

This reverts commit e7921dfd93.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar afa8f8dfd4 hardknott: libical: sync with meta-imx hardknott-5.10.72-2.2.0 branch
Remove the v3.0.8 version of the recipe to use the v3.0.9 recipe in poky. Also,
adapt our .bbappend since some of its changes are outdated.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar 74f99d887f hardknott: imx-boot: sync with meta-imx hardknott-5.10.72-2.2.0 branch
NXP now uses the meta-freescale version of the imx-boot recipe as a base, and
applies a .bbappend in meta-imx to apply more customizations. Reflect this
in meta-digi-arm and merge said .bbappend with ours. While at it, omit one of
NXP's operations in their do_deploy, since it breaks our build and doesn't look
essential.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar 6e4c9d10cc hardknott: mcore-demos: sync with meta-imx hardknott-5.10.72-2.2.0 branch
Change the recipes' path to align with meta-imx and update said recipes

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar a3c2e95526 hardknott: optee-imx: sync with meta-imx hardknott-5.10.72-2.2.0 branch
Update recipes to v3.15.0.imx

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar 903e07ff8f hardknott: linux-imx-headers: sync with meta-imx hardknott-5.10.72-2.2.0 branch
For now, port the new content of the v5.10 recipe to our v5.4 recipe.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar 641501cc04 hardknott: udev: sync with meta-imx hardknott-5.10.72-2.2.0 branch
Update the 10-imx.rules file

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar 8844f5eeea hardknott: isp-imx: sync with meta-imx hardknott-5.10.72-2.2.0 branch
These recipes are exclusive to the i.MX8MP, so add them just in case.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar 07af2e7561 hardknott: imx-vpu-hantro-vc: sync with meta-imx hardknott-5.10.72-2.2.0 branch
This recipe is only compatible with the i.MX8MP EVK, so it might be
platform-specific or board-specific. Add it for now to be safe.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00