This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
robotsoftware:mobotware:rtai [2012/03/01 15:36] claes [RTAI and MobotWare] |
robotsoftware:mobotware:rtai [2012/03/01 17:10] claes [Compiling RTAI] |
||
---|---|---|---|
Line 21: | Line 21: | ||
- Configure and compile your new Linux kernel. | - Configure and compile your new Linux kernel. | ||
- Reboot into the new real-time kernel. | - Reboot into the new real-time kernel. | ||
- | | + | /* |
- | - Configure and install COMEDI. | + | - Configure and install RTAI without COMEDI support. |
- | - Reconfigure and install RTAI with COMEDI support. | + | - Configure and install COMEDI. |
+ | - Reconfigure and install RTAI with COMEDI support. | ||
+ | */ | ||
=== How To === | === How To === | ||
Line 56: | Line 58: | ||
The latest stable RTAI packages can also be downloaded via Synaptic Package Manager, apt or aptitude. | The latest stable RTAI packages can also be downloaded via Synaptic Package Manager, apt or aptitude. | ||
- | <note tip>On the Frobobox | + | <note tip>You need to install all the rtai packages from the repositories, |
==== Patch the Kernel ==== | ==== Patch the Kernel ==== | ||
Line 68: | Line 70: | ||
==== Compiling the kernel ==== | ==== Compiling the kernel ==== | ||
- | There are many guides on the internet on how to compile a kernel. Here are link to a few to get you started, otherwise | + | There are many guides on the internet on how to compile a kernel. Here are link to a few to get you started, otherwise |
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
Line 76: | Line 78: | ||
These links may not be what you are looking for. It you have better links let me know and I will add/change the links. | These links may not be what you are looking for. It you have better links let me know and I will add/change the links. | ||
- | When you understand how to compile a kernel follow the instructions in the guide. The command we used to compile the kernel was | + | When you understand how to compile a kernel follow the instructions in the guide. |
+ | - Unpack kernel in /usr/src/ | ||
+ | - copy the configuration file from the current kernel | ||
+ | - patch the kernel | ||
+ | - Make the changes from the RTAI installation guide | ||
+ | - compile | ||
+ | The command we used to compile the kernel was | ||
make-kpkg --initrd --append-to-version=rtai | make-kpkg --initrd --append-to-version=rtai | ||
If you are using an older RTAI patch you may get the following error: | If you are using an older RTAI patch you may get the following error: | ||
Line 90: | Line 98: | ||
<file bash ad_cpath.sh> | <file bash ad_cpath.sh> | ||
#!/bin/bash | #!/bin/bash | ||
- | export C_INCLUDE_PATH=/ | + | export C_INCLUDE_PATH=/ |
export CPLUS_INCLUDE_PATH=/ | export CPLUS_INCLUDE_PATH=/ | ||
</ | </ | ||
Line 101: | Line 109: | ||
Make sure you run the script. Or else the problem is not solved. | Make sure you run the script. Or else the problem is not solved. | ||
- | === On the Frobobox === | ||
- | Because of this problem [[http:// | ||