Comments (13)
patch
doesn't take a filename for the patch as parameter but the name of the file to patch. patch
expects patches on stdin.
So you'd need to run patch <le9patch.patch
to patch the files. Without any file name, it will patch all the files mentioned in the patch. You probably need to exclude the first path component if the patch was exported via git (it will prepend a/
and b/
to each file path). You can look at the patch file with an editor to find out. patch -p1 <le9patch.patch
would remove the first path component.
from le9-patch.
Example: enter the kernel directory and run patch command (the patch itself is outside the kernel directory):
linux-5.14-rc6$ patch -p1 < ../le9eb-5.14-rc1.patch
checking file Documentation/admin-guide/sysctl/vm.rst
checking file include/linux/mm.h
checking file kernel/sysctl.c
checking file mm/Kconfig
checking file mm/vmscan.c
from le9-patch.
Okay, thanks for the help. This is my first time using this command so I didn't expect it to work way. I close this issue if that works.
from le9-patch.
So after running the above commands, it outputted what looked like the contents of the patch, then asked me to choose a patch file.
from le9-patch.
Could you please show the output and what command you run?
from le9-patch.
"patch -p1 < /home/user/Desktop/le9-patch/le9eb_patches/le9eb-4.19.patch" was the command. The output is actually the "le9eb patch" part of the readme.
from le9-patch.
Please run pwd && ls
at the same directory you tried to use the patch
command.
from le9-patch.
It outputted this "/boot
config-4.19.0-17-686-pae grub initrd.img-4.19.0-17-686-pae System.map-4.19.0-17-686-pae vmlinuz-4.19.0-17-686-pae
"
from le9-patch.
@Darth-Ness you are not in the kernel directory.
Output should be like
$ pwd && ls
/home/user/KERNEL/_linux419/linux
arch certs CREDITS Documentation firmware include ipc Kconfig LICENSES Makefile net samples security tools virt
block COPYING crypto drivers fs init Kbuild kernel lib MAINTAINERS mm README scripts sound usr
from le9-patch.
@Darth-Ness I think this will becoming more complicated than you thought. What you need to do is actually compile your kernel from source. If you never did that before, there's a lot to learn first. It may be easier to just get a binary kernel image built for your distribution from someone else who also included the patch. I think there are some people who provide such kernels and already adopted this patchset. @hakavlad may know better which do.
It would help if you tell us which distribution you're using.
from le9-patch.
It is using the Debian 32-bit version
from le9-patch.
Okay, after looking around for a kernel, I have found none. Any ideas?
Wait never mind I think I found one.
from le9-patch.
I `ll answer later. I just recently built a kernel for Debian 11 i686.
from le9-patch.
Related Issues (9)
- [DRM/i915] page allocation failure HOT 2
- Can all of your related tools including nohang be used together? HOT 1
- how to apply mglru patchset v5 HOT 5
- FR: rebase for newer kernels HOT 4
- Testing HOT 8
- [DRM/i915] fatal IO error 11 (Resource temporarily unavailable) HOT 5
- [DRM/i915] kernel: BUG: unable to handle page fault / kernel: Oops HOT 3
- CONFIG_CLEAN_LOW_KBYTES and CONFIG_CLEAN_MIN_KBYTES ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from le9-patch.