debian 9 kernel (needed for wifi driver) but failing to build u2mfn against 4.9.0

48 views
Skip to first unread message

Joonas Lehtonen

unread,
Apr 17, 2017, 5:45:40 PM4/17/17
to qubes...@googlegroups.com
Hi,

I need debian's kernel because the Qubes kernel does not provide the
needed network driver.

I'm following the steps here to install the in-VM kernel, instead of the
one provided by dom0:

https://www.qubes-os.org/doc/managing-vm-kernel/

The debian 9 template boots fine with pvgrub but qrexec does not work
because the Qubes kernel module u2mfn fails to build on debian 9's
kernel (4.9.0).

Has anyone u2mfn running on debian 9's kernel (4.9.0)?

thanks,
Joonas

From the log file /var/lib/dkms/u2mfn/3.2.3/build/make.log :

DKMS make.log for u2mfn-3.2.3 for kernel 4.9.0-2-amd64 (x86_64)
make: Entering directory '/usr/src/linux-headers-4.9.0-2-amd64'
LD /var/lib/dkms/u2mfn/3.2.3/build/built-in.o
CC [M] /var/lib/dkms/u2mfn/3.2.3/build/u2mfn.o
/var/lib/dkms/u2mfn/3.2.3/build/u2mfn.c: In function ?u2mfn_ioctl?:
/var/lib/dkms/u2mfn/3.2.3/build/u2mfn.c:80:23: error: passing argument 5
of ?get_user_pages? from incompatible pointer type
[-Werror=incompatible-pointer-types]
(data, 1, 1, 0, &user_page, 0);
^
In file included from /var/lib/dkms/u2mfn/3.2.3/build/u2mfn.c:26:0:
/usr/src/linux-headers-4.9.0-2-common/include/linux/mm.h:1302:6: note:
expected ?struct vm_area_struct **? but argument is of type ?struct page **?
long get_user_pages(unsigned long start, unsigned long nr_pages,
^~~~~~~~~~~~~~
/var/lib/dkms/u2mfn/3.2.3/build/u2mfn.c:79:9: error: too many arguments
to function ?get_user_pages?
ret = get_user_pages
^~~~~~~~~~~~~~
In file included from /var/lib/dkms/u2mfn/3.2.3/build/u2mfn.c:26:0:
/usr/src/linux-headers-4.9.0-2-common/include/linux/mm.h:1302:6: note:
declared here
long get_user_pages(unsigned long start, unsigned long nr_pages,
^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
/usr/src/linux-headers-4.9.0-2-common/scripts/Makefile.build:304: recipe
for target '/var/lib/dkms/u2mfn/3.2.3/build/u2mfn.o' failed
make[3]: *** [/var/lib/dkms/u2mfn/3.2.3/build/u2mfn.o] Error 1
/usr/src/linux-headers-4.9.0-2-common/Makefile:1507: recipe for target
'_module_/var/lib/dkms/u2mfn/3.2.3/build' failed
make[2]: *** [_module_/var/lib/dkms/u2mfn/3.2.3/build] Error 2
Makefile:150: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make: *** [all] Error 2

signature.asc

Reg Tiangha

unread,
Apr 17, 2017, 7:22:30 PM4/17/17
to qubes...@googlegroups.com
On 04/17/2017 03:45 PM, Joonas Lehtonen wrote:
> Hi,
>
> I need debian's kernel because the Qubes kernel does not provide the
> needed network driver.
>
> I'm following the steps here to install the in-VM kernel, instead of the
> one provided by dom0:
>
> https://www.qubes-os.org/doc/managing-vm-kernel/
>
> The debian 9 template boots fine with pvgrub but qrexec does not work
> because the Qubes kernel module u2mfn fails to build on debian 9's
> kernel (4.9.0).
>
> Has anyone u2mfn running on debian 9's kernel (4.9.0)?
>
> thanks,
> Joonas


Update your Debian 9 template; version 3.2.4 of qubes-kernel-vm-support
was just pushed out to stable today and that should allow compiling
kernels higher than 4.8 to work.


Joonas Lehtonen

unread,
Apr 18, 2017, 4:17:06 AM4/18/17
to qubes...@googlegroups.com


Reg Tiangha:
thanks, that worked.



signature.asc
Reply all
Reply to author
Forward
0 new messages