On Wed, Jan 13, 2016 at 05:27:40AM +0100, Marek Marczykowski-Górecki wrote:
> Take a look here:
>
https://www.qubes-os.org/doc/managing-vm-kernel/
> In section "Installing different VM kernel based on dom0 kernel" very
> similar thing is done. Especially qubes-kernel-vm-support package does
> contain DKMS-style module and qubes-prepare-vm-kernel tool does build
> it.
>
> Generally - it should work pretty the same. You need to have appropriate
> kernel headers installed (kernel-devel package) and dkms itself of
> course. Other things should be the same.
>
I inspected qubes-prepare-vm-kernel and as you suggested it does just run
standard dkms commands. I did try that before and I continue to have the
same strange error. Unfortunately the errors are not all that helpful:
[user@dom0 src]$ sudo dkms build psmouse/byd-0.1
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area...
make KERNELRELEASE=4.1.13-8.pvops.qubes.x86_64 -C /lib/modules/4.1.13-8.pvops.qubes.x86_64/build M=/var/lib/dkms/psmouse/byd-0.1/build/src psmouse.ko....
Error! Build of psmouse.ko failed for: 4.1.13-8.pvops.qubes.x86_64 (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/psmouse/byd-0.1/build/ for more information.
[user@dom0 src]$ cat /var/lib/dkms/psmouse/byd-0.1/build/make.log
DKMS make.log for psmouse-byd-0.1 for kernel 4.1.13-8.pvops.qubes.x86_64 (x86_64)
Thu Jan 14 07:37:03 PST 2016
make: Entering directory `/usr/src/kernels/4.1.13-8.pvops.qubes.x86_64'
CC /var/lib/dkms/psmouse/byd-0.1/build/src/psmouse-base.o
CC /var/lib/dkms/psmouse/byd-0.1/build/src/synaptics.o
CC /var/lib/dkms/psmouse/byd-0.1/build/src/focaltech.o
CC /var/lib/dkms/psmouse/byd-0.1/build/src/byd.o
CC /var/lib/dkms/psmouse/byd-0.1/build/src/alps.o
CC /var/lib/dkms/psmouse/byd-0.1/build/src/elantech.o
CC /var/lib/dkms/psmouse/byd-0.1/build/src/logips2pp.o
CC /var/lib/dkms/psmouse/byd-0.1/build/src/lifebook.o
CC /var/lib/dkms/psmouse/byd-0.1/build/src/sentelic.o
CC /var/lib/dkms/psmouse/byd-0.1/build/src/trackpoint.o
CC /var/lib/dkms/psmouse/byd-0.1/build/src/cypress_ps2.o
LD /var/lib/dkms/psmouse/byd-0.1/build/src/psmouse.o
MODPOST 0 modules
make: Leaving directory `/usr/src/kernels/4.1.13-8.pvops.qubes.x86_64'
So it appears all of the object files are being created but the kernel
module itself is not. Unfortunately I'm not getting any good explanation
from the output as to why.
--
Kyle Rankin