]> code.ossystems Code Review - meta-freescale.git/log
meta-freescale.git
4 years agoimx6ullevk: Move Device Tree which are NXP BSP specific
Otavio Salvador [Wed, 10 Jun 2020 20:18:11 +0000 (17:18 -0300)]
imx6ullevk: Move Device Tree which are NXP BSP specific

The Linux mainline 5.4 provide only the imx6ull-14x14-evk.dtb and all
others only are provided by the NXP-based Linux fork. We move them to
the NXP BSP specific setting.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
4 years agoimx6ullevk: Stop forcing the U-Boot and Linux kernel to imx flavour
Otavio Salvador [Wed, 10 Jun 2020 20:04:05 +0000 (17:04 -0300)]
imx6ullevk: Stop forcing the U-Boot and Linux kernel to imx flavour

We should avoid overriding the U-Boot and Linux kernel to imx flavour as
we might use mainline or their forks; this fixes build errors when using
fslc distros as:

,----[ Build error ]
| ERROR: Nothing PROVIDES 'virtual/kernel'
| linux-fslc-lts-4.19 PROVIDES virtual/kernel but was skipped: PREFERRED_PROVIDER_virtual/kernel set to linux-imx, not linux-fslc-lts-4.19
| linux-fslc-imx PROVIDES virtual/kernel but was skipped: incompatible with machine imx6ullevk (not in COMPATIBLE_MACHINE)
| linux-qoriq PROVIDES virtual/kernel but was skipped: incompatible with machine imx6ullevk (not in COMPATIBLE_MACHINE)
| linux-fslc PROVIDES virtual/kernel but was skipped: PREFERRED_PROVIDER_virtual/kernel set to linux-imx, not linux-fslc
| linux-imx PROVIDES virtual/kernel but was skipped: incompatible with machine imx6ullevk (not in COMPATIBLE_MACHINE)
| linux-fslc-qoriq PROVIDES virtual/kernel but was skipped: incompatible with machine imx6ullevk (not in COMPATIBLE_MACHINE)
| linux-yocto-rt PROVIDES virtual/kernel but was skipped: incompatible with machine imx6ullevk (not in COMPATIBLE_MACHINE)
| linux-yocto-tiny PROVIDES virtual/kernel but was skipped: incompatible with machine imx6ullevk (not in COMPATIBLE_MACHINE)
| linux-yocto-dev PROVIDES virtual/kernel but was skipped: incompatible with machine imx6ullevk (not in COMPATIBLE_MACHINE)
| linux-yocto PROVIDES virtual/kernel but was skipped: incompatible with machine imx6ullevk (not in COMPATIBLE_MACHINE)
| linux-dummy PROVIDES virtual/kernel but was skipped: PREFERRED_PROVIDER_virtual/kernel set to linux-imx, not linux-dummy
| ERROR: Required build target 'core-image-minimal' has no buildable providers.
| Missing or unbuildable dependency chain was: ['core-image-minimal', 'virtual/kernel']
`----

Fixes: #432
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
4 years agoatf: use var RCW_FOLDER to allow selecting rcw folder
Ting Liu [Mon, 8 Jun 2020 12:16:21 +0000 (20:16 +0800)]
atf: use var RCW_FOLDER to allow selecting rcw folder

Generally, rcw are deployed to ${DEPLOY_DIR_IMAGE}/rcw/${MACHINE}/.
But there are some machines that don't follow this rule. For example,
lx2160ardb deployed RCW in folder lx2160ardb_rev2 for boards with
Rev2 processor, but folder lx2160ardb for boards with Rev1 processor.

As there are only difference on RCW for them, use variable RCW_FOLDER
to allow selecting rcw folder for building atf targets. For exmaple,
to build atf which supports lx2160ardb with Rev2 processor:
RCW_FOLDER_lx2160ardb = "lx2160ardb_rev2"

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agoovs-dpdk: add configurable buffer parameter via env
Ting Liu [Tue, 9 Jun 2020 07:23:50 +0000 (15:23 +0800)]
ovs-dpdk: add configurable buffer parameter via env

Provide an alternative way to set packet buffer via env variable
DPDK_NUM_MBUF, besides automatic calculation.

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agolinux-fslc: upgrade kernel to v5.4.45 from korg
Andrey Zhizhikin [Mon, 8 Jun 2020 12:08:45 +0000 (12:08 +0000)]
linux-fslc: upgrade kernel to v5.4.45 from korg

Tag v5.4.45 has been merged into the linux-fslc tree, update recipe to
pull new kernel version

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
4 years agolinux-fslc-imx: update to v5.4.45
Andrey Zhizhikin [Mon, 8 Jun 2020 12:02:37 +0000 (12:02 +0000)]
linux-fslc-imx: update to v5.4.45

Kernel repository has been upgraded to the v5.4.45 tag from korg

Tracking information is updated with the new stable tag.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
4 years agoqoriq-ppc: not build secure-boot u-boot configs
Ting Liu [Thu, 21 May 2020 07:48:30 +0000 (15:48 +0800)]
qoriq-ppc: not build secure-boot u-boot configs

Secure boot does not have DM mode support for PPC, and driver
related changes are not tested due to bandwidth limitation.

Remove secure-boot u-boot configs from the build list.

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agowaffle: fix patch fuzz QA warning
Andrey Zhizhikin [Sun, 7 Jun 2020 20:54:21 +0000 (20:54 +0000)]
waffle: fix patch fuzz QA warning

Fix patch fuzz QA warning reported by build, use devtool to correct
patches.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
4 years agoqtbase: Define empty PACKAGECONFIG_VULKAN
Khem Raj [Fri, 5 Jun 2020 00:32:54 +0000 (17:32 -0700)]
qtbase: Define empty PACKAGECONFIG_VULKAN

In cases where non imxgpu and non-fsl SOCs are target do_configure results in

ERROR: qtbase-5.15.0+gitAUTOINC+f6fe4bbab7-r0 do_configure: QA Issue: qtbase: in
valid PACKAGECONFIG: ${@bb.utils.contains('DISTRO_FEATURES', [invalid-packagecon
fig]

Therefore having empty value helps in avoiding this case

Signed-off-by: Khem Raj <raj.khem@gmail.com>
4 years agolinux-fslc-imx: update to v5.4.44
Andrey Zhizhikin [Wed, 3 Jun 2020 22:06:41 +0000 (22:06 +0000)]
linux-fslc-imx: update to v5.4.44

Kernel repository has been updated with v5.4.44 from stable korg, and
patch 7cf8871cd7d0 is applied upstream.

Update kernel recipe and drop applied upstream patch from tracking list.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
4 years agolinux-fslc: upgrade kernel to v5.4.44 from korg
Andrey Zhizhikin [Wed, 3 Jun 2020 22:05:09 +0000 (22:05 +0000)]
linux-fslc: upgrade kernel to v5.4.44 from korg

Tag v5.4.44 has been merged into the linux-fslc tree, update recipe to
pull new kernel version

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
4 years agolinux-fslc-imx: update to v5.4.43 + patches from 5.5.y
Andrey Zhizhikin [Tue, 2 Jun 2020 22:20:12 +0000 (22:20 +0000)]
linux-fslc-imx: update to v5.4.43 + patches from 5.5.y

Kernel repository has been updated with v5.4.42 and v5.4.43 from stable
korg + following patches are cherry-picked from linux-5.5.y branch:

285869ec9087 ARM: dts: imx6ul-kontron-n6x1x-s: Remove an obsolete comment and fix indentation
f03791085754 ARM: dts: imx6ul-kontron-n6x1x-s: Add vbus-supply and overcurrent polarity to usb nodes
67e44952c670 ARM: dts: imx6ul-kontron-n6x1x: Add 'chosen' node with 'stdout-path'
d4b105f930e2 ARM: dts: Add support for two more Kontron evalkit boards 'N6311 S' and 'N6411 S'
e778467f65d0 ARM: dts: imx6ul-kontron-n6310-s: Move common nodes to a separate file
8b39f5e53831 ARM: dts: Add support for two more Kontron SoMs N6311 and N6411
3bee262233eb ARM: dts: imx6ul-kontron-n6310: Move common SoM nodes to a separate file
40a6a98b3f38 ARM: imx: Fix boot crash if ocotp is not found
8aad5031be00 ARM: imx: Correct ocotp id for serial number support of i.MX6ULL/ULZ SoCs
564409aa3b33 soc: imx-scu: Using existing serial_number instead of UID
0ee8e005bbfc soc: imx8: Using existing serial_number instead of UID
134cbb845fc7 ARM: imx: Add serial number support for i.MX6/7 SoCs

Update kernel recipe and tracking information.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
4 years agomachine/include/qoriq-base.inc: sync bootloader providers
Jens Rehsack [Sat, 30 May 2020 19:44:31 +0000 (21:44 +0200)]
machine/include/qoriq-base.inc: sync bootloader providers

Avoid PREFERRED_PROVIDER_u-boot and PREFERRED_PROVIDER_virtual/bootloader
drift apart as good as it gets without creating circular dependencies.
Read: there in one primary definition (PREFERRED_PROVIDER_u-boot) and the
second specification is relying on the primary.

Signed-off-by: Jens Rehsack <sno@netbsd.org>
4 years agomachine/include/qoriq-base.inc: remove u-boot-fw-utils
Jens Rehsack [Sat, 30 May 2020 19:36:40 +0000 (21:36 +0200)]
machine/include/qoriq-base.inc: remove u-boot-fw-utils

u-boot-fw-utils have been replace by libubootenv which has been finalized with

    commit d15639a0a27393aa455adae113f4692c27367e89
    Author: Otavio Salvador <otavio@ossystems.com.br>
    Date:   Thu Apr 2 11:19:34 2020 -0300

u-boot-qoriq-fw-utils: Drop recipe as libubootenv works as replacement

Now we are using libubootenv and dropped the u-boot-qoriq-fw-utils, we
need to move the configuration file to the main recipe.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Remove choosing a preferred provider, too.

Signed-off-by: Jens Rehsack <sno@netbsd.org>
4 years agoopenssl: append to OE-core
Jens Rehsack [Sat, 30 May 2020 19:32:58 +0000 (21:32 +0200)]
openssl: append to OE-core

Instead of maintaing 98% copy of OE-core recipe without being up-to-date
as good as possible, inject patches into OE-core recipe of openssl when
compiling for the right platform.

Signed-off-by: Jens Rehsack <sno@netbsd.org>
4 years agolinux-fslc-qoriq: update to LSDK-20.04-V5.4-update-290520 merge
Jens Rehsack [Sat, 30 May 2020 15:02:30 +0000 (17:02 +0200)]
linux-fslc-qoriq: update to LSDK-20.04-V5.4-update-290520 merge

Updating linux-fslc-qoriq_5.4 to 35b10ca99cd3 which contains:
    35b10ca99cd3 Merge branch 'qoriq/linux-5.4' into 5.4.y+qoriq
    |\
    | * a0afa95baa42 arm64: dts: lx2160a: add more thermal zone support
    | * 6df69314d529 thermal: qoriq: Update the settings for TMUv2

Not merged (because it's since 5.4.11 in there):
      * 3fd185ba5688 gpio/mpc8xxx: fix qoriq GPIO reading

Signed-off-by: Jens Rehsack <sno@netbsd.org>
4 years agolinux-qoriq: update to LSDK-20.04-V5.4-update-290520
Jens Rehsack [Sat, 30 May 2020 14:48:53 +0000 (16:48 +0200)]
linux-qoriq: update to LSDK-20.04-V5.4-update-290520

Forward linux-qoriq to 134788b16485 (LSDK-20.04-V5.4-update-290520) which
contains since f8118585ee3c (LSDK-20.04-V5.4):
134788b16485 arm64: dts: lx2160a: add more thermal zone support
1e0206889f91 thermal: qoriq: Update the settings for TMUv2
73a82704ab09 gpio/mpc8xxx: fix qoriq GPIO reading

Signed-off-by: Jens Rehsack <sno@netbsd.org>
4 years agou-boot-qoriq: update to LSDK-20.04-update-290520
Jens Rehsack [Sat, 30 May 2020 14:46:17 +0000 (16:46 +0200)]
u-boot-qoriq: update to LSDK-20.04-update-290520

Forward to commit 1e55b2f9e7 (LSDK-20.04-update-290520), which contains
since LSDK-20.04 (3cd9bc3993):
1e55b2f9e7 lx2160a : Update eMMC boot environment variable
98247c2b65 mmc: fsl_esdhc: workaround for hardware 3.3v IO reliability issue
9cd843a51c mmc: fsl_esdhc: read register once for card inserted status
8ded21cab5 configs: ls1012afrwy: drop env qspi_bootcmd
8911beb6ca armv8: ls1028a: clean up the environment variables
93d1089cbb configs: ls1012afrwy: fix board name
aab85e08a4 configs: ls1046aqds: support distro boot
d78a7f85ec configs: ls2080aqds: support distro boot
8c65af759f configs: ls1088aqds: support distro boot
eae5fa98d3 include/configs: ls1012aqds: add default environment variable
9a9f2f8f34 armv8: ls1028aqds: add some environments
be032ac3b4 configs: ls1028aqds: add lpuart config
bd2c372fdc armv8: ls1028aqds: add lpuart dts support
e8c89a28e7 arm: dts: ls1028a: add lpuart nodes
c4cfcc2a34 board: freescale: ls1028a: mux changes for lpuart

Signed-off-by: Jens Rehsack <sno@netbsd.org>
4 years agorcw: update to tag of LSDK-20.04-update-290520
Jens Rehsack [Sat, 30 May 2020 14:34:34 +0000 (16:34 +0200)]
rcw: update to tag of LSDK-20.04-update-290520

Forward rcw to commit e0fab6d (LSDK-20.04-update-290520), which contains:
e0fab6d lx2160a_rev2 : Add proper dividers for flexspi for top platform freq
05975f0 lx2160aqds_rev2: add RCW for 2000_800_2900_13_5_2

Signed-off-by: Jens Rehsack <sno@netbsd.org>
4 years agoddr-phy: bump to tag of LSDK-20.04-update-290520
Jens Rehsack [Sat, 30 May 2020 14:31:09 +0000 (16:31 +0200)]
ddr-phy: bump to tag of LSDK-20.04-update-290520

Bumping SRCREV to fbc036b for tag LSDK-20.04-update-290520, which contains
following changes since 14d03e6 (LSDK-20.04):
fbc036b lx2: ddr: phy: add fip file for 2019.04 firmware
f56e808 lx2: ddr: phy: Add 2019.04 ddr phy binaries

Signed-off-by: Jens Rehsack <sno@netbsd.org>
4 years agoatf{-tools}: update to LSDK-20.04-update-290520
Jens Rehsack [Sat, 30 May 2020 14:23:31 +0000 (16:23 +0200)]
atf{-tools}: update to LSDK-20.04-update-290520

Forward atf and atf-tools to commit 7d748e6f0, which contains since LSDK-20.04:
7d748e6f0 Enable debug print for DDR phy register read write
6af93c00b Merge pull request #106 in GITAM/atf from ~NXA27427/atf:jira/platsec-1135 to LSDK
e15b57995 drivers/nxp/ddr: Fix the address decoding for 1 rank.
f12307a97 ddr: phy_gen2: Enable FFE for rev1 SI
9d3807137 ddr:fix phy debug messages for 2019.04 fw
4c00f9eb2 ddr: phy-gen2: Enable High-Effort WrDQ1D
b0ea56902 ddr: phy-gen2: pll related optimisation
0b895382a ddr: phy-gen2: Enable quickRd2D
9b6676c5a ddr: phy-gen2: improve signal integrity during writes
8d6e26d87 ddr: phy-gen2: dfi optimisation
cd77da485 Fixing memclk calculation
f0245c7ff drivers: ddr: phy-gen2: update DDR PHY firmware to v2019.04
1f29f30e6 Merge pull request #95 in GITAM/atf from ~NXA07556/atf:LSDK to LSDK
60aabf01e armv8: Add workaround for ARM 2PRF memory
77284b357 LS1046A: Remove workaround for SEC when going into LPM20 state

Signed-off-by: Jens Rehsack <sno@netbsd.org>
4 years agoqtbase: Drop upstreamed patch
Tom Hochstein [Wed, 27 May 2020 14:10:35 +0000 (09:10 -0500)]
qtbase: Drop upstreamed patch

Drop patch 0015-Add-eglfs-to-IMX-GPU.patch. It is upstream and
no longer necessary.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
4 years agoqtbase: Add i.MX 8 configuration
Tom Hochstein [Tue, 26 May 2020 19:39:47 +0000 (14:39 -0500)]
qtbase: Add i.MX 8 configuration

- 8M Quad has 3D but no 2D, so fix the override for GPU patches
- Add gbm and kms for all i.MX 8 with GPU
- Add vulkan for all i.MX 8 with GPU except 8M Mini

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
4 years agolinux-fslc-lts: Update to version v4.19.125
Fabio Berton [Mon, 1 Jun 2020 17:41:52 +0000 (14:41 -0300)]
linux-fslc-lts: Update to version v4.19.125

This commit merges tag 'v4.19.125' into 4.19.x+fslc.

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
4 years agooptee-client: add patch to avoid CFLAGS overrides
Andrey Zhizhikin [Sun, 31 May 2020 22:02:35 +0000 (22:02 +0000)]
optee-client: add patch to avoid CFLAGS overrides

Base optee-client implementation uses immediate assignment of CFLAGS
variable in it's build structure, which causes Yocto CFLAGS to be
overridden and not properly propagated into the build system.

Introduce a patch which uses append operator intead of immediate
assignment to have both CFLAGS variables to be combined.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
4 years agooptee-client: fix build architecture for aarch64
Andrey Zhizhikin [Sun, 31 May 2020 21:50:41 +0000 (21:50 +0000)]
optee-client: fix build architecture for aarch64

Overridden do_compile() task relies on an old DEFAULTTUNE set to
identify if the build should target arm32 or arm64 architecture, and has
a direct comparison to the generic tune. Since aarch64 tune for some
derivatives has been switched to a more specialized types (cortexa53-crypto),
this causes the check to fail and build defaults to arm32, which is not
desired behavior.

Define OPTEE_ARCH to a proper value based on machine overrides, drop the
task override and use standard Yocto mechanisms to provide additional
parameters to make.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
4 years agolinux-fslc-qoriq: update to v5.4.43
Jens Rehsack [Sat, 30 May 2020 14:57:17 +0000 (16:57 +0200)]
linux-fslc-qoriq: update to v5.4.43

Updating linux-fslc-qoriq_5.4 to 5.4.43 which contains following commits:
    e0d81ce76004 Linux 5.4.43
    b5100186021a sched/fair: Fix enqueue_task_fair() warning some more
    8b13f5657fa8 sched/fair: Fix reordering of enqueue/dequeue_task_fair()
    a2ad232aa6a9 sched/fair: Reorder enqueue/dequeue_task_fair path
    f4520daa3c5a tpm: check event log version before reading final events
    68b7b8183c12 rxrpc: Fix ack discard
    283eb0016f97 rxrpc: Trace discarded ACKs
    f2da8c0dfe81 iio: adc: stm32-dfsdm: fix device used to request dma
    7b5af65ca246 iio: adc: stm32-dfsdm: Use dma_request_chan() instead dma_request_slave_channel()
    692001a867b6 iio: adc: stm32-adc: fix device used to request dma
    8e8836b2b782 iio: adc: stm32-adc: Use dma_request_chan() instead dma_request_slave_channel()
    1084eee4dc5d x86/unwind/orc: Fix unwind_get_return_address_ptr() for inactive tasks
    860fe59783a9 flow_dissector: Drop BPF flow dissector prog ref on netns cleanup
    bd6f0c799f4d s390/kexec_file: fix initrd location for kdump kernel
    834d24ec3a0a rxrpc: Fix a memory leak in rxkad_verify_response()
    23ae6e3e8aeb rxrpc: Fix the excessive initial retransmission timeout
    c2a26769b43e kasan: disable branch tracing for core runtime
    86217fecc4b7 rapidio: fix an error in get_user_pages_fast() error handling
    689dacb2b09d device-dax: don't leak kernel memory to user space after unloading kmem
    9e451933bba9 s390/kaslr: add support for R_390_JMP_SLOT relocation type
    72f3241508ac s390/pci: Fix s390_mmio_read/write with MIO
    9c84884cd5dc ipack: tpci200: fix error return code in tpci200_register()
    46f47dda27bc mei: release me_cl object reference
    f505a3e24c6a tty: serial: add missing spin_lock_init for SiFive serial console
    a5b4b3f97de7 misc: rtsx: Add short delay after exit from ASPM
    e64b205035fb iio: adc: ti-ads8344: Fix channel selection
    9af65dc54b9b iio: dac: vf610: Fix an error handling path in 'vf610_dac_probe()'
    d54e5a4ff04c iio: sca3000: Remove an erroneous 'get_device()'
    56cff2ac7c9d staging: greybus: Fix uninitialized scalar variable
    a41e02cb4232 staging: kpc2000: fix error return code in kp2000_pcie_probe()
    dee81110a488 staging: iio: ad2s1210: Fix SPI reading
    76296dc723ef media: fdp1: Fix R-Car M3-N naming in debug message
    4adb7a2b3161 Revert "gfs2: Don't demote a glock until its revokes are written"
    bb6524537dc2 kbuild: Remove debug info from kallsyms linking
    ee71c590dd8d bpf: Avoid setting bpf insns pages read-only when prog is jited
    4c732e81bd4d powerpc/64s: Disable STRICT_KERNEL_RWX
    b67da9dbdb89 powerpc: Remove STRICT_KERNEL_RWX incompatibility with RELOCATABLE
    9bcfbd8ba2b5 drm/i915: Propagate error from completed fences
    5e171483e947 drm/i915/gvt: Init DPLL/DDI vreg for virtual display instead of inheritance.
    0e1d5f67253e vsprintf: don't obfuscate NULL and error pointers
    4b1b34621998 dmaengine: owl: Use correct lock in owl_dma_get_pchan()
    0fcbe108b01a dmaengine: dmatest: Restore default for channel
    57c32a52c3fe drm/etnaviv: Fix a leak in submit_pin_objects()
    432b103596bd dmaengine: tegra210-adma: Fix an error handling path in 'tegra_adma_probe()'
    870a45e0b507 apparmor: Fix aa_label refcnt leak in policy_update
    054934aa9faa apparmor: fix potential label refcnt leak in aa_change_profile
    97d817b9ef13 apparmor: Fix use-after-free in aa_audit_rule_init
    3b1e38dfbc9f drm/etnaviv: fix perfmon domain interation
    53683907ef68 arm64: Fix PTRACE_SYSEMU semantics
    96e56055a2f0 scsi: target: Put lun_ref at end of tmr processing
    818657105a0b scsi: qla2xxx: Do not log message when reading port speed via sysfs
    d54c5eff8795 ALSA: hda/realtek - Add more fixup entries for Clevo machines
    80f5822c2bf3 ALSA: hda/realtek - Fix silent output on Gigabyte X570 Aorus Xtreme
    1b17a0f98ad0 ALSA: pcm: fix incorrect hw_base increase
    a44cb2581718 ALSA: iec1712: Initialize STDSP24 properly when using the model=staudio option
    99e392a4979b KVM: x86: Fix pkru save/restore when guest CR4.PKE=0, move it to x86.c
    1c3d707d7d12 ALSA: hda/realtek: Enable headset mic of ASUS UX581LV with ALC295
    26a3a3053332 ALSA: hda/realtek - Enable headset mic of ASUS UX550GE with ALC295
    c5742497dcd2 ALSA: hda/realtek - Enable headset mic of ASUS GL503VM with ALC295
    2523e9010d2b ALSA: hda/realtek: Add quirk for Samsung Notebook
    6cc4dd44e207 ALSA: hda/realtek - Add HP new mute led supported for ALC236
    0d189b31c4d7 ALSA: hda/realtek - Add supported new mute Led for HP
    69d5dc286d05 ALSA: hda: Manage concurrent reg access more properly
    1efaaf74528c ALSA: hda: patch_realtek: fix empty macro usage in if block
    749e58bd2b09 ALSA: hda - constify and cleanup static NodeID tables
    02ebbd1da394 scripts/gdb: repair rb_first() and rb_last()
    9eff404a4382 ARM: futex: Address build warning
    67a5c3104d12 KVM: selftests: Fix build for evmcs.h
    4f48af814798 drm/amd/display: Prevent dpcd reads with passive dongles
    e0bb3075f91b iommu/amd: Call domain_flush_complete() in update_domain()
    e1efb9893bdd platform/x86: asus-nb-wmi: Do not load on Asus T100TA and T200TA
    c8d323578e36 USB: core: Fix misleading driver bug report
    42b32a43529e stmmac: fix pointer check after utilization in stmmac_interrupt
    b68d27c5fffd ceph: fix double unlock in handle_cap_export()
    df0df8ee2ac7 HID: quirks: Add HID_QUIRK_NO_INIT_REPORTS quirk for Dell K12A keyboard-dock
    8a5de4a391e4 gtp: set NLM_F_MULTI flag in gtp_genl_dump_pdp()
    7932168ec08e x86/apic: Move TSC deadline timer debug printk
    1ae9f1a62a50 ftrace/selftest: make unresolved cases cause failure if --fail-unresolved set
    2eac9d3dc23f ibmvnic: Skip fatal error reset after passive init
    f82a3013226e x86/mm/cpa: Flush direct map alias during cpa
    632db044ab99 HID: i2c-hid: reset Synaptics SYNA2393 on resume
    acd3efa17d96 scsi: ibmvscsi: Fix WARN_ON during event pool release
    6ef21295dc20 net/ena: Fix build warning in ena_xdp_set()
    d0db69f9d132 component: Silence bind error on -EPROBE_DEFER
    7a5f60dc3a67 aquantia: Fix the media type of AQC100 ethernet controller in the driver
    445437b417b6 vhost/vsock: fix packet delivery order to monitoring devices
    dcec6678c3b1 configfs: fix config_item refcnt leak in configfs_rmdir()
    2b52a61adb38 scsi: qla2xxx: Delete all sessions before unregister local nvme port
    d2430cb7f2d4 scsi: qla2xxx: Fix hang when issuing nvme disconnect-all in NPIV
    7b481b802a8f HID: alps: ALPS_1657 is too specific; use U1_UNICORN_LEGACY instead
    a08626f6e982 HID: alps: Add AUI1657 device ID
    68988c00b153 HID: multitouch: add eGalaxTouch P80H84 support
    cc6428803d22 gcc-common.h: Update for GCC 10
    3c140d22e3c2 net: drop_monitor: use IS_REACHABLE() to guard net_dm_hw_report()
    87863a7426b2 kbuild: avoid concurrency issue in parallel building dtbs and dtbs_check
    44fd02a3d719 mtd: Fix mtd not registered due to nvmem name collision
    496c7c61bd64 afs: Don't unlock fetched data pages until the op completes successfully
    17c9595cca71 ubi: Fix seq_file usage in detailed_erase_block_info debugfs file
    274cd3c7b5d3 i2c: mux: demux-pinctrl: Fix an error handling path in 'i2c_demux_pinctrl_probe()'
    dd540f2d7c2d evm: Fix a small race in init_desc()
    f96ab0d1f3ec iommu/amd: Fix over-read of ACPI UID from IVRS table
    33769c19feba i2c: fix missing pm_runtime_put_sync in i2c_device_probe
    9f885f17501d ubifs: remove broken lazytime support
    ac6f94d3be65 fix multiplication overflow in copy_fdtable()
    725b0bb0f94d mtd: spinand: Propagate ECC information to the MTD structure
    e3637eb6a351 ACPI: EC: PM: Avoid flushing EC work when EC GPE is inactive
    3be8ece11440 ubifs: fix wrong use of crypto_shash_descsize()
    48bbd44f5fa9 ima: Fix return value of ima_write_policy()
    1066327bf936 evm: Check also if *tfm is an error pointer in init_desc()
    4aedc534b608 ima: Set file->f_mode instead of file->f_flags in ima_calc_file_hash()
    ac46cea606d5 KVM: SVM: Fix potential memory leak in svm_cpu_init()
    1bed86cfe5cb i2c: dev: Fix the race between the release of i2c_dev and cdev

Signed-off-by: Jens Rehsack <sno@netbsd.org>
4 years agolinux-fslc-qoriq: update to v5.4.42
Jens Rehsack [Sat, 30 May 2020 14:54:26 +0000 (16:54 +0200)]
linux-fslc-qoriq: update to v5.4.42

Updating linux-fslc-qoriq_5.4 to 5.4.42 which contains following commits:
    1cdaf895c99d Linux 5.4.42
    ecb3f529a554 bpf: Test_progs, fix test_get_stack_rawtp_err.c build
    aee43146cc10 selftest/bpf: fix backported test_select_reuseport selftest changes
    35d9107ad30b libbpf: Extract and generalize CPU mask parsing logic
    10cfaa7456d7 Makefile: disallow data races on gcc-10 as well
    9972e851b9f4 KVM: x86: Fix off-by-one error in kvm_vcpu_ioctl_x86_setup_mce
    9d2487643b4f bpf: Fix sk_psock refcnt leak when receiving message
    d41689a34a9d SUNRPC: Revert 241b1f419f0e ("SUNRPC: Remove xdr_buf_trim()")
    3a8efe589bb6 ARM: dts: r8a7740: Add missing extal2 to CPG node
    cd8ae9b73258 arm64: dts: renesas: r8a77980: Fix IPMMU VIP[01] nodes
    c580f2fe3270 ARM: dts: r8a73a4: Add missing CMT1 interrupts
    8972721aea41 arm64: dts: imx8mn: Change SDMA1 ahb clock for imx8mn
    764715615178 arm64: dts: rockchip: Rename dwc3 device nodes on rk3399 to make dtc happy
    64ad7ef3a6e5 arm64: dts: rockchip: Replace RK805 PMIC node name with "pmic" on rk3328 boards
    af518b5b77fd arm64: dts: meson-g12-common: fix dwc2 clock names
    9b9c52752a11 arm64: dts: meson-g12b-khadas-vim3: add missing frddr_a status property
    01febb33cb6e clk: Unlink clock if failed to prepare or enable
    e2084a8d5fee Revert "ALSA: hda/realtek: Fix pop noise on ALC225"
    5e553801462b usb: gadget: legacy: fix error return code in cdc_bind()
    7e5c1db8ad15 usb: gadget: legacy: fix error return code in gncm_bind()
    8228b6736964 usb: gadget: audio: Fix a missing error return value in audio_bind()
    8ef452001769 usb: gadget: net2272: Fix a memory leak in an error handling path in 'net2272_plat_probe()'
    9f65d776756e fanotify: fix merging marks masks with FAN_ONDIR
    20a6d2455cde dwc3: Remove check for HWO flag in dwc3_gadget_ep_reclaim_trb_sg()
    4f6815e429a8 clk: rockchip: fix incorrect configuration of rk3228 aclk_gpu* clocks
    553a2cbca7c3 exec: Move would_dump into flush_old_exec
    136353c5066c x86/unwind/orc: Fix error handling in __unwind_start()
    91b9ce04ff1f x86: Fix early boot crash on gcc-10, third try
    f8e370ccab35 cifs: fix leaked reference on requeued write
    4e06196336a1 powerpc/32s: Fix build failure with CONFIG_PPC_KUAP_DEBUG
    57aa19acfc22 drm/amd/display: add basic atomic check for cursor plane
    97e43314763d ARM: dts: imx6dl-yapp4: Fix Ursa board Ethernet connection
    215589310fa2 ARM: dts: imx27-phytec-phycard-s-rdk: Fix the I2C1 pinctrl entries
    e1409dc95410 ARM: dts: dra7: Fix bus_dma_limit for PCIe
    da55eeb3245a Make the "Reducing compressed framebufer size" message be DRM_INFO_ONCE()
    c6a1ce81b43e usb: xhci: Fix NULL pointer dereference when enqueuing trbs from urb sg list
    6bb054f006c3 USB: gadget: fix illegal array access in binding with UDC
    e6be4400ac34 usb: cdns3: gadget: prev_req->trb is NULL for ep0
    f1a9bed7969a usb: host: xhci-plat: keep runtime active when removing host
    b96a62f506ee usb: core: hub: limit HUB_QUIRK_DISABLE_AUTOSUSPEND to USB5534B
    93dda4f0e2ff ALSA: usb-audio: Add control message quirk delay for Kingston HyperX headset
    3fa58fc9f8c4 ALSA: rawmidi: Fix racy buffer resize under concurrent accesses
    04ccdf6b031d ALSA: hda/realtek - Add COEF workaround for ASUS ZenBook UX431DA
    c9709800eeeb ALSA: hda/realtek - Limit int mic boost for Thinkpad T530
    c737b7533596 USB: usbfs: fix mmap dma mismatch
    0432f7632a24 usb: usbfs: correct kernel->user page attribute mismatch
    dca0ae3900b3 gcc-10: avoid shadowing standard library 'free()' in crypto
    6cbb91bdd3a2 gcc-10: mark more functions __init to avoid section mismatch warnings
    7955081a3a65 gcc-10 warnings: fix low-hanging fruit
    dff2ce17934c gcc-10: disable 'restrict' warning for now
    b8e7b93333db gcc-10: disable 'stringop-overflow' warning for now
    9ba07a72fc5e gcc-10: disable 'array-bounds' warning for now
    a740b68fd169 gcc-10: disable 'zero-length-bounds' warning for now
    8f6a84167e86 Stop the ad-hoc games with -Wno-maybe-initialized
    ab638a49a9f3 net/rds: Use ERR_PTR for rds_message_alloc_sgs()
    b597815ce1e8 pnp: Use list_for_each_entry() instead of open coding
    d4e58131829f NFSv3: fix rpc receive buffer size for MOUNT call
    e26e2a3febcb mm, memcg: fix inconsistent oom event behavior
    46a22f3ea146 s390/ism: fix error return code in ism_probe()
    e1608af17030 hwmon: (da9052) Synchronize access with mfd
    6e7253dc4562 RDMA/iw_cxgb4: Fix incorrect function parameters
    08f187dbd223 RDMA/core: Fix double put of resource
    ee7ce7d7e7c7 IB/core: Fix potential NULL pointer dereference in pkey cache
    b491aeec55fe IB/mlx4: Test return value of calls to ib_get_cached_pkey
    eaad00390ff9 RDMA/rxe: Always return ERR_PTR from rxe_create_mmap_info()
    da532ce587c7 netfilter: nft_set_rbtree: Add missing expired checks
    1c235d0eb1f0 netfilter: nft_set_rbtree: Introduce and use nft_rbtree_interval_start()
    6259b1c1bca5 SUNRPC: Signalled ASYNC tasks need to exit
    d1538d8d6325 nfs: fix NULL deference in nfs4_get_valid_delegation
    ea7c4d9e542f arm64: fix the flush_icache_range arguments in machine_kexec
    1222b257654b drm/i915/gvt: Fix kernel oops for 3-level ppgtt guest
    a308d6e6861d netfilter: conntrack: avoid gcc-10 zero-length-bounds warning
    b526c01b38ae NFSv4: Fix fscache cookie aux_data to ensure change_attr is included
    021f5799de53 nfs: fscache: use timespec64 in inode auxdata
    ef8195ee1618 NFS: Fix fscache super_cookie index_key from changing after umount
    32b9de3e935d drm/amdgpu: force fbdev into vram
    e1b2b93243ca fork: prevent accidental access to clone3 features
    f256dea07774 gfs2: More gfs2_find_jhead fixes
    18541e49f70b mmc: block: Fix request completion in the CQE timeout path
    e8eb122b9f43 mmc: core: Fix recursive locking issue in CQE recovery path
    fdf547a591f5 mmc: core: Check request type before completing the request
    3a8bc2ae2f79 mmc: sdhci-pci-gli: Fix can not access GL9750 after reboot from Windows 10
    e0830bb37734 mmc: alcor: Fix a resource leak in the error path for ->probe()
    62f217e0a9c8 bpf, sockmap: bpf_tcp_ingress needs to subtract bytes from sg.size
    ce3193bf8964 bpf, sockmap: msg_pop_data can incorrecty set an sge length
    af1f11fe6667 drm/i915: Don't enable WaIncreaseLatencyIPCEnabled when IPC is disabled
    0d9bc7986366 i40iw: Fix error handling in i40iw_manage_arp_cache()
    95827ac65244 ALSA: firewire-lib: fix 'function sizeof not defined' error of tracepoints format
    5d47b3d6b4d2 bpf: Fix error return code in map_lookup_and_delete_elem()
    5b96668b63c0 pinctrl: cherryview: Add missing spinlock usage in chv_gpio_irq_handler
    aec927836c7d pinctrl: qcom: fix wrong write in update_dual_edge
    604ad1bb8aae pinctrl: baytrail: Enable pin configuration setting for GPIO chip
    960d609dd4dd pinctrl: sunrisepoint: Fix PAD lock register offset for SPT-H
    e529b8db9684 ACPI: EC: PM: Avoid premature returns from acpi_s2idle_wake()
    9e54afec08f7 IB/hfi1: Fix another case where pq is left on waitlist
    d942a6a18463 mmc: sdhci-pci-gli: Fix no irq handler from suspend
    171bf6ef038b gfs2: Another gfs2_walk_metadata fix
    87954aacd585 ALSA: hda/realtek - Fix S3 pop noise on Dell Wyse
    05aae468d31a ipc/util.c: sysvipc_find_ipc() incorrectly updates position index
    3c3ade92b62a drm/amdgpu: invalidate L2 before SDMA IBs (v2)
    938489ef2902 drm/amdgpu: simplify padding calculations (v2)
    eefe5e0bb7b7 drm/qxl: lost qxl_bo_kunmap_atomic_page in qxl_image_init_helper()
    94cce94badf7 drm/amd/display: Update downspread percent to match spreadsheet for DCN2.1
    f4164b29dc08 drm/amd/display: check if REFCLK_CNTL register is present
    65f3108cbb1d drm/amd/powerplay: avoid using pm_en before it is initialized revised
    8c5f11093ef4 ALSA: hda/hdmi: fix race in monitor detection during probe
    4d1a83cb5afe cpufreq: intel_pstate: Only mention the BIOS disabling turbo mode once
    d12d7bf92b08 selftests/ftrace: Check the first record for kprobe_args_type.tc
    2b313699e7a9 dmaengine: mmp_tdma: Reset channel error on release
    6c414ddee7f0 dmaengine: mmp_tdma: Do not ignore slave config validation errors
    de76c0d4a03c dmaengine: pch_dma.c: Avoid data race between probe and irq handler
    c096a8645e3f riscv: fix vdso build with lld
    2fffdf4dded1 umh: fix memory leak on execve failure
    44ee727013d5 r8169: re-establish support for RTL8401 chip version
    e03d3510f45c nfp: abm: fix error return code in nfp_abm_vnic_alloc()
    2fbd6eca3711 net: tcp: fix rx timestamp behavior for tcp_recvmsg
    fc800ec491c3 netprio_cgroup: Fix unlimited memory leak of v2 cgroups
    cab607a627cf net: ipv4: really enforce backoff for redirects
    d375d99f8902 net: dsa: loop: Add module soft dependency
    b2e8946250c3 hinic: fix a bug of ndo_stop
    d07987924a04 dpaa2-eth: prevent array underflow in update_cls_rule()
    84916465b0f0 virtio_net: fix lockdep warning on 32 bit
    23300d6a39d7 tcp: fix SO_RCVLOWAT hangs with fat skbs
    cb4f78986065 tcp: fix error recovery in tcp_zerocopy_receive()
    f152793058b5 Revert "ipv6: add mtu lock check in __ip6_rt_update_pmtu"
    5f93b45fa58c pppoe: only process PADT targeted at local interfaces
    ecb8356aafba net: stmmac: fix num_por initialization
    4300e210b005 net: phy: fix aneg restart in phy_ethtool_set_eee
    debcbc56fdfc netlabel: cope with NULL catmap
    60a4f2ce0596 net: fix a potential recursive NETDEV_FEAT_CHANGE
    97e860545e24 dpaa2-eth: properly handle buffer size restrictions
    425853cc1160 mmc: sdhci-acpi: Add SDHCI_QUIRK2_BROKEN_64_BIT_DMA for AMDI0040
    a761f65879e8 selftests/bpf: fix goto cleanup label not defined
    2d6d0ce4de03 scsi: sg: add sg_remove_request in sg_write
    7d8da6d7d90c net_sched: fix tcm_parent in tc filter dump
    e2824505a813 sun6i: dsi: fix gcc-4.8
    645b44b6b3b3 virtio-blk: handle block_device_operations callbacks after hot unplug
    fbe2c2c50914 drop_monitor: work around gcc-10 stringop-overflow warning
    23a0a0914a1e ftrace/selftests: workaround cgroup RT scheduling issues
    dbd667a322ac net: moxa: Fix a potential double 'free_irq()'
    2bcd4df42d5d net/sonic: Fix a resource leak in an error handling path in 'jazz_sonic_probe()'
    e15d3d42900a SUNRPC: Fix GSS privacy computation of auth->au_ralign
    3bf0794e7309 SUNRPC: Add "@len" parameter to gss_unwrap()
    3c605abef3ee gpio: pca953x: Fix pca953x_gpio_set_config
    163b48932571 KVM: arm: vgic: Synchronize the whole guest on GIC{D,R}_I{S,C}ACTIVER read
    7abefa3f9a4b net: phy: microchip_t1: add lan87xx_phy_init to initialize the lan87xx phy.
    a12f3ad8d952 shmem: fix possible deadlocks on shmlock_user_lock
    723090ae8ea6 net: dsa: Do not make user port errors fatal

Signed-off-by: Jens Rehsack <sno@netbsd.org>
4 years agou-boot-fslc: upgrade 2020.01 -> 2020.04
Pierre-Jean Texier [Wed, 27 May 2020 21:56:13 +0000 (21:56 +0000)]
u-boot-fslc: upgrade 2020.01 -> 2020.04

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
4 years agooptee-os: fix gcc10 build for imx fork
Andrey Zhizhikin [Tue, 26 May 2020 22:50:17 +0000 (22:50 +0000)]
optee-os: fix gcc10 build for imx fork

OP-TEE OS component fails to build on gcc10 due to missing __getauxval
function. This can be resolved via disabling of outline-atomics feature
in gcc10.

Backport upstream patch [1] with adaptions to optee-imx version.

Original patch uses $(call cc-option,-mno-outline-atomics,) to disable
outline-atomics which itself is broken and required 4 additional patches
to be compatible with gcc and clang.

This is resolved in the upstream PR [2], which is applicable to the
latest upstream version.

NXP fork contains old version of OP-TEE, and therefore would receive the
update for Makefiles with new version. Since it is not required to make
current NXP version compatible with old compiler versions on master
branch - outline-atomics are disabled directly.

[1]: https://github.com/OP-TEE/optee_os/pull/3891/commits/e07c2b062846df4385542f4e4fe08b40cf7d8191
[2]: https://github.com/OP-TEE/optee_os/pull/3891

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
4 years agoatf_git: add support for chosing boot device automatically
Jens Rehsack [Tue, 26 May 2020 16:38:46 +0000 (18:38 +0200)]
atf_git: add support for chosing boot device automatically

QorIQ platforms have to choose the boot device in rcw. Solid-Run created
an RCW snippet which is able to detect the boot device by checking all
and use first available.

Signed-off-by: Jens Rehsack <sno@netbsd.org>
4 years agorcw: compile only for needed boards
Jens Rehsack [Mon, 25 May 2020 17:02:52 +0000 (19:02 +0200)]
rcw: compile only for needed boards

Instead of default compile stage, which compiles for all built-in boards,
compile those boards which are needed (based on machine configuration).

Since BOARDS is a list either, do not run make for each target board but
handle all of them in one run.

Signed-off-by: Jens Rehsack <sno@netbsd.org>
4 years agou-boot-qoriq: remove superfluous .inc
Jens Rehsack [Mon, 25 May 2020 13:36:00 +0000 (15:36 +0200)]
u-boot-qoriq: remove superfluous .inc

With the removal of u-boot-qoriq-fw-utils in

    commit d15639a0a27393aa455adae113f4692c27367e89
    Author: Otavio Salvador <otavio@ossystems.com.br>
    Date:   Thu Apr 2 11:19:34 2020 -0300

u-boot-qoriq-fw-utils: Drop recipe as libubootenv works as replacement

u-boot-qoriq-common_2019.10.inc has lost any raison d'être. Move the
content of to u-boot-qoriq-common_2019.10.inc intou-boot-qoriq_2019.10.bb
for easier maintenance.

Signed-off-by: Jens Rehsack <sno@netbsd.org>
4 years agot2080: remove srio_pcie boot UBOOT_CONFIG
Ting Liu [Tue, 26 May 2020 05:47:03 +0000 (13:47 +0800)]
t2080: remove srio_pcie boot UBOOT_CONFIG

For the srio_pcie boot, the DM pcie driver does not support
this feature. Remove it.

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agojailhouse: Enable Jailhouse for i.MX
Cristinel Panfir [Tue, 12 May 2020 14:02:43 +0000 (17:02 +0300)]
jailhouse: Enable Jailhouse for i.MX

This is an adaptation of the original recipe
https://bitbucket.org/retotech/meta-jailhouse

- add recipe for Jailhouse version 0.11
- enable for mx8mq, mx8mm, mx8mn
- add pyjailhouse/python tools like jailhouse-cell-linux
- update to python3 classes

Signed-off-by: Cristinel Panfir <cristinel.panfir@nxp.com>
4 years agolinux-fslc-qoriq_5.4.bb: introduce rebased+fslc kernel
Jens Rehsack [Mon, 4 May 2020 14:19:43 +0000 (16:19 +0200)]
linux-fslc-qoriq_5.4.bb: introduce rebased+fslc kernel

Introduce recipe for a kernel based on stable/linux-5.4.y + NXP/QorIQ
patches + FSLC patches. The idea is to keep this kernel up-to-date
with stable/linux-5.4.y and upgrade with new LSDK-releases when they come
out.

A new stable kernel will receive a fresh rebased start.

Signed-off-by: Jens Rehsack <sno@netbsd.org>
4 years agolinux-qoriq.inc: build kernel PV as linux-imx.inc
Jens Rehsack [Sun, 24 May 2020 10:58:13 +0000 (12:58 +0200)]
linux-qoriq.inc: build kernel PV as linux-imx.inc

For later common kernel *.inc files, adopt setting the PV to the correct
kernel version to satisfy the kernel version sanity check.

Signed-off-by: Jens Rehsack <sno@netbsd.org>
4 years agols1043a/ls1046a: add back usdpaa dtb for dpdk
Ting Liu [Thu, 21 May 2020 10:10:27 +0000 (18:10 +0800)]
ls1043a/ls1046a: add back usdpaa dtb for dpdk

For the DPAA platforms, usdpaa dtb is actually used for DPDK.

DPDK specific Device Tree file is configured to provide userspace
applications with network interfaces.

Build it on NXP bsp only.

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agols1028ardb: build dtb dedicated for dpdk
Ting Liu [Thu, 21 May 2020 08:40:29 +0000 (16:40 +0800)]
ls1028ardb: build dtb dedicated for dpdk

fsl-ls1028a-rdb-dpdk.dtb is dedicated for dpdk which needs disable
some interfaces. Build it on NXP bsp only.

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agolinux-imx-headers: fix imx headers missing in sdk
Andrey Zhizhikin [Fri, 22 May 2020 20:22:53 +0000 (20:22 +0000)]
linux-imx-headers: fix imx headers missing in sdk

i.MX-specific headers are missing in SDK once generated via image
do_populate_sdk task.

This was caused by dropped ALLOW_EMPTY package-controlling variable
which is required for this recipe in order to indicate that package can
have RDEPENDS.

Additional RDEPENDS are also required by packages using new mechanisms
to include linux-imx-headers, this allows headers to be propagated to
the SDK when dependent package is included.

Introduce ALLOW_EMPTY in recipe and RDEPENDS in use-imx-headers bbclass
to have imx headers to be populated in the SDK.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
4 years agols1046ardb: fix duplicate dtb issue
Ting Liu [Mon, 18 May 2020 10:34:45 +0000 (18:34 +0800)]
ls1046ardb: fix duplicate dtb issue

fsl-ls1046a-rdb-sdk.dtb is listed twice and one is supposed to be
fsl-ls1046a-qds-sdk.dtb. This is due to a typo in previous commit:

41c93da5a ls1043a/ls1046a: append non-upstream dtb on NXP bsp only

Fix it with fsl-ls1046a-qds-sdk.dtb.

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agocst: Fix build with gcc10
Khem Raj [Sat, 16 May 2020 15:24:40 +0000 (08:24 -0700)]
cst: Fix build with gcc10

Fixes
create_hdr_common.c:42: multiple definition of `file_field'; parse_utils.o:/mnt/b/yoe/master/build/tmp/work/x86_64-linux/cst-native/git-r0/git/common/parse_utils.c:29: first defined here
| collect2: error: ld returned 1 exit status
| make: *** [Makefile:131: create_hdr_isbc] Error 1

Signed-off-by: Khem Raj <raj.khem@gmail.com>
4 years agofix: handle if KERNEL_DEVICETREE isn't defined
Christopher Boyd [Mon, 18 May 2020 13:24:49 +0000 (09:24 -0400)]
fix: handle if KERNEL_DEVICETREE isn't defined

4 years agolinux-fslc-imx: upgrade kernel to v5.4.41
Andrey Zhizhikin [Wed, 13 May 2020 22:06:19 +0000 (22:06 +0000)]
linux-fslc-imx: upgrade kernel to v5.4.41

Kernel repository has been upgraded to the v5.4.41 tag from korg

Tracking information is updated with the new stable tag.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
4 years agolinux-fslc: upgrade kernel to v5.4.41 from korg
Andrey Zhizhikin [Wed, 13 May 2020 22:02:53 +0000 (22:02 +0000)]
linux-fslc: upgrade kernel to v5.4.41 from korg

Tag v5.4.41 has been merged into the linux-fslc tree, update recipe to
pull new kernel version

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
4 years agolinux[-fslc]-imx: update defconfig to use imx_v8_defconfig
Andrey Zhizhikin [Wed, 13 May 2020 21:52:19 +0000 (21:52 +0000)]
linux[-fslc]-imx: update defconfig to use imx_v8_defconfig

Initial defconfig file submitted as a part of upgrade is not used by NXP
to configure the kernel for i.MX family, and rather imx_v8_defconfig
should be used as defconfig file instead. This has been indicated by NXP
as their kernel unification strategy to provide one kernel for i.MX and
QorIQ family.

Update the previously committed defconfig file to the content of
imx_v8_defconfig.

Patches applied before [d12d36d3] and [6ef0f40c] are noted in this
update.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
4 years agols1043a/ls1046a: append non-upstream dtb on NXP bsp only
Ting Liu [Fri, 24 Apr 2020 07:48:09 +0000 (15:48 +0800)]
ls1043a/ls1046a: append non-upstream dtb on NXP bsp only

dtb with -sdk suffix only exist in kernel from NXP bsp. Append them
in machine configuration file only when using NXP bsp. Also, add the
dtb which already exist in pure mainline kernel.

This avoids failure when building pure mainline kernel.

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agoqoriq-base.inc: Add support to easily choose which BSP to use
Ting Liu [Thu, 14 May 2020 15:07:40 +0000 (23:07 +0800)]
qoriq-base.inc: Add support to easily choose which BSP to use

Machines or distros can define which BSP it should use by default. We
are intending to default for NXP BSP by default and specific
machines or DISTROs might change it if need.

Two values are considered valid: mainline, nxp

For example:

QORIQ_DEFAULT_BSP = "nxp"

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agoqoriq: remove usdpaa dtb from KERNEL_DEVICETREE
Ting Liu [Thu, 14 May 2020 10:29:26 +0000 (18:29 +0800)]
qoriq: remove usdpaa dtb from KERNEL_DEVICETREE

usdpaa is unsupported feature now, and usdpaa dts does not exist
in pure mainline kernel. It only exist in kernel from NXP bsp.
Remove them to avoid failure when building pure mainline kernel.

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agoatf: fix build failure due to optee binary not exist
Ting Liu [Fri, 15 May 2020 04:56:41 +0000 (12:56 +0800)]
atf: fix build failure due to optee binary not exist

When optee enabled in DISTRO_FEATURES, optee-os-qoriq is added as
DEPENDS, and atf tries to find optee binary under ${DEPLOY_DIR_IMAGE}.
This has issue when do_deploy task of optee-os-qoriq does not run
before atf's do_compile.

Switch to find optee binary under ${RECIPE_SYSROOT} instead of
${DEPLOY_DIR_IMAGE}.

Steps to reproduce the issue:
$ echo 'DISTRO_FEATURES_append = " optee"' >>conf/local.conf
$ bitbake -c cleansstate atf optee-os-qoriq
$ bitbake -c install optee-os-qoriq
$ bitbake -c compile atf
| Building lx2160ardb
| Makefile:633: *** 'BL32=.../tmp/deploy/images/lx2160ardb/optee/tee_lx2160ardb.bin'
| was specified, but '.../tmp/deploy/images/lx2160ardb/optee/tee_lx2160ardb.bin'
| does not exist.  Stop.
| make: *** Waiting for unfinished jobs....

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agolx2160ardb: not use specific rcw for SD boot
Ting Liu [Thu, 14 May 2020 09:43:22 +0000 (17:43 +0800)]
lx2160ardb: not use specific rcw for SD boot

PBI command for Boot source is added by TF-A during its compilation,
no need to use spevific RCW for SD boot. Use the generic one.

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agoqemu-qoriq: enable aio/libusb PACKAGECONFIG
Ting Liu [Thu, 14 May 2020 10:15:37 +0000 (18:15 +0800)]
qemu-qoriq: enable aio/libusb PACKAGECONFIG

aio is required for virtio-blk-dataplane and libusb for passthrough
of usb devices.

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agoimx-uuc: Allow usage with use-mainline-bsp
Simone Agresta [Wed, 13 May 2020 14:59:33 +0000 (16:59 +0200)]
imx-uuc: Allow usage with use-mainline-bsp

Signed-off-by: Simone Agresta <simone.agresta@bticino.it>
4 years agopackagegroup-fsl-mfgtool: Allow usage with use-mainline-bsp
Simone Agresta [Wed, 13 May 2020 14:58:24 +0000 (16:58 +0200)]
packagegroup-fsl-mfgtool: Allow usage with use-mainline-bsp

Signed-off-by: Simone Agresta <simone.agresta@bticino.it>
4 years agoimx-kobs: Allow usage with use-mainline-bsp
Fabio Berton [Mon, 11 May 2020 17:41:51 +0000 (14:41 -0300)]
imx-kobs: Allow usage with use-mainline-bsp

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
4 years agolibdrm-armada: Allow usage with use-mainline-bsp
Fabio Berton [Mon, 11 May 2020 17:41:41 +0000 (14:41 -0300)]
libdrm-armada: Allow usage with use-mainline-bsp

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
4 years agoxf86-video-armada: Allow usage with use-mainline-bsp
Fabio Berton [Mon, 11 May 2020 17:41:04 +0000 (14:41 -0300)]
xf86-video-armada: Allow usage with use-mainline-bsp

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
4 years agogstreamer1.0-plugins-bad: update opencv patch to 4.3.0
Andrey Zhizhikin [Sat, 9 May 2020 20:48:52 +0000 (20:48 +0000)]
gstreamer1.0-plugins-bad: update opencv patch to 4.3.0

OpenCV has been upgraded upstream to 4.3.0 and current build of
gstreamer1.0-plugins-bad is broken as the previous patch required
version to be < 4.2.0

Backport the patch from upsteam to allow compilation with OpenCV 4.3.0
and replace the patch in the layer.

Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
4 years agofirmware-imx: Add 'use-mainline-bsp' as a valid override
Otavio Salvador [Sat, 9 May 2020 01:08:43 +0000 (22:08 -0300)]
firmware-imx: Add 'use-mainline-bsp' as a valid override

As 'imx' override is now filtered out, we need to whitelist the
'use-mainline-bsp' as a valid one.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Change-Id: I393a43720bc8896d1aadaf1fed059e3102489f25

4 years agoqoriq-ppc: add fsl/ prefix in KERNEL_DEVICETREE
Ting Liu [Thu, 7 May 2020 11:47:29 +0000 (19:47 +0800)]
qoriq-ppc: add fsl/ prefix in KERNEL_DEVICETREE

Fix below issue when compiling linux-qoriq:
make[2]: *** No rule to make target 'arch/powerpc/boot/dts/p4080ds.dtb'.

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agou-boot-qoriq: fix pylibfdt build with Python3
Ting Liu [Thu, 7 May 2020 11:50:51 +0000 (19:50 +0800)]
u-boot-qoriq: fix pylibfdt build with Python3

Backport patches to fix build failure on powerpc machines:
| /bin/sh: 1: python2: not found
| make[4]: *** [scripts/dtc/pylibfdt/_libfdt.so] Error 127
| make[3]: *** [scripts/dtc/pylibfdt] Error 2

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agolinux[-fslc]-imx: add missing config parameter
Andrey Zhizhikin [Thu, 7 May 2020 17:48:06 +0000 (17:48 +0000)]
linux[-fslc]-imx: add missing config parameter

CONFIG_SND_SOC_SOF_IMX8 requires CONFIG_SND_SOC_SOF_IMX8_SUPPORT to be
enabled, which is currently missing in the defconfig for both linux-imx
and linux-fslc-imx kernel recipes.

Add missing dependent variable to enable CONFIG_SND_SOC_SOF_IMX8.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
4 years agolinux-imx: Remove duplicate CRYPTO_SHA512 from defconfig
Kevin Lannen [Thu, 7 May 2020 14:22:02 +0000 (08:22 -0600)]
linux-imx: Remove duplicate CRYPTO_SHA512 from defconfig

The mx8 defconfig already contains CRYPTO_SHA512 as a module which is what is
honored so this removes the extra line that also sets CRYPTO_SHA512 to be built in

Signed-off-by: Kevin Lannen <kevin@patroness.com>
Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
4 years agolinux-fslc-imx: upgrade kernel to v5.4.39 and latest NXP patches
Andrey Zhizhikin [Thu, 7 May 2020 17:31:47 +0000 (17:31 +0000)]
linux-fslc-imx: upgrade kernel to v5.4.39 and latest NXP patches

- Kernel repository has been upgraded to the v5.4.39 tag from korg
- 8 additional patches from NXP kernel tree merged

Update recipe to new kernel revision and fill in tracking information,
including new tag from korg and all patches applied from NXP.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
4 years agolinux-fslc: upgrade kernel to v5.4.39 from korg
Andrey Zhizhikin [Thu, 7 May 2020 17:29:44 +0000 (17:29 +0000)]
linux-fslc: upgrade kernel to v5.4.39 from korg

Tag v5.4.39 has been merged into the linux-fslc tree, update recipe to
pull new kernel version.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
4 years agokernel-module-qoriq-gpu: rm as it is not needed now
Ting Liu [Thu, 23 Apr 2020 07:18:13 +0000 (15:18 +0800)]
kernel-module-qoriq-gpu: rm as it is not needed now

Now qoriq and imx use unified kernel source, kernel-module-imx-gpu-viv
can be used for qoriq too. remove kernel-module-qoriq-gpu.

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agogpulib: rm as it is not needed now
Ting Liu [Thu, 23 Apr 2020 07:17:09 +0000 (15:17 +0800)]
gpulib: rm as it is not needed now

Now qoriq uses imx-gpu-viv, gpulib is not needed. remove it.

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agolx2160ardb: define RCWEMMC
Ting Liu [Thu, 23 Apr 2020 07:08:14 +0000 (15:08 +0800)]
lx2160ardb: define RCWEMMC

EMMC boot on LX2160A RDB is supported now. Define RCWEMMC for atf
build.

Documents:
What's New in LSDK 20.04:
https://docs.nxp.com/bundle/GUID-51EEFEDB-ABD5-40C0-BEBD-6527B3494D57/page/GUID-01DD18F7-27DC-4A0F-B79B-FBB5CBA5F4C0.html

LX2160A Reference Design Board:
https://www.nxp.com/design/qoriq-developer-resources/layerscape-lx2160a-reference-design-board:LX2160A-RDB

LX2160A Multicore Communications Processor:
https://www.nxp.com/products/processors-and-microcontrollers/arm-processors/layerscape-communication-process/layerscape-lx2160a-multicore-communications-processor:LX2160A

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agoatf: easy define additional build target
Ting Liu [Tue, 21 Apr 2020 09:43:08 +0000 (11:43 +0200)]
atf: easy define additional build target

Use variable PLATFORM_ADDITIONAL_TARGET to allow define machine
dependent atf targets. This avoids checking ${MACHINE} in shell
script, and allows define additional build target using overrides.
For exmaple:
PLATFORM_ADDITIONAL_TARGET ??= ""
PLATFORM_ADDITIONAL_TARGET_ls1012afrwy = "ls1012afrwy_512mb"
PLATFORM_ADDITIONAL_TARGET_xxx = "yyy" # for other board

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agovpp-core/dpdkvpp: rm as it is not supported now
Ting Liu [Tue, 21 Apr 2020 05:51:55 +0000 (07:51 +0200)]
vpp-core/dpdkvpp: rm as it is not supported now

vpp-core fails to build now, no plan to fix it. And no test is done
on it with kernel 5.4. Remove it to avoid confusion.

dpdkvpp is required for vpp-core compilation. Comparing to dpdk, it
changes the thread local storage (TLS) models via -ftls-model option.
Remove it along with vpp-core.

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agotsntool: update to ca2d8fb
Ting Liu [Tue, 21 Apr 2020 05:13:45 +0000 (07:13 +0200)]
tsntool: update to ca2d8fb

New commits:
ca2d8fb tsntool: fix baset
ime get seconds.decimalseconds value
10a0aee tools: make alone
6ff6bfa tools:timestamping: add support TXTIME for procision frame transmit
18407a4 tsntool: add tag v0.4
9b6e536 demo:cnc: limit Qci config index with DEC values
65d86c7 demos:cnc: change operation mode from replace to merge
ae71fc0 demos:cnc: correct some prefixes
3c9419c demos:cnc: add madatory node in configuration
ee10f2d sample: add pktgen scripts for test
f86c64f Merge branch 'bitbucket-master'
7b89c9e Merge pull request #2 from hthiery/master
4253910 genl_tsn.h: use the defination of bool in stdbool.h
8036f38 Makefile add libtsn.pc.in file and add install
ddc2f1a Merge pull request #1 from mwalle/master
dcbd9a0 Makefile: use PKG_CONFIG
9c50461 fix parallel build
465e7c4 libtsn: correct the return value
9f3e586 tsntool: optimize the condition of the error output

tools/event and tools/timestamping are not be built, rm from do_install.

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agocst: update to 9aafbdf
Ting Liu [Tue, 21 Apr 2020 05:03:42 +0000 (07:03 +0200)]
cst: update to 9aafbdf

New commits:
9aafbdf scripts: LS1012ARDB: Correct path for pfe image
ac52cd3 scripts/platform:LS1028A: Changes firmware header offsets
21a5439 scripts/platform:LX104xA, LS1012A: Changes firmware header offsets
fbe5c2e scripts/platform:LX2160A: Changes firmware header offsets
51a32cb scripts/platform:LS1088A, LS2088A: Changes firmware header offsets

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agouefi: update to e95ed52
Ting Liu [Tue, 21 Apr 2020 04:57:21 +0000 (06:57 +0200)]
uefi: update to e95ed52

Main updates:
Common binary support for LX2-Rev1 and LX2-Rev2
LX2160A: PCIe ECAM Support
Inphi: skip error return if all PLLs are not locked

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agorcw: install rev2 binaries for lx2160ardb
Ting Liu [Sat, 18 Apr 2020 09:59:12 +0000 (17:59 +0800)]
rcw: install rev2 binaries for lx2160ardb

Now LX2160A rev2 is supported. Install rcw for both rev1 and rev2.

LX2160A rev2 processor fixes some PCIe/qDMA/SATA/USB/FlexCAN issues. A new
Reference Design Board (https://www.nxp.com/part/LX2160A-RDB-B) ships it.

RCW binaries in folder lx2160ardb_rev2 is for the Reference Design Board
with Rev 2 processor. Old boards uses rcw binariess in folder lx2160ardb.

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agodp-firmware-cadence: upgrade to LSDK-20.04
Ting Liu [Mon, 20 Apr 2020 02:57:19 +0000 (04:57 +0200)]
dp-firmware-cadence: upgrade to LSDK-20.04

Improved handling responses on AUX channel to fix failure on some
Dell monitors.

License-Update:
use 'LA_OPT_NXP_Software_License v11 February 2020'

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agopktgen-dpdk: upgrade to 19.12.0
Ting Liu [Mon, 20 Apr 2020 02:32:41 +0000 (04:32 +0200)]
pktgen-dpdk: upgrade to 19.12.0

Modifications:
 - 19.12.0 - Add per queue stats when the hardware does not support it. Use
             the 'page stats' command to see data and use 'port X' to switch
     ports.
 - 19.10.0 - Fix up the save/load commands to get correct as in GRE key
             command
     Fix up the problem with pcap files not getting sent if the
     number of packets was small
     fix up a crash if the scrn pointer was invalid on startup
     fixed the log output in startup
     Fixed the save/load scripts to use the correct commands.
     Fix the IPv4/6 checksum calculations
 - 19.08.0 - Fix linking of Lua library when no pkg-config file is found and
           linking liblua.a
   Fixed and issue with packet rate not being changed when the packet
   size is changed
   Change version numering to year.month.patch format
   Change lua pktgen.set_mac() to have three args set_mac(<portlist>,
   'src|dst', mac_addr) instead of two args
   add support for setting via lua src and dst mac addresses
   fix up the RSS port configuration options
           updated code to adjust the packet tx interval based on command
   changes on the packet size and other areas.
 - 3.7.1 - Add TTL support to single and range modes. Better docs for dump packets
         - Pktgen 3.7.1 will build with DPDK 18.02 to 19.08-rc2, but 18.08 has
   a problem with vhost.h VRING_EVENT_F_AVAIL not defined and appears
   the Ubuntu 19.04 version I am running does not define it correctly.
         - fixed the RX side using TX count for rx_burst command.
 - General cleanup
 - 3.7.0 - Fixed build issues with DPDK 19.08 as DPDK renamed a lot of defines
           Fixed up the meson files to build pktgen with meson and ninja
           Minor cleanup

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agosecure-obj: update to fb179a8
Ting Liu [Mon, 20 Apr 2020 01:52:47 +0000 (03:52 +0200)]
secure-obj: update to fb179a8

Upgrade secure-obj to fb179a8 containing just:
fb179a8 Bug: Fix for PLATSEC-969
since update for LSDK-19.09

Signed-off-by: Ting Liu <ting.liu@nxp.com>
Signed-off-by: Jens Rehsack <sno@netbsd.org>
(cherry picked from commit 41a8c80efe5c197a21433aa48d9038898c636054)

4 years agooptee-test-qoriq: add patch to use python3
Ting Liu [Sat, 18 Apr 2020 14:55:34 +0000 (22:55 +0800)]
optee-test-qoriq: add patch to use python3

python2 is EOL January 2020. This fixes build failure due to python2.

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agolinux-fslc-imx: introduce 5.4.y kernel with NXP patches
Andrey Zhizhikin [Mon, 4 May 2020 21:55:53 +0000 (21:55 +0000)]
linux-fslc-imx: introduce 5.4.y kernel with NXP patches

Introduce new kernel recipe, which incorporates all patches from
original NXP release 5.4.3-1.0.0 and latest patch level from stable
5.4.y kernel tree from korg.

This kernel recipe is a consolidation of modifications from upstream and
NXP and is meant to be supported by Community with further stable
patchlevel updates, individual patches which pending in upstream to be
included in the stable, and also to receive updates from NXP internal source
tree from the [lf-5.4.y] branch, which corresponds to release 5.4.3-1.0.0.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
4 years agolinux-imx-[mfgtool]-5.4.3: update recipes to align with kernel-yocto
Andrey Zhizhikin [Tue, 5 May 2020 17:13:55 +0000 (17:13 +0000)]
linux-imx-[mfgtool]-5.4.3: update recipes to align with kernel-yocto

When kernel-yocto class is inherited by kernel recipes, the way how PV
is constructed changes to reflect GIT kernel tags and meta information.

This causes the fetcher search to fail, since paths used to locate files
are compiled from PV.

Replace version-specific paths in recipes to use PN instead, which is
registered in the fetcher as a valid search location.

Linux kernel recipe should have LINUX_VERSION also defined, since it is
used by kernel-yocto class to derive PV. This version is set to the real
kernel version provided by NXP in their source tree.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
4 years agolinux-fslc: update PV definition to align with kernel-yocto
Andrey Zhizhikin [Mon, 4 May 2020 22:02:12 +0000 (22:02 +0000)]
linux-fslc: update PV definition to align with kernel-yocto

PV is defined in the base in linux-imx.inc file and uses the definition
LINUX_VERSION required by kernel-yocto.bbclass.

Instead of defining the PV in the target recipe, define LINUX_VERSION
which is effectively expanded in PV and used by the kernel-yocto class.

This define should match to the kernel version referenced by SRC_URI and
should be updated once patchlevel is merged.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
4 years agolinux-imx.inc: inherit kernel-yocto class
Andrey Zhizhikin [Sun, 3 May 2020 21:11:36 +0000 (21:11 +0000)]
linux-imx.inc: inherit kernel-yocto class

Since commit [de2ef0120432cba343452151e86cbc3c99876524] in oe-core, it
is possible to use kernel-yocto class without including linux-yocto.inc
into the recipe.

Inherit the class in order to take advantage of providing mechanisms to
use kernel config fragments, patches and verification features
implemented upstream.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
5 years agoweston: Restore partial clients for i.MX 6 and 7
Tom Hochstein [Tue, 5 May 2020 17:16:01 +0000 (12:16 -0500)]
weston: Restore partial clients for i.MX 6 and 7

The clients configuration for fbdev was recently removed from
meta-freescale [1] because of the following error:

```
| Run-time dependency gbm found: NO (tried pkgconfig and cmake)
|
| clients/meson.build:134:4: ERROR: Problem encountered: weston-simple-dmabuf-egl requires gbm which was not found. If you rather not build this, drop "dmabuf-egl" from simple-clients option.
```

[1] eda44e49618610c13ebe4c026cd4981b404a1543

It was also removed for non-Wayland from OE-core [2] because of the
following error in the same client dmabuf-egl:

```
clients/meson.build:141:4: ERROR: Problem encountered: weston-simple-dmabuf-egl
requires option renderer-gl which is not enabled. If you rather not build this,
drop "dmabuf-egl" from simple-clients option.
```

[2] 9b1d30810eeecb46b977c8eed68be69aef891312

Restore the working subset of clients.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
5 years agolinux-qoriq: add perf patch to resolve linux-qoriq build
Andrey Zhizhikin [Tue, 5 May 2020 13:31:54 +0000 (13:31 +0000)]
linux-qoriq: add perf patch to resolve linux-qoriq build

Kernel 5.4.y for QorIQ platform requires the patch in order to compile
perf component successfully.

Patch has a proper Upstream-Status and points to commit SHA in upstream
kernel tree. It is identical to the one present in the linux-imx recipe,
since kernle tree for i.MX platform also requires it.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
5 years agolinux-imx-5.4.3: update perf patch with upstream status
Andrey Zhizhikin [Tue, 5 May 2020 13:29:47 +0000 (13:29 +0000)]
linux-imx-5.4.3: update perf patch with upstream status

Upstream-Status tag was missing in the original patch and is updated to
the Submitted status with reporting commit SHA in upstream.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
5 years agoqtbase: Fix patch fuzz for mkspecs/linux-oe-g++/qmake.conf
antznin [Tue, 5 May 2020 13:28:15 +0000 (15:28 +0200)]
qtbase: Fix patch fuzz for mkspecs/linux-oe-g++/qmake.conf

The current version of the patch causes a fuzz because of context
change.

Signed-off-by: antznin <agodard@witekio.com>
5 years agooptee-os: Replace /lib by ${nonarch_base_libdir} in do_install
antznin [Wed, 29 Apr 2020 12:37:38 +0000 (14:37 +0200)]
optee-os: Replace /lib by ${nonarch_base_libdir} in do_install

This fixes a do_package error when using `usrmerge` in
`DISTRO_FEATURES`. In that case the bin files should have been installed
in /usr/lib. Using ${nonarch_base_libdir} makes the location specific to
distro settings.

Signed-off-by: antznin <agodard@witekio.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Change-Id: I9d6c015975b093f74f29927a7e8bdfd87fd3dc09

5 years agoqtbase: Allow easy override of the mainline BSP GL backend
Otavio Salvador [Sat, 2 May 2020 00:33:39 +0000 (21:33 -0300)]
qtbase: Allow easy override of the mainline BSP GL backend

Using a weak setting, allow distributions to override it and make
customizations if need (use gl, for example).

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Change-Id: Id1ee47764148e07feba86e16cd7d282a37dcf9e9

5 years agoRevert "qtbase: Do not pin gles2 when using open source graphic stack"
Otavio Salvador [Fri, 1 May 2020 06:24:38 +0000 (03:24 -0300)]
Revert "qtbase: Do not pin gles2 when using open source graphic stack"

This reverts commit 1cf9efd20fd94afdd2f7484b0570c570a21b8b65.

The qtbase configure fail to find any suitable GL library, so it fails
with:

,----
| WARNING: No QPA platform plugin enabled! This will produce a Qt that
| cannot run GUI applications.  See "Platform backends" in the output of
| --help.
|
| ERROR: Feature 'opengl-desktop' was enabled, but the pre-condition
| '(config.win32 && !config.winrt && !features.opengles2
|     && (config.msvc || libs.opengl))
|  || (!config.watchos && !config.win32 && !config.wasm && libs.opengl)' failed.
|
| ERROR: Feature 'eglfs' was enabled, but the pre-condition
|   '!config.android && !config.darwin && !config.win32 && !config.wasm
|   && features.egl' failed.
`----

Fixed: #378

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
5 years agoimx-boot: fix mkimage_uboot linking issue
Ming Liu [Sat, 2 May 2020 11:09:17 +0000 (13:09 +0200)]
imx-boot: fix mkimage_uboot linking issue

In imx-boot's Makefile, it downloads a native tool mkimage_uboot and
executes it, but this native tool requires libssl.so.1.1, which is in
${STAGING_LIBDIR_NATIVE}, we need set LD_LIBRARY_PATH to include it, or
it might run into following errors:
| ./mkimage_uboot -E -p 0x3000 -f u-boot.its u-boot.itb
| ./mkimage_uboot: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory

Signed-off-by: Ming Liu <ming.liu@toradex.com>
5 years agokernel-module-qca6174_3.0: avoid kernel module build errors
Peter Griffin [Fri, 1 May 2020 12:10:16 +0000 (14:10 +0200)]
kernel-module-qca6174_3.0: avoid kernel module build errors

Currently the kernel module fails to build with following
undefined symbols due to missing Kconfig option.

| rpb-dunfell/build-rpb-wayland/tmp-rpb_wayland-glibc/work/imx8mqevk-linaro-linux/kernel-module-qca6174/3.0-r0/git/CORE/HDD/src/wlan_hdd_cfg80211.c:15910:13: error: 'qca_wlan_vendor_ocb_set_config_policy' undeclared here (not in a function); did you mean 'qca_wlan_vendor_setband_policy'?
| 15910 |   .policy = qca_wlan_vendor_ocb_set_config_policy,
|       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|       |             qca_wlan_vendor_setband_policy
| rpb-dunfell/build-rpb-wayland/tmp-rpb_wayland-glibc/work/imx8mqevk-linaro-linux/kernel-module-qca6174/3.0-r0/git/CORE/HDD/src/wlan_hdd_cfg80211.c:15919:13: error: 'qca_wlan_vendor_ocb_set_utc_time_policy' undeclared here (not in a function); did you mean 'qca_wlan_vendor_ll_set_policy'?
| 15919 |   .policy = qca_wlan_vendor_ocb_set_utc_time_policy,
|       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|       |             qca_wlan_vendor_ll_set_policy
| rpb-dunfell/build-rpb-wayland/tmp-rpb_wayland-glibc/work/imx8mqevk-linaro-linux/kernel-module-qca6174/3.0-r0/git/CORE/HDD/src/wlan_hdd_cfg80211.c:15929:13: error: 'qca_wlan_vendor_ocb_start_timing_advert_policy' undeclared here (not in a function); did you mean 'qca_wlan_vendor_attr_ocb_start_timing_advert'?
| 15929 |   .policy = qca_wlan_vendor_ocb_start_timing_advert_policy,
|       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|       |             qca_wlan_vendor_attr_ocb_start_timing_advert
| rpb-dunfell/build-rpb-wayland/tmp-rpb_wayland-glibc/work/imx8mqevk-linaro-linux/kernel-module-qca6174/3.0-r0/git/CORE/HDD/src/wlan_hdd_cfg80211.c:15938:13: error: 'qca_wlan_vendor_ocb_stop_timing_advert_policy' undeclared here (not in a function); did you mean 'qca_wlan_vendor_attr_ocb_stop_timing_advert'?
| 15938 |   .policy = qca_wlan_vendor_ocb_stop_timing_advert_policy,
|       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|       |             qca_wlan_vendor_attr_ocb_stop_timing_advert
| rpb-dunfell/build-rpb-wayland/tmp-rpb_wayland-glibc/work/imx8mqevk-linaro-linux/kernel-module-qca6174/3.0-r0/git/CORE/HDD/src/wlan_hdd_cfg80211.c:15956:13: error: 'qca_wlan_vendor_dcc_get_stats' undeclared here (not in a function); did you mean 'qca_wlan_vendor_attr_dcc_get_stats'?
| 15956 |   .policy = qca_wlan_vendor_dcc_get_stats,
|       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|       |             qca_wlan_vendor_attr_dcc_get_stats
| rpb-dunfell/build-rpb-wayland/tmp-rpb_wayland-glibc/work/imx8mqevk-linaro-linux/kernel-module-qca6174/3.0-r0/git/CORE/HDD/src/wlan_hdd_cfg80211.c:15965:13: error: 'qca_wlan_vendor_dcc_clear_stats' undeclared here (not in a function); did you mean 'qca_wlan_vendor_attr_dcc_clear_stats'?
| 15965 |   .policy = qca_wlan_vendor_dcc_clear_stats,
|       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|       |             qca_wlan_vendor_attr_dcc_clear_stats
| rpb-dunfell/build-rpb-wayland/tmp-rpb_wayland-glibc/work/imx8mqevk-linaro-linux/kernel-module-qca6174/3.0-r0/git/CORE/HDD/src/wlan_hdd_cfg80211.c:15974:13: error: 'qca_wlan_vendor_dcc_update_ndl' undeclared here (not in a function); did you mean 'qca_wlan_vendor_attr_dcc_update_ndl'?
| 15974 |   .policy = qca_wlan_vendor_dcc_update_ndl,
|       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|       |             qca_wlan_vendor_attr_dcc_update_ndl
| rpb-dunfell/build-rpb-wayland/tmp-rpb_wayland-glibc/work/imx8mqevk-linaro-linux/kernel-module-qca6174/3.0-r0/git/CORE/HDD/src/wlan_hdd_cfg80211.c: In function '__wlan_hdd_cfg80211_scan':
| rpb-dunfell/build-rpb-wayland/tmp-rpb_wayland-glibc/work/imx8mqevk-linaro-linux/kernel-module-qca6174/3.0-r0/git/CORE/HDD/src/wlan_hdd_cfg80211.c:22920:8: warning: ISO C90 forbids variable length array 'chList' [-Wvla]
| 22920 |        char chList [(request->n_channels*5)+1];
|       |        ^~~~
| rpb-dunfell/build-rpb-wayland/tmp-rpb_wayland-glibc/work/imx8mqevk-linaro-linux/kernel-module-qca6174/3.0-r0/git/CORE/HDD/src/wlan_hdd_cfg80211.c: In function '__wlan_hdd_cfg80211_sched_scan_start':
| rpb-dunfell/build-rpb-wayland/tmp-rpb_wayland-glibc/work/imx8mqevk-linaro-linux/kernel-module-qca6174/3.0-r0/git/CORE/HDD/src/wlan_hdd_cfg80211.c:28751:9: warning: ISO C90 forbids variable length array 'chList' [-Wvla]
| 28751 |         char chList [(request->n_channels*5)+1];
|       |         ^~~~
| At top level:
| rpb-dunfell/build-rpb-wayland/tmp-rpb_wayland-glibc/work/imx8mqevk-linaro-linux/kernel-module-qca6174/3.0-r0/git/CORE/HDD/src/wlan_hdd_cfg80211.c:25078:20: warning: 'hdd_ieee80211_reason_code_to_str' defined but not used [-Wunused-function]
| 25078 | static const char *hdd_ieee80211_reason_code_to_str(uint16_t reason)
|       |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
5 years agoimx-base.inc: Add imx override to filter_out list of mainline BSP
Otavio Salvador [Fri, 1 May 2020 05:23:14 +0000 (02:23 -0300)]
imx-base.inc: Add imx override to filter_out list of mainline BSP

We should avoid leaking NXP settings when using mainline BSP so we need
to filter it out.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
5 years agoimx-base.inc: Reduce override of libdrm for mx6, mx7 and mx8
Otavio Salvador [Fri, 1 May 2020 05:20:43 +0000 (02:20 -0300)]
imx-base.inc: Reduce override of libdrm for mx6, mx7 and mx8

The library should not be overrided for SoCs without official BSP
releases from NXP as it is untested.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
5 years agomesa: Remove 'vc4' from PACKAGECONFIG for mainline BSP
Otavio Salvador [Fri, 1 May 2020 23:10:58 +0000 (20:10 -0300)]
mesa: Remove 'vc4' from PACKAGECONFIG for mainline BSP

The SoCs supported by meta-freescale does not use vc4 and then we can
drop it from the features.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Change-Id: I2b8e04c54644315401315c442a5e2cec8624c3f3

5 years agomesa: Simplify PACKAGECONFIG for mainline BSP
Otavio Salvador [Fri, 1 May 2020 05:19:15 +0000 (02:19 -0300)]
mesa: Simplify PACKAGECONFIG for mainline BSP

The mainline BSP can use same settings for all SoCs reducing the
complexity.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
5 years agoxserver-xf86-config: Fix xorg.conf for 6ULL
Tom Hochstein [Fri, 24 Apr 2020 22:22:11 +0000 (17:22 -0500)]
xserver-xf86-config: Fix xorg.conf for 6ULL

The 6ULL does not have a hardware-accelerated framebuffer
device, so switch to the kernel framebuffer device.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
5 years agoweston: Cleanup FILES for no longer used folder
Tom Hochstein [Tue, 28 Apr 2020 19:46:10 +0000 (14:46 -0500)]
weston: Cleanup FILES for no longer used folder

${sysconfdir}/xdg/weston was used to install weston.ini,
but that functionality has moved to weston-init.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
5 years agoweston: Fix build error for opengl typo
Tom Hochstein [Tue, 28 Apr 2020 19:23:12 +0000 (14:23 -0500)]
weston: Fix build error for opengl typo

There was an extra hyphen on the command line:

meson: error: unrecognized arguments: --Dopengl=false

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
5 years agoweston: Fix non-GBM build error for i.MX 6 & 7
Tom Hochstein [Tue, 28 Apr 2020 19:21:02 +0000 (14:21 -0500)]
weston: Fix non-GBM build error for i.MX 6 & 7

i.MX 6 and 7 doesn't support GBM, required by weston-simple-dmabuf-egl:

| Run-time dependency gbm found: NO (tried pkgconfig and cmake)
|
| clients/meson.build:134:4: ERROR: Problem encountered: weston-simple-dmabuf-egl requires gbm which was not found. If you rather not build this, drop "dmabuf-egl" from simple-clients option.

Remove the clients for i.MX 6 and 7.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
5 years agoweston: Restructure recipe for ease of maintanance
Tom Hochstein [Tue, 28 Apr 2020 14:49:32 +0000 (09:49 -0500)]
weston: Restructure recipe for ease of maintanance

Structure the recipe into two sections, the top as a verbatim
copy of the upstream recipe that is the basis, and the bottom
for the i.MX customization.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>