~hristoast/hristoast

ref: b7ec762bed2f7dde8e577433e0abc17f8f1a594f hristoast/site/xbps/linux-tkg.html -rw-r--r-- 3.5 KiB
b7ec762bHristos N. Triantafillou The correct package name 4 months ago
                                                                                
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
<h1 id="title">linux-tkg</h1>

<div id="toc"></div>

<p>
  <a href="https://github.com/hristoast/void-packages/tree/linux-tkg/srcpkgs/linux5.9-tkg-muqss/patches">TKG patches</a> taken from <a href="https://github.com/Frogging-Family/linux-tkg/tree/06bf39a7686bec4a48fae9a819b262f7c00dace6">here</a>, <a href="https://github.com/hristoast/void-packages/tree/linux-tkg/srcpkgs/linux5.9-tkg-muqss-zen/patches">CPU optimization patch</a> from <a href="https://github.com/graysky2/kernel_gcc_patch/tree/98c0a7fbcd0721b4e95e9305ed13b6000ee26e62">here</a>. Two variants are available, along with <code>-header</code> packages:
</p>

<ul>
  <li><code>linux5.9-tkg-muqss</code>: With the MuQSS I/O scheduler and generic CPU optimizations.</li>
  <li><code>linux5.9-tkg-muqss-zen</code>: With the MuQSS I/O scheduler and AMD Zen family CPU optimizations.</li>
  <li><code>linux5.10-tkg-muqss</code>: With the MuQSS I/O scheduler and generic CPU optimizations.</li>
  <li><code>linux5.10-tkg-muqss-zen</code>: With the MuQSS I/O scheduler and AMD Zen family CPU optimizations.</li>
</ul>

<p>Templates are available on <a href="https://github.com/hristoast/void-packages/tree/linux-tkg">the <code>linux-tkg</code> branch of my void-packages fork</a>.</p>

<h3>How To Install From My Repo</h3>

<ol>
  <li><a href="/xbps/#how-to-use">Add my repo</a>.</li>
  <li>Update your package index: <code>xbps-install -S</code></li>
  <li>Install the package: <code>xbps-install linux-tkg-muqss # or -zen as desired</code></li>
  <li>Reboot! Note that the kernel may be listed below the stock Void kernel and you may need to manually select it in grub.</li>
</ol>

<h3>How To Build From My Template</h3>

<ol>
  <li>Clone <a href="https://github.com/hristoast/void-packages/tree/linux-tkg">my fork of void-packages</a>, or add it as a remote to an existing clone. Ensure you are on the <code>linux-tkg</code> branch.</li>
  <li><a href="https://github.com/void-linux/void-packages/#quick-start">Create</a> or <a href="https://github.com/void-linux/void-packages/#updating-masterdir">update</a> your xbps-src bootstrap env as needed.</li>
  <li>Build the packages (this takes a long time): <code>./xbps-src pkg linux5.9-tkg-muqss # or -zen as desired</code></li>
  <li>Install from your local repo: <code>xbps-install --repository=./hostdir/binpkgs/linux-tkg linux5.9-tkg-muqss # or -zen as desired</code></li>
  <li>Reboot! Note that the kernel may be listed below the stock Void kernel and you may need to manually select it in grub.</li>
</ol>

<h3>Tips</h3>

<h4>Boot Into This Kernel</h4>

<p>You can find the index for each of your installed kernels like this:</p>

<pre><code class="language-sh">grep 'menuentry ' /boot/grub/grub.cfg | cut -f 2 -d "'" | nl -v -1
    -1	Void GNU/Linux
     0	Void GNU/Linux, with Linux 5.9.12_2
     1	Void GNU/Linux, with Linux 5.9.12_2 (recovery mode)
     2	Void GNU/Linux, with Linux 5.9.12-tkg-muqss_1
     3	Void GNU/Linux, with Linux 5.9.12-tkg-muqss_1 (recovery mode)</code></pre>

<p>
  In this example, you can set your <code>GRUB_DEFAULT</code> value in <code>/etc/default/grub</code> to <code>"1>2"</code> to boot into the TKG kernel by default (be sure to run <code>update-grub</code> after making this change to apply it).
</p>

<p>
  If you've got both an official <code>linuxN.N</code> package as well as a TKG kernel of the corresponding version, in most cases <code>"1>2"</code> should enable you to boot into the TKG kernel.
</p>

<p>
  Read <a href="https://help.ubuntu.com/community/Grub2/Submenus">here</a> for more information about Grub2 submenus.
</p>