Changing kernel version/bitbake

1,372 views
Skip to first unread message

slogan621

unread,
Mar 20, 2011, 3:39:24 AM3/20/11
to Beagle Board
What is the preferred method for specifying a specific kernel version
when using bitbake to build OE (in my case, angstrom targeting
beagleboard)?

I noticed that bitbake was calling a python function at configure time
called get_kernelversion(), to determine the kernel version by trying
to locate utsrelease.h and then pattern matching for the kernel major
and minor number. I'm on a stock host running 2.6.32, and so my
utsrelease.h file is found relative to that kernel version, and
presume that because of this, OE decides to build my target to kernel
version 2.6.32 as well. I'd like to override that behavior, and
instead build 2.6.29 (for which I can get a RT linux patch, make
menuconfig and enable RT preemption, and try it out on my
beagleboard).

There is a wiki page @ http://www.openembedded.org/index.php/Kernel_Building
which has a section entitled "Select Kernel Version", but in has no
content other than "FIXME". I'd be happy to add what I learn there.

Thanks in advance.



Maksym Parkachov

unread,
Mar 20, 2011, 10:31:10 AM3/20/11
to beagl...@googlegroups.com
Hi,

I've just yesterday changed kernel on the angstrom - so, here what I
did in the stable branch:

conf/machine/beagleboard.conf

-PREFERRED_PROVIDER_virtual/kernel = "linux-omap-psp"
+PREFERRED_PROVIDER_virtual/kernel = "linux-omap"

conf/distro/angstrom-2008.1.conf

+PREFERRED_PROVIDER_virtual/kernel_beagleboard = "linux-omap"
+PREFERRED_VERSION_linux-omap_beagleboard = "2.6.37"

After this I've got linux-omap_2.6.37.bb built as virtual/kernel. I'm
not sure whether you need to change beagleboard.conf or not, but in
any case it worked.

Hope this helps,
Maksym.

> --
> You received this message because you are subscribed to the Google Groups "Beagle Board" group.
> To post to this group, send email to beagl...@googlegroups.com.
> To unsubscribe from this group, send email to beagleboard...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/beagleboard?hl=en.
>
>

slogan621

unread,
Mar 20, 2011, 3:28:47 PM3/20/11
to Beagle Board
That process, followed by:

bitbake virtual/kernel -c clean
bitbake virtual/kernel -c configure
bitbake virutal/kernel -c compile

did in fact result in a 2.6.29 uImage file being generated.

I'll copy that uImage over to my SD card and reboot later today (I
have some errands to run so can't get to it just yet), but so far,
this looks good, and thanks for the quick response to my question.

Follow-on question: was there a specific reason for switching from
linux-omap-psp to linux-omap?

Thanks,

On Mar 20, 7:31 am, Maksym Parkachov <lazy.gop...@gmail.com> wrote:
> Hi,
>
> I've just yesterday changed kernel on the angstrom - so, here what I
> did in the stable branch:
>
> conf/machine/beagleboard.conf
>
> -PREFERRED_PROVIDER_virtual/kernel = "linux-omap-psp"
> +PREFERRED_PROVIDER_virtual/kernel = "linux-omap"
>
> conf/distro/angstrom-2008.1.conf
>
> +PREFERRED_PROVIDER_virtual/kernel_beagleboard = "linux-omap"
> +PREFERRED_VERSION_linux-omap_beagleboard = "2.6.37"
>
> After this I've got linux-omap_2.6.37.bb built as virtual/kernel. I'm
> not sure whether you need to change  beagleboard.conf or not,  but in
> any case it worked.
>
> Hope this helps,
> Maksym.
>
> On Sun, Mar 20, 2011 at 8:39 AM, slogan621 <slogan...@gmail.com> wrote:
> > What is the preferred method for specifying a specific kernel version
> > when using bitbake to build OE (in my case, angstrom targeting
> > beagleboard)?
>
> > I noticed that bitbake was calling a python function at configure time
> > called get_kernelversion(), to determine the kernel version by trying
> > to locate utsrelease.h and then pattern matching for the kernel major
> > and minor number. I'm on a stock host running 2.6.32, and so my
> > utsrelease.h file is found relative to that kernel version, and
> > presume that because of this, OE decides to build my target to kernel
> > version 2.6.32 as well. I'd like to override that behavior, and
> > instead build 2.6.29 (for which I can get a RT linux patch, make
> > menuconfig and enable RT preemption, and try it out on my
> > beagleboard).
>
> > There is a wiki page @http://www.openembedded.org/index.php/Kernel_Building
Reply all
Reply to author
Forward
0 new messages