BSP2.8 + modifications to use RT kernel

This is a follow-up question to this question.
It is known that the RT kernel patch for the iMX6 was broken somewhere between BSP2.8.4 and 2.8.6. The mentioned fix was not included into the stable release.
What would be the preferred way to include those changes under the aspect that we want to use the stable release?
I always thought that a BSP release is equivalent to specific layer revisions, correct? So strictly spoken when i update the affected layer i am not using the stable release any more?
Thanks in advance.

Hi @qojote

It is known that the RT kernel patch for the iMX6 was broken somewhere between BSP2.8.4 and 2.8.6. The mentioned fix was not included into the stable release.

Yes, this issue was fixed by this patch.

What would be the preferred way to include those changes under the aspect that we want to use the stable release?

There are two ways, either you can use the rocko branch and just add a patch to change the needed files or you can refer to the rocko-next branch.
Anyway in future we will merge the patches from rocko-next branch to rocko branch for maintenance.

I always thought that a BSP release is equivalent to specific layer revisions, correct?

Yes.

So strictly spoken when i update the affected layer i am not using the stable release any more?

This depends on the revision you used to build your image. If the revision is before the stable release, then you won’t have the same content as the stable release. If the revision is after the stable release, then you will get the same content as the stable release with some additional patches. These additional patches are just for maintenance, but we will not create any new binaries for Bsp 2.8 after a stable release as explained here.

Maybe there is some misunderstanding, but Toradex provides only a demo Image and the customer should build his own image. This image built by the customer should also used for the end products.

Thanks in advance.

You are welcome.

Best regards,
Jaski

This should really long since have been fixed here:

http://git.toradex.com/cgit/meta-toradex-nxp.git/commit/?h=rocko-next&id=850fb2c12f446023c3d186f6050c9a5fec998266

Maybe i missed something? I did a complete repo sync, deleted all old files and tried to bitbake virtual/kernel.

And what exactly did you repo sync resp. repo init to? As you will need to use meta-toradex-nxp from the rocko-next branch.

I have executed the following commands:

repo init -u http://git.toradex.com/toradex-bsp-platform.git -b LinuxImageV2.8
repo sync

The meta-toradex-nxp info states:

Project: meta-toradex-nxp.git
Mount path: /home/user/oe-core/layers/meta-toradex-nxp
Current revision: a5f5d85e52717e136e692478fb5d822c1ce70046
Manifest revision: a5f5d85e52717e136e692478fb5d822c1ce70046
Local Branches: 0

What exactly do i have to change now?

I am still not able to build the RT kernel for the iMX6D using the BSP 2.8. According to previous post i thought that the necessary changes will be integrated into the stable BSP2.8. However the following error pops up during the kernel compilation:

linux-toradex-rt-4.9-2.3.x+gitAUTOINC+d899927728-r0 do_patch: Command Error: 'quilt --quiltrc /home/user/oe-core/build/tmp-glibc/work/apalis_imx6-angstrom-linux-gnueabi/linux-toradex-rt/4.9-2.3.x+gitAUTOINC+d899927728-r0/recipe-sysroot-native/etc/quiltrc push' exited with 0  Output:
Applying patch patch-4.9.115-rt94.patch
patching file Documentation/sysrq.txt
patching file Documentation/trace/histograms.txt
patching file MAINTAINERS
patching file arch/Kconfig
patching file arch/arm/Kconfig
Hunk #3 succeeded at 2170 (offset 12 lines).
patching file arch/arm/include/asm/irq.h
Hunk #1 succeeded at 22 with fuzz 1.
patching file arch/arm/include/asm/switch_to.h
patching file arch/arm/include/asm/thread_info.h
patching file arch/arm/kernel/asm-offsets.c
patching file arch/arm/kernel/entry-armv.S
patching file arch/arm/kernel/entry-common.S
Hunk #1 succeeded at 37 (offset 1 line).
Hunk #2 succeeded at 66 (offset 2 lines).
patching file arch/arm/kernel/patch.c
patching file arch/arm/kernel/process.c
patching file arch/arm/kernel/signal.c
Hunk #1 succeeded at 581 (offset 9 lines).
patching file arch/arm/kernel/smp.c
Hunk #1 succeeded at 265 (offset 31 lines).
Hunk #2 succeeded at 280 (offset 31 lines).
patching file arch/arm/kernel/unwind.c
patching file arch/arm/kvm/arm.c
patching file arch/arm/mach-exynos/platsmp.c
patching file arch/arm/mach-hisi/platmcpm.c
patching file arch/arm/mach-omap2/omap-smp.c
Hunk #2 succeeded at 172 (offset 41 lines).
Hunk #3 succeeded at 187 (offset 41 lines).
Hunk #4 succeeded at 264 (offset 41 lines).
patching file arch/arm/mach-prima2/platsmp.c
patching file arch/arm/mach-qcom/platsmp.c
patching file arch/arm/mach-spear/platsmp.c
patching file arch/arm/mach-sti/platsmp.c
patching file arch/arm/mm/fault.c
Hunk #1 succeeded at 436 (offset 3 lines).
Hunk #2 succeeded at 506 (offset 3 lines).
patching file arch/arm/mm/highmem.c
patching file arch/arm/plat-versatile/platsmp.c
patching file arch/arm64/Kconfig
patching file arch/arm64/crypto/Kconfig
patching file arch/arm64/include/asm/thread_info.h
patching file arch/arm64/kernel/asm-offsets.c
patching file arch/arm64/kernel/entry.S
patching file arch/arm64/kernel/signal.c
patching file arch/mips/Kconfig
Hunk #1 succeeded at 2520 (offset 3 lines).
patching file arch/powerpc/Kconfig
patching file arch/powerpc/include/asm/thread_info.h
patching file arch/powerpc/kernel/asm-offsets.c
patching file arch/powerpc/kernel/entry_32.S
Hunk #1 succeeded at 838 (offset 3 lines).
Hunk #2 succeeded at 856 (offset 3 lines).
Hunk #3 succeeded at 1187 (offset 9 lines).
Hunk #4 succeeded at 1208 (offset 9 lines).
patching file arch/powerpc/kernel/entry_64.S
patching file arch/powerpc/kernel/irq.c
patching file arch/powerpc/kernel/misc_32.S
patching file arch/powerpc/kernel/misc_64.S
patching file arch/powerpc/kvm/Kconfig
patching file arch/powerpc/platforms/ps3/device-init.c
patching file arch/sh/kernel/irq.c
patching file arch/sparc/Kconfig
patching file arch/sparc/kernel/irq_64.c
patching file arch/x86/Kconfig
patching file arch/x86/crypto/aesni-intel_glue.c
patching file arch/x86/crypto/camellia_aesni_avx2_glue.c
patching file arch/x86/crypto/camellia_aesni_avx_glue.c
patching file arch/x86/crypto/cast5_avx_glue.c
patching file arch/x86/crypto/cast6_avx_glue.c
patching file arch/x86/crypto/chacha20_glue.c
Hunk #1 succeeded at 81 (offset 1 line).
patching file arch/x86/crypto/glue_helper.c
patching file arch/x86/crypto/serpent_avx2_glue.c
patching file arch/x86/crypto/serpent_avx_glue.c
patching file arch/x86/crypto/serpent_sse2_glue.c
patching file arch/x86/crypto/twofish_avx_glue.c
patching file arch/x86/entry/common.c
patching file arch/x86/entry/entry_32.S
patching file arch/x86/entry/entry_64.S
Hunk #1 succeeded at 488 with fuzz 1.
patching file arch/x86/include/asm/fpu/api.h
patching file arch/x86/include/asm/preempt.h
patching file arch/x86/include/asm/signal.h
patching file arch/x86/include/asm/stackprotector.h
patching file arch/x86/include/asm/thread_info.h
patching file arch/x86/include/asm/uv/uv_bau.h
patching file arch/x86/kernel/acpi/boot.c
patching file arch/x86/kernel/apic/io_apic.c
Hunk #1 succeeded at 1713 (offset 1 line).
patching file arch/x86/kernel/asm-offsets.c
patching file arch/x86/kernel/cpu/mcheck/mce.c
Hunk #2 succeeded at 1338 (offset 1 line).
Hunk #3 succeeded at 1347 (offset 1 line).
Hunk #4 succeeded at 1381 (offset 1 line).
Hunk #5 succeeded at 1389 (offset 1 line).
Hunk #6 succeeded at 1404 (offset 1 line).
Hunk #7 succeeded at 1414 (offset 1 line).
Hunk #8 succeeded at 1471 (offset 1 line).
Hunk #9 succeeded at 1783 (offset 1 line).
Hunk #10 succeeded at 1792 (offset 1 line).
Hunk #11 succeeded at 2547 (offset 1 line).
Hunk #12 succeeded at 2571 (offset 1 line).
Hunk #13 succeeded at 2579 (offset 1 line).
Hunk #14 succeeded at 2598 (offset 1 line).
Hunk #15 succeeded at 2639 (offset 1 line).
patching file arch/x86/kernel/fpu/core.c
Hunk #1 succeeded at 138 (offset -20 lines).
patching file arch/x86/kernel/irq_32.c
Hunk #1 succeeded at 129 (offset 1 line).
Hunk #2 succeeded at 146 (offset 1 line).
patching file arch/x86/kernel/process_32.c
patching file arch/x86/kvm/lapic.c
Hunk #1 succeeded at 1970 (offset 16 lines).
patching file arch/x86/kvm/x86.c
Hunk #1 succeeded at 6121 (offset 124 lines).
patching file arch/x86/mm/highmem_32.c
patching file arch/x86/mm/iomap_32.c
patching file arch/x86/mm/pageattr.c
patching file arch/x86/platform/uv/tlb_uv.c
Hunk #8 succeeded at 1940 (offset 1 line).
patching file arch/x86/platform/uv/uv_time.c
patching file block/blk-core.c
Hunk #3 succeeded at 704 (offset 29 lines).
Hunk #4 succeeded at 789 (offset 29 lines).
Hunk #5 succeeded at 3219 (offset 7 lines).
Hunk #6 succeeded at 3267 (offset 7 lines).
Hunk #7 succeeded at 3286 (offset 7 lines).
Hunk #8 succeeded at 3298 (offset 7 lines).
Hunk #9 succeeded at 3325 (offset 7 lines).
Hunk #10 succeeded at 3576 (offset 10 lines).
patching file block/blk-ioc.c
patching file block/blk-mq.c
Hunk #1 succeeded at 175 (offset -2 lines).
Hunk #2 succeeded at 346 (offset -2 lines).
Hunk #3 succeeded at 364 (offset -2 lines).
Hunk #4 succeeded at 377 (offset -2 lines).
Hunk #5 succeeded at 924 (offset -2 lines).
patching file block/blk-mq.h
patching file block/blk-softirq.c
patching file block/bounce.c
patching file crypto/algapi.c
patching file crypto/api.c
patching file crypto/internal.h
patching file drivers/acpi/acpica/acglobal.h
patching file drivers/acpi/acpica/hwregs.c
patching file drivers/acpi/acpica/hwxface.c
patching file drivers/acpi/acpica/utmutex.c
patching file drivers/ata/libata-sff.c
patching file drivers/block/zram/zcomp.c
patching file drivers/block/zram/zcomp.h
patching file drivers/block/zram/zram_drv.c
patching file drivers/block/zram/zram_drv.h
patching file drivers/char/random.c
Hunk #5 succeeded at 2119 (offset 8 lines).
Hunk #6 succeeded at 2128 (offset 8 lines).
Hunk #7 succeeded at 2146 (offset 8 lines).
Hunk #8 succeeded at 2156 (offset 8 lines).
patching file drivers/char/tpm/tpm_tis.c
patching file drivers/clocksource/tcb_clksrc.c
patching file drivers/clocksource/timer-atmel-pit.c
patching file drivers/clocksource/timer-atmel-st.c
patching file drivers/connector/cn_proc.c
patching file drivers/cpufreq/Kconfig.x86
patching file drivers/gpu/drm/i915/i915_gem_execbuffer.c
patching file drivers/gpu/drm/i915/i915_gem_shrinker.c
patching file drivers/gpu/drm/i915/i915_irq.c
patching file drivers/gpu/drm/i915/intel_display.c
patching file drivers/gpu/drm/i915/intel_sprite.c
patching file drivers/gpu/drm/msm/msm_gem_shrinker.c
patching file drivers/gpu/drm/radeon/radeon_display.c
patching file drivers/hv/vmbus_drv.c
Hunk #1 succeeded at 781 (offset 20 lines).
Hunk #2 succeeded at 830 (offset 20 lines).
patching file drivers/ide/alim15x3.c
patching file drivers/ide/hpt366.c
patching file drivers/ide/ide-io-std.c
patching file drivers/ide/ide-io.c
patching file drivers/ide/ide-iops.c
patching file drivers/ide/ide-probe.c
patching file drivers/ide/ide-taskfile.c
patching file drivers/infiniband/ulp/ipoib/ipoib_multicast.c
patching file drivers/input/gameport/gameport.c
patching file drivers/iommu/amd_iommu.c
Hunk #1 succeeded at 1943 (offset 20 lines).
Hunk #2 succeeded at 2114 (offset 20 lines).
Hunk #3 succeeded at 2303 (offset 20 lines).
Hunk #4 succeeded at 2320 (offset 20 lines).
patching file drivers/iommu/intel-iommu.c
Hunk #1 succeeded at 480 (offset 1 line).
Hunk #2 succeeded at 3736 (offset 16 lines).
Hunk #3 succeeded at 3770 (offset 16 lines).
patching file drivers/iommu/iova.c
patching file drivers/leds/trigger/Kconfig
patching file drivers/md/bcache/Kconfig
patching file drivers/md/dm-rq.c
patching file drivers/md/raid5.c
Hunk #5 succeeded at 6427 (offset 6 lines).
Hunk #6 succeeded at 6438 (offset 6 lines).
patching file drivers/md/raid5.h
patching file drivers/misc/Kconfig
patching file drivers/mmc/host/mmci.c
patching file drivers/net/ethernet/3com/3c59x.c
patching file drivers/net/wireless/intersil/orinoco/orinoco_usb.c
patching file drivers/pinctrl/qcom/pinctrl-msm.c
Hunk #19 succeeded at 891 (offset 13 lines).
patching file drivers/scsi/fcoe/fcoe.c
patching file drivers/scsi/fcoe/fcoe_ctlr.c
patching file drivers/scsi/libfc/fc_exch.c
patching file drivers/scsi/libsas/sas_ata.c
patching file drivers/scsi/qla2xxx/qla_inline.h
patching file drivers/scsi/qla2xxx/qla_isr.c
patching file drivers/thermal/x86_pkg_temp_thermal.c
patching file drivers/tty/serial/8250/8250_core.c
patching file drivers/tty/serial/8250/8250_port.c
Hunk #2 succeeded at 3144 (offset -1 lines).
patching file drivers/tty/serial/amba-pl011.c
patching file drivers/tty/serial/omap-serial.c
patching file drivers/usb/core/hcd.c
Hunk #1 succeeded at 1765 (offset 1 line).
patching file drivers/usb/gadget/function/f_fs.c
patching file drivers/usb/gadget/legacy/inode.c
patching file fs/aio.c
Hunk #1 FAILED at 40.
Hunk #2 succeeded at 118 (offset 1 line).
Hunk #3 succeeded at 261 (offset 1 line).
Hunk #4 succeeded at 629 (offset 1 line).
Hunk #5 succeeded at 649 (offset 1 line).
1 out of 5 hunks FAILED -- rejects in file fs/aio.c
patching file fs/autofs4/autofs_i.h
Hunk #1 succeeded at 32 (offset 1 line).
patching file fs/autofs4/expire.c
patching file fs/buffer.c
Hunk #1 succeeded at 302 (offset 1 line).
Hunk #2 succeeded at 315 (offset 1 line).
Hunk #3 succeeded at 327 (offset 1 line).
Hunk #4 succeeded at 355 (offset 1 line).
Hunk #5 succeeded at 367 (offset 1 line).
Hunk #6 succeeded at 3376 (offset 1 line).
patching file fs/cifs/readdir.c
patching file fs/dcache.c
Hunk #2 succeeded at 788 (offset -2 lines).
Hunk #3 succeeded at 828 (offset -2 lines).
Hunk #4 succeeded at 2392 (offset -6 lines).
Hunk #5 succeeded at 2437 (offset -6 lines).
Hunk #6 succeeded at 2448 (offset -6 lines).
Hunk #7 succeeded at 2485 (offset -6 lines).
Hunk #8 succeeded at 2513 (offset -6 lines).
Hunk #9 succeeded at 2586 (offset -6 lines).
Hunk #10 succeeded at 3685 (offset -6 lines).
patching file fs/eventpoll.c
patching file fs/exec.c
patching file fs/ext4/page-io.c
patching file fs/fuse/dir.c
Hunk #1 succeeded at 1192 (offset 1 line).
patching file fs/inode.c
patching file fs/libfs.c
patching file fs/locks.c
patching file fs/namei.c
Hunk #1 succeeded at 1666 (offset 41 lines).
Hunk #2 succeeded at 3132 (offset 41 lines).
patching file fs/namespace.c
patching file fs/nfs/delegation.c
patching file fs/nfs/dir.c
patching file fs/nfs/inode.c
patching file fs/nfs/nfs4_fs.h
patching file fs/nfs/nfs4proc.c
Hunk #1 succeeded at 2706 (offset 11 lines).
Hunk #2 succeeded at 2744 (offset 11 lines).
patching file fs/nfs/nfs4state.c
Hunk #2 succeeded at 1503 (offset 2 lines).
Hunk #3 succeeded at 1577 (offset 2 lines).
patching file fs/nfs/unlink.c
patching file fs/ntfs/aops.c
patching file fs/proc/base.c
Hunk #1 succeeded at 1846 (offset 10 lines).
patching file fs/proc/proc_sysctl.c
Hunk #1 succeeded at 680 (offset 48 lines).
patching file fs/squashfs/decompressor_multi_percpu.c
patching file fs/timerfd.c
patching file fs/xfs/xfs_aops.c
patching file include/acpi/platform/aclinux.h
patching file include/asm-generic/bug.h
patching file include/linux/blk-mq.h
patching file include/linux/blkdev.h
Hunk #2 succeeded at 134 (offset 44 lines).
Hunk #3 succeeded at 505 (offset 35 lines).
patching file include/linux/bottom_half.h
patching file include/linux/buffer_head.h
patching file include/linux/cgroup-defs.h
patching file include/linux/completion.h
patching file include/linux/cpu.h
Hunk #1 succeeded at 193 (offset 2 lines).
Hunk #2 succeeded at 212 (offset 2 lines).
patching file include/linux/dcache.h
patching file include/linux/delay.h
patching file include/linux/fs.h
Hunk #1 succeeded at 691 (offset 2 lines).
patching file include/linux/highmem.h
patching file include/linux/hrtimer.h
patching file include/linux/idr.h
patching file include/linux/init_task.h
patching file include/linux/interrupt.h
patching file include/linux/irq.h
patching file include/linux/irq_work.h
patching file include/linux/irqdesc.h
patching file include/linux/irqflags.h
patching file include/linux/jbd2.h
patching file include/linux/kdb.h
patching file include/linux/kernel.h
patching file include/linux/list_bl.h
patching file include/linux/locallock.h
patching file include/linux/mm_types.h
patching file include/linux/module.h
patching file include/linux/mutex.h
patching file include/linux/mutex_rt.h
patching file include/linux/netdevice.h
Hunk #3 succeeded at 2490 (offset 10 lines).
Hunk #4 succeeded at 2921 (offset 10 lines).
Hunk #5 succeeded at 3624 (offset 10 lines).
patching file include/linux/netfilter/x_tables.h
patching file include/linux/nfs_fs.h
patching file include/linux/nfs_xdr.h
patching file include/linux/notifier.h
patching file include/linux/percpu-rwsem.h
patching file include/linux/percpu.h
patching file include/linux/pid.h
patching file include/linux/posix-timers.h
patching file include/linux/preempt.h
patching file include/linux/printk.h
patching file include/linux/radix-tree.h
patching file include/linux/random.h
patching file include/linux/rbtree.h
patching file include/linux/rbtree_augmented.h
patching file include/linux/rcu_assign_pointer.h
patching file include/linux/rcupdate.h
patching file include/linux/rcutree.h
patching file include/linux/rtmutex.h
patching file include/linux/rwlock_rt.h
patching file include/linux/rwlock_types.h
patching file include/linux/rwlock_types_rt.h
patching file include/linux/rwsem.h
patching file include/linux/rwsem_rt.h
patching file include/linux/sched.h
Hunk #4 succeeded at 1025 (offset 1 line).
Hunk #5 succeeded at 1517 (offset 1 line).
Hunk #6 succeeded at 1557 (offset 1 line).
Hunk #7 succeeded at 1702 (offset 1 line).
Hunk #8 succeeded at 1736 (offset 1 line).
Hunk #9 succeeded at 1770 (offset 1 line).
Hunk #10 succeeded at 1976 (offset 1 line).
Hunk #11 succeeded at 2007 (offset 1 line).
Hunk #12 succeeded at 2063 (offset 1 line).
Hunk #13 succeeded at 2282 (offset 1 line).
Hunk #14 succeeded at 2298 (offset 1 line).
Hunk #15 succeeded at 2340 (offset 1 line).
Hunk #16 succeeded at 2518 (offset 1 line).
Hunk #17 succeeded at 2534 (offset 1 line).
Hunk #18 succeeded at 2775 (offset 1 line).
Hunk #19 succeeded at 2984 (offset 1 line).
Hunk #20 succeeded at 3391 (offset 5 lines).
Hunk #21 succeeded at 3459 (offset 5 lines).
Hunk #22 succeeded at 3529 (offset 5 lines).
Hunk #23 succeeded at 3713 (offset 5 lines).
patching file include/linux/sched/rt.h
patching file include/linux/seqlock.h
patching file include/linux/signal.h
patching file include/linux/skbuff.h
Hunk #2 succeeded at 1579 (offset 5 lines).
patching file include/linux/smp.h
patching file include/linux/spinlock.h
patching file include/linux/spinlock_api_smp.h
patching file include/linux/spinlock_rt.h
patching file include/linux/spinlock_types.h
patching file include/linux/spinlock_types_nort.h
patching file include/linux/spinlock_types_raw.h
patching file include/linux/spinlock_types_rt.h
patching file include/linux/srcu.h
patching file include/linux/suspend.h
patching file include/linux/swait.h
patching file include/linux/swap.h
patching file include/linux/swork.h
patching file include/linux/thread_info.h
Hunk #1 succeeded at 102 (offset -5 lines).
patching file include/linux/timer.h
patching file include/linux/trace_events.h
patching file include/linux/uaccess.h
Hunk #1 succeeded at 27 (offset 3 lines).
Hunk #2 succeeded at 44 (offset 3 lines).
patching file include/linux/uprobes.h
patching file include/linux/vmstat.h
patching file include/linux/wait.h
patching file include/net/dst.h
patching file include/net/gen_stats.h
patching file include/net/neighbour.h
Hunk #1 succeeded at 446 with fuzz 2.
Hunk #2 succeeded at 519 (offset 18 lines).
patching file include/net/net_seq_lock.h
patching file include/net/netns/ipv4.h
patching file include/net/sch_generic.h
patching file include/trace/events/hist.h
patching file include/trace/events/latency_hist.h
patching file include/trace/events/sched.h
patching file init/Kconfig
patching file init/Makefile
patching file init/main.c
patching file ipc/sem.c
patching file kernel/Kconfig.locks
patching file kernel/Kconfig.preempt
patching file kernel/cgroup.c
Hunk #1 succeeded at 5045 (offset 4 lines).
Hunk #2 succeeded at 5091 (offset 4 lines).
Hunk #3 succeeded at 5753 (offset 4 lines).
patching file kernel/cpu.c
patching file kernel/cpu_pm.c
patching file kernel/cpuset.c
patching file kernel/debug/kdb/kdb_io.c
Hunk #1 succeeded at 557 (offset 3 lines).
Hunk #2 succeeded at 567 (offset 3 lines).
Hunk #3 succeeded at 855 (offset 3 lines).
Hunk #4 succeeded at 864 (offset 3 lines).
patching file kernel/events/core.c
Hunk #2 succeeded at 8444 (offset 19 lines).
patching file kernel/exit.c
patching file kernel/fork.c
Hunk #2 succeeded at 382 (offset 3 lines).
Hunk #3 succeeded at 410 (offset 3 lines).
Hunk #4 succeeded at 567 (offset 3 lines).
Hunk #5 succeeded at 894 (offset 3 lines).
Hunk #6 succeeded at 1474 (offset 5 lines).
Hunk #7 succeeded at 1484 (offset 5 lines).
Hunk #8 succeeded at 1625 (offset 17 lines).
patching file kernel/futex.c
Hunk #23 succeeded at 1992 (offset 8 lines).
Hunk #24 succeeded at 2075 (offset 8 lines).
Hunk #25 succeeded at 2092 (offset 8 lines).
Hunk #26 succeeded at 2185 (offset 8 lines).
Hunk #27 succeeded at 2202 (offset 8 lines).
Hunk #28 succeeded at 2295 (offset 8 lines).
Hunk #29 succeeded at 2391 (offset 8 lines).
Hunk #30 succeeded at 2466 (offset 8 lines).
Hunk #31 succeeded at 2483 (offset 8 lines).
Hunk #32 succeeded at 2499 (offset 8 lines).
Hunk #33 succeeded at 2728 (offset 8 lines).
Hunk #34 succeeded at 2782 (offset 8 lines).
Hunk #35 succeeded at 2868 (offset 8 lines).
Hunk #36 succeeded at 2889 (offset 8 lines).
Hunk #37 succeeded at 2919 (offset 8 lines).
Hunk #38 succeeded at 2943 (offset 8 lines).
Hunk #39 succeeded at 2999 (offset 8 lines).
Hunk #40 succeeded at 3006 (offset 8 lines).
Hunk #41 succeeded at 3016 (offset 8 lines).
Hunk #42 succeeded at 3033 (offset 8 lines).
Hunk #43 succeeded at 3136 (offset 8 lines).
Hunk #44 succeeded at 3163 (offset 8 lines).
Hunk #45 succeeded at 3194 (offset 8 lines).
Hunk #46 succeeded at 3251 (offset 8 lines).
Hunk #47 FAILED at 3267.
Hunk #48 succeeded at 3299 (offset 11 lines).
1 out of 48 hunks FAILED -- rejects in file kernel/futex.c
patching file kernel/irq/handle.c
patching file kernel/irq/manage.c
Hunk #7 succeeded at 921 with fuzz 2 (offset 3 lines).
Hunk #8 succeeded at 1027 (offset 4 lines).
Hunk #9 succeeded at 1402 (offset 11 lines).
Hunk #10 succeeded at 2130 (offset 11 lines).
patching file kernel/irq/settings.h
patching file kernel/irq/spurious.c
patching file kernel/irq_work.c
patching file kernel/ksysfs.c
patching file kernel/locking/Makefile
patching file kernel/locking/lockdep.c
Hunk #6 succeeded at 3712 (offset 3 lines).
Hunk #7 succeeded at 3727 (offset 3 lines).
Hunk #8 succeeded at 4184 (offset 3 lines).
patching file kernel/locking/locktorture.c
patching file kernel/locking/percpu-rwsem.c
patching file kernel/locking/rt.c
patching file kernel/locking/rtmutex-debug.c
patching file kernel/locking/rtmutex-debug.h
patching file kernel/locking/rtmutex.c
Hunk #39 FAILED at 2400.
Hunk #40 FAILED at 2438.
2 out of 40 hunks FAILED -- rejects in file kernel/locking/rtmutex.c
patching file kernel/locking/rtmutex.h
patching file kernel/locking/rtmutex_common.h
Hunk #2 FAILED at 100.
1 out of 2 hunks FAILED -- rejects in file kernel/locking/rtmutex_common.h
patching file kernel/locking/rwsem-rt.c
patching file kernel/locking/spinlock.c
patching file kernel/locking/spinlock_debug.c
patching file kernel/module.c
patching file kernel/panic.c
Hunk #1 succeeded at 486 (offset 4 lines).
patching file kernel/power/hibernate.c
patching file kernel/power/suspend.c
patching file kernel/printk/printk.c
Hunk #2 succeeded at 1401 (offset 5 lines).
Hunk #3 succeeded at 1413 (offset 5 lines).
Hunk #4 succeeded at 1436 (offset 5 lines).
Hunk #5 succeeded at 1457 (offset 5 lines).
Hunk #6 succeeded at 1505 (offset 5 lines).
Hunk #7 succeeded at 1659 (offset 5 lines).
Hunk #8 succeeded at 1680 (offset 5 lines).
Hunk #9 succeeded at 1878 (offset 5 lines).
Hunk #10 succeeded at 1989 (offset 5 lines).
Hunk #11 succeeded at 2128 (offset 5 lines).
Hunk #12 succeeded at 2398 (offset 6 lines).
Hunk #13 succeeded at 2535 (offset 6 lines).
Hunk #14 succeeded at 2597 (offset 6 lines).
patching file kernel/ptrace.c
patching file kernel/rcu/rcutorture.c
patching file kernel/rcu/tree.c
Hunk #10 succeeded at 3067 (offset 8 lines).
Hunk #11 succeeded at 3089 (offset 8 lines).
Hunk #12 succeeded at 3332 (offset 8 lines).
Hunk #13 succeeded at 3341 (offset 8 lines).
Hunk #14 succeeded at 3433 (offset 8 lines).
Hunk #15 succeeded at 3460 (offset 8 lines).
Hunk #16 succeeded at 3839 (offset 8 lines).
Hunk #17 succeeded at 3848 (offset 8 lines).
Hunk #18 succeeded at 4370 (offset 8 lines).
patching file kernel/rcu/tree.h
patching file kernel/rcu/tree_plugin.h
patching file kernel/rcu/update.c
patching file kernel/sched/Makefile
patching file kernel/sched/completion.c
patching file kernel/sched/core.c
patching file kernel/sched/deadline.c
patching file kernel/sched/debug.c
patching file kernel/sched/fair.c
Hunk #5 succeeded at 4511 (offset 16 lines).
Hunk #6 succeeded at 5879 (offset 16 lines).
Hunk #7 succeeded at 8605 (offset 16 lines).
Hunk #8 succeeded at 8629 (offset 16 lines).
patching file kernel/sched/features.h
patching file kernel/sched/rt.c
patching file kernel/sched/sched.h
Hunk #1 succeeded at 1167 (offset 3 lines).
Hunk #2 succeeded at 1351 (offset 3 lines).
patching file kernel/sched/swait.c
Hunk #3 succeeded at 68 with fuzz 2 (offset -6 lines).
patching file kernel/sched/swork.c
patching file kernel/signal.c
Hunk #9 succeeded at 1268 (offset 42 lines).
Hunk #10 succeeded at 1294 (offset 42 lines).
Hunk #11 succeeded at 1361 (offset 42 lines).
Hunk #12 succeeded at 1387 (offset 42 lines).
Hunk #13 succeeded at 1634 (offset 42 lines).
Hunk #14 succeeded at 1996 (offset 42 lines).
patching file kernel/softirq.c
patching file kernel/stop_machine.c
patching file kernel/time/alarmtimer.c
patching file kernel/time/hrtimer.c
patching file kernel/time/itimer.c
patching file kernel/time/jiffies.c
patching file kernel/time/posix-cpu-timers.c
patching file kernel/time/posix-timers.c
Hunk #1 succeeded at 526 (offset 9 lines).
Hunk #2 succeeded at 577 (offset 9 lines).
Hunk #3 succeeded at 594 (offset 9 lines).
Hunk #4 succeeded at 842 (offset 9 lines).
Hunk #5 succeeded at 933 (offset 9 lines).
Hunk #6 succeeded at 942 (offset 9 lines).
Hunk #7 succeeded at 985 (offset 9 lines).
Hunk #8 succeeded at 1019 (offset 9 lines).
patching file kernel/time/tick-broadcast-hrtimer.c
patching file kernel/time/tick-common.c
patching file kernel/time/tick-sched.c
Hunk #6 succeeded at 881 (offset -17 lines).
Hunk #7 succeeded at 1190 (offset -17 lines).
patching file kernel/time/timekeeping.c
Hunk #1 succeeded at 2350 (offset 2 lines).
patching file kernel/time/timekeeping.h
patching file kernel/time/timer.c
Hunk #14 succeeded at 1680 with fuzz 2.
Hunk #15 succeeded at 1706 (offset 16 lines).
Hunk #16 succeeded at 1717 with fuzz 2 (offset 3 lines).
Hunk #17 succeeded at 1919 (offset 3 lines).
Hunk #18 succeeded at 1933 (offset 3 lines).
Hunk #19 succeeded at 1950 (offset 3 lines).
patching file kernel/trace/Kconfig
patching file kernel/trace/Makefile
patching file kernel/trace/latency_hist.c
patching file kernel/trace/trace.c
Hunk #1 succeeded at 1903 (offset 6 lines).
Hunk #2 succeeded at 1914 (offset 6 lines).
Hunk #3 succeeded at 2913 (offset 11 lines).
Hunk #4 succeeded at 2949 (offset 11 lines).
patching file kernel/trace/trace.h
patching file kernel/trace/trace_events.c
patching file kernel/trace/trace_irqsoff.c
patching file kernel/trace/trace_output.c
patching file kernel/user.c
patching file kernel/watchdog.c
patching file kernel/watchdog_hld.c
patching file kernel/workqueue.c
patching file kernel/workqueue_internal.h
patching file lib/Kconfig
patching file lib/debugobjects.c
Hunk #1 succeeded at 311 (offset 3 lines).
patching file lib/idr.c
patching file lib/irq_poll.c
patching file lib/locking-selftest.c
patching file lib/percpu_ida.c
patching file lib/radix-tree.c
patching file lib/scatterlist.c
patching file lib/smp_processor_id.c
patching file localversion-rt
patching file mm/Kconfig
patching file mm/backing-dev.c
patching file mm/compaction.c
patching file mm/filemap.c
patching file mm/highmem.c
patching file mm/memcontrol.c
Hunk #5 succeeded at 4568 (offset 7 lines).
Hunk #6 succeeded at 5448 (offset 7 lines).
Hunk #7 succeeded at 5507 (offset 7 lines).
Hunk #8 succeeded at 5669 (offset 7 lines).
Hunk #9 succeeded at 5863 (offset 7 lines).
Hunk #10 succeeded at 5904 (offset 7 lines).
patching file mm/mmu_context.c
patching file mm/page_alloc.c
Hunk #18 succeeded at 6607 (offset -10 lines).
Hunk #19 succeeded at 6635 (offset -10 lines).
Hunk #20 succeeded at 7471 (offset -10 lines).
Hunk #21 succeeded at 7480 (offset -10 lines).
patching file mm/percpu.c
patching file mm/slab.h
patching file mm/slub.c
patching file mm/swap.c
patching file mm/truncate.c
patching file mm/vmalloc.c
patching file mm/vmstat.c
patching file mm/workingset.c
patching file mm/zsmalloc.c
Hunk #7 succeeded at 943 (offset 3 lines).
Hunk #8 succeeded at 963 (offset 3 lines).
Hunk #9 succeeded at 1494 (offset 3 lines).
Hunk #10 succeeded at 1548 (offset 3 lines).
patching file net/bluetooth/hci_sock.c
patching file net/core/dev.c
Hunk #8 succeeded at 2322 (offset 22 lines).
Hunk #9 succeeded at 2407 (offset 22 lines).
Hunk #10 succeeded at 3160 (offset 22 lines).
Hunk #11 succeeded at 3235 (offset 22 lines).
Hunk #12 succeeded at 3471 (offset 22 lines).
Hunk #13 succeeded at 3486 (offset 22 lines).
Hunk #14 succeeded at 3862 (offset 22 lines).
Hunk #15 succeeded at 3881 (offset 22 lines).
Hunk #16 succeeded at 3891 (offset 22 lines).
Hunk #17 succeeded at 3931 (offset 22 lines).
Hunk #18 succeeded at 4412 (offset 22 lines).
Hunk #19 succeeded at 4422 (offset 22 lines).
Hunk #20 succeeded at 4924 (offset 26 lines).
Hunk #21 succeeded at 4938 (offset 26 lines).
Hunk #22 succeeded at 4968 (offset 26 lines).
Hunk #23 succeeded at 4978 (offset 26 lines).
Hunk #24 succeeded at 5018 (offset 26 lines).
Hunk #25 succeeded at 5034 (offset 26 lines).
Hunk #26 succeeded at 5324 (offset 26 lines).
Hunk #27 succeeded at 5369 (offset 26 lines).
Hunk #28 succeeded at 7200 (offset 28 lines).
Hunk #29 succeeded at 8133 (offset 28 lines).
Hunk #30 succeeded at 8451 (offset 28 lines).
patching file net/core/filter.c
patching file net/core/gen_estimator.c
patching file net/core/gen_stats.c
patching file net/core/skbuff.c
Hunk #4 succeeded at 394 (offset 2 lines).
Hunk #5 succeeded at 449 (offset 4 lines).
Hunk #6 succeeded at 496 (offset 4 lines).
Hunk #7 succeeded at 517 (offset 4 lines).
Hunk #8 succeeded at 531 (offset 4 lines).
Hunk #9 succeeded at 775 (offset 4 lines).
Hunk #10 succeeded at 809 (offset 4 lines).
patching file net/core/sock.c
Hunk #1 succeeded at 2497 (offset 4 lines).
patching file net/ipv4/icmp.c
Hunk #8 succeeded at 913 (offset 1 line).
Hunk #9 succeeded at 964 (offset 1 line).
patching file net/ipv4/sysctl_net_ipv4.c
patching file net/ipv4/tcp_ipv4.c
Hunk #2 succeeded at 570 (offset 1 line).
Hunk #3 succeeded at 698 (offset 1 line).
Hunk #4 succeeded at 708 (offset 1 line).
Hunk #5 succeeded at 786 (offset 1 line).
patching file net/mac80211/rx.c
Hunk #1 succeeded at 4235 (offset 4 lines).
patching file net/netfilter/core.c
patching file net/packet/af_packet.c
patching file net/rds/ib_rdma.c
patching file net/rxrpc/security.c
patching file net/sched/sch_api.c
patching file net/sched/sch_generic.c
patching file net/sunrpc/svc_xprt.c
patching file scripts/mkcompile_h
patching file sound/core/pcm_native.c
Hunk #1 succeeded at 136 (offset 1 line).
Hunk #2 succeeded at 151 (offset 1 line).
Hunk #3 succeeded at 159 (offset 1 line).
Hunk #4 succeeded at 177 (offset 1 line).
Patch patch-4.9.115-rt94.patch does not apply (enforce with -f)
ERROR: linux-toradex-rt-4.9-2.3.x+gitAUTOINC+d899927728-r0 do_patch: Function failed: patch_do_patch
ERROR: Logfile of failure stored in: /home/user/oe-core/build/tmp-glibc/work/apalis_imx6-angstrom-linux-gnueabi/linux-toradex-rt/4.9-2.3.x+gitAUTOINC+d899927728-r0/temp/log.do_patch.4940
ERROR: Task (/home/user/oe-core/build/../layers/meta-toradex-nxp/recipes-kernel/linux/linux-toradex-rt_4.9-2.3.x.bb:do_patch) failed with exit code '1'

For the time being, you could e.g. do the following:

repo init -u http://git.toradex.com/toradex-bsp-platform.git -b LinuxImageV2.8-integration
repo sync

Plus you may or may not want to combine this with using the following in your local.conf:

MACHINEOVERRIDES =. "use-head-next:"

Using the branch LinuxImageV2.8-integration works, but however, does this mean the required changes are still not merged into the stable BSP2.8?

Correct. A maintenance release is planned for later this year. We’ll see…