> Hi all, > > Thanks for the help so far on building an smp kernel. I think I understand > the basic process of building a kernel, selecting the features I want in > the > kernel, and building a kernel with the rtai extensions. I am still a bit > lost however on the exact versions of kernel and rtai code to use, and the > repositories from which to get them.
that's a bit tough, as it's so scattered out. Basicly you can get lots of versions of rtai (I'd recommend 3.6-cv that's the closing version of 3.6). I used 3.6.2 on hardy, no real reason to upgrade to 3.6-cv, so for now it's 3.6.2 in the repos. You can also use the patch that is included in rtai, or you can get one from Adeos/IPIPE or you can get one from the Xenomai project. (just to add to the confusion ;) > The rtai kernel which installs with the hardy version of EMC is version > 2.6.24-16-rtai. I was assuming that derives from some standard Linux > kernel > like 2.6.24-16-generic. When booting the default kernel with Ubuntu hardy, > the current kernel version is 2.6.24-23-generic. My Debian Lenny install > uses kernel version 2.6.26-1-686. the 2.6.24-xx kernels are, as you found out, Ubuntu naming schemes. They are based on 2.6.24.7 iirc, and they hold a lot of patches along with the vanilla sources. (some patches come from 2.6.25, some come from stuff not included in the linux kernel, some patches are Ubuntu specific). > Then looking at the rtai patches available under > /usr/src/modules/rtai/base/arch/x86_64/patches, I see the latest patch to > be: > hal-linux-2.6.23-x86_64-1.4-03.patch. The 2.6.23 was the last kernel that had sepparate arch's for x86_64 and i386. Since 2.6.24 those have been merged into the x86 unified arch. so you want to look for the patch in /usr/src/modules/rtai/base/arch/x86/patches > How was the current kernel 2.6.24-16-rtai generated when the latest rtai > patch is 2.6.23... What is the -magma kernel Mario was referring to? see above. Basicly we used the Ubuntu kernel source from git (along with the vanilla source, and Ubuntu patches), then we created a custom flavour called rtai (that's why the kernel is called 2.6.24-16-rtai), and built the custom flavour's debs (image, headers and source). > Basically my question is, what is the latest usable kernel and rtai patch, > and where do I get them? What is the specific kernel version used to > create > the current Hardy kernel for EMC? Which repository do I use to get the > kernel code, the kernel.org repositories, the Ubuntu repositories or the > Debian repositories? Personally, I haven't tried a newer kernel than 2.6.24 with rtai yet. I know Paolo Mantegazza (the main rtai maintainer) reported having problems with 26 and 27. > Looks like my case of fools rush in where angels fear to tread. :) You're slowly seeing where the issues are. It's not that it's hard to compile a kernel.. It's just a frustrating process to figure it out in the beginning, then do it 4-5 times till it eventually is right. (not to mention trying to build one that runs on all machines..). Regards, Alex ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
