User Tools


kernel:stali

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
kernel:stali [2025/11/18 09:21] marlonivokernel:stali [2025/11/18 10:37] (current) – [3.0] marlonivo
Line 1: Line 1:
 ===== Stali ===== ===== Stali =====
  
-Prerequisites:First we wanna have an booted up live ISO to be equipped with all the necessary tools to install a proper linux+**Prerequisites:** 
 +First we wanna have an booted up live ISO to be equipped with all the necessary tools to install a proper linux
  
 Then we need an ssh connection to copy and paste the commands from this guide onto the machine more easily: Then we need an ssh connection to copy and paste the commands from this guide onto the machine more easily:
Line 43: Line 44:
 </code> </code>
  
 +===== 2.0 =====
 +----
 +
 +These are the necessary command to build the latest linux kernel:
 +<code>
 +pacman -Sy wget make gcc binutils bc bison flex elfutils cpio perl tar xz zsh-completion
 +cd /tmp/kernelbuild
 +wget https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.6.3.tar.xz
 +tar -xf linux-6.6.3.tar.xz
 +cd linux-6.6.3
 +make x86_64_defconfig
 +make -j$(nproc)
 +make modules_install INSTALL_MOD_PATH=/mnt/rootfs
 +make install INSTALL_PATH=/mnt/rootfs/boot
 +</code>
 +
 +You can now see the exetubable kernel file under `/mnt/rootfs/boot/vmlinuz-6.6.3`.
 +
 +===== 2.0 =====
 +----
 +
 +syslinux.cfg erstellen:
 +
 +<code>
 +cat > /boot/syslinux.cfg <<EOF
 +DEFAULT void
 +LABEL void
 +LINUX /boot/vmlinuz
 +INITRD /boot/initramfs-linux.img
 +APPEND root=/dev/sda1 rw
 +EOF
 +</code>
 +
 +===== 3.0 =====
 Mount the disk partition Mount the disk partition
 <code> <code>
Line 67: Line 102:
 # mount --rbind /sys /mnt/rootfs-x86_64/sys # mount --rbind /sys /mnt/rootfs-x86_64/sys
 # mount --rbind /dev /mnt/rootfs-x86_64/dev # mount --rbind /dev /mnt/rootfs-x86_64/dev
-# exit 
 </code> </code>
  
-===== 2.0 ===== +Syslinux-MBR schreiben
-----+
  
-Install necessary tools to build the kernel: 
 <code> <code>
-pacman -Sy wget make gcc binutils bc bison flex elfutils cpio perl tar xz zsh-completion +dd if=/usr/lib/syslinux/bios/mbr/mbr.bin of=/dev/sda 
-cd /tmp/kernelbuild +exit 
-wget https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.6.3.tar.xz +umount -/mnt/sysroot 
-tar -xf linux-6.6.3.tar.xz +sync 
-cd linux-6.6.3 +reboot
-make x86_64_defconfig +
-make -j$(nproc) +
-make modules_install INSTALL_MOD_PATH=/mnt/rootfs +
-make install INSTALL_PATH=/mnt/rootfs/boot+
 </code> </code>
- +===== 4.0 =====
-Sobald das durch ist, liegt der Kernel unter /mnt/rootfs/boot/vmlinuz-6.6.3. Danach kommt syslinux. +
- +
-===== 3.0 =====+
 ---- ----
 Read more: Read more: