PR has been closed upstream with modifications to originally submitted
patch. Later implementation implied more modification, which are not
compatible with current version, therefore accepted patch has been
backported to this fork.
Refresh patch file with updated version from upstream.
Andrey Zhizhikin [Sat, 30 May 2020 22:27:24 +0000 (22:27 +0000)]
optee-os: backport gcc10 compilation fix from upstream
Backport PR 3891 [1] from OP-TEE upstream repository. This PR solves
GCC10 compilation issue when new compiler option `outline-atomics` is
not implemented and causes the linker error.
In addition, above upstream PR solves issue with 'cc-option` macro,
which is necessary to be used to provide comptibility with GCC <10 to
disable the `outline-atomics` option, since it is present only in GCC10.
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>
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>
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"
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
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.
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.
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
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
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
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
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>
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.
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.
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
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.
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.
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.
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
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.
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.
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
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.
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.
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.
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.
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....
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.
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.
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>
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
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.
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.
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
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.
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.
Inherit the class in order to take advantage of providing mechanisms to
use kernel config fragments, patches and verification features
implemented upstream.
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.
```
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.
```
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.
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
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>
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
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>