From feffa344f2a626f86b797770d34f182cb17d5799 Mon Sep 17 00:00:00 2001 From: galister <3123227-galister@users.noreply.gitlab.com> Date: Sun, 10 Nov 2024 10:48:48 +0000 Subject: [PATCH] kernel patching for fedora, add 6.10+ patches --- content/docs/hardware/_index.md | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/content/docs/hardware/_index.md b/content/docs/hardware/_index.md index 36de896..e61df21 100644 --- a/content/docs/hardware/_index.md +++ b/content/docs/hardware/_index.md @@ -41,8 +41,8 @@ A non-comprehensive table of various VR/XR devices and the drivers that support | HTC Vive | ✅ | ✅ | 🚧 (WiVRn PC-PC stream) | | HTC Vive Pro | ✅ | ✅ | 🚧 (WiVRn PC-PC stream) | | HTC Vive Pro Eye | ✅ (No eyechip) | ✅ (No eyechip) | 🚧 (WiVRn PC-PC stream) | -| HTC Vive Pro 2 | ✅ (custom [driver and patches](https://github.com/CertainLach/VivePro2-Linux-Driver)) | ✅ (With two kernel patches [1](https://github.com/CertainLach/VivePro2-Linux-Driver/blob/master/kernel-patches/0002-drm-edid-parse-DRM-VESA-dsc-bpp-target.patch) [2](https://github.com/CertainLach/VivePro2-Linux-Driver/blob/master/kernel-patches/0003-drm-amd-use-fixed-dsc-bits-per-pixel-from-edid.patch) Doesn't work on Nvidia) | -- | -| Bigscreen Beyond | ✅ (with [kernel patches](https://gist.githubusercontent.com/TayouVR/af8635a4b8e1d02d038be1be1d221c83/raw/3806a6ff0a03721904164277d7523d43f7ca383c/bigscreenBeyond.patch). Doesn't work on Nvidia) | ✅ (with [kernel patches](https://gist.githubusercontent.com/TayouVR/af8635a4b8e1d02d038be1be1d221c83/raw/3806a6ff0a03721904164277d7523d43f7ca383c/bigscreenBeyond.patch). Doesn't work on Nvidia) | -- | +| HTC Vive Pro 2 | ✅ (custom [driver and patches](https://github.com/CertainLach/VivePro2-Linux-Driver)) | ✅ (With two kernel patches [1](https://github.com/CertainLach/VivePro2-Linux-Driver/blob/master/kernel-patches/0002-drm-edid-parse-DRM-VESA-dsc-bpp-target.patch) [2](https://github.com/CertainLach/VivePro2-Linux-Driver/blob/master/kernel-patches/0003-drm-amd-use-fixed-dsc-bits-per-pixel-from-edid.patch), AMD GPUs only.) | -- | +| Bigscreen Beyond | ✅ (with [kernel patch](https://gist.github.com/galister/08cddf10ac18929647d5fb6308df3e4b/raw/0f6417b6cb069f19d6c28b730499c07de06ec413/combined-bsb-6-10.patch), AMD GPUs only.) | ✅ (with [kernel patch](https://gist.github.com/galister/08cddf10ac18929647d5fb6308df3e4b/raw/0f6417b6cb069f19d6c28b730499c07de06ec413/combined-bsb-6-10.patch), AMD GPUs only.) | -- | | Somnium VR1 | ? | ? | ? | | VRgineers XTAL | ? | ? | ? | | StarVR One | ? | ? | ? | @@ -127,6 +127,35 @@ source=( 4. close `PKGBUILD`. (may not be necessary but i ran `updpkgsums`) -> `makepkg -s --skippgpcheck` (i didn't feel like fixing a pgp error) 5. then section 4 of https://wiki.archlinux.org/title/Kernel/Arch_build_system#Installing and restart +### Fedora + +1. Prepare the kernel + ```sh + git clone https://src.fedoraproject.org/rpms/kernel.git + cd kernel + + # replace 41 with your fedora version + git switch f41 + + # name this the 'bsb' build + sed -i 's/# define buildid .*/%define buildid .bsb/g' kernel.spec + ``` + +2. Replace `linux-kernel-test.patch` with the actual patch file downloaded from the table above + +3. Build RPMs: + ```sh + fedpkg local + ``` + +4. Install kernel: + ```sh + sudo dnf install --nogpgcheck ./x86_64/kernel-*.rpm + ``` +5. Reboot and check that using `uname -a` that the `bsb` kernel is running. + +Official guide: [Building a Kernel from the Fedora dist-git](https://docs.fedoraproject.org/en-US/quick-docs/kernel-build-custom/#_building_a_kernel_from_the_fedora_dist_git) + ### NixOS 1. download the patch(es)