~hristoast/hristoast

ref: d8d98887161283dca7cdb643a3fd15a86b505987 hristoast/site/xbps/linux-pds.html -rw-r--r-- 2.9 KiB
d8d98887Hristos N. Triantafillou Advertise xbps packages again 2 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
<h1 id="title">linux-pds</h1>

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

<p>
  Inspired by <a href="https://aur.archlinux.org/packages/linux-pds/">the AUR's <code>linux-pds</code></a> package. Three variants are available, along with <code>-header</code> packages:
</p>

<ul>
  <li><code>linux5.8-pds</code>: With generic CPU optimizations.</li>
  <li><code>linux5.8-pds-zen</code>: With AMD Zen family CPU optimizations.</li>
  <li><code>linux5.8-pds-zen2</code>: With AMD Zen 2 family CPU optimizations.</li>
</ul>

<p>Templates are available on <a href="https://github.com/hristoast/void-packages/tree/linux-pds">the <code>linux-pds</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-pds # or -zen or -zen2, 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-pds">my fork of void-packages</a>, or add it as a remote to an existing clone. Ensure you are on the <code>linux-pds</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 linux-pds # or -zen or -zen2, as desired</code></li>
  <li>Install from your local repo: <code>xbps-install --repository=./hostdir/binpkgs/linux-pds linux-pds # or -zen or -zen2, 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 PDS</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.8.3_1
     1	Void GNU/Linux, with Linux 5.8.3_1 (recovery mode)
     2	Void GNU/Linux, with Linux 5.8.3-pds_1
     3	Void GNU/Linux, with Linux 5.8.3-pds_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 PDS 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 PDS kernel of the corresponding version, in most cases <code>"1>2"</code> should enable you to boot into the PDS kernel.
</p>

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