How to create custom linux-restricted-modules?

Chris Cohen kildau-ml at
Tue May 20 19:47:28 UTC 2008

On Tuesday 20 May 2008 21:06:54 Dotan Cohen wrote:
> 2008/5/20 Chris Cohen <kildau-ml at>:
> > Hello,
> >
> > just built a custom kernel. But how do I create
> > linux-restricted-modules now? I've seen the posts on ubuntuforums
> > and also read
> > But it
> > just "doesn't work"... tons of errors.
> > So, how does one build a custom kernel without loosing the ability
> > to use e.g. nvidia drivers in an easy way?
> Post your errors.

Uhm... where do I start.
I apt-get sourced & apt-get build-dep'ed the latest 
linux-restricted-modules in hardy. My Kernel-Image is called 
linux-image- linux-headers are also installed.

I then renamed linux-restricted-modules-2.6.24- to 

But what I don't know is, what I have to put into debian/rules.
# kernel
abi_version        = $(shell dpkg-parsechangelog | grep ^Version | 
sed 's/.*-//;s/\..*//')
kernel_version     = $(shell dpkg-parsechangelog | grep ^Source | 
sed 's/.*-//')
kernel_abi_version = $(kernel_version)-$(abi_version)
lrm_version        = $(shell dpkg-parsechangelog | grep ^Version | 
awk '{print $$2}')
Is what I have atm, but this build 2.6.24- I tried serveral 
combinations for abi_version and kernel_version, but I got errors all 
the time. Also, do I really have to set all the options mentioned 
in "Modify debian/rules"?


More information about the ubuntu-users mailing list