I still don’t have the Xenomai kernel but here is the progress I made so far. I read the shell scripts provided by Robert, patched a certain release of the kernel and listened to Kroah-Hartman’s video on kernel patching.
The issues are these. The Xenomai kernel appears to be extremely release-sensitive. I found three sets of patches:
I was able to apply the 3.2.21 patch to kernel release 3.2.21 which I had to get with wget. This directory was NOT a git repo. That is important because Robert’s set of patches only works with git repos. I found that the last file to get patched, vmalloc.c was more likely to cause problems when kernel version was not an exact match. I saw a new Kernel configuration option for enabling Xenomai.
I patched v3.2.21 using Xenomai supplied files. Opened up the tarball. Did git init, git add . , git commit and git checkout -b Xenomai. Compiled, too. There is now a zImage file. I copied the zImage file to the boot directory in my ext4 partition to replace the old file. The BeagleBoard doesn’t boot. There was no zImage, only a vmlinuz file in the small, fat partition. I didn’t see any links either so didn’t change anything there. I was obviously using a cross compiler for the correct architecture, etc… Was there anything wrong with my config file or with my file copy procedure? If anybody made this work with BeagleBoard patches please explain. Is it possible to determine whether the installation is indeed realtime AFTER installing the kernel and booting BeagleBoard with it? Is there anything that I can check to verify that I have the kernel I want?
Question 2. I looked at the first two patches. The first one made no sense. The second seems to have been incorporated in v3.6 of the mainstream kernel. Would you recommend examining each patch one by one to see which ones are still needed in the current kernel version? If yes, what is a good procedure for it? I recently learned the git format-patch branch1…branch2 command but it is tedious to copy the working directory (staging area?) for each new comparison. need some guidance here.