Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Hi this is my first try on askubuntu, i hope you can understand what i say

here's the thing, I'm trying to patch a kernel, but patch says i put an invalid option in, which i have no idea where it is or what it is

    root@guilherme-HP-Pavilion-dv6-Notebook-PC:/usr/src/zen-kernel-3.14-master# patch -p1 home/guilherme/Downloads/kernel-314-gcc49-0.patch -march=amdfam10

    patch: invalid option -- 'a'
    patch: Try 'patch --help' for more information.
share|improve this question
What tutorial are you following to get this done? From where did you get the command to patch? – i08in May 11 '14 at 7:00

Check the command usage is correct! Is the option "-march" available with the version of the patch command you are running ?

Generally used as follows:

patch -p1 < [/path/to/patch/file]

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.