Realtime kernel build quickie + bootsplash (or not)

Share your own howto's etc. Not for support questions!

Postby Scoop » 2008-09-15 05:35

Thank you mzilikazi for the latest update.
I just built a 2.6.26-5-rt9 nvidia kernel from your instructions. I just changed rt8 to rt9 where applicable as rt9 is the latest patch.
Thanks again!
Scoop
 
Posts: 21
Joined: 2004-09-14 20:18
Location: Australia

Postby mzilikazi » 2008-09-15 12:48

Scoop wrote:Thank you mzilikazi for the latest update.
I just built a 2.6.26-5-rt9 nvidia kernel from your instructions. I just changed rt8 to rt9 where applicable as rt9 is the latest patch.
Thanks again!

Thanks for the reply! It's always nice to get confirmation that something works. ;) It's just too easy to make typos.
Debian Sid Laptops:
AMD Athlon(tm) 64 X2 Dual-Core Processor TK-55 / 1.5G
Intel(R) Pentium(R) Dual CPU T2390 @ 1.86GHz / 3G
User avatar
mzilikazi
Forum Ninja
 
Posts: 3321
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

Postby garrincha » 2008-09-15 18:56

For those with nvidia legacy cards, do the same steps as in mzilikazi's recent post. The lastest nvidia legacy version 96xx (and I assumed 71xx as well) also doesn't play nice with real-time patch as I discovered a few weeks ago when I returned to compiling a RT kernel and you'll get the same error as in mzilikazi's. I solved it by manually editing the nv-linux.h file, but basically it's same as mziliazi's.

Install nvidia using modules-assistant & auto-assistant:
Code: Select all
# apt-get install module-assistant gcc nvidia-kernel-common
# m-a update
# m-a prepare
# m-a a-i nvidia-kernel-legacy-96xx-source

If you get the error, do this - note the location of nv-linux.h:
Code: Select all
# sed -i '/__SEMAPHORE_INITIALIZER/ s/__SEMAPHORE_INITIALIZER/__COMPAT_SEMAPHORE_INITIALIZER/' /usr/src/modules/nvidia-kernel-legacy-96xx/nv/nv-linux.h
# sed -i '/struct semaphore/ s/struct semaphore/struct compat_semaphore/' /usr/src/modules/nvidia-kernel-legacy-96xx/nv/nv-linux.h

To avoid losing the edit to nv-linux.h file:
Code: Select all
# m-a a-i -O nvidia-kernel-legacy-96xx-source
Maurice Green on Usain Bolt's 9.58: "The Earth stopped for a second, and he went to Mars."
User avatar
garrincha
 
Posts: 2340
Joined: 2006-06-02 16:38

Postby Scoop » 2008-09-16 23:45

Audio users note:
The 2.6.26 kernel has major problems for audio, esp. MIDI. See
http://kerneltrap.org/Linux/Removing_th ... ernel_Lock
2.6.25-rt8 is reported to be OK for audio and nvidia drivers so I will try build that.
Scoop
 
Posts: 21
Joined: 2004-09-14 20:18
Location: Australia

Postby jongi » 2008-09-17 20:50

Do I run
Code: Select all
export CONCURRENCY_LEVEL=2

from the command line before i start the make-kpkg process?
Desktop: Debian (Sid) 64-bit, Gentoo 64-bit and Ubuntu Jaunty 64-bit
Laptop: Gentoo 32-bit
MythTV: Debian (Testing) 32-bit
jongi
 
Posts: 477
Joined: 2007-04-15 02:41

Postby garrincha » 2008-09-18 00:26

jongi wrote:Do I run
Code: Select all
export CONCURRENCY_LEVEL=2

from the command line before i start the make-kpkg process?

Yes. You usually do like so:
Code: Select all
export CONCURRENCY_LEVEL=2
fakeroot make-kpkg etc


FYI:
man make-kpkg
[code]
CONCURRENCY_LEVEL
If defined, this environment variable sets the concurrency level of make used to compile the kernel and the modules set using -j flags to
the sub make in the build target of make-kpkg. Should be a (small) integer, if used. You can get the current number of CPUs using the comâ€
Maurice Green on Usain Bolt's 9.58: "The Earth stopped for a second, and he went to Mars."
User avatar
garrincha
 
Posts: 2340
Joined: 2006-06-02 16:38

Postby jongi » 2008-09-18 17:26

does it need to be run every time or is it set for all time once i do it the first time
Desktop: Debian (Sid) 64-bit, Gentoo 64-bit and Ubuntu Jaunty 64-bit
Laptop: Gentoo 32-bit
MythTV: Debian (Testing) 32-bit
jongi
 
Posts: 477
Joined: 2007-04-15 02:41

Postby garrincha » 2008-09-18 18:10

jongi wrote:does it need to be run every time or is it set for all time once i do it the first time

It should be for when you run make during kernel compilation. Please read the quoted portion of man make-kpkg
If defined, this environment variable sets the concurrency level of make used to compile the kernel
Maurice Green on Usain Bolt's 9.58: "The Earth stopped for a second, and he went to Mars."
User avatar
garrincha
 
Posts: 2340
Joined: 2006-06-02 16:38

Postby jongi » 2008-09-20 14:47

does export define the setting permanently?
Desktop: Debian (Sid) 64-bit, Gentoo 64-bit and Ubuntu Jaunty 64-bit
Laptop: Gentoo 32-bit
MythTV: Debian (Testing) 32-bit
jongi
 
Posts: 477
Joined: 2007-04-15 02:41

Postby garrincha » 2008-09-20 17:11

jongi wrote:does export define the setting permanently?

If you run it for example from the terminal - no. Export is a bash command to set an environment variable.
Maurice Green on Usain Bolt's 9.58: "The Earth stopped for a second, and he went to Mars."
User avatar
garrincha
 
Posts: 2340
Joined: 2006-06-02 16:38

Postby roooz » 2008-12-04 11:31

What if you want to build a realtime kernel for a multimedia distro, with the aim that as much as possible people can work with it?

Which packages do you need to install etc. ?

edit: and what do you choose when you do
Code: Select all
make oldconfig

and you get some options to choose... Do you hit just ENTER or what? What does ENTER mean here?
roooz
 
Posts: 143
Joined: 2008-07-27 21:01

Postby jongi » 2008-12-05 17:15

If I remember correctly hitting Enter chooses the default action, which normally is capitalised.
Desktop: Debian (Sid) 64-bit, Gentoo 64-bit and Ubuntu Jaunty 64-bit
Laptop: Gentoo 32-bit
MythTV: Debian (Testing) 32-bit
jongi
 
Posts: 477
Joined: 2007-04-15 02:41

Postby touser » 2008-12-10 07:10

Heres a stupid question, i just followed the guide but for the latest version of the patch and it worked great, but i started off with an amd64 kernel and i would like to continue running 64bit. Is the kernel i compiled while running the stock 64bit lenny kernel 64bit or are there additional steps i need to take that werent outlined in the guide to make it 64bit? Thanks!
touser
 
Posts: 2
Joined: 2008-03-28 23:33

Postby garrincha » 2008-12-10 10:02

touser wrote:Heres a stupid question, i just followed the guide but for the latest version of the patch and it worked great, but i started off with an amd64 kernel and i would like to continue running 64bit. Is the kernel i compiled while running the stock 64bit lenny kernel 64bit or are there additional steps i need to take that werent outlined in the guide to make it 64bit? Thanks!


AMD64 is coded in such way that it operates in both long mode which consist of the 64-bit mode and compatibility mode implementation to run 32-bit code in 64-bit environment.

Anyway, if you want to you can look under "Executable file format / Emulation --> i32 Emulation" of your kernel configuration. You can turn it off as long as you're sure that you don't have any 32-bit programs running. However, turning it off will not have any significant impact on the kernel overall.
Maurice Green on Usain Bolt's 9.58: "The Earth stopped for a second, and he went to Mars."
User avatar
garrincha
 
Posts: 2340
Joined: 2006-06-02 16:38

Postby Scoop » 2009-01-19 06:18

To build the latest rt kernel (2.6.26.8-rt13) that works with audio esp. jack and midi you need Adam Samson's patch.
This is the modified sequence (without bootsplash)

wget http://kernel.org/pub/linux/kernel/v2.6 ... .8.tar.bz2
wget http://www.kernel.org/pub/linux/kernel/ ... 8-rt13.bz2
wget http://offog.org/stuff/rt-200901/taskle ... tion.patch
########## this is Adam's patch above #############
unp linux-2.6.26.8.tar.bz2
mv linux-2.6.26.8 linux-2.6.26.8-rt13
cd linux-2.6.26.8-rt13
bzcat ../patch-2.6.26.8-rt13.bz2 |patch -p1
patch -p1<../tasklets-fix-tasklet_hi_action.patch

This patch will probably be merged for subsequent rt patch releases.

I have not succeeded in building nvidia for this one yet but I am no guru!
HTH
Norv
Scoop
 
Posts: 21
Joined: 2004-09-14 20:18
Location: Australia

PreviousNext

Return to Docs, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 9 guests

fashionable