[qubes-users] Re: HOWTO: Compiling Kernels for dom0

2017-04-28 Thread ghotiy
On Saturday, April 29, 2017 at 1:56:42 AM UTC-4, Foppe de Haan wrote:
> the update wasn't built for the fc23-vm: 
> https://github.com/QubesOS/updates-status/issues/17

Thanks.

somehow I never found that page during google searching.

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/09c2b022-398b-4fa7-85fb-a74ba2a5a82e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[qubes-users] Re: HOWTO: Compiling Kernels for dom0

2017-04-28 Thread ghotiy

> I don't know why it wouldn't work for you, unless you're running a
> version of Qubes older than R3.2 or using an unsupported Fedora template.
> 
> As a last resort, you can replace your /usr/src/u2mfn-3.2.3/u2mfn.c file
> with this one here:
> 
> https://raw.githubusercontent.com/QubesOS/qubes-linux-utils/master/kernel-modules/u2mfn/u2mfn.c
> 
> and compiling should work.

It works now. Thanks for your help.

I started from scratch with a new clone of the fedora 23 template that was 
installed with R3.2. I replaced the u2mfn.c file with the one you linked to.

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/28b3128d-60bc-44db-9b4b-6dd1a3a44d74%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[qubes-users] Re: HOWTO: Compiling Kernels for dom0

2017-04-28 Thread ghotiy

> >
> You need to update the qubes-kernel-vm-support package in the Fedora VM
> that you're trying to compile this in. A compatible version (3.2.4)
> should has been pushed out to the stable repositories so running sudo
> dnf upgrade should pull it in (unless you've never installed it in the
> first place, in which case you should run sudo dnf install
> qubes-kernel-vm-support instead). Once you've installed the package, try
> compiling one of those kernels again and it should work.

I have version 3.2.3 installed.  I also have the "current", "current-testing", 
and "unstable" repositories enabled in qubes-r3.repo.  

doing a search for qubes-kernel-vm-support only shows version 3.2.3.  Doing 
upgrade says nothing to do. Doing a reinstall only installs version 3.2.3 Is 
there somewhere else to get the version 3.2.4

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/2cb51e68-7975-49fd-9899-b29697b405a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[qubes-users] Re: HOWTO: Compiling Kernels for dom0

2017-04-28 Thread ghotiy
Hello,

I am following your instructions and trying to compile devel-4.10.  I am 
getting the following error.  This error also occurs on stable-4.9. Any idea 
how i can fix this.

Thanks.

/home/user/qubes-linux-kernel/u2mfn/u2mfn.c: In function 'u2mfn_ioctl':
/home/user/qubes-linux-kernel/u2mfn/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 /home/user/qubes-linux-kernel/u2mfn/u2mfn.c:26:0:
/home/user/qubes-linux-kernel/kernel-4.10.13/linux-4.10.13/include/linux/mm.h:1271: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,
  ^
/home/user/qubes-linux-kernel/u2mfn/u2mfn.c:79:9: error: too many arguments to 
function 'get_user_pages'
   ret = get_user_pages
 ^
In file included from /home/user/qubes-linux-kernel/u2mfn/u2mfn.c:26:0:
/home/user/qubes-linux-kernel/kernel-4.10.13/linux-4.10.13/include/linux/mm.h:1271:6:
 note: declared here
 long get_user_pages(unsigned long start, unsigned long nr_pages,
  ^
cc1: some warnings being treated as errors
/home/user/qubes-linux-kernel/kernel-4.10.13/linux-4.10.13/scripts/Makefile.build:300:
 recipe for target '/home/user/qubes-linux-kernel/u2mfn/u2mfn.o' failed
make[4]: *** [/home/user/qubes-linux-kernel/u2mfn/u2mfn.o] Error 1
/home/user/qubes-linux-kernel/kernel-4.10.13/linux-4.10.13/Makefile:1490: 
recipe for target '_module_/home/user/qubes-linux-kernel/u2mfn' failed
make[3]: *** [_module_/home/user/qubes-linux-kernel/u2mfn] Error 2
Makefile:150: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
Makefile:24: recipe for target '__sub-make' failed
make[1]: *** [__sub-make] Error 2
make[1]: Leaving directory 
'/home/user/qubes-linux-kernel/kernel-4.10.13/linux-obj'
error: Bad exit status from /var/tmp/rpm-tmp.6UeD6a (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.6UeD6a (%build)
Makefile:90: recipe for target 'rpms-dom0' failed
make: *** [rpms-dom0] Error 1

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/d0c9881a-4a5e-4cde-93cf-8f7a6efaff3f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.