about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSilvino Silva <silvino@bk.ru>2016-09-17 03:01:16 +0100
committerSilvino Silva <silvino@bk.ru>2016-09-17 03:01:16 +0100
commit8d53fb61b542ad151c4f63901cca4858e3996a1f (patch)
tree767fa1c5f918118f1877332a4ebf8b0ed72ef674
parent2bb12b769f5af47829276f81d7554cb5b7522ff8 (diff)
downloaddoc-8d53fb61b542ad151c4f63901cca4858e3996a1f.tar.gz
core linux revision
-rw-r--r--core/linux.html93
1 files changed, 49 insertions, 44 deletions
diff --git a/core/linux.html b/core/linux.html
index dc7f7f1..c2c8452 100644
--- a/core/linux.html
+++ b/core/linux.html
@@ -2,75 +2,74 @@
 <html dir="ltr" lang="en">
     <head>
         <meta charset='utf-8'>
-        <title>3. Kernel Linux</title>
+        <title>2.3. Kernel Linux</title>
     </head>
     <body>
 
-        <a href="index.html">Systools Index</a>
-        <h1 id="kernel">3.6. Kernel Linux</h1>
+        <a href="index.html">Core OS Index</a>
+        <h1 id="kernel">2.3. Kernel Linux</h1>
 
-        <p>Linux is a monolith kernel, a big one !!!.</p>
+        <p>Linux is a monolith kernel, a big one ! Visit
+        <a href="http://www.fsfla.org/ikiwiki/selibre/linux-libre/">Linux Libre</a>
+        and
+        <a href="https://www.kernel.org/">Linux Non-Libre</a> pages for more links
+        and information.</p>
 
-        <p>This instructions are done
-       with <a href="install.html#step6">active chroot</a>
-       and inside chroot;</p>
+        <h2 id="#linuxlibre">2.3.1. Port Linux Libre</h2>
 
-       <pre>
-       # chroot $CHROOT /bin/bash
-       </pre>
-
-        <h2 id="#linuxlibre">3.6.1. Port Linux Libre</h2>
-
-        <p>This will install <a href="../ports/linux-libre/">linux-libre</a> port
-        and dracut;</p>
+        <p>Collection c9-ports have linux-libre port with default crux
+        configuration, this port depends on dracut and grub but is not
+        required to install them. To build and install this port using
+        prt-get;</p>
 
         <pre>
         $ prt-get depinst linux-libre
         </pre>
 
-        <h2 id="kinstall">3.6.2. Manual Install</h2>
+        <h2 id="kinstall">2.3.2. Manual Install</h2>
 
-        <p>Download Linux Source from <a href="http://linux-libre.fsfla.org/pub/linux-libre/releases/">linux libre</a>, this ensure that kernel is free of blobs.</p>
+        <p>Download Linux Source from
+        <a href="http://linux-libre.fsfla.org/pub/linux-libre/releases/">linux libre</a>,
+        or using the port system;</p>
 
         <pre>
-        $ pkgmk -do
+        $ cd /usr/ports/c9-ports/linux-libre
+        $ sudo -u pkgmk pkgmk -do
         </pre>
 
-        <p>Crux iso comes with config that you can use as
-        a starting point.</p>
+        <p>Crux iso comes with config that is used in this port, is
+        a good starting point to personalize according to your needs;</p>
 
         <pre>
-
-        cp ../linux-4.5.5.defconfig .config
-        $ make oldefconfig
+        $ mkdir ~/kernel
+        $ cd ~/kernel
+        $ cp /usr/ports/c9-ports/linux-libre/linux-4.1.32.defconfig .
+        $ cp /usr/ports/distfiles/linux-libre-4.1.32-gnu.tar.xz .
+        $ tar xf linux-libre-4.1.32-gnu.tar.xz
+        $ cp linux-4.1.32.defconfig linux-4.1.32/.config
         </pre>
 
-
         <p>If you like <a href="https://github.com/graysky2/kernel_gcc_patch/">graysky2</a> kernel_gcc_patch (<a href="https://github.com/graysky2/kernel_gcc_patch/archive/master.zip">download master</a>) that adds more cpu options (FLAGS native)</p>
 
         <pre>
-        $ unzip kernel_gcc_patch-master.zip
+        $ cp /usr/ports/distfiles/enable_additional_cpu_optimizations_for_gcc_v4.9%2B_kernel_v3.15%2B.patch cpu_optimizations.patch
         </pre>
 
         <pre>
-        $ cd ~/linux-4.5.5/
-        $ patch -p1 &lt; ../kernel_gcc_patch-master/enable_additional_cpu_optimizations_fo
-        r_gcc_v4.9+_kernel_v3.15+.patch
+        $ cd ~/linux-4.1.32/
+        $ patch -p1 &lt; ../cpu_optimizations.patch
         patching file arch/x86/include/asm/module.h
         patching file arch/x86/Kconfig.cpu
         patching file arch/x86/Makefile
-        Hunk #1 succeeded at 85 (offset -7 lines).
+        Hunk #1 succeeded at 85 with fuzz 1 (offset -9 lines).
         patching file arch/x86/Makefile_32.cpu
+        $
         </pre>
 
-        <p><a href="https://en.wikibooks.org/wiki/Grsecurity/Configuring_and_Installing_grsecurity#Patching_Your_Kernel_with_grsecurity">Gresecurity</a></p>
-
-        <pre>
-        patch -p1 &lt; $SRC/grsecurity-3.1-4.5.5-201605291201.patch
-        </pre>
+        <p>Read <a href="https://en.wikibooks.org/wiki/Grsecurity/Configuring_and_Installing_grsecurity#Patching_Your_Kernel_with_grsecurity">Gresecurity</a>.</p>
 
         <p>Configure kernel according to your current kernel
-        hardware support run;</p>
+        hardware support;</p>
 
         <pre>
         $ make localmodconfig
@@ -78,26 +77,32 @@
 
         <p>This will disable all unloaded modules,
         you can use localyesconfig mark all loaded
-        to be built in the kernel. This example
-        get information about which graphic
-        module (driver) is in use;</p>
+        to be built in the kernel.</p>
+
+        <p>To get information about your hardware,
+        for example information about which graphic
+        module (driver) is in use as root run;</p>
 
         <pre>
         # lspci -nnk | grep -i vga -A3 | grep 'in use'
         Kernel driver in use: i915
-        #
         </pre>
 
+        <p>Before start compiling check configuration;</p>
+
+        <pre>
+        $ make nconfig
+        </pre>
 
         <pre>
-        $ cd ~/linux-4.5.5/
+        $ cd ~/linux-4.1.32/
         $ make -j $(nproc) all
         $ sudo make modules_install
-        $ sudo cp arch/x86/boot/bzImage /boot/vmlinuz-4.5.5
-        $ sudo cp System.map /boot/System.map-4.5.5
+        $ sudo cp arch/x86/boot/bzImage /boot/vmlinuz-4.1.32
+        $ sudo cp System.map /boot/System.map-4.1.32
         </pre>
 
-        <h2 id="kuninstall">3.6.3. Manual Remove</h2>
+        <h2 id="kuninstall">2.3.3. Manual Remove</h2>
 
         <pre>
         $ sudo rm -r /lib/modules/4.5.5-gnu
@@ -105,7 +110,7 @@
         $ sudo rm /boot/System.map-4.5.5
         </pre>
 
-        <a href="index.html">Systools Index</a>
+        <a href="index.html">Core OS Index</a>
         <p>This is part of the c9-doc Manual.
 Copyright (C) 2016
 Silvino Silva.
4b0a63aa7'>36e25a684 ^
92b8fac94 ^
36e25a684 ^


e25474154 ^
c98e3d2c2 ^
e25474154 ^

e25474154 ^
92b8fac94 ^
c98e3d2c2 ^

e25474154 ^
b731e6ef1 ^

c98e3d2c2 ^

92b8fac94 ^
c98e3d2c2 ^
3b7ef2288 ^
c98e3d2c2 ^

3b7ef2288 ^
a541be893 ^

e25474154 ^


a541be893 ^
92b8fac94 ^
c98e3d2c2 ^

e25474154 ^
c98e3d2c2 ^
92b8fac94 ^
c98e3d2c2 ^
e25474154 ^
1786e3099 ^



c98e3d2c2 ^
a541be893 ^
10e23e915 ^
92b8fac94 ^
b595fc834 ^
92b8fac94 ^
b595fc834 ^

b731e6ef1 ^
92b8fac94 ^
b595fc834 ^
b731e6ef1 ^
862c0ef83 ^
b595fc834 ^

92b8fac94 ^
b595fc834 ^
b731e6ef1 ^
b595fc834 ^
92b8fac94 ^
b595fc834 ^
e25474154 ^
594674797 ^
e25474154 ^
92b8fac94 ^
92e10e4b1 ^


b731e6ef1 ^
92b8fac94 ^
c98e3d2c2 ^
92e10e4b1 ^
92b8fac94 ^
e25474154 ^
c98e3d2c2 ^
594674797 ^
c98e3d2c2 ^

594674797 ^
c98e3d2c2 ^












a541be893 ^
c98e3d2c2 ^

83584bf88 ^






fa7754731 ^
83584bf88 ^
a541be893 ^
83584bf88 ^


27585ee6e ^
849484f92 ^
83584bf88 ^
92b8fac94 ^
83584bf88 ^
a541be893 ^
e25474154 ^
594674797 ^
a541be893 ^
83584bf88 ^

7d6500f1d ^

c98e3d2c2 ^
2c5743db3 ^
e25474154 ^
a541be893 ^
e25474154 ^

83584bf88 ^

7d6500f1d ^

83584bf88 ^
1c9b4e5d3 ^

92e10e4b1 ^
a541be893 ^
92e10e4b1 ^

83584bf88 ^

92e10e4b1 ^


a541be893 ^
10e23e915 ^
92e10e4b1 ^

2c5743db3 ^
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201