Commit Graph

2802 Commits

Author SHA1 Message Date
Hector Palacios f58ccb7463 boot: don't set fdt_file on bootscript; just the overlays
With the device tree overlays mechanism in place, the bootscript
doesn't need to set the fdt_file variable. Instead, it will use
the value it has (which can be changed by the user) and it will
simply update the 'overlays' variable with the device tree
overlays that apply basing on the hardware capabilities found
on the HWID, SOM version, and carrier board version.

This allows a user to override the default fdt_file to point
to his custom device tree, but still make use of the boot script
for hardware-detected overlays.

Without the need to set the base filename, the boot script is the
same for any carrier board of the ccimx8x SOM, so this commit
moves it to a common folder.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-05-27 07:06:29 +02:00
Hector Palacios c2d20ce86c uboot: remove need for 'sudo' on script instructions
With the appropriate udev rules, there is no need to run
the install script as root.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-05-26 17:10:42 +02:00
Mike Engel 31fb64b494 meta-digi-arm: uboot: Add kernel parameter to center custom logo
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-05-26 15:26:54 +02:00
Gabriel Valcazar bc7320f203 ccimx8x: add support for QXP overlay
Each platform now has only one base device tree, meant for the i.MX8DX variants
of the ccimx8x boards. Apply the QXP overlay in the bootscript if the SOC is
identified as an i.MX8QXP.

Since we want to give this overlay a higher priority than the SOM overlays
(wifi and bluetooth), prepend it to the overlay list after appending the SOM
overlays.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-05-26 12:25:18 +02:00
Gabriel Valcazar 219cee7b9c ccimx8x-sbc-pro: add optional device tree overlays
These overlays aren't handled in our bootscript, but we make them available for
users in case they wish to use alternative interface configurations.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-05-26 12:17:34 +02:00
Gabriel Valcazar 306b83eef0 ccimx8x: add support for wifi and bt overlays
Remove the old wb device trees from the ccimx8x-sbc-express and ccimx8x-sbc-pro
configuration files and add the ccimx8x wifi and bt overlays. Modify both
platforms' bootscripts to apply the overlays depending on board_id, hardware
capabilities or module variants.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-05-26 12:17:34 +02:00
Hector Palacios f9eaa06e19 u-boot: fix uuu install firmware script
The function that parsed the output for a U-Boot variable value
was receiving a multi-line output, with blank lines that were
not being properly processed.

Simplify the parsing by using 'sed' command.

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

https://jira.digi.com/browse/DUB-951
2020-05-26 07:04:33 +02:00
Arturo Buzarra 5e2750082f qtwayland: remove OpenGL ES 2 API patch, which was upstreamed
Commit 9d4490a ("qtwayland: really use OpenGL ES 2 API for decoration blitter")
from meta-qt5 layer backports an upstream patch to Yocto 3.0 (Zeus), which
conflicts with the same patch integrated in meta-digi layer.
This commit removes the patch from meta-digi.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-05-20 17:09:07 +02:00
Arturo Buzarra 9ddce7fde9 networkmanager: backport support for Fast BSS Transition
This commit backports the IEEE 802.11r support from the later version v1.20
and integrates it in NetworkManager v1.18 supported by Yocto 3.0 (Zeus)

https://jira.digi.com/browse/CC6UL-1110

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-05-20 08:50:56 +02:00
Arturo Buzarra 8f34bbc4f5 wpa_supplicant: enable Fast BSS Transition by default
This commit integrates support for the IEEE 802.11r protocol to operate with
fast roaming networks.

https://jira.digi.com/browse/CC6UL-1110

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-05-20 08:33:59 +02:00
Francisco Gil Martinez 45058e35f9 sysinfo: improve the search of the otp folder
With the change of bsp now we have several entries under
/sys/bus/nvmem/devices/ in the CC6UL platform and we should
reduce the num of folders where the otp folder can be found.

ls /sys/bus/nvmem/devices/

bootloader
environment
imx-ocotp0
linux
recovery
rootfs
safe
update

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

Signed-off-by: Francisco Gil Martinez <francisco.gilmartinez@digi.com>
2020-05-12 09:07:07 +02:00
Hector Bujanda 2efc2c3e42 base-files: fix checks done to execute resize2fs postinst function in kernel 5.4
MMC core block has changed in kernel 5.4 so Replay Protected Memory Block (RPMB)
and boot partitions are not listed under /proc/partitions anymore.

get_emmc_block_device() function in pkg_postinst_ontarget() method was looking
for these entries to identify the MMC partition where to execute resize2fs.

This function has been modified to do the checks inside /dev/mmcblk* where RPMB
and boot entries are still listed.

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

Signed-off-by: Hector Bujanda <hector.bujanda@digi.com>
2020-05-11 16:04:57 +02:00
Hector Palacios 716d55fadf u-boot: fix code that copies 'install_linux_fw_uuu.sh' script
The if condition expanded to nothing so the install command was
never called. Apart from that the install command was wrong and
missing the '-m' option for modifier.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-05-08 13:24:34 +02:00
Hector Palacios 36b9e0c656 u-boot-fw-utils: fix path where fw_env.config is located
Commit fb2e7e37f4 placed the fw_env.config in a subfolder
${STORAGE_MEDIA}.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-05-07 16:26:09 +02:00
Gabriel Valcazar 92788841c4 ccimx8mn-dvk: boot.txt: add missing "fi"
The end of the if block was missing when adding support for the SOM v1 overlay

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-05-07 12:36:57 +02:00
Hector Palacios ab98e928f5 machines: move common recipes to all packagegroup-dey-core
- u-boot-fw-utils
- cryptodev-module

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-05-06 17:02:28 +02:00
Hector Palacios 2c8eaecc09 cryptochip: use MACHINE_FEATURE to conditionally include related recipes
Use 'cryptochip' MACHINE_FEATURE to conditionally include cryptoauthlib
recipe.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-05-06 07:20:50 +02:00
Hector Palacios 5df22254a1 mca: create 'mca' MACHINE_FEATURE and use it to append MCA-related recipes
This allows to generalize the code instead of needing to replicate
overrides for each platform that contains the MCA.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-05-06 07:20:50 +02:00
Hector Palacios a46a7af18d bluetooth: re-use variable DIGI_FAMILY to set BT_DEVICE_NAME for simplicity
The variable BT_DEVICE_NAME is used to name the Bluetooth device name on
the BlueZ configuration file. Re-use the contents of DIGI_FAMILY (except
for ccimx6qp which re-writes it) to simplify platform definitions.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-05-06 07:20:50 +02:00
Hector Palacios 83eb3a30c7 p2p: move common P2P variables to digi-defaults.inc for simplicity
- WLAN_P2P_INTERFACE is the same for all platforms: "p2p0".
- WLAN_P2P_DEVICE_NAME can be built out of ${DIGI_FAMILY} except for
  the ccimx6qp, that's why it has a weak default assignment.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-05-06 07:20:50 +02:00
Hector Palacios fb2e7e37f4 u-boot-fw-utils: consolidate common files by STORAGE_MEDIA
Platform-based variable STORAGE_MEDIA, allows us to select the
correct configuration file without needing to replicate it per
platform.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-05-06 07:20:50 +02:00
Gabriel Valcazar de79310dc8 ccimx8mn-dvk: add LVDS overlay to the device tree list
This overlay is not handled in our bootscript, but we add it to the Linux
partition in case users want to apply it manually.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-05-05 12:21:20 +02:00
Gabriel Valcazar 973af88c12 ccimx8mn-dvk: add support to load the v1 SOM overlay in the bootscript
Parse the hardware version from the HWID and load the overlay if and only if
the revision is "1". Also, update the board's device tree list accordingly.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-05-05 12:21:12 +02:00
Gabriel Valcazar 18ac2f63c1 ccimx8mn-dvk: add support to apply wifi/bluetooth overlays in the bootscript
Instead of having two separate device trees for the non-wireless and wireless
variants of the ccimx8mn, use the non-wireless .dtb as a base and apply the
overlays in the bootscript depending on the variant's capabilities.

Also, update the board's device tree list accordingly.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-05-05 12:16:58 +02:00
Hector Palacios ca3d27981f Revert "imx-boot: add patch to fix imx-boot images with M4 demos"
This reverts commit 03d40edfd0.

The build of U-Boot without the flags field, incorporated changes
that made the Cortex M4 acquired certain resources (like GPIOs)
that were later not available for the Cortex A35 cores.
Revert this patch so that such changes only take place on images
that contain the M4 applications.

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

https://jira.digi.com/browse/DEL-7073
(cherry picked from commit 28ce9340f55a35199dacf1bcbf83dc016b6a2fc7)
2020-05-04 17:39:06 +02:00
Gabriel Valcazar 36d91492f6 digi-sc-firmware: update to v1.4.0.1
Update to NXP's v1.4.0 porting kit, fix an issue with resource allocation
making some GPIOs unusable from the Cortex A35s and update the DCDs using NXP's
RPA v14.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-05-04 17:38:45 +02:00
Arturo Buzarra 14a48c1d54 imx-gpu-viv: remove wayland as a requirement for i.MX8 platforms
Based on commit ed2c4974 ("imx-gpu-viv: remove wayland as a requirement for
i.MX8 platforms"), this commit removes the requeriment of wayland as a backend
for the i.MX8 platforms to build framebuffer images.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-05-04 15:09:37 +02:00
Hector Bujanda d38ed61287 linux-libc-headers: refresh patch to add Digi debounce IOCTL to kernel v5.4
Digi customized linux kernel gpio.h file to allow debounce functionality by the
user space through the character device.
This commit patches the gpio.h file that is used to generate the SDK (which comes
from kernel 5.4) with Digi debounce additions.

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

Signed-off-by: Hector Bujanda hector.bujanda@digi.com
2020-05-04 15:09:37 +02:00
Arturo Buzarra 940582f172 README: update changelog to 3.0
https://jira.digi.com/browse/DEL-7013

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-05-04 15:09:37 +02:00
Arturo Buzarra 9cdc344927 zeus migration: dey-image: update SDK_POSTPROCESS_COMMAND variable to match with zeus version
Commit 3418d1326c ("populate_sdk_base: provide options to set sdk type")
in poky layer introduces a new mechanism to create different archive types
for the sdk, and the function tar_sdk was renamed to archive_sdk.
This commit updates the custom SDK_POSTPROCESS_COMMAND variable with the new
function name.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-05-04 15:09:37 +02:00
Arturo Buzarra 0a686e0f75 linux-imx-headers: added rsync to the native dependencies
Added rsync to the native dependencies, since it is used during
header install to prevent a build issue.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-05-04 15:09:37 +02:00
Arturo Buzarra 1703d3317e zeus migration: linux-libc-headers: update recipe to v5.4
Default version is defined in poky layer, this commit also modifies
the preferred version to match with the new one.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-05-04 15:09:37 +02:00
Arturo Buzarra 5a8cb53d20 zeus migration: linux-dey: update linux kernel to v5.4
Remove support to kernel v4.14 and move platforms to use the new
kernel v5.4

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-05-04 15:09:37 +02:00
Arturo Buzarra 754edb814b zeus migration: libical: refresh patch to v3.0.6
https://jira.digi.com/browse/DEL-7013

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-05-04 15:09:37 +02:00
Arturo Buzarra 2cfae815ea zeus migration: packagegroup-base: remove wireless-regdb-static package dependency
packagegroup-base includes wireless-regdb-static package unconditionally,
however it conflicts with wireless-regdb that it is required by crda,
which is included as a dependency to packagagroup-dey-wireless.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-05-04 15:09:37 +02:00
Arturo Buzarra 5a08a810a2 zeus migration: linux-dey: fix build with old kernel version 4.14
https://jira.digi.com/browse/DEL-7013

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-04-28 11:30:26 +02:00
Arturo Buzarra 2d3fbfc3d2 zeus migration: opencv: Fix warning applying this patch
https://jira.digi.com/browse/DEL-7013

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-04-28 11:30:26 +02:00
Arturo Buzarra f01a336d43 zeus migration: digi-sc-firmware: Fix QA Issue "SRC_URI uses PN not BPN"
This commit fixes the following QA issue:

    WARNING: digi-sc-firmware-1.3.0.1-r0 do_package_qa: QA Issue: digi-sc-firmware: SRC_URI uses PN not BPN [src-uri-bad]

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-04-28 11:30:26 +02:00
Arturo Buzarra c7e4121de8 zeus migration: imx-boot: simplify bbappend to match with the upstream version
https://jira.digi.com/browse/DEL-7013

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-04-28 11:30:26 +02:00
Arturo Buzarra ae082eac6f zeus migration: imx-atf: remove custom recipe reusing the upstream version
https://jira.digi.com/browse/DEL-7013

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-04-28 11:30:26 +02:00
Arturo Buzarra 9284f9df01 zeus migration: imx-mkimage: update recipe to v1.0
https://jira.digi.com/browse/DEL-7013

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-04-28 11:30:26 +02:00
Arturo Buzarra 185898e80e zeus migration: ccimx8x: update MACHINEOVERRIDES removing DX variants
https://jira.digi.com/browse/DEL-7013

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-04-28 11:30:26 +02:00
Arturo Buzarra 75b2db5513 zeus migration: firmware-imx: update recipe to v8.7
https://jira.digi.com/browse/DEL-7013

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-04-28 11:30:26 +02:00
Arturo Buzarra d9f7ed8a2d zeus migration: imx-seco: update recipe to v2.6.1
https://jira.digi.com/browse/DEL-7013

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-04-28 11:30:26 +02:00
Arturo Buzarra 9ccc0d10ef zeus migration: graphics: remove and refresh several recipes to match with upstream version
https://jira.digi.com/browse/DEL-7013

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-04-28 11:30:26 +02:00
Arturo Buzarra 37c643dfa8 zeus migration: qt5: update recipe to upstream version
https://jira.digi.com/browse/DEL-7013

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-04-28 11:30:26 +02:00
Arturo Buzarra 544ef5337e zeus migration: opencv: fix build error
There is a mismatch between the new upstream recipe that uses a cache folder
to share the header files and the imx recipe that requires a specific folder.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-04-27 16:06:48 +02:00
Arturo Buzarra f6a9557506 zeus migration: opencv: update recipe to v4.2.0
https://jira.digi.com/browse/DEL-7013

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-04-27 16:06:48 +02:00
Arturo Buzarra 1c1b8943b3 zeus migration: pulseaudio: update recipe to v12.2
https://jira.digi.com/browse/DEL-7013

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-04-27 16:06:48 +02:00
Arturo Buzarra af7706b1e5 zeus migration: xorg-xserver: update recipe to v1.20.5
https://jira.digi.com/browse/DEL-7013

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-04-27 16:06:48 +02:00