Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apply kernel patches issue #1

Open
deeptuuk opened this issue Dec 10, 2019 · 5 comments
Open

apply kernel patches issue #1

deeptuuk opened this issue Dec 10, 2019 · 5 comments

Comments

@deeptuuk
Copy link

hi man!
i am stuck in the kernel patch,
could you tell me why you fix the ipipe-core-4.9.51-arm-4.patch.
and what is your methods.
nearly i want to apply ipipe-core-4.9.51-arm-4.patch to linux 4.9.0, but i don't konw how to start with it.
could you tell me how to modify it, and some tips or tools.
thank you so much!!!!!!!!!!!!!!!!!!!!!!!!!!!!

@harcokuppens
Copy link
Owner

Hi,

Basicly it is just looking at the patch file source and try to fix it.
Often a patch file is for an older version of the source files,
and since then some of the source files could have changed.

First study how to apply the patch command. Read the documentation for patch. (eg. man patch)

So get the version of the original source where the patch file was meant for.
The take a copy of the new source, and run the patch file and see where
the errors in the patch file are. Then manually look at the patch file and
the new and original source and try to figure out why it is going wrong.

Often the line numbers of the range for a patch can be off because some extra
content is added to the source file far before the lines where the patch should be applied.
But in general patch can deal with that, and find self the new range where it must apply the patch.

Sometimes something is changed in the context of the patch, but not the patch lines itself.
Often you can fix it by fixing the context lines around the patch in the patch file.
Because patch files display some context lines around the lines to change. If there
for instance in the context a line is added then your patch doesn't work anymore.
By adding this line manually to the patch file then it should work again.

However sometimes there are changes in the newer source which are not compatible anymore with the content of the patch.
So then the only hope is to understand the code, and the idea of the patch and try to fix it yourself.

Sometimes it can be easy, but sometimes you need to do some smart patching.

good luck,
Harco Kuppens

@deeptuuk
Copy link
Author

ok,thanks for your reply.
maybe it's so hard for me now,but i will never give up.
for some reason, could you help fix the specific version of linux,
i will send the version to your email, and could you send me the fixed patch.
i will very appricate your help!
and this is my gmail: zhouy2048@gmail.com

@deeptuuk
Copy link
Author

deeptuuk commented Dec 11, 2019 via email

@harcokuppens
Copy link
Owner

harcokuppens commented Dec 11, 2019 via email

@FlyBoyA
Copy link

FlyBoyA commented Mar 8, 2024

Hi,
Do you have any idea about the version of the kernel & ipipe like when I see the version of ipipe its not as latest as the version of rpi and its getting difficult to find the compatible version to patch

do you have any suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants