[HOWTO] Building kernel 2.6.33.9-rt31 on Natty 64-bit
Ralf Mardorf
ralf.mardorf at alice-dsl.net
Fri May 27 20:52:09 UTC 2011
Hi :)
the current patch at http://www.kernel.org/pub/ is patch-2.6.33.9-rt31.
I included all needed commands to a script.
Make sure that you're booted kernel 2.6.38-8-generic. Command out the
line regarding to the CPU, if you won't optimize to AMD.
spinymouse at natty:~/Documents$ uname -a
Linux natty 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011
x86_64 x86_64 x86_64 GNU/Linux
The script should add all needed packages to a fresh install, perhaps
some of the packages that will be installed aren't needed and fakeroot
might be already installed, but that doesn't matter. Run the script.
Perhaps you like to backup your current GRUB2 menu by "sudo
cp /boot/grub/grub.cfg /boot/grub/grub.cfg.natty" before running the
shell script.
spinymouse at natty:~/Documents$ sudo sh rt4us-natty
If you're asked to continue, just "enter".
When you get asked some questions, the first one should be "Group CPU
scheduler (GROUP_SCHED) [N/y/?] (NEW)", just enter, including this one,
you should enter 5 times, until you get asked
"Preemption Mode
1. No Forced Preemption (Server) (PREEMPT_NONE)
2. Voluntary Kernel Preemption (Desktop) (PREEMPT_VOLUNTARY)
3. Preemptible Kernel (Low-Latency Desktop) (PREEMPT_DESKTOP) (NEW)
> 4. Complete Preemption (Real-Time) (PREEMPT_RT)
choice[1-4]:"
type "4" without quotes and/ or just enter, including this one, enter
only around 50 additional times, it doesn't matter if you still enter,
while compiling already started. In other words, just push enter all the
times and stop doing it, when compiling started.
On my 2.1 GHz AMD dual-core, 4 GB RAM, it takes around 80 min to build
the kernel, without setting CONCURRENCY_LEVEL.
I've forgotten to add "export CONCURRENCY_LEVEL=2" to the script, if
you're using a multi-core machine too, add it to the script, this might
speed up compiling.
I did it on the fly and might have missed something, the kernel isn't
tested jet, but usually those self-build kernels are ok.
If you won't edit grub.cfg yourself, you don't need to edit the script,
but run "sudo update-grub2" manually, when the script finished, before
you reboot.
If this mail should come through the list, than the kernel at least can
be used for e-mailing :).
spinymouse at natty:~$ uname -a
Linux natty 2.6.33.9-rt31 #1 SMP PREEMPT RT Fri May 27 21:11:36 CEST
2011 x86_64 x86_64 x86_64 GNU/Linux
The NVIDIA driver didn't build the module. My Natty is switching between
nv and nvidia driver, regarding to the kernel at startup.
Have fun!
Ralf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rt4us-natty
Type: application/x-shellscript
Size: 4243 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-studio-users/attachments/20110527/dea36902/attachment.bin>
More information about the Ubuntu-Studio-users
mailing list