If you don't understand math, you can learn it from a textbook, or you can learn it from a video, or you can learn it form a lecture - all valid ways. But at the end of the day you understand math.
I thought you have a single big diff file? That's what you say in your first post.
You seem to insist on wasting your own time instead of reading the description in man page, you absolutely didn't have to do that,yes,I have it. But I have splitted the patches inside the big file into small files / patches. Because the paths inside the big file are different,so I've found that I can patch every file by placing the single patches inside the directories where the files to patch are.
patch
understands the format you had in that diff and can apply to different paths without issues.You seem to insist on wasting your own time instead of reading the description in man page, you absolutely didn't have to do that,patch
understands the format you had in that diff and can apply to different paths without issues.
It's not about about the diff file location, it's about your current directory where you run patch command, you could even useUnfortunately not. I have placed the diff file in various locations and it never worked.
-d
option (I'm always forgetting about it!). -p2
.Won't all the patches be applied to arm/arm? What does
show?Code:/usr/src # < patch
/mnt/zroot2/zroot2/OS/BSD/FreeBSD/arm64/img/Radxa-3W/Stuff/covacat/usr/src # patch -C -p2 < RK356X-diff
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- trunk/stable-14/sys/arm/arm/generic_timer.c 2025-03-19 20:49:43.139887000 +0100
|+++ branches/stable-14-deepcore/sys/arm/arm/generic_timer.c 2025-03-19 20:22:23.334267000 +0100
--------------------------
Patching file sys/arm/arm/generic_timer.c using Plan A...
Hunk #1 succeeded at 185.
Hunk #2 succeeded at 207.
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|
|--- trunk/stable-14/sys/arm/arm/pmu.c 2025-03-19 20:49:43.176176000 +0100
|+++ branches/stable-14-deepcore/sys/arm/arm/pmu.c 2025-03-19 20:22:23.363676000 +0100
--------------------------
Patching file sys/arm/arm/pmu.c using Plan A...
Hunk #1 succeeded at 67.
Hunk #2 succeeded at 83.
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|
|--- trunk/stable-14/sys/arm64/arm64/machdep.c 2025-03-19 20:49:44.977546000 +0100
|+++ branches/stable-14-deepcore/sys/arm64/arm64/machdep.c 2025-03-19 20:22:25.074352000 +0100
--------------------------
Patching file sys/arm64/arm64/machdep.c using Plan A...
Hunk #1 succeeded at 719.
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|
|--- trunk/stable-14/sys/arm64/arm64/undefined.c 2025-03-19 20:49:45.003419000 +0100
|+++ branches/stable-14-deepcore/sys/arm64/arm64/undefined.c 2025-03-19 20:22:25.097413000 +0100
--------------------------
Patching file sys/arm64/arm64/undefined.c using Plan A...
Hunk #1 succeeded at 119.
Hunk #2 succeeded at 170.
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|
|--- trunk/stable-14/sys/arm64/conf/RADXA3W 1970-01-01 01:00:00.000000000 +0100
|+++ branches/stable-14-deepcore/sys/arm64/conf/RADXA3W 2025-06-10 19:46:29.526693000 +0200
--------------------------
(Creating file sys/arm64/conf/RADXA3W...)
Patching file sys/arm64/conf/RADXA3W using Plan A...
Empty context always matches.
Hunk #1 succeeded at 1.
What does that even mean?By this I mean rebuild base system man pages with a ML/DL framework
It means technical mumbo jumbo stuff and tldr voo doo black magic stuff. BasicallyWhat does that even mean?
It means technical mumbo jumbo stuff and tldr voo doo black magic stuff. Basically
For me this was the way I first understood how to read them. so I thought it could also help you if it did help me back then. Because you said you don't understand them. Another thing useful to know is how to use the pager to move around while reading them:Do you want my honest opinion ?
man less
For me this was the way I first understood how to read them. so I thought it could also help you if it did help me back then. Because you said you don't understand them. Another thing useful to know is how to use the pager to move around while reading them:man less
1) I thought it could also help you if it did help me back then.
2) Because you said you don't understand them. Another thing useful to know is how to use the pager to move around while reading them: man less
You have to read them to understand them. Every option or parameter of a specific command is described within it's man pages.This is because there are no practical examples that show me what happens when a command is formed in a certain way.
The manpage of man that I gave you explain everything you need to know to understand the man pages. I don't think you can't understand them, I think your just don't want to read them, it's natural, but you have to go counter nature here. They are not so complex, but you have to get used to it. At first your brain wont like it, but if you really have a motivation you'll go over that and you'll discipline yourself and even if you don't get it at first glance you'll insist and keep coming back at it, until you reach understanding, try to focus on the first thing you don't understand isolate it and focus on it, it could be the meaning of a technical word that you'll have to search. Also the manpages are not like a book on one topic. the manpage contain sections, or chapter related to one specific general technical subject. You have to be aware of what sections of the manpages you need to search.Finally, man man doubles the initial difficulty, because it creates an additional level of complexity, since it tries to explain what I didn't understand at the beginning without simplifying the language.
You have to read them to understand them. Every option or parameter of a specific command is described within it's man pages.
The manpage of man that I gave you explain everything you need to know to understand the man pages. I don't think you can't understand them, I think your just don't want to read them, it's natural, but you have to go counter nature here. They are not so complex, but you have to get used to it. At first your brain wont like it, but if you really have a motivation you'll go over that and you'll discipline yourself and even if you don't get it at first glance you'll insist and keep coming back at it, until you reach understanding, try to focus on the first thing you don't understand isolate it and focus on it, it could be the meaning of a technical word that you'll have to search. Also the manpages are not like a book on one topic. the manpage contain sections, or chapter related to one specific general technical subject. You have to be aware of what sections of the manpages you need to search.
here is another resources for you : https://medium.com/better-programming/man-pages-the-complete-guide-800ad93425fe
diff -u sys/sys/param.h.orig sys/sys/param.h
at /usr/src, it would show something like below. (Example on stable/14 at commit fad4064226b2aa3de6a6c83adb7e0e0108e69bd3)--- sys/sys/param.h.orig
+++ sys/sys/param.h
@@ -75,7 +75,7 @@
* cannot include sys/param.h and should only be updated here.
*/
#undef __FreeBSD_version
-#define __FreeBSD_version 1403502
+#define __FreeBSD_version 1403503
/*
* __FreeBSD_kernel__ indicates that this system uses the kernel of FreeBSD,
cd /usr/src ; patch -i /path/to/patch/file
or cd /usr/src ; patch -p0 -i /path/to/patch/file
would apply it. cd /usr/ports ; patch -p1 -i /path/to/patch/file
also worked (already impossible on latest main branch of ports tree, as it is already landed).