GithubHelp home page GithubHelp logo

Applying the patch about le9-patch HOT 13 OPEN

hakavlad avatar hakavlad commented on May 29, 2024
Applying the patch

from le9-patch.

Comments (13)

kakra avatar kakra commented on May 29, 2024

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.

hakavlad avatar hakavlad commented on May 29, 2024

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.

Darth-Ness avatar Darth-Ness commented on May 29, 2024

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.

Darth-Ness avatar Darth-Ness commented on May 29, 2024

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.

hakavlad avatar hakavlad commented on May 29, 2024

Could you please show the output and what command you run?

from le9-patch.

Darth-Ness avatar Darth-Ness commented on May 29, 2024

"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.

kakra avatar kakra commented on May 29, 2024

Please run pwd && ls at the same directory you tried to use the patch command.

from le9-patch.

Darth-Ness avatar Darth-Ness commented on May 29, 2024

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.

hakavlad avatar hakavlad commented on May 29, 2024

@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.

kakra avatar kakra commented on May 29, 2024

@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.

Darth-Ness avatar Darth-Ness commented on May 29, 2024

It is using the Debian 32-bit version

from le9-patch.

Darth-Ness avatar Darth-Ness commented on May 29, 2024

Okay, after looking around for a kernel, I have found none. Any ideas?

Wait never mind I think I found one.

from le9-patch.

hakavlad avatar hakavlad commented on May 29, 2024

I `ll answer later. I just recently built a kernel for Debian 11 i686.

from le9-patch.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.