linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Tweaking pengutronix' debian packages for rt kernels
@ 2011-01-01 16:10 Arnout Engelen
  2011-01-01 17:25 ` Nicholas Mc Guire
  0 siblings, 1 reply; 3+ messages in thread
From: Arnout Engelen @ 2011-01-01 16:10 UTC (permalink / raw)
  To: linux-rt-users

Hi,

http://www.pengutronix.de/software/linux-rt/debian_en.html mentions this 
would be the right place to discuss the Pengutronix Debian packages containing
RT-patched kernels.

Is there any guide that documents how to build tweaked versions of these 
packages? Pengutronix seems to be doing a great job, but for example the 
package for the 2.6.33.7.2-rt30 kernel doesn't contain the 'nouveau' graphics
driver, which I happen to use. 

Some pointers on how to create a version of the packages including the
'nouveau' modules would be very helpful.


Kind regards,

Arnout

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Tweaking pengutronix' debian packages for rt kernels
  2011-01-01 16:10 Tweaking pengutronix' debian packages for rt kernels Arnout Engelen
@ 2011-01-01 17:25 ` Nicholas Mc Guire
  2011-01-02 21:00   ` Uwe Kleine-König
  0 siblings, 1 reply; 3+ messages in thread
From: Nicholas Mc Guire @ 2011-01-01 17:25 UTC (permalink / raw)
  To: Arnout Engelen; +Cc: linux-rt-users

On Sat, 01 Jan 2011, Arnout Engelen wrote:

> Hi,
> 
> http://www.pengutronix.de/software/linux-rt/debian_en.html mentions this 
> would be the right place to discuss the Pengutronix Debian packages containing
> RT-patched kernels.
> 
> Is there any guide that documents how to build tweaked versions of these 
> packages? Pengutronix seems to be doing a great job, but for example the 
> package for the 2.6.33.7.2-rt30 kernel doesn't contain the 'nouveau' graphics
> driver, which I happen to use. 
>

roughly:
* apt-get install build-essential libncurses5-dev kernel-package
* grab sources: http://debian.pengutronix.de/debian/pool/non-free/l/linux-2.6/linux-2.6_2.6.33.7.2-rt30.orig.tar.gz
 Note that you can't verify the sources as no signature file is provided (bad)
 ...or simply grab a verified kernel from kernel.org and the appropriate patch
* unpack sources
* copy the config file to .config in the kernel source tree.
* make menuconfig and add the driver you need
* adjust /etc/kernel-pkg.conf (atleast maintainer and email - so you get blamed if you screwed up ;)
* compile and sign package: CONCURRENCY_LEVEL=4 make-kpkg --pgpsign YOURNAME --initrd --append-to-version=-nouveau --revision=2.6.33.7 kernel-image kernel-source

Notes:
* Note that you get a build failure on lenny as it does not find the utsreleas version in the right location for newer kernels (newer than 2.6.26 that is) so you have to manually cp include/generated/utsrelease.h include/linux/utsrelease.h and rerun the make-kpkg command
* provide package AND sginature to the users of this package.
* CONCURRENCY_LEVEL is just like -j4 here - so adjust to what is suitable for your compile box
* the "--append-to-version=" is the string that will be added to the kenrle package so that you have a kernel package at the end called linux-image-2.6.33.7.2-rt30-nouveau_2.6.33.7_ARCH.deb
* the name that you pass with --pgpsign must be the same as you get when you use gpg --list-keys 

> Some pointers on how to create a version of the packages including the
> 'nouveau' modules would be very helpful.
>

man make-kpkg
man kernel-pkg.conf

further details about debian packages at http://www.debian.org/doc/maint-guide/

hofrat 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Tweaking pengutronix' debian packages for rt kernels
  2011-01-01 17:25 ` Nicholas Mc Guire
@ 2011-01-02 21:00   ` Uwe Kleine-König
  0 siblings, 0 replies; 3+ messages in thread
From: Uwe Kleine-König @ 2011-01-02 21:00 UTC (permalink / raw)
  To: Nicholas Mc Guire; +Cc: Arnout Engelen, linux-rt-users

On Sat, Jan 01, 2011 at 06:25:23PM +0100, Nicholas Mc Guire wrote:
> On Sat, 01 Jan 2011, Arnout Engelen wrote:
> 
> > Hi,
> > 
> > http://www.pengutronix.de/software/linux-rt/debian_en.html mentions this 
> > would be the right place to discuss the Pengutronix Debian packages containing
> > RT-patched kernels.
> > 
> > Is there any guide that documents how to build tweaked versions of these 
> > packages? Pengutronix seems to be doing a great job, but for example the 
> > package for the 2.6.33.7.2-rt30 kernel doesn't contain the 'nouveau' graphics
> > driver, which I happen to use. 
> >
> 
> roughly:
> * apt-get install build-essential libncurses5-dev kernel-package
> * grab sources: http://debian.pengutronix.de/debian/pool/non-free/l/linux-2.6/linux-2.6_2.6.33.7.2-rt30.orig.tar.gz
>  Note that you can't verify the sources as no signature file is provided (bad)
>  ...or simply grab a verified kernel from kernel.org and the appropriate patch
Hmm, they should be verifiable using the normal Debian tools:

	http://debian.pengutronix.de/debian/dists/sid/Release is signed
	http://debian.pengutronix.de/debian/dists/sid/Release lists the
md5 and sha1 sum of non-free/source/Sources.gz
	http://debian.pengutronix.de/debian/dists/sid/non-free/source/Sources.gz  has the sums for
		linux-2.6_2.6.33.7.2-rt30.orig.tar.gz
		linux-2.6_2.6.33.7.2-rt30-1.diff.gz
		linux-2.6_2.6.33.7.2-rt30-1.dsc

This is what apt would check for you when you just do

	apt-get source linux-2.6

to grab and unpack the sources.  (You only need to pay attention that
you get the Pengutronix sources, not the Debian ones.  This depends on
the source lines in your sources.list and probably some configuration in
/etc/apt/preferences)
	
> * unpack sources
> * copy the config file to .config in the kernel source tree.
Note there are multiple config files that are all used to build the
config actually being used.

> * make menuconfig and add the driver you need
> * adjust /etc/kernel-pkg.conf (atleast maintainer and email - so you get blamed if you screwed up ;)
> * compile and sign package: CONCURRENCY_LEVEL=4 make-kpkg --pgpsign YOURNAME --initrd --append-to-version=-nouveau --revision=2.6.33.7 kernel-image kernel-source
For that you don't need the pengutronix sources.  The (IMHO) more
appropriate way is to edit config/config and then use

	debuild -us -uc

and then go and get you a coffee (or two).
> 
> Notes:
> * Note that you get a build failure on lenny as it does not find the utsreleas version in the right location for newer kernels (newer than 2.6.26 that is) so you have to manually cp include/generated/utsrelease.h include/linux/utsrelease.h and rerun the make-kpkg command
> * provide package AND sginature to the users of this package.
> * CONCURRENCY_LEVEL is just like -j4 here - so adjust to what is suitable for your compile box
You have to use DEBIAN_KERNEL_JOBS=4 for the way described above.

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-01-02 21:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-01 16:10 Tweaking pengutronix' debian packages for rt kernels Arnout Engelen
2011-01-01 17:25 ` Nicholas Mc Guire
2011-01-02 21:00   ` Uwe Kleine-König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).