• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 255
  • Last Modified:

install new kernel with new patch

when i am installing the patch then ask me file to patch ? Which filename should I specify ?

1 Solution
It is probally patching one of the source files.  Open the patch file up in a text editior and you should see the filename within the patch script.
patch -p1 < /path/to/patch_file

Most probably, it should find and patch the files properly.
If you get asked which file to patch while you are running patch, that means you are in the wrong directory when you issue the command. Check the patchfile (it's just a text file) and see what files it's trying to modify, and then make your current working directory so that the paths in the patch files make sense. For example, if the patch file is trying to modify the file 'linux/drivers/usb/net/usbnet.c' then your working directory should be /usr/src/ (and that directory should contain the 'linux' directory.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now