I am trying to apply the RT_PREEMPT kernel patch to my Jetson TX2 and am running into some problems. I have performed the following on my TX2:
Installing potentially necessary packages and make a directory for compiling
sudo apt-get install kernel-package fakeroot build-essential libncurses5-dev
mkdir tmp
cd tmp
Getting the nvidia kernel source
wget http://developer.download.nvidia.com/embedded/L4T/r28_Release_v1.0/BSP/source_release.tbz2
tar -vxf source_release.tbz2 sources/kernel_src-tx2.tbz2
tar -vxf sources/kernel_src-tx2.tbz2
Confirming the kernel version
cd kernel/kernel-4.4
head Makefile
VERSION = 4
PATCHLEVEL = 4
SUBLEVEL = 38
EXTRAVERSION =
NAME = Blurry Fish Butt
Get the realtime patch and applying it.
cd ~/tmp
wget hptts://www.kernel.org/pub/linux/kernel/projects/rt/4.4/older/patch-4.4.38-rt49.patch.xz
xzcat ../../patch-4.4.38-rt49.patch.xz | patch -p1
and I get the following output
patching file Documentation/hwlat_detector.txt
patching file Documentation/kernel-parameters.txt
Hunk #1 succeeded at 1642 (offset 6 lines).
patching file Documentation/sysrq.txt
patching file Documentation/trace/histograms.txt
patching file Makefile
Hunk #1 succeeded at 797 (offset 12 lines).
patching file arch/Kconfig
patching file arch/arm/Kconfig
Hunk #1 succeeded at 33 with fuzz 2.
Hunk #2 succeeded at 69 (offset 1 line).
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
Hunk #1 succeeded at 55 (offset -10 lines).
patching file arch/arm/kernel/entry-armv.S
patching file arch/arm/kernel/entry-common.S
patching file arch/arm/kernel/process.c
Hunk #1 succeeded at 394 (offset 75 lines).
patching file arch/arm/kernel/signal.c
patching file arch/arm/kernel/smp.c
patching file arch/arm/kernel/unwind.c
patching file arch/arm/kvm/arm.c
patching file arch/arm/kvm/psci.c
patching file arch/arm/mach-at91/Kconfig
patching file arch/arm/mach-at91/at91rm9200.c
patching file arch/arm/mach-at91/at91sam9.c
patching file arch/arm/mach-at91/generic.h
patching file arch/arm/mach-at91/pm.c
patching file arch/arm/mach-at91/sama5.c
patching file arch/arm/mach-exynos/platsmp.c
patching file arch/arm/mach-hisi/platmcpm.c
patching file arch/arm/mach-imx/Kconfig
patching file arch/arm/mach-omap2/omap-smp.c
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
patching file arch/arm/mm/highmem.c
patching file arch/arm/plat-versatile/platsmp.c
patching file arch/arm64/Kconfig
Hunk #1 succeeded at 78 with fuzz 2 (offset 2 lines).
Hunk #2 succeeded at 691 (offset 108 lines).
patching file arch/arm64/include/asm/thread_info.h
Hunk #3 succeeded at 121 (offset 1 line).
Hunk #4 succeeded at 131 with fuzz 1 (offset 2 lines).
patching file arch/arm64/kernel/asm-offsets.c
patching file arch/arm64/kernel/entry.S
Hunk #1 succeeded at 377 (offset 1 line).
Hunk #2 succeeded at 400 (offset 1 line).
Hunk #3 succeeded at 673 (offset 29 lines).
patching file arch/mips/Kconfig
patching file arch/mips/kvm/mips.c
patching file arch/powerpc/Kconfig
patching file arch/powerpc/include/asm/kvm_host.h
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
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/kvm/book3s_hv.c
patching file arch/powerpc/platforms/ps3/device-init.c
patching file arch/s390/include/asm/kvm_host.h
patching file arch/s390/kvm/interrupt.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
Hunk #2 succeeded at 229 (offset 16 lines).
Hunk #3 succeeded at 868 (offset 16 lines).
patching file arch/x86/crypto/aesni-intel_glue.c
patching file arch/x86/crypto/cast5_avx_glue.c
patching file arch/x86/crypto/glue_helper.c
patching file arch/x86/entry/common.c
patching file arch/x86/entry/entry_32.S
patching file arch/x86/entry/entry_64.S
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/include/asm/uv/uv_hub.h
patching file arch/x86/kernel/acpi/boot.c
patching file arch/x86/kernel/apic/io_apic.c
patching file arch/x86/kernel/apic/x2apic_uv_x.c
patching file arch/x86/kernel/asm-offsets.c
patching file arch/x86/kernel/cpu/mcheck/mce.c
patching file arch/x86/kernel/cpu/perf_event_intel_rapl.c
patching file arch/x86/kernel/dumpstack_32.c
patching file arch/x86/kernel/dumpstack_64.c
patching file arch/x86/kernel/irq_32.c
patching file arch/x86/kernel/kvm.c
patching file arch/x86/kernel/nmi.c
patching file arch/x86/kernel/process_32.c
patching file arch/x86/kernel/reboot.c
patching file arch/x86/kvm/lapic.c
patching file arch/x86/kvm/x86.c
patching file arch/x86/mm/highmem_32.c
patching file arch/x86/mm/iomap_32.c
patching file arch/x86/platform/uv/tlb_uv.c
patching file arch/x86/platform/uv/uv_time.c
patching file block/blk-core.c
patching file block/blk-ioc.c
patching file block/blk-iopoll.c
patching file block/blk-mq-cpu.c
patching file block/blk-mq.c
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/zram_drv.c
patching file drivers/block/zram/zram_drv.h
patching file drivers/char/random.c
patching file drivers/clk/at91/clk-generated.c
patching file drivers/clk/at91/clk-h32mx.c
patching file drivers/clk/at91/clk-main.c
patching file drivers/clk/at91/clk-master.c
patching file drivers/clk/at91/clk-peripheral.c
patching file drivers/clk/at91/clk-pll.c
patching file drivers/clk/at91/clk-plldiv.c
patching file drivers/clk/at91/clk-programmable.c
patching file drivers/clk/at91/clk-slow.c
patching file drivers/clk/at91/clk-smd.c
patching file drivers/clk/at91/clk-system.c
patching file drivers/clk/at91/clk-usb.c
patching file drivers/clk/at91/clk-utmi.c
patching file drivers/clk/at91/pmc.c
patching file drivers/clk/at91/pmc.h
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/cpufreq/Kconfig.x86
patching file drivers/cpuidle/coupled.c
patching file drivers/gpu/drm/i915/i915_gem_execbuffer.c
Hunk #1 succeeded at 1302 with fuzz 1 (offset 38 lines).
patching file drivers/gpu/drm/i915/i915_gem_shrinker.c
Hunk #1 succeeded at 40 (offset 1 line).
patching file drivers/gpu/drm/i915/i915_irq.c
patching file drivers/gpu/drm/i915/intel_display.c
Hunk #1 succeeded at 11613 with fuzz 2 (offset 213 lines).
patching file drivers/gpu/drm/i915/intel_sprite.c
Hunk #3 succeeded at 97 with fuzz 1 (offset -2 lines).
Hunk #4 succeeded at 127 (offset -2 lines).
Hunk #5 succeeded at 183 with fuzz 2 (offset 16 lines).
patching file drivers/gpu/drm/radeon/radeon_display.c
Hunk #1 succeeded at 1869 (offset 7 lines).
Hunk #2 succeeded at 1962 (offset 7 lines).
patching file drivers/hv/vmbus_drv.c
patching file drivers/i2c/busses/i2c-omap.c
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
patching file drivers/leds/trigger/Kconfig
patching file drivers/md/bcache/Kconfig
patching file drivers/md/dm.c
patching file drivers/md/raid5.c
patching file drivers/md/raid5.h
patching file drivers/media/platform/vsp1/vsp1_video.c
patching file drivers/misc/Kconfig
patching file drivers/misc/Makefile
patching file drivers/misc/hwlat_detector.c
patching file drivers/mmc/host/mmci.c
patching file drivers/net/ethernet/3com/3c59x.c
patching file drivers/net/ethernet/atheros/atl1c/atl1c_main.c
patching file drivers/net/ethernet/atheros/atl1e/atl1e_main.c
patching file drivers/net/ethernet/chelsio/cxgb/sge.c
patching file drivers/net/ethernet/neterion/s2io.c
patching file drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c
patching file drivers/net/ethernet/realtek/8139too.c
patching file drivers/net/ethernet/tehuti/tehuti.c
patching file drivers/net/rionet.c
patching file drivers/net/wireless/orinoco/orinoco_usb.c
patching file drivers/pci/access.c
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/thermal/x86_pkg_temp_thermal.c
patching file drivers/tty/serial/8250/8250_core.c
patching file drivers/tty/serial/8250/8250_port.c
patching file drivers/tty/serial/amba-pl011.c
patching file drivers/tty/serial/omap-serial.c
patching file drivers/tty/serial/sc16is7xx.c
patching file drivers/usb/core/hcd.c
patching file drivers/usb/gadget/function/f_fs.c
Hunk #1 succeeded at 1405 (offset 1 line).
patching file drivers/usb/gadget/legacy/inode.c
patching file drivers/usb/gadget/udc/atmel_usba_udc.c
patching file drivers/usb/gadget/udc/atmel_usba_udc.h
patching file fs/aio.c
patching file fs/autofs4/autofs_i.h
patching file fs/autofs4/expire.c
patching file fs/buffer.c
patching file fs/dcache.c
patching file fs/eventpoll.c
Hunk #1 succeeded at 506 (offset 1 line).
patching file fs/exec.c
patching file fs/f2fs/f2fs.h
patching file fs/jbd2/checkpoint.c
patching file fs/namespace.c
patching file fs/ntfs/aops.c
patching file fs/timerfd.c
patching file include/acpi/platform/aclinux.h
patching file include/asm-generic/bug.h
patching file include/asm-generic/preempt.h
patching file include/linux/blk-mq.h
patching file include/linux/blkdev.h
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/clk/at91_pmc.h
patching file include/linux/completion.h
patching file include/linux/cpu.h
patching file include/linux/delay.h
patching file include/linux/ftrace.h
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
Hunk #5 succeeded at 489 (offset 1 line).
patching file include/linux/kvm_host.h
patching file include/linux/lglock.h
patching file include/linux/list_bl.h
patching file include/linux/locallock.h
patching file include/linux/mm_types.h
Hunk #2 succeeded at 512 (offset 7 lines).
patching file include/linux/mutex.h
patching file include/linux/mutex_rt.h
patching file include/linux/netdevice.h
patching file include/linux/netfilter/x_tables.h
patching file include/linux/notifier.h
patching file include/linux/percpu.h
patching file include/linux/pid.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/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 #3 succeeded at 242 (offset 1 line).
Hunk #4 succeeded at 308 (offset 1 line).
Hunk #5 succeeded at 972 (offset 1 line).
Hunk #6 succeeded at 1401 (offset 11 lines).
Hunk #7 succeeded at 1438 (offset 11 lines).
Hunk #8 succeeded at 1551 (offset 11 lines).
Hunk #9 succeeded at 1570 (offset 11 lines).
Hunk #10 succeeded at 1603 (offset 11 lines).
Hunk #11 succeeded at 1835 (offset 11 lines).
Hunk #12 succeeded at 1857 (offset 11 lines).
Hunk #13 succeeded at 1891 (offset 11 lines).
Hunk #14 succeeded at 2080 (offset 11 lines).
Hunk #15 succeeded at 2096 (offset 11 lines).
Hunk #16 succeeded at 2135 (offset 11 lines).
Hunk #17 succeeded at 2300 (offset 11 lines).
Hunk #18 succeeded at 2316 (offset 11 lines).
Hunk #19 succeeded at 2528 (offset 11 lines).
Hunk #20 succeeded at 2652 (offset 11 lines).
Hunk #21 succeeded at 2979 (offset 11 lines).
Hunk #22 succeeded at 3047 (offset 11 lines).
Hunk #23 succeeded at 3113 (offset 11 lines).
Hunk #24 succeeded at 3288 with fuzz 2 (offset 15 lines).
patching file include/linux/seqlock.h
patching file include/linux/signal.h
patching file include/linux/skbuff.h
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
patching file include/linux/timer.h
patching file include/linux/trace_events.h
patching file include/linux/uaccess.h
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/neighbour.h
patching file include/net/netns/ipv4.h
patching file include/trace/events/hist.h
patching file include/trace/events/latency_hist.h
patching file include/trace/events/writeback.h
patching file init/Kconfig
Hunk #4 succeeded at 1113 (offset 7 lines).
Hunk #5 succeeded at 1734 (offset 14 lines).
Hunk #6 succeeded at 1753 (offset 14 lines).
Hunk #7 succeeded at 1763 (offset 14 lines).
patching file init/Makefile
Hunk #1 succeeded at 31 (offset -2 lines).
patching file init/main.c
patching file ipc/msg.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 4795 (offset 55 lines).
Hunk #2 succeeded at 4837 (offset 55 lines).
Hunk #3 succeeded at 5461 (offset 61 lines).
patching file kernel/cpu.c
Hunk #1 succeeded at 77 (offset 2 lines).
Hunk #2 succeeded at 91 (offset 2 lines).
Hunk #3 succeeded at 623 (offset 2 lines).
Hunk #4 succeeded at 639 (offset 2 lines).
Hunk #5 succeeded at 693 with fuzz 1 (offset 3 lines).
Hunk #6 FAILED at 740.
1 out of 6 hunks FAILED -- saving rejects to file kernel/cpu.c.rej
patching file kernel/debug/kdb/kdb_io.c
Hunk #1 succeeded at 562 (offset 8 lines).
Hunk #2 succeeded at 572 (offset 8 lines).
Hunk #3 succeeded at 860 (offset 8 lines).
Hunk #4 succeeded at 869 (offset 8 lines).
patching file kernel/events/core.c
patching file kernel/exit.c
patching file kernel/fork.c
Hunk #5 succeeded at 1266 (offset 1 line).
Hunk #6 succeeded at 1394 (offset 1 line).
patching file kernel/futex.c
patching file kernel/irq/handle.c
patching file kernel/irq/irqdesc.c
patching file kernel/irq/manage.c
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/lglock.c
patching file kernel/locking/lockdep.c
patching file kernel/locking/locktorture.c
patching file kernel/locking/rt.c
patching file kernel/locking/rtmutex.c
patching file kernel/locking/rtmutex_common.h
patching file kernel/locking/spinlock.c
patching file kernel/locking/spinlock_debug.c
patching file kernel/panic.c
Hunk #1 succeeded at 64 (offset 3 lines).
Hunk #2 succeeded at 105 (offset 3 lines).
Hunk #3 succeeded at 128 (offset 3 lines).
Hunk #4 succeeded at 442 (offset 3 lines).
patching file kernel/power/hibernate.c
patching file kernel/power/suspend.c
Hunk #1 succeeded at 372 (offset 13 lines).
Hunk #2 succeeded at 393 (offset 16 lines).
Hunk #3 succeeded at 551 with fuzz 1 (offset 29 lines).
Hunk #4 FAILED at 538.
Hunk #5 FAILED at 545.
2 out of 5 hunks FAILED -- saving rejects to file kernel/power/suspend.c.rej
patching file kernel/printk/printk.c
Hunk #1 succeeded at 245 (offset 4 lines).
Hunk #2 succeeded at 1266 (offset 4 lines).
Hunk #3 succeeded at 1278 (offset 4 lines).
Hunk #4 succeeded at 1306 (offset 4 lines).
Hunk #5 succeeded at 1327 (offset 4 lines).
Hunk #6 succeeded at 1375 (offset 4 lines).
Hunk #7 succeeded at 1531 (offset 4 lines).
Hunk #8 succeeded at 1552 (offset 4 lines).
Hunk #9 succeeded at 1613 (offset 4 lines).
Hunk #10 succeeded at 1776 (offset 4 lines).
Hunk #11 succeeded at 1928 (offset 8 lines).
Hunk #12 succeeded at 1936 (offset 8 lines).
Hunk #13 succeeded at 2075 (offset 8 lines).
Hunk #14 succeeded at 2296 (offset 8 lines).
Hunk #15 succeeded at 2415 (offset 8 lines).
Hunk #16 succeeded at 2477 (offset 8 lines).
patching file kernel/ptrace.c
patching file kernel/rcu/rcutorture.c
patching file kernel/rcu/tree.c
patching file kernel/rcu/tree.h
patching file kernel/rcu/tree_plugin.h
patching file kernel/rcu/update.c
patching file kernel/relay.c
patching file kernel/sched/Makefile
Hunk #1 succeeded at 15 (offset 2 lines).
patching file kernel/sched/completion.c
patching file kernel/sched/core.c
Hunk #1 succeeded at 261 (offset 1 line).
Hunk #2 succeeded at 443 (offset 1 line).
Hunk #3 succeeded at 548 (offset 1 line).
Hunk #4 succeeded at 565 (offset 1 line).
Hunk #5 succeeded at 604 (offset 1 line).
Hunk #6 succeeded at 659 (offset 1 line).
Hunk #7 succeeded at 685 (offset 1 line).
Hunk #8 succeeded at 1220 (offset 1 line).
Hunk #9 succeeded at 1247 (offset 1 line).
Hunk #10 succeeded at 1364 (offset 1 line).
Hunk #11 succeeded at 1540 (offset 1 line).
Hunk #12 succeeded at 1596 (offset 1 line).
Hunk #13 succeeded at 1611 (offset 1 line).
Hunk #14 succeeded at 1769 (offset 1 line).
Hunk #15 succeeded at 1849 (offset 1 line).
Hunk #16 succeeded at 2075 (offset 1 line).
Hunk #17 succeeded at 2187 (offset 1 line).
Hunk #18 succeeded at 2204 (offset 1 line).
Hunk #19 succeeded at 2407 (offset 6 lines).
Hunk #20 succeeded at 2739 (offset 11 lines).
Hunk #21 succeeded at 3075 (offset 11 lines).
Hunk #22 succeeded at 3096 (offset 11 lines).
Hunk #23 succeeded at 3123 (offset 11 lines).
Hunk #24 succeeded at 3178 (offset 11 lines).
Hunk #25 succeeded at 3373 (offset 11 lines).
Hunk #26 succeeded at 3382 (offset 11 lines).
Hunk #27 succeeded at 3404 (offset 11 lines).
Hunk #28 succeeded at 3425 (offset 11 lines).
Hunk #29 succeeded at 3441 (offset 11 lines).
Hunk #30 succeeded at 3490 (offset 11 lines).
Hunk #31 succeeded at 3528 (offset 11 lines).
Hunk #32 succeeded at 3556 (offset 11 lines).
Hunk #33 succeeded at 3567 (offset 11 lines).
Hunk #34 succeeded at 4920 (offset 11 lines).
Hunk #35 succeeded at 4934 (offset 11 lines).
Hunk #36 succeeded at 5301 (offset 11 lines).
Hunk #37 succeeded at 5444 (offset 11 lines).
Hunk #38 succeeded at 5460 (offset 11 lines).
Hunk #39 succeeded at 5837 (offset 11 lines).
Hunk #40 succeeded at 7833 (offset 20 lines).
patching file kernel/sched/cpudeadline.c
patching file kernel/sched/cpupri.c
patching file kernel/sched/cputime.c
patching file kernel/sched/deadline.c
Hunk #4 succeeded at 994 (offset 4 lines).
Hunk #5 succeeded at 1072 (offset 4 lines).
Hunk #6 succeeded at 1095 (offset 4 lines).
Hunk #7 succeeded at 1103 (offset 4 lines).
Hunk #8 succeeded at 1217 (offset 4 lines).
Hunk #9 succeeded at 1340 (offset 4 lines).
Hunk #10 succeeded at 1446 (offset 4 lines).
Hunk #11 succeeded at 1485 (offset 4 lines).
Hunk #12 succeeded at 1524 (offset 4 lines).
Hunk #13 succeeded at 1671 (offset 4 lines).
Hunk #14 succeeded at 1774 (offset 4 lines).
patching file kernel/sched/debug.c
patching file kernel/sched/fair.c
Hunk #1 succeeded at 3581 (offset 415 lines).
Hunk #2 succeeded at 3605 (offset 415 lines).
Hunk #3 succeeded at 3745 (offset 415 lines).
Hunk #4 succeeded at 3927 (offset 415 lines).
Hunk #5 succeeded at 4539 (offset 415 lines).
Hunk #6 succeeded at 5746 (offset 533 lines).
Hunk #7 succeeded at 8615 (offset 651 lines).
Hunk #8 succeeded at 8639 (offset 650 lines).
patching file kernel/sched/features.h
patching file kernel/sched/rt.c
Hunk #5 succeeded at 1301 (offset 37 lines).
Hunk #6 succeeded at 1390 (offset 37 lines).
Hunk #7 succeeded at 1414 (offset 37 lines).
Hunk #8 succeeded at 1422 (offset 37 lines).
Hunk #9 succeeded at 1556 (offset 37 lines).
Hunk #10 succeeded at 1606 (offset 37 lines).
Hunk #11 succeeded at 1738 (offset 37 lines).
Hunk #12 succeeded at 2098 (offset 37 lines).
Hunk #13 succeeded at 2173 (offset 37 lines).
patching file kernel/sched/sched.h
Hunk #1 succeeded at 1111 (offset 11 lines).
Hunk #2 succeeded at 1314 (offset 14 lines).
patching file kernel/sched/swait.c
patching file kernel/sched/swork.c
patching file kernel/signal.c
patching file kernel/softirq.c
patching file kernel/stop_machine.c
patching file kernel/time/hrtimer.c
patching file kernel/time/itimer.c
patching file kernel/time/jiffies.c
patching file kernel/time/ntp.c
patching file kernel/time/posix-cpu-timers.c
patching file kernel/time/posix-timers.c
patching file kernel/time/tick-broadcast-hrtimer.c
patching file kernel/time/tick-common.c
patching file kernel/time/tick-sched.c
patching file kernel/time/timekeeping.c
Hunk #1 succeeded at 2072 (offset 2 lines).
patching file kernel/time/timekeeping.h
patching file kernel/time/timer.c
patching file kernel/trace/Kconfig
Hunk #1 succeeded at 190 (offset 3 lines).
Hunk #2 succeeded at 232 (offset 3 lines).
Hunk #3 succeeded at 260 (offset 3 lines).
patching file kernel/trace/Makefile
patching file kernel/trace/latency_hist.c
patching file kernel/trace/trace.c
Hunk #1 succeeded at 1672 (offset 20 lines).
Hunk #2 succeeded at 1682 (offset 20 lines).
Hunk #3 succeeded at 2578 (offset 19 lines).
Hunk #4 succeeded at 2621 with fuzz 1 (offset 26 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
Hunk #1 succeeded at 374 with fuzz 2 (offset 75 lines).
Hunk #2 succeeded at 410 (offset 75 lines).
Hunk #3 succeeded at 434 (offset 75 lines).
Hunk #4 succeeded at 585 (offset 78 lines).
patching file kernel/workqueue.c
patching file kernel/workqueue_internal.h
patching file lib/Kconfig
patching file lib/debugobjects.c
patching file lib/idr.c
patching file lib/locking-selftest.c
patching file lib/percpu_ida.c
patching file lib/radix-tree.c
patching file lib/rbtree.c
patching file lib/scatterlist.c
patching file lib/smp_processor_id.c
patching file localversion-rt
patching file mm/Kconfig
Hunk #1 succeeded at 393 (offset 1 line).
patching file mm/backing-dev.c
patching file mm/compaction.c
Hunk #1 succeeded at 1431 (offset 1 line).
patching file mm/filemap.c
patching file mm/highmem.c
patching file mm/memcontrol.c
Hunk #6 succeeded at 4717 (offset 2 lines).
Hunk #7 succeeded at 5522 (offset 12 lines).
Hunk #8 succeeded at 5581 (offset 12 lines).
Hunk #9 succeeded at 5780 (offset 12 lines).
Hunk #10 succeeded at 5821 (offset 12 lines).
patching file mm/mmu_context.c
patching file mm/page_alloc.c
Hunk #2 succeeded at 277 (offset 12 lines).
Hunk #3 succeeded at 811 (offset 12 lines).
Hunk #4 succeeded at 822 (offset 12 lines).
Hunk #5 succeeded at 884 (offset 12 lines).
Hunk #6 succeeded at 892 (offset 12 lines).
Hunk #7 succeeded at 906 (offset 12 lines).
Hunk #8 succeeded at 918 (offset 12 lines).
Hunk #9 succeeded at 1069 (offset 12 lines).
Hunk #10 succeeded at 1929 (offset 12 lines).
Hunk #11 succeeded at 1956 (offset 12 lines).
Hunk #12 succeeded at 2056 (offset 12 lines).
Hunk #13 succeeded at 2122 (offset 12 lines).
Hunk #14 succeeded at 2148 (offset 12 lines).
Hunk #15 succeeded at 2293 (offset 12 lines).
Hunk #16 succeeded at 2325 (offset 12 lines).
Hunk #17 succeeded at 2335 (offset 12 lines).
Hunk #18 succeeded at 2351 (offset 12 lines).
Hunk #19 succeeded at 6031 (offset 20 lines).
Hunk #20 succeeded at 6932 (offset 26 lines).
Hunk #21 succeeded at 6941 (offset 26 lines).
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
Hunk #1 succeeded at 836 (offset 15 lines).
Hunk #2 succeeded at 879 (offset 15 lines).
Hunk #3 succeeded at 953 (offset 15 lines).
Hunk #4 succeeded at 968 (offset 15 lines).
Hunk #5 succeeded at 992 (offset 15 lines).
patching file mm/vmstat.c
patching file mm/workingset.c
patching file mm/zsmalloc.c
patching file net/core/dev.c
Hunk #19 succeeded at 4144 (offset 2 lines).
Hunk #20 succeeded at 4153 (offset 2 lines).
Hunk #21 succeeded at 4614 (offset 2 lines).
Hunk #22 succeeded at 4628 (offset 2 lines).
Hunk #23 succeeded at 4710 (offset 2 lines).
Hunk #24 succeeded at 4987 (offset 2 lines).
Hunk #25 succeeded at 7326 (offset 2 lines).
Hunk #26 succeeded at 7567 (offset 2 lines).
Hunk #27 succeeded at 7882 (offset 2 lines).
patching file net/core/skbuff.c
patching file net/core/sock.c
Hunk #1 succeeded at 2439 (offset 3 lines).
patching file net/ipv4/icmp.c
Hunk #8 succeeded at 902 (offset 2 lines).
Hunk #9 succeeded at 952 (offset 2 lines).
patching file net/ipv4/sysctl_net_ipv4.c
Hunk #1 succeeded at 840 (offset 22 lines).
patching file net/ipv4/tcp_ipv4.c
Hunk #3 FAILED at 689.
Hunk #4 FAILED at 774.
2 out of 4 hunks FAILED -- saving rejects to file net/ipv4/tcp_ipv4.c.rej
patching file net/mac80211/rx.c
patching file net/netfilter/core.c
patching file net/packet/af_packet.c
patching file net/rds/ib_rdma.c
patching file net/sched/sch_generic.c
Hunk #1 succeeded at 900 (offset 7 lines).
patching file net/sunrpc/svc_xprt.c
patching file scripts/mkcompile_h
patching file sound/core/pcm_native.c
patching file virt/kvm/async_pf.c
patching file virt/kvm/kvm_main.c
Has anyone successfully patched the kernel with this or know how to proceed? I see there are the rejection files saved at kernel/cpu.c.rej, kernel/power/suspend.c.rej, and net/ipv4/tcp_ipv4.c.rej
but I’m not sure how to use those to fix anything. I then ran make menuconfig and updated the preemptable option and then tried compiling anyway just in case and get the following
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
make[1]: 'include/generated/mach-types.h' is up to date.
CHK include/generated/bounds.h
CHK include/generated/timeconst.h
CHK include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CC arch/arm64/mm/dma-mapping.o
In file included from include/linux/amba/bus.h:22:0,
from arch/arm64/mm/dma-mapping.c:668:
include/linux/regulator/consumer.h:513:1: error: expected identifier or ‘(’ before ‘{’ token
{
^
include/linux/regulator/consumer.h:529:1: error: expected identifier or ‘(’ before ‘{’ token
{
^
include/linux/regulator/consumer.h:512:19: error: ‘regulator_can_set_mode’ declared ‘static’ but never defined [-Werror=unused-function]
static inline int regulator_can_set_mode(struct regulator *regulator);
^
cc1: all warnings being treated as errors
scripts/Makefile.build:261: recipe for target 'arch/arm64/mm/dma-mapping.o' failed
make[1]: *** [arch/arm64/mm/dma-mapping.o] Error 1
Makefile:976: recipe for target 'arch/arm64/mm' failed
make: *** [arch/arm64/mm] Error 2