# i915 VGA arbiter patch for Debian Jessie 8
cd ~
sudo apt-get install fakeroot build-essential devscripts quilt
sudo apt-get build-dep
mkdir src
cd src
apt-get source linux
# quilt instruction
# now you need the Patch
# i915 VGA arbiter patch from Alex Williamson
# save Patch between the lines with "---" as file "i915.patch" directly in new folder src
# NOTE: linux-3.16.7-ckt9 is the current version from 08.06.2015, this version can change # in the future.
cd linux-3.16.7-ckt9/
quilt import ../i915.patch
# Importiere Patch ../i915.patch (abgelegt als
# debian/patches/i915.patch)
quilt push i915.patch
# ...
# Patch debian/patches/i915.patch does not apply (enforce with -f)
quilt push i915.patch -f
# Wende Patch debian/patches/i915.patch an
# patching file drivers/gpu/drm/i915/i915_dma.c
# Hunk #1 succeeded at 1314 (offset 8 lines).
# Hunk #2 succeeded at 1385 (offset 6 lines).
# patching file drivers/gpu/drm/i915/i915_drv.h
# Hunk #1 FAILED at 2080.
# 1 out of 1 hunk FAILED -- saving rejects to file
# drivers/gpu/drm/i915/i915_drv.h.rej
# patching file drivers/gpu/drm/i915/i915_params.c
# Hunk #1 FAILED at 47.
# Hunk #2 FAILED at 152.
# 2 out of 2 hunks FAILED -- saving rejects to file
# drivers/gpu/drm/i915/i915_params.c.rej
# patching file drivers/gpu/drm/i915/intel_display.c
# Hunk #1 succeeded at 11748 (offset 464 lines).
# Hunk #2 succeeded at 12108 (offset 487 lines).
# Hunk #3 succeeded at 12370 (offset 494 lines).
# patching file drivers/gpu/drm/i915/intel_drv.h
# Hunk #1 succeeded at 997 (offset 63 lines).
# patching file include/linux/vgaarb.h
# Applied patch debian/patches/i915.patch (forced; needs refresh)
# Now open the *.rej files and patch the corresponding *.c files manually, then
# refresh the patch.
quilt refresh i915.patch
# Refreshed patch debian/patches/i915.patch
# save the patch from debian/patches/i915.patch for the next kernel update
# Instructions to compile the kernel the debian way.
# the first part it done on the top, I use the part to compile
# copy the config of your running kernel
# NOTE: the config filename can change in the future
cp /boot/config-3.16.0-4-amd64 .config
# disable DEBUG_INFO if you don't want this.
scripts/config --disable DEBUG_INFO
# If you have to rebuild, you can clean the files
make clean
# The -j 4 depends on your cores, here I have a 4 x core CPU
make deb-pkg -j 4
# ...
# dpkg-deb: building package `linux-image-3.16.7-ckt9' in
# `../linux-image-3.16.7-ckt9_3.16.7-ckt9-1_amd64.deb'.
# The kernel packages will build in the src folder, now you can install it.
# NOTE: Every kernel build will generate a new file, if you not delete them.
sudo dpkg -i ../linux-image-3.16.7-ckt9_3.16.7-ckt9-1_amd64.deb
# Reboot and check, if all is working normal.
# Use the grub cmdline to activate the i915 patch
sudo nano /etc/default/grub
# change GRUB_CMDLINE_LINUX_DEFAULT
# from "quiet" to
# "quiet intel_iommu=on i915.enable_hd_vgaarb=1"
# after save start update grub
sudo update-grub
# Now you can use the instructions on https://bbs.archlinux.org/viewtopic.php?id=162768
Keine Kommentare:
Kommentar veröffentlichen
Hinweis: Nur ein Mitglied dieses Blogs kann Kommentare posten.