Skip to contentSkip to conversation

Problem with Xenomai Install

Xenomai-help Adrian Boeing 2 participants 3 messages Dec 4, 2009 – Dec 9, 2009 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hi,

I have installed Xenomai on a PC, but when I try to run any of the examples (rtprint, trivial-periodic, etc...) the system freezes.

Does anyone know what may have caused this?

I am using Ubuntu, 2.6.24.6 kernel, and /proc/xenomai/version is 2.4.10

I created the xenomai install by:
1. Getting linux source (apt-get source linux-image-$(uname -r)
2. Getting Xenomai & Adeos
3. Added a new CAN driver to Xenomai
4. Prepareing xenomai (scripts/prepare-kernel.sh --linux=~/linux-2.6.24/ --adeos=~/Desktop/adeos-ipipe-2.6.24-x86-2.0.7-patch)
5. Make kernel (make-kpkg --ignited kernel_image modules)
6. Add kernel to grub (dpkg -i)
7. Installed Xenomai libraries (make install)
8. Set up the C libs (cp /etc/ld.so.conf.d/libc.conf /etc/ld.so.conf.d/xenomai.conf)

I also noticed I don't have a /usr/src/xenomai, but have the xenomai source in my home directory from when I first downloaded it.

Thanks,
-Adrian

#1 lore raw
Quoted 6 lines · Adrian Boeing

Hi,

I have installed Xenomai on a PC, but when I try to run any of the examples (rtprint, trivial-periodic, etc...) the system freezes.

Does anyone know what may have caused this?

Probably a oops. You should try and run the examples from text mode to see the oops text. Or redirect the kernel console to a serial port.

Quoted 2 lines

I am using Ubuntu, 2.6.24.6 kernel, and /proc/xenomai/version is 2.4.10

Kernel too old. Things have been fixed on x86 since then.

Signature · 1 line
                                          Gilles

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw
Quoted 17 lines · Adrian Boeing

I have created a new install with Ubuntu 9.04, kernel 2.6.28-10

When I run trivial-periodic the computer resets.

This is how I created the kernel:
apt-get build-dep linux-image-$(uname -r)
apt-get source linux-image-$(uname -r)
download xenomai&adeos
scripts/prepare-kernel.sh
cp /boot/config-$(uname -r) .
make menuconfig {I had to drop the #CPU's to 2}
make
sudo make modules_install install
make bzImage
sudo make-kpkg --initrd kernel_image modules
dpkg -i PACKAGENAME

Quoted 9 lines

cd xenomai
./configure
make
sudo make install
cd /etc/ld.so.conf.d/
cp libc.conf xenomai.conf
cd examples native
make
sudo ./trivial peridoic <--- crashes computer (causes a reset)

Please enable all xenomai and ipipe debugs, disable any kernel option which could cause debugs in case of panic (such as panic=x). And try and send us the kernel logs when the bug happens by redirecting the kernel console on a serial port.

Signature · 1 line
                                          Gilles