chamesle

chamesle.org: the site of Chamesle, a small Linux distribution
git clone https://github.com/tortr-rs/chamesle
Log | Files | Refs | README

handbook-kernel.html (5603B)


      1 <!doctype html>
      2 <html lang="en">
      3 <head>
      4 <meta charset="utf-8">
      5 <meta name="viewport" content="width=device-width, initial-scale=1">
      6 <title>The kernel and firmware - Chamesle</title>
      7 <meta name="description" content="Nobody builds a kernel in Chamesle. linux-lts is the newest Linux LTS kernel with a generic configuration that runs on">
      8 <link rel="canonical" href="https://chamesle.org/handbook-kernel.html">
      9 <meta property="og:type" content="website">
     10 <meta property="og:site_name" content="Chamesle">
     11 <meta property="og:title" content="The kernel and firmware - Chamesle">
     12 <meta property="og:description" content="Nobody builds a kernel in Chamesle. linux-lts is the newest Linux LTS kernel with a generic configuration that runs on">
     13 <meta property="og:url" content="https://chamesle.org/handbook-kernel.html">
     14 <link rel="stylesheet" href="style.css?25">
     15 <link rel="icon" href="img/logo.png">
     16 </head>
     17 <body>
     18 
     19 <div id="page">
     20 
     21 <div id="top">
     22 <h1><a href="./"><img src="img/banner.png" alt="Chamesle Linux" width="223" height="56"></a></h1>
     23 </div>
     24 
     25 <div id="nav">
     26 <a href="./">Home</a> |
     27 <a href="download.html">Download</a> |
     28 <b>Handbook</b> |
     29 <a href="packages.html">Packages</a> |
     30 <a href="new.html">News</a> |
     31 <a href="board.html">Board</a> |
     32 <a href="chat.html">Chat</a> |
     33 <a href="source.html">Source</a> |
     34 <a href="https://x22.chamesle.org/">X22</a> |
     35 <a href="https://github.com/tortr-rs/mag">mag</a> |
     36 <a href="about.html">About</a>
     37 </div>
     38 
     39 <main>
     40 <p><a href="handbook-base.html">&larr; The base system</a> | <a href="docs.html">Contents</a> | <a href="handbook-iso.html">The live ISO &rarr;</a></p>
     41 <h2>7. The kernel and firmware</h2>
     42 <h2 id="s7-1">7.1 The kernel package</h2>
     43 <p>Nobody builds a kernel in Chamesle. <code>linux-lts</code> is the newest Linux LTS kernel with a generic configuration that runs on most machines, and it installs</p>
     44 <pre>/boot/vmlinuz-lts
     45 /boot/config-VERSION
     46 /boot/System.map-VERSION
     47 /lib/modules/VERSION/</pre>
     48 <p><code>linux-virt</code> is a smaller one for virtual machines. Give it to chamesle-bootstrap with <code>-k</code>, and name its files in <code>limine.conf</code> (<code>vmlinuz-virt</code>, <code>initramfs-virt</code>).</p>
     49 <h2 id="s7-2">7.2 Updating</h2>
     50 <pre>mag update
     51 mag upgrade</pre>
     52 <p>A new <code>linux-lts</code> replaces <code>vmlinuz-lts</code> and makes <code>initramfs-lts</code> again, so <code>limine.conf</code> needs no change. Reboot to run it; <code>uname -r</code> says what runs. Keep the ISO at hand in case a new kernel does not boot.</p>
     53 <h2 id="s7-3">7.3 Modules</h2>
     54 <p>Modules are files in <code>/lib/modules/VERSION</code>. <code>lsmod</code> shows what is loaded, <code>modprobe name</code> loads a module with what it needs, <code>modinfo name</code> describes it. udev loads the ones the hardware asks for. Modules belong to one kernel build: after an upgrade of the kernel, reboot before loading any.</p>
     55 <h2 id="s7-4">7.4 Firmware</h2>
     56 <p>The firmware is split by vendor, so a machine takes only what it uses:</p>
     57 <table>
     58 <tr><th>package</th><th>for</th></tr>
     59 <tr><td><code>linux-firmware-intel</code></td><td>Intel wireless (iwlwifi), Bluetooth and the rest of the intel folder</td></tr>
     60 <tr><td><code>linux-firmware-i915</code></td><td>Intel graphics</td></tr>
     61 <tr><td><code>linux-firmware-amdgpu</code>, <code>linux-firmware-radeon</code></td><td>AMD graphics</td></tr>
     62 <tr><td><code>linux-firmware-rtlwifi</code>, <code>linux-firmware-rtw88</code>, <code>linux-firmware-rtw89</code>, <code>linux-firmware-rtl_nic</code></td><td>Realtek wireless and ethernet</td></tr>
     63 <tr><td><code>linux-firmware-ath10k</code>, <code>linux-firmware-ath11k</code>, <code>linux-firmware-ath9k_htc</code></td><td>Qualcomm Atheros wireless</td></tr>
     64 <tr><td><code>linux-firmware-brcm</code></td><td>Broadcom wireless</td></tr>
     65 <tr><td><code>linux-firmware</code></td><td>all of them, over 500 MB</td></tr>
     66 <tr><td><code>linux-firmware-none</code></td><td>none</td></tr>
     67 </table>
     68 <p><code>mag search linux-firmware</code> lists them. If <code>dmesg</code> says a firmware file failed to load, <code>mag owns</code> is no help yet, since it is not installed; the name of the file says the vendor.</p>
     69 <h2 id="s7-5">7.5 The initramfs</h2>
     70 <p>The kernel package makes <code>/boot/initramfs-lts</code> with <code>mkinitfs</code> whenever the kernel is installed or updated. What goes into it is set in <code>/etc/mkinitfs/mkinitfs.conf</code>:</p>
     71 <pre>features=&quot;ata base cdrom ext4 keymap kms mmc nvme raid scsi usb virtio&quot;</pre>
     72 <p>For a root on ZFS add <code>zfs</code> to the list, install <code>zfs</code> and <code>zfs-lts</code>, and make it again:</p>
     73 <pre>mag install zfs zfs-lts
     74 mkinitfs $(ls /lib/modules)</pre>
     75 <p>The initramfs reads <code>root=</code>, <code>rootfstype=</code> and <code>modules=</code> from the command line, mounts the root and starts <code>/sbin/init</code>. If it cannot, it says why and gives a shell.</p>
     76 <p>The live ISO has its own initramfs, made by <code>iso/mkinitramfs</code>, which mounts the squashfs (chapter 8).</p>
     77 <hr>
     78 <p><a href="handbook-base.html">&larr; The base system</a> | <a href="docs.html">Contents</a> | <a href="handbook-iso.html">The live ISO &rarr;</a></p>
     79 </main>
     80 
     81 <hr>
     82 <div id="foot">
     83 Something wrong on this page? Tell us on the <a href="board.html">board</a>.<br>
     84 Chamesle installs with <code>chamesle-install</code>, or by hand from the <a href="docs.html">handbook</a>.<br>
     85 <a href="https://ko-fi.com/L6N725GI1V">Ko-fi</a><br>
     86 <a href="#" id="edit-link">Edit text</a><br>
     87 $Date: 2026-11-23 $
     88 </div>
     89 
     90 </div>
     91 
     92 <script src="edit.js"></script>
     93 </body>
     94 </html>