-
Notifications
You must be signed in to change notification settings - Fork 0
01Kernel
Install needed packages and dependencies.
apt install git devscripts atool
mk-build-deps linux --install --remove
Download and extract kernel source tarbal. Then, download kernel patches from D0023R
mkdir compile
cd compile
wget "https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.6.65.tar.xz"
aunpack linux-6.6.65.tar.xz
git clone https://github.com/D0023R/linux_kernel_15khz
Change dir and apply the patches.
cd linux-6.6.65
patch -p1 < ../linux_kernel_15khz/linux-6.6/01_linux_15khz.patch
patch -p1 < ../linux_kernel_15khz/linux-6.6/02_linux_15khz_interlaced_mode_fix.patch
patch -p1 < ../linux_kernel_15khz/linux-6.6/03_linux_15khz_dcn1_dcn2_interlaced_mode_fix.patch
patch -p1 < ../linux_kernel_15khz/linux-6.6/04_linux_15khz_dce_interlaced_mode_fix.patch
patch -p1 < ../linux_kernel_15khz/linux-6.6/05_linux_15khz_amdgpu_pll_fix.patch
patch -p1 < ../linux_kernel_15khz/linux-6.6/06_linux_switchres_kms_drm_modesetting.patch
Copy current kernel configuration and update.
cp /boot/config-$(uname -r) .config
make olddefconfig
Modify two configuration options and compile.
sed -i 's/CONFIG_DRM_KMS_HELPER=m/CONFIG_DRM_KMS_HELPER=y/g' .config
sed -i 's/CONFIG_LOCALVERSION=""/CONFIG_LOCALVERSION="-15khz"/g' .config
make clean
make -j`nproc` bindeb-pkg
Install
dpkg -i ../linux-image-6.6.63-15khz_6.6.63-1_amd64.deb
dpkg -i ../linux-headers-6.6.63-15khz_6.6.63-1_amd64.deb
dpkg -i ../linux-libc-dev_6.6.63-1_amd64.deb
Info based on https://kernel-team.pages.debian.net/kernel-handbook/ch-common-tasks.html#s-kernel-org-package
And https://wiki.debian.org/BuildADebianKernelPackage
Alternativelly you can download and install these packages, patched and compiled from me. I've uploaded them to dropbox
wget "https://github.com/Ronbinn/retrodebiankms/releases/download/23_12_2024/linux-image-6.6.65-15khz_6.6.65-1_amd64.deb" -O linux-image.deb
wget "https://github.com/Ronbinn/retrodebiankms/releases/download/23_12_2024/linux-headers-6.6.65-15khz_6.6.65-1_amd64.deb" -O linux-headers.deb
wget "https://github.com/Ronbinn/retrodebiankms/releases/download/23_12_2024/linux-libc-dev_6.6.65-1_amd64.deb" -O linux-libc.deb
sudo dpkg -i linux-image.deb
sudo dpkg -i linux-headers.deb
sudo dpkg -i linux-libc.deb
By default debian and ubuntu installer uses grub so we need to edit /etc/default/grub file.
GRUB_CMDLINE_LINUX_DEFAULT="video=1280x480iS"
Run 'update-grub' command and poweroff.
Next time system will boot in 15khz mode, so it must be connected to a tv, not a monitor.