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/01/15 19:46]
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
 +
 +speaker-test,, speaker-test -Dhw:0 -c2
 +
 +aplay -D plughw:0, /media/sda1/usr/share/korganizer/sounds/spinout.wav  -v 
 +
 +alsamixer 0
 +
 +lspci -v
 +
 +pavucontrol
  
  
Line 47: Line 79:
  
 ifconfig wlan0 up ifconfig wlan0 up
 +
 +
 +==slax==
  
  
Line 52: 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 73: Line 108:
 --------------------------------------------------------------------------- ---------------------------------------------------------------------------
  
 +
 +===Slax pack/unpack===
  
 xz -dc < /boot/initrd-$(uname -r).img | cpio -idmv xz -dc < /boot/initrd-$(uname -r).img | cpio -idmv
Line 85: Line 122:
 mv ../initrfs.img.cpio.xz ../initrfs.img mv ../initrfs.img.cpio.xz ../initrfs.img
 </file> </file>
 +
 +===kernel build===
  
  
Line 119: 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.1705348011.txt.gz · Last modified: 2024/01/15 19:46 by admin