User Tools

Site Tools


kernel_compiling

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
kernel_compiling [2024/02/03 19:08]
admin
kernel_compiling [2024/02/13 14:52] (current)
admin
Line 1: Line 1:
 +====make new initrd====
  
 +https://docs.slackware.com/howtos:slackware_admin:kernelbuilding
  
 +
 +/usr/share/mkinitrd/mkinitrd_command_generator.sh   /boot/efi/EFI/Slackware/bzImagenew2 
 +
 +
 +mkinitrd -c -k 6.6.6 -f ext4 -r /dev/sda3 -m jbd2:mbcache:crc32c_intel:crc32c_generic:ext4 -u -o /init66.gz
 +
 +
 +cp /init66.gz /boot/efi/EFI/Slackware/
 +
 +-------------------------------------------------------------------------------
 +
 +
 +
 +---------------------------------------------------------------------------------------
 +
 +===sound===
  
 alsactl restore -d alsactl restore -d
Line 61: Line 79:
  
 ifconfig wlan0 up ifconfig wlan0 up
 +
 +
 +==slax==
  
  
Line 66: Line 87:
 ------------------------------------------------------------------------ ------------------------------------------------------------------------
  
-There are three things needed to upgrade kernel:+There are three things needed to upgrade the Slax kernel:
  
 1) replace vmlinuz 1) replace vmlinuz
Line 87: Line 108:
 --------------------------------------------------------------------------- ---------------------------------------------------------------------------
  
 +
 +===Slax pack/unpack===
  
 xz -dc < /boot/initrd-$(uname -r).img | cpio -idmv xz -dc < /boot/initrd-$(uname -r).img | cpio -idmv
Line 99: Line 122:
 mv ../initrfs.img.cpio.xz ../initrfs.img mv ../initrfs.img.cpio.xz ../initrfs.img
 </file> </file>
 +
 +===kernel build===
  
  
Line 133: Line 158:
  
 make -j 32 bzImage modules && \ make -j 32 bzImage modules && \
 +
 make -j 32 modules_install && \ make -j 32 modules_install && \
 +
 cp -v arch/x86/boot/bzImage /boot/vmlinuz-6.1.6-ads cp -v arch/x86/boot/bzImage /boot/vmlinuz-6.1.6-ads
  
----------------------------------------------------------------------+-------------------------------------------------------------------- 
 +===make new initrd=== 
 + 
 + 
 +/usr/share/mkinitrd/mkinitrd_command_generator.sh   /boot/efi/EFI/Slackware/bzImagenew2  
 + 
 + 
 +mkinitrd -c -k 6.6.6 -f ext4 -r /dev/sda3 -m jbd2:mbcache:crc32c_intel:crc32c_generic:ext4 -u -o /init66.gz 
 + 
 + 
 +cp /init66.gz /boot/efi/EFI/Slackware/ 
 + 
 +------------------------------------------------------------------------------------------ 
 +====elilo menu==== 
 +https://gitlab.com/ethelack/elilo-textmenu-message-themes 
 + 
 ==Upgrade Slackware== ==Upgrade Slackware==
  
kernel_compiling.1706987339.txt.gz · Last modified: 2024/02/03 19:08 by admin