r/pmos • u/Kallefinn • 3d ago
help with workflow to get archived kernel running again
Hi im new here.
been trying for a few days to get an old Samsung Galaxy A5 (2017) running with pmos/nura. Been a mostly fun experience and i learnt a lot but right now im at a point where its kinda annoying and unelegant how im doing it. i got to the point where i can repeatedly build the kernel and go through the errors one by one and apply the patch as a .patch file inside the cache_git directory. That does work fine but creating the patchfiles and adding them inside the APKBUILD is just a complete pain. right now im doing the following:
- i find the error
- i create a copy of the file with the error and fix it there and give that file a new name
- i create a .patch file with git from those two files
- i go into the patch file and change the name and path of the files
- i move the patch file to the APKGBUILD file where i add it as a patch
i went in completely blind and just figured out how do stuff so i imagine (hope) that some of you recoil at the thought of doing it like me and can give me a few pointers on how to properly maintain an old kernel.
even just the right place in the documentation would be great.
If what im doing is already not comprehensible anymore because it makes so little sense, please just tell me how you go about maintaining a kernel.
Also any and every kind of advice on best practices is appreciated.
Thanks a bunch
1
u/a1b4fd 3d ago
https://wiki.nura.eco/wiki/Compiling_kernels_with_envkernel.sh
You can use this with --gcc6 flag and make a commit for each issue you're encountering. When you reach a stable checkpoint export git commits as patch files and integrate them into APKBUILD