Add patch to 5.15 Kernel

kcrawford

Renowned Member
Nov 29, 2013
21
2
68
Hello fourm,

I am looking to build a kernel containing the following patch file: https://github.com/intel/gvt-linux/...dle-buggy-guest-driver-ppgtt-access.patch.txt to resolve an issue I am having with a Windows 10 virtual machine causing a hypervisor lockup.

I followed the build steps here: https://forum.proxmox.com/threads/building-the-pve-kernel-on-proxmox-ve-6-x.76137/, checking out the 5.15 branch once the git clone was complete. I also had to modify my Makefile on line 53:

Code:
    53    #DEBS=${DST_DEB} ${HDR_DEB} ${USR_HDR_DEB} ${LINUX_TOOLS_DEB} ${LINUX_TOOLS_DBG_DEB}
    54    DEBS=${DST_DEB}

and on line 61, adding the -d flag:
Code:
    61        cd ${BUILD_DIR}; dpkg-buildpackage -d --jobs=auto -b -uc -us

After successfully running mk-build-deps --install debian/control.in, make submodules, my make command is failing:

Code:
make[4]: Leaving directory '/mnt/argon/gvt-kernel/pve-kernel/build/modules/pkg-zfs/module'
make[4]: Entering directory '/mnt/argon/gvt-kernel/pve-kernel/build/modules/pkg-zfs'
[ -x ./scripts/zfs-tests.sh ] && \
    ./scripts/zfs-tests.sh -c
Missing helper script common.sh
make[4]: [Makefile:1507: all-local] Error 1 (ignored)
make[4]: Leaving directory '/mnt/argon/gvt-kernel/pve-kernel/build/modules/pkg-zfs'
make[3]: Leaving directory '/mnt/argon/gvt-kernel/pve-kernel/build/modules/pkg-zfs'
make[2]: Leaving directory '/mnt/argon/gvt-kernel/pve-kernel/build/modules/pkg-zfs'
cp modules/pkg-zfs/module/avl/zavl.ko modules/
cp modules/pkg-zfs/module/nvpair/znvpair.ko modules/
cp modules/pkg-zfs/module/unicode/zunicode.ko modules/
cp modules/pkg-zfs/module/zcommon/zcommon.ko modules/
cp modules/pkg-zfs/module/icp/icp.ko modules/
cp modules/pkg-zfs/module/zfs/zfs.ko modules/
cp modules/pkg-zfs/module/lua/zlua.ko modules/
cp modules/pkg-zfs/module/spl/spl.ko modules/
cp modules/pkg-zfs/module/zstd/zzstd.ko modules/
make[1]: Leaving directory '/mnt/argon/gvt-kernel/pve-kernel/build'
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
make: *** [Makefile:61: pve-kernel-5.15.83-1-pve_5.15.83-1_amd64.deb] Error 2

Has anyone encountered this before when attempting to build a PVE Kernel?
 
Posting in case if anyone else is facing this issue,

Note that this error probably not the root cause of the failed build, as it's ignored.
Missing helper script common.sh
make[4]: [Makefile:1507: all-local] Error 1 (ignored)
The actual error might be somewhere up in the build logs.

In my case, python-config was missing, I fixed it by installing python3-dev package.