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/13 17:51]
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
 +
 +
 +https://tldp.org/HOWTO/Alsa-sound-6.html
 +
 +root@slax:~# cat /proc/modules |grep snd
 +
 +<file text.txt>
 +snd_hda_codec_hdmi 61440 2 - Live 0xffffffffc10fd000
 +snd_ctl_led 24576 0 - Live 0xffffffffc10f6000
 +snd_hda_codec_idt 57344 1 - Live 0xffffffffc10ce000
 +snd_hda_codec_generic 86016 1 snd_hda_codec_idt, Live 0xffffffffc10e0000
 +ledtrig_audio 16384 2 snd_ctl_led,snd_hda_codec_generic, Live 0xffffffffc10bc000
 +snd_hda_intel 49152 3 - Live 0xffffffffc0fe6000
 +snd_intel_dspcfg 28672 1 snd_hda_intel, Live 0xffffffffc0ec5000
 +snd_intel_sdw_acpi 16384 1 snd_intel_dspcfg, Live 0xffffffffc0b23000
 +snd_hda_codec 151552 4 snd_hda_codec_hdmi,snd_hda_codec_idt,snd_hda_codec_generic,snd_hda_intel, Live 0xffffffffc0c49000
 +snd_hda_core 94208 5 snd_hda_codec_hdmi,snd_hda_codec_idt,snd_hda_codec_generic,snd_hda_intel,snd_hda_codec, Live 0xffffffffc0b03000
 +snd_hwdep 16384 1 snd_hda_codec, Live 0xffffffffc0b8e000
 +snd_pcm 131072 4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core, Live 0xffffffffc0b45000
 +snd_timer 36864 1 snd_pcm, Live 0xffffffffc0b2f000
 +snd 102400 15 snd_hda_codec_hdmi,snd_ctl_led,snd_hda_codec_idt,snd_hda_codec_generic,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer, Live 0xffffffffc0acc000
 +soundcore 16384 2 snd_ctl_led,snd, Live 0xffffffffc0a5a000
 +root@slax:~# 
 +</file>
 +--------------------------------------------------------------------------------------------
 +
 +find /lib/modules/$(uname -r)/kernel/drivers/
 +
 +/sbin/lsmod | grep snd
 +
 +lspci -v
 +
 +cat /proc/asound/cards
 +
 +find "/media/sdb1" -type f -name "*.ko" |less
 +
 +
 +--------------------------------------------------------------------------------------
 +
 wpa_passphrase PLUSNET-J8GW >> /etc/wpa_supplicant.conf wpa_passphrase PLUSNET-J8GW >> /etc/wpa_supplicant.conf
  
-ifconfig wlan0 up+ 
 wpa_supplicant -B  -i wlan0 -c /etc/wpa_supplicant.conf wpa_supplicant -B  -i wlan0 -c /etc/wpa_supplicant.conf
 +
 +
 +
 +ifconfig wlan0 up
 +
 +
 +==slax==
  
  
Line 8: 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 29: Line 108:
 --------------------------------------------------------------------------- ---------------------------------------------------------------------------
  
 +
 +===Slax pack/unpack===
  
 xz -dc < /boot/initrd-$(uname -r).img | cpio -idmv xz -dc < /boot/initrd-$(uname -r).img | cpio -idmv
Line 41: Line 122:
 mv ../initrfs.img.cpio.xz ../initrfs.img mv ../initrfs.img.cpio.xz ../initrfs.img
 </file> </file>
 +
 +===kernel build===
  
  
Line 75: 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.1705168312.txt.gz · Last modified: 2024/01/13 17:51 by admin