-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathgetkernel.html
More file actions
59 lines (57 loc) · 1.83 KB
/
getkernel.html
File metadata and controls
59 lines (57 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<html>
<font face="helvetica">
<title>Getting the Kernel Source</title>
<body>
<p align=center><font size=+5>Getting the Kernel Source</font>
<hr>
<a href="contents.html">Contents</a>
<font size=+3>
<p>Three main ways to get the kernel source:
<ul>
<li>Get it from your distribution (kernel source package of some kind).
<li>Tar ball: Get it from <a href="http://kernel.org">Kernel.org</a>
<pre>
copy config file from somewhare, or make own
make oldconfig (or make menuconfig)
make
make install
(on many distros, that's it.)
On ubuntu;
update-initramfs -c -k 2.6.38
update-grub
</pre>
<li>Git repository: Get it with <a href="http://git-scm.com">git</a> from <a href="http://git.kernel.org">git.kernel.org</a>
<ul
<li>Linus's tree:
<pre>
export http_proxy=<em>whatever your http proxy is</em> (you may not need this step)
git clone http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
</pre>
<li>You may need some one else's branch of Linus's tree, say Jens Axboe's
block tree:
<pre>
cd linux*
git remote add jens http://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git
git remote update
git branch -a
</pre>
This will show you a list of branches in Jens's tree. He typically
has some branch called "jens/for-2.6.xx-next" (or jens/for-3.xx-next
these days) which is what will eventually get pulled into Linus's
tree for the next kernel. You can get that like...
<pre>
git checkout -b my-whatever-branch jens/for-next
</pre>
<p>Or more likely you need somebody else's tree, depending on what
you're working on. See the MAINTAINERS file in the top directory
of the linux kernel source. And you can browse <a href="https://git.kernel.org">https://git.kernel.org</a>
<p>Usually though, either Linus's tree or the latest tarball on
kernel.org will be sufficiently new for you to work with.
</ul>
</ul>
<br>
<br>
<br>
</font>
</body>
</html>