In general we follow https://news.itsfoss.com/cachyos-kernel-builder/
Start with Pre-installation step
$ sudo apt install bpftool
and include /usr/sbin in system $PATH variable.
On Debian Trixie stable vs Testing install libdw-dev and build dependencies step is required to succeed with build CachyOS 6.16.5 Kernel on Debian 13
$ sudo apt install libdw-dev
$ sudo apt-get build-dep libdw-dev
Proceed with cloning https://github.com/Nitrux/linux-cachyos-deb
$ git clone https://github.com/Nitrux/linux-cachyos-deb
$ cd linux-cachyos-deb
Script installs all required packages and pops up TUI dialog to configure kernel 6.16.5 and finally proceed with building of debian kernel packages.
$ ./cachy-kernel-deb
Upon build completition
boris@Debian13:~/linux-cachyos-deb$ ls -l
total 1748212
-rwxrwxr-x 1 boris boris 34200 Sep 6 12:00 cachy-kernel-deb
-rw-rw-r-- 1 boris boris 159 Sep 6 12:44 install.sh
-rw-rw-r-- 1 boris boris 1536 Sep 6 12:00 LICENSE
drwxrwxr-x 27 boris boris 4096 Sep 6 12:34 linux-6.16.5
-rw-rw-r-- 1 boris boris 152632076 Sep 4 11:06 linux-6.16.5.tar.xz
-rw-r--r-- 1 boris boris 9366028 Sep 6 12:34 linux-headers-6.16.5_6.16.5-1_amd64.deb
-rw-r--r-- 1 boris boris 305035288 Sep 6 12:35 linux-image-6.16.5_6.16.5-1_amd64.deb
-rw-r--r-- 1 boris boris 1321611836 Sep 6 12:42 linux-image-6.16.5-dbg_6.16.5-1_amd64.deb
-rw-r--r-- 1 boris boris 1442220 Sep 6 12:34 linux-libc-dev_6.16.5-1_amd64.deb
-rw-rw-r-- 1 boris boris 6535 Sep 6 12:42 linux-upstream_6.16.5-1_amd64.buildinfo
-rw-rw-r-- 1 boris boris 2216 Sep 6 12:42 linux-upstream_6.16.5-1_amd64.changes
-rw-rw-r-- 1 boris boris 3466 Sep 6 12:00 README.md
***********************************************
Now run script installing debian packages been built
***********************************************
boris@Debian13:~/linux-cachyos-deb$ chmod a+x install.sh
boris@Debian13:~/linux-cachyos-deb$ vi install.sh
boris@Debian13:~/linux-cachyos-deb$ cat install.sh
sudo dpkg -i linux-headers-6.16.5_6.16.5-1_amd64.deb \
linux-image-6.16.5_6.16.5-1_amd64.deb \
linux-libc-dev_6.16.5-1_amd64.deb
boris@Debian13:~/linux-cachyos-deb$ ./install.sh
[sudo] password for boris:
Selecting previously unselected package linux-headers-6.16.5.
(Reading database ... 226153 files and directories currently installed.)
Preparing to unpack linux-headers-6.16.5_6.16.5-1_amd64.deb ...
Unpacking linux-headers-6.16.5 (6.16.5-1) ...
Selecting previously unselected package linux-image-6.16.5.
Preparing to unpack linux-image-6.16.5_6.16.5-1_amd64.deb ...
Unpacking linux-image-6.16.5 (6.16.5-1) ...
Preparing to unpack linux-libc-dev_6.16.5-1_amd64.deb ...
Unpacking linux-libc-dev:amd64 (6.16.5-1) over (6.12.43-1) ...
Setting up linux-headers-6.16.5 (6.16.5-1) ...
Setting up linux-image-6.16.5 (6.16.5-1) ...
update-initramfs: Generating /boot/initrd.img-6.16.5
Generating grub configuration file ...
Found background image: .background_cache.png
Found linux image: /boot/vmlinuz-6.16.5
Found initrd image: /boot/initrd.img-6.16.5
Found linux image: /boot/vmlinuz-6.12.43+deb13-amd64
Found initrd image: /boot/initrd.img-6.12.43+deb13-amd64
Found linux image: /boot/vmlinuz-6.12.38+deb13-amd64
Found initrd image: /boot/initrd.img-6.12.38+deb13-amd64
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done
Setting up linux-libc-dev:amd64 (6.16.5-1) ...
Run grub-mkconfig ( just in case )
root@Debian13:~# grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found background image: .background_cache.png
Found linux image: /boot/vmlinuz-6.16.5
Found initrd image: /boot/initrd.img-6.16.5
Found linux image: /boot/vmlinuz-6.12.43+deb13-amd64
Found initrd image: /boot/initrd.img-6.12.43+deb13-amd64
Found linux image: /boot/vmlinuz-6.12.38+deb13-amd64
Found initrd image: /boot/initrd.img-6.12.38+deb13-amd64
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done
No comments:
Post a Comment