* Need help to understand Linux kernel source versioning systems
@ 2017-07-24 12:56 ` vibnwis
2017-07-25 9:27 ` Kamil Konieczny
2017-07-25 12:14 ` Yubin Ruan
0 siblings, 2 replies; 5+ messages in thread
From: vibnwis @ 2017-07-24 12:56 UTC (permalink / raw)
To: kernelnewbies
Hi there,
Being a newbie, I encountered the following scenarios when tracing
build_kernel.sh script from eewiki. Would someone help me to understand why
please? From my experience, I would to summarize the following scenario.
1. First, source is cloned from
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git and
checked for release version, "v4.10.17". Obviously it has no kernel tag of
"v4.10.17", but "v4.10"
2. As "v4.10.17" does not exist, it tried to pull from the origin/master by
command, git pull --no-edit
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
--tags
3. Kernel tag, of "v4.10.17" is checked being verified again, but failed.
Hence, now it fetched from git fetch
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
master --tags
Now, the kernel, of v4.10.17" is found.
My questions are:
1. One would know that clone of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git would
not produce kernel tag of , "v4.10.17", wouldn't it?
2. Similar by pull it again from
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git with
option of master --tags would not produce kernel tag, "v4.10.17" as well,
wouldn' it?
3. Since fetching with git fetch
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
master --tags would produce v4.10.17, why would not it clone it from
.../stable/linux-stable,git?
I know that the answers would be very lengthy and I would probably need
some basics of LInux kernel to understand the answers. However, I will
investigate further for things that I don't understand. For now, please
educate me if you could.
The following are the snapshot of the process getting the kernel source.
> git clone
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
/home/qws/myGithub/Panda-Repo/armv7-multiplatform/ignore/linux-src
2.
> git clone --shared
/home/qws/myGithub/Panda-Repo/armv7-multiplatform/ignore/linux-src
/home/qws/myGithub/Panda-Repo/armv7-multiplatform/KERNEL
3.
> git tag | grep "v4.10.17" | grep -v rc > /dev/null 2>&1 ||
git_kernel_torvalds
# The following is resulted of git_kernel_torvalds being executed, as the
former command failed
> git pull --no-edit
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
--tags
4.
> git tag | grep "v4.10.17" | grep -v rc > /dev/null 2>&1 ||
git_kernel_stable
# The following is resulted of git_kernel_stable being execuated, as the
former command failed
> git fetch
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
master --tags
Thank you
Best regards
Lim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20170725/8bd1335c/attachment.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Need help to understand Linux kernel source versioning systems
2017-07-24 12:56 ` Need help to understand Linux kernel source versioning systems vibnwis
@ 2017-07-25 9:27 ` Kamil Konieczny
2017-07-25 12:14 ` Yubin Ruan
1 sibling, 0 replies; 5+ messages in thread
From: Kamil Konieczny @ 2017-07-25 9:27 UTC (permalink / raw)
To: kernelnewbies
On 24.07.2017 14:56, vibnwis wrote:
> Being a newbie, I encountered the following scenarios when tracing
> build_kernel.sh script from eewiki. Would someone help me to understand why
> please? From my experience, I would to summarize the following scenario.
>
> 1. First, source is cloned from
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git and
> checked for release version, "v4.10.17". Obviously it has no kernel tag of
> "v4.10.17", but "v4.10" [...]
You should stick to longterm or current branch,
see https://www.kernel.org/
note that stable can be End-of-Life = EOL
stable: 4.12.3 2017-07-21
stable: 4.11.12 [EOL] 2017-07-21
longterm: 4.9.39 2017-07-21
Best regards,
Kamil
^ permalink raw reply [flat|nested] 5+ messages in thread
* Need help to understand Linux kernel source versioning systems
2017-07-24 12:56 ` Need help to understand Linux kernel source versioning systems vibnwis
2017-07-25 9:27 ` Kamil Konieczny
@ 2017-07-25 12:14 ` Yubin Ruan
2017-07-25 15:25 ` valdis.kletnieks at vt.edu
1 sibling, 1 reply; 5+ messages in thread
From: Yubin Ruan @ 2017-07-25 12:14 UTC (permalink / raw)
To: kernelnewbies
2017-07-24 20:56 GMT+08:00 vibnwis <vibnwis@gmail.com>:
> Hi there,
>
> Being a newbie, I encountered the following scenarios when tracing
> build_kernel.sh script from eewiki. Would someone help me to understand why
> please? From my experience, I would to summarize the following scenario.
>
> 1. First, source is cloned from
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git and
> checked for release version, "v4.10.17". Obviously it has no kernel tag of
> "v4.10.17", but "v4.10"
>
> 2. As "v4.10.17" does not exist, it tried to pull from the origin/master by
> command, git pull --no-edit
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> --tags
>
> 3. Kernel tag, of "v4.10.17" is checked being verified again, but failed.
> Hence, now it fetched from git fetch
> https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
> master --tags
>
> Now, the kernel, of v4.10.17" is found.
>
> My questions are:
>
> 1. One would know that clone of
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git would not
> produce kernel tag of , "v4.10.17", wouldn't it?
>
> 2. Similar by pull it again from
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git with
> option of master --tags would not produce kernel tag, "v4.10.17" as well,
> wouldn' it?
>
> 3. Since fetching with git fetch
> https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
> master --tags would produce v4.10.17, why would not it clone it from
> .../stable/linux-stable,git?
Here is the basic Linux kernel development model: Before every "major" release,
there would be 7 "rc" release, and along with each rc release, there
is a stable release.
For example, let's say we are at 4.2 (or, 4.2.0) now. Before we move
to 4.3, there would
4.3.1-rc, 4.3.2-rc, ..., 4.3.7-rc. After 4.3.7-rc, we have 4.3 (or,
4.3.0). But, rc release is not
stable! So, in order to enable users to use/test the kernel, Greg KH
would maintain a
relatively stable kernel along with each rc release. In the example
above, there would be
4.2.1 along with 4.3.1-rc, 4.2.2 along with 4.3.2-rc, etc. Basically
it is something like this:
4.2.0
| \
4.3.1-rc 4.2.1
| |
4.3.2-rc 4.2.2
| |
4.3.3-rc 4.2.3
| |
4.3.4-rc 4.2.4
| |
4.3.5-rc 4.2.5
| |
4.3.6-rc 4.2.6
| |
4.3.7-rc 4.2.7 <- this branch is thrown away after 4.4.0 is released
|
4.4.0
So, you see, you can only get v4.10.17 from the stable release.
see:
(1) https://github.com/gregkh/kernel-development
(2) https://www.kernel.org/doc/html/v4.11/process/2.Process.html
Yubin
^ permalink raw reply [flat|nested] 5+ messages in thread
* Need help to understand Linux kernel source versioning systems
2017-07-25 12:14 ` Yubin Ruan
@ 2017-07-25 15:25 ` valdis.kletnieks at vt.edu
2017-07-26 8:51 ` vibnwis
0 siblings, 1 reply; 5+ messages in thread
From: valdis.kletnieks at vt.edu @ 2017-07-25 15:25 UTC (permalink / raw)
To: kernelnewbies
On Tue, 25 Jul 2017 20:14:45 +0800, Yubin Ruan said:
> For example, let's say we are at 4.2 (or, 4.2.0) now. Before we move
> to 4.3, there would
> 4.3.1-rc, 4.3.2-rc, ..., 4.3.7-rc. After 4.3.7-rc, we have 4.3 (or,
4.3-rc1, 4.3-rc2, ... 4.3-rc7.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 486 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20170725/4344168f/attachment.bin
^ permalink raw reply [flat|nested] 5+ messages in thread
* Need help to understand Linux kernel source versioning systems
2017-07-25 15:25 ` valdis.kletnieks at vt.edu
@ 2017-07-26 8:51 ` vibnwis
0 siblings, 0 replies; 5+ messages in thread
From: vibnwis @ 2017-07-26 8:51 UTC (permalink / raw)
To: kernelnewbies
Thank you so much for the answers.
On 26 July 2017 at 03:25, <valdis.kletnieks@vt.edu> wrote:
> On Tue, 25 Jul 2017 20:14:45 +0800, Yubin Ruan said:
>
> > For example, let's say we are at 4.2 (or, 4.2.0) now. Before we move
> > to 4.3, there would
> > 4.3.1-rc, 4.3.2-rc, ..., 4.3.7-rc. After 4.3.7-rc, we have 4.3 (or,
>
> 4.3-rc1, 4.3-rc2, ... 4.3-rc7.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20170726/a6b98935/attachment.html
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-07-26 8:51 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CGME20170725092704eucas1p2bff5776dbbf20588607d96dc73536189@eucas1p2.samsung.com>
2017-07-24 12:56 ` Need help to understand Linux kernel source versioning systems vibnwis
2017-07-25 9:27 ` Kamil Konieczny
2017-07-25 12:14 ` Yubin Ruan
2017-07-25 15:25 ` valdis.kletnieks at vt.edu
2017-07-26 8:51 ` vibnwis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).