Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Nouveau wants 3.0 Kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
jbiggs12
n00b
n00b


Joined: 09 Mar 2012
Posts: 29

PostPosted: Mon Mar 12, 2012 4:08 am    Post subject: Nouveau wants 3.0 Kernel Reply with quote

I'm setting my install up with a hardened kernel (Grsecurity) and from what I've heard it doesn't like Nvidia's binary driver very much, so I went with nouveau. The trouble is, it wants a 3.0 kernel, and Grsecurity only has stable kernel release 2.6.32. I'm fairly sure that nouveau has been around for a while before 3.0 was released; is there any way that I can get nouveau going with 2.6.32?

Thanks.
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Mon Mar 12, 2012 4:16 am    Post subject: Reply with quote

there should be a stable hardened-sources kernel clear up to 3.2.2, so I'm not understanding entirely, maybe I have my wires crossed (?)

2.6.32 nouveau would have been very shaky

it is technically possible to get nvidia-drivers working with hardened, but a whole heap of stuff has to be disabled in the kernel config
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
jbiggs12
n00b
n00b


Joined: 09 Mar 2012
Posts: 29

PostPosted: Mon Mar 12, 2012 4:42 am    Post subject: Reply with quote

Quote:
it is technically possible to get nvidia-drivers working with hardened, but a whole heap of stuff has to be disabled in the kernel config


Is there a guide someplace for this?
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Mon Mar 12, 2012 4:56 am    Post subject: Reply with quote

a specific guide, no, and i dont want to over-promise as pax/grsec are always changing quickly enough that some new feature may be introduced that will yet again break compatibility with the nvidia binary driver. Not going to sugar coat it, binary nvidia driver under hardened can be a pain. Just wanted to point out that it IS possible, but "possible" can also mean "doable if you dont mind a fair level of annoyance"

just bits of info on the forums really, e.g. these examples:

https://forums.gentoo.org/viewtopic-t-892274-start-0.html
https://forums.gentoo.org/viewtopic-t-889948-postdays-0-postorder-asc-start-0.html (interesting bits start on page 2)


using nouveau under hardened is certainly less painful, which brings me to: any particular reason for wanting/needing 2.6.32 and not a newer hardened kernel? Especially as part of the reason for going the hardened route is proactively preventing various vulns, and later revisions of hardened may not be prey to things earlier versions are.
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2158
Location: Berlin, Germany

PostPosted: Mon Mar 12, 2012 9:55 am    Post subject: Reply with quote

Nouveau is included in the kernel since 2.6.33. If you are talking about x11-base/nouveau-drm, this provides an out-of-tree build of more recent nouveau code and you should only use this if you know that you need it.
Back to top
View user's profile Send private message
jbiggs12
n00b
n00b


Joined: 09 Mar 2012
Posts: 29

PostPosted: Mon Mar 12, 2012 2:16 pm    Post subject: Reply with quote

It's mostly because Grsecurity only has a stable release for the 2.6.32 kernel. I'm not sure how stable their "test" release is for 3.2.9, seeing as the last commit date for the download was last night at 21:30.
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2158
Location: Berlin, Germany

PostPosted: Mon Mar 12, 2012 4:33 pm    Post subject: Reply with quote

If you want a grsecurity patched kernel, I suggest that you emerge hardened-sources.
Back to top
View user's profile Send private message
Gentoo64
n00b
n00b


Joined: 21 Oct 2011
Posts: 52
Location: ::

PostPosted: Mon Mar 12, 2012 7:51 pm    Post subject: Reply with quote

I got Nvidia binary working on latest unstable hardened-sources by using quarks overlay for nvidia drivers, then you have to add x11-drivers/nvidia-drivers to /etc/portage/package.unmask

Then you can add -video_cards_nvidia to /etc/portage/profile/package.mask (and -vdpau, -cuda whatever else you need)

You need to disable couple things in hardened-sources, KERNEXEC I think prevents the module from loading

Then you need to add stuff like -opengl to packages like cairo or pretty much everything fails to run. Theres other stuff that needs adjusting to get proper functionality. It really isn't worth all the effort imo as the binary apparently is a security risk in itself, you need to disable security stuff for it to run, and you never get the full functionality a non-hardened gentoo install would give you anyway.

Nouveau is the obvious choice as it just works, and you know you won't have to keep messing with stuff to get it going, plus you get nice full res console :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum