how to build your own ubuntu rt-kernel?

What other apps and distros do you use to round out your studio?

Moderators: MattKingUSA, khz

studio32

Re: how to build your own ubuntu rt-kernel?

Post by studio32 »

when you do

Code: Select all

make oldconfig
Do you hit ENTER on the options? What is ENTER, default of no?
thorgal
Established Member
Posts: 739
Joined: Mon Apr 07, 2008 6:04 pm

Re: how to build your own ubuntu rt-kernel?

Post by thorgal »

the default if you hit enter is the capital letter between [] like [Y/n] would imply yes. If you see a ? between brackets, it means that you can type ? to get some explanations (often esoteric :lol: )
studio32

Re: how to build your own ubuntu rt-kernel?

Post by studio32 »

thanks thorgal, I just finished successful a rt kernel based on the 64studio config file... ;)
thorgal
Established Member
Posts: 739
Joined: Mon Apr 07, 2008 6:04 pm

Re: how to build your own ubuntu rt-kernel?

Post by thorgal »

congrats :D
tuomashelin
Posts: 1
Joined: Sat Dec 27, 2008 6:17 pm

Re: how to build your own ubuntu rt-kernel?

Post by tuomashelin »

I compiled a rt-kernel to Debian Lenny like this:

- install with synaptic kernel-package (to compile a .deb-package of your kernel)
- download matching kernel source and Ingo Molnars realtime patch, you'll find them from kernel.org
- unpack the kernel source, for example your /home-directory will be fine - no need to be root
- copy your working kernel configuration to the kernel source directory:

cp /boot/"working-kernel-number".config /home/your-kernel-source-dir/.config

- patch the kernel source to include realtime capabilities in the kernel source directory:

bzcat /path/to/patch.bz2 | patch -p1

- configure:

make menuconfig

- remember to activate the realtime stuff at "Processor Type and Features"! And for audio work alsa support - including alsa-oss compatibility. Save and exit.

- compile:

make all

- compile a .deb-package like this:

make-kpkg --clean kernel_image kernel_headers

- when the previous command has finished, you should have a .deb-package of your newly compiled kernel in the parent directory of your kernel source directory. You can install it as root:

dpkg -i /path/to/the/kernel_image.deb /path/to/the/kernel_headers.deb

- check your GRUB configuration in /boot/grub/menu.lst and reboot
- you should now have rt-kernel provided everything went fine. Compiling and installing kernel headers is included in case you wish to compile the latest alsa source too.. but that's another story.

Good Luck!
Remember: matching numbers patch and source!
Post Reply