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 [2025/05/25 18:54]
me
kernel_compiling [2025/06/03 10:08] (current)
me
Line 1: Line 1:
 +
 +[[test for required tools]]
 +
 +https://blog.paranoidpenguin.net/2016/10/how-to-build-your-own-kernel-on-slackware-linux/
  
 ccache -C   clear cache before building new kernel ccache -C   clear cache before building new kernel
Line 5: Line 9:
  
 make olddefconfig make olddefconfig
 +
 +[[my config for 666]]
 +
 +[[AUFS patching for 666]]
 +
 +https://github.com/sfjro/aufs-standalone/tree/aufs6.6.54  --- AUFS patches for 666
  
  
Line 25: Line 35:
  
  
 +to rerun lilo on a bootable usb stick after editing --------
 +lilo -C etc/lilo.conf   -r /mnt/sdb1
  
 +
 +
 +[[initrd]]
 +
 +[[lilo]]
  
 --------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------
Line 47: Line 64:
 :diffput is what I want - I usually copy left to right. –  :diffput is what I want - I usually copy left to right. – 
  
 +
 +https://www.freecodecamp.org/news/compare-two-files-in-linux-using-vim/
 ------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------
  
Line 155: Line 174:
 commands from within Slax) commands from within Slax)
  
 +
 +https://github.com/Tomas-M/linux-live/blob/master/config
 Tomas M Tomas M
 --------------------------------------------------------------------------- ---------------------------------------------------------------------------
Line 161: Line 182:
 ===Slax pack/unpack=== ===Slax pack/unpack===
  
-xz -dc < /boot/initrd-$(uname -r).img | cpio -idmv+$ cpio -iv < /tmp/archive.cpio .....  extract cpio
  
 +xz -dc < /boot/initrd-$(uname -r).img | cpio -idmv  ... all at once, if file is xz
  
-Here is what use to repack an xz initramfs for syslinux 4.06 (live boot)+ 
 +xz -dc < initrfs.img | cpio -idmv 
 + 
 + 
 +Here is what to use use to repack an xz initramfs for syslinux 4.06 (live boot)
 <file c ramfs/img> <file c ramfs/img>
 #!/bin/bash #!/bin/bash
Line 172: Line 198:
 mv ../initrfs.img.cpio.xz ../initrfs.img mv ../initrfs.img.cpio.xz ../initrfs.img
 </file> </file>
 +
 +
 +
  
 ===kernel build=== ===kernel build===
kernel_compiling.1748199260.txt.gz · Last modified: 2025/05/25 18:54 by me