All of lore.kernel.org
 help / color / mirror / Atom feed
* Preempt-rt kernel build for beagleboard
@ 2012-11-27 10:23 Yu Pan
  2012-11-27 15:24 ` Bruce Ashfield
  0 siblings, 1 reply; 6+ messages in thread
From: Yu Pan @ 2012-11-27 10:23 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 1771 bytes --]

I started looking at Yocto 2 weeks back. Despite the complexity in kernel
building, I found it quite hard to locate information on preempt-rt build.
I was trying to build linux-yocto-rt for beagleboard from "danny" and the
linux-yocto-3.4 kernel, and it seems to be working. I'd like to share how
one can do that in this thread.

Since the kernel does not include an official preempt-rt branch for
beagleboard yet, I choose to directly use the standard/preempt-rt/base
branch. I guess this should work for the preempt-rt kernel, from the fact
that the standard kernel (non preempt-rt) used for beagleboard from the
standard/beagleboard branch is basically identical to that from the
standard/base branch.

Here is what I did.
1. Under poky/meta-yocto-bsp/recipes-kernel/linux, I added a
linux-yocto-rt_3.4.bbappend recipe containing the following lines. The
SRCREV value used is the same as the one in the base
linux-yocto-rt_3.4.bbunder poky/meta/recipes/kernel.

  KBRANCH_beagleboard = "standard/preempt-rt/base"
  SRCREV_machine_beagleboard ?= "5705c8037d2c47938034ead87c70ae3ebef552f7"
  COMPATIBLE_MACHINE_beagleboard = "beagleboard"

2. Modified the PREFERRED_PROVIDER_virtual/kernel variable in
poky/meta-yocto-bsp/conf/machine/beagleboard.conf to "linux-yocto-rt".

3. "bitbake linux-yocto-rt -c menuconfig" to set the Preemption Model to
"Fully Preemptible Kernel (RT)".

4. "bitbake linux-yocto-rt"

5. "bitbake core-image-rt" which includes some realtime test programs on
top of core-image-minimal.

I did some cyclictest on beagleboard using the generated kernel and image
with "/usr/bin/cyclictest -p95 -m". The results did show huge improvement
on max latency especially under load.

Hope it helps.

Cheers
Pan Yu

[-- Attachment #2: Type: text/html, Size: 2753 bytes --]

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

end of thread, other threads:[~2012-11-29  2:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-27 10:23 Preempt-rt kernel build for beagleboard Yu Pan
2012-11-27 15:24 ` Bruce Ashfield
2012-11-28  6:07   ` Yu Pan
2012-11-28 14:27     ` Bruce Ashfield
2012-11-28 17:58     ` Bruce Ashfield
2012-11-29  2:43       ` Yu Pan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.