Ask Your Question

how to patch a .diff into the kernel

asked 2018-12-01 10:44:05 -0600

ng0177 gravatar image

Hi, from I downloaded the .diff patch and then ran thought to run

sudo patch v2-drm-set-is_master-to-0-upon-drm_new_set_master-failure.diff

which fails. How to patch a .diff into the kernel (beginner level)? Thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-12-01 12:48:22 -0600

ed209 gravatar image

Install kernel source first.

edit flag offensive delete link more


Yes. drm_auth.c is in the sources. How to find out, when using the patch command "cat ~/testpatch.diff | patch -p1" later, if I need to specify "-p1" or not for the slahes? Any specific advice on this one here? Thanks!

ng0177 gravatar imageng0177 ( 2018-12-02 04:24:50 -0600 )edit

Not directly. Why not just upgrading the kernel, currently at 4.19.5 version, and see if it suits your needs?

ed209 gravatar imageed209 ( 2018-12-05 20:42:02 -0600 )edit

Yes, fixed. Thanks!

ng0177 gravatar imageng0177 ( 2018-12-09 10:13:53 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2018-12-01 10:44:05 -0600

Seen: 52 times

Last updated: Dec 01 '18