Stefan <
videv...@gmail.com> [12-10-05 16:11]:
> Hello! :)
>
> I am quite new to the whole embedded Linux world and am struggling a bit
> with the concept of patching the kernel on my BeagleBone to enable Xenomai
> functionality.
>
> Am I right in assuming that these are the steps to achieve this:
>
> 1) Check out relevant kernel source files
> 2) Check out the relevant OMAP patches (where are those and how do you
> apply them, or are there source files for the patched kernel that properly
> supports the processor on the beaglebone?)
> 3) Check out the Xenomai sources, and configure the kernel through the
> Xenomai make files
> 4) Compile the kernel?
>
> Is there anything specific to look out for except for some of the
> particular CFLAGS for the OMAP3?
>
> What I am really uncertain of is what do you do once all of this is done?
> Do you overwrite whatever is on the beaglebone or?
>
> What would be great is some sort of a more or less step by step process of
> how to do this.
>
> Thanks a lot! Thought I'd ask before I delve into breaking the Angstrom
> distribution on my bone.
>
> Stefan
>
> P.S. I've read the documentation on the Xenomai page and the one on the
> elinux wiki regarding kernel patching and compilation but am still quite
> confused. I guess this is an easy general question for any linux expert,
> it's just that I have no experience building kernels etc.
>
> --
>
>
Hi Stefan,
dont know anything about the way Xenomai may be integrated into the
kernel...but the general way to a homebrewed kernel is as follows:
First, before doing anything else is to backup the SD card which have
come with your beaglebone. If anything goes wrong, you can save it
back to the SD card and nothing bad has happened. Use dd for backup
the SD card.
(do it right now.... :) )
Look for Robert Nelsons kernel sources, retrieve the sources via git
and built a kernel based on the default config, which come with
the sources.
Follow the instructions here:
http://www.eewiki.net/display/linuxonarm/BeagleBone
(Look for "Linux Kernel". Read the README, which will be downloaded).
Install the kernel on the SD-card as described. Connect your
beaglebone via USBserial with you LINUX-PC and watch the kernel
booting.
If necessary, modify the kernel config and use tools/rebuild.sh
to rebuild the kernel. Try it again.
If your kernel works fine, make a backup of the kernel source tree
(complete) and ... <fill in the Xenomai stuff here>.
I think you will also have to modify the userland for that.
In my opinion, Gentoo is easier to handle and better (more recent)
documented as the Angstrom Distribution, while the Angstrom
Distribution comes with all bells and whistles regarding the kernel
features (SGX for example). Also in my opnion Gentoo has a more
complete userland.
Gentoo for Beaglebone is described here:
http://dev.gentoo.org/~armin76/arm/beaglebone/install.xml
There also other distributions for the Beagles available.
But these are only my two cent and your mailage may vary...
HTH!
Best regards,
mcc