patch - How to add rt patches in linux -
i want add rt patches linux, took 3.18.9 kernel , 3.18.9-rt4 patch. copied patches-3.18.9-rt4.tar.gz linux kernel folder. executed zcat patches-3.18.9-rt4.tar.gz | patch -p1 after executing command asking file patch shown below
|--- a/arch/sparc/kconfig |+++ b/arch/sparc/kconfig -------------------------- file patch: i want add patches in 1 go, how can achieve ?
the problem
the patch using contains rt patch large number of separate files, bundled tar archive, compressed gz file. running zcat (or friends) on file uncompress it, pass result patch.
however, since result after uncompressing patch file .tar archive, passed patch, isn't going work.
the easy solution
use single-file version of rt patch instead, compressed .patch file (these versions can recognized being called "patch-..." instead of "patches-...", 3.18.9-rt5 can downloaded here: https://www.kernel.org/pub/linux/kernel/projects/rt/3.18/older/patch-3.18.9-rt5.patch.gz).
then follow instructions rt preempt howto: (just adjust own kernel version / compression format)
patching kernel
after downloading, unpack kernel tarball , change kernel source directory. patch kernel patch level p1:
tar xfj linux-2.6.23.1.tar.bz2 cd linux-2.6.23.1 bzcat ../patch-2.6.23.1-rt11.bz2 | patch -p1
Comments
Post a Comment