Problem with user space examples in RTAI 3.1

Arne Linder alinder at uni-wuppertal.de
Tue Oct 5 08:57:34 CEST 2004


Hello altogether!

I just installed a new RTAI system with kernel 2.6.7 patched with
RTAI-3.1-test4. I had no problems configuring and compiling the whole
stuff, but now some examples won't run.

All examples for the kernel mode and the "switch"-example in user space
run well. But the "latency"- and the "preempt"-examples in user space
result in a kernel "divide error". The complete error message for the 
"latency"-example is given below; the error occuring with the 
"preempt"-example looks very similar. If you need more information 
please contact me.

What have I made wrong?

Best regards

Arne Linder

== Error with latency-example
> Sep 28 09:30:29 wema45 sudo:  alinder : TTY=pts/36 ; PWD=/usr/realtime/testsuite/user/latency ; USER=root ; COMMAND=/sbin/insmod /usr/realtime/modules/rtai_hal.ko
> Sep 28 09:30:29 wema45 kernel: Adeos: Domain RTAI registered.
> Sep 28 09:30:29 wema45 kernel: RTAI[hal]: 3.1-test4 mounted over Adeos 2.6r6c4/x86.
> Sep 28 09:30:29 wema45 kernel: RTAI[hal]: compiled with gcc version 3.3.3 (SuSE Linux).
> Sep 28 09:30:29 wema45 sudo:  alinder : TTY=pts/36 ; PWD=/usr/realtime/testsuite/user/latency ; USER=root ; COMMAND=/sbin/insmod /usr/realtime/modules/rtai_lxrt.ko
> Sep 28 09:30:29 wema45 kernel: RTAI[malloc]: loaded (global heap size=131072 bytes).
> Sep 28 09:30:29 wema45 kernel: RTAI[sched_lxrt]: loaded.
> Sep 28 09:30:29 wema45 kernel: RTAI[sched_lxrt]: timer=periodic (8254-PIT).
> Sep 28 09:30:29 wema45 kernel: RTAI[sched_lxrt]: standard tick=1000 hz, CPU freq=1193180 hz.
> Sep 28 09:30:29 wema45 kernel: RTAI[sched_lxrt]: timer setup=1676 ns, resched latency=2514 ns.
> Sep 28 09:30:29 wema45 sudo:  alinder : TTY=pts/36 ; PWD=/usr/realtime/testsuite/user/latency ; USER=root ; COMMAND=/sbin/insmod /usr/realtime/modules/rtai_sem.ko
> Sep 28 09:30:29 wema45 sudo:  alinder : TTY=pts/36 ; PWD=/usr/realtime/testsuite/user/latency ; USER=root ; COMMAND=/sbin/insmod /usr/realtime/modules/rtai_mbx.ko
> Sep 28 09:30:30 wema45 sudo:  alinder : TTY=pts/36 ; PWD=/usr/realtime/testsuite/user/latency ; USER=root ; COMMAND=/sbin/insmod /usr/realtime/modules/rtai_msg.ko
> Sep 28 09:30:30 wema45 sudo:  alinder : TTY=pts/36 ; PWD=/usr/realtime/testsuite/user/latency ; USER=root ; COMMAND=./latency
> Sep 28 09:30:30 wema45 kernel: divide error: 0000 [#1]
> Sep 28 09:30:30 wema45 kernel: Modules linked in: rtai_msg rtai_mbx rtai_sem rtai_lxrt rtai_hal edd joydev sg st sd_mod sr_mod scsi_mod ide_cd cdrom nvram usbserial lp parport_pc via_agp agpgart parport evdev snd_seq_oss snd_pcm_oss snd_mixer_oss snd_seq_midi snd_seq_midi_event speedstep_lib snd_seq freq_table ipv6 snd_via82xx snd_ac97_codec snd_pcm snd_timer snd_page_alloc gameport snd_mpu401_uart snd_rawmidi snd_seq_device snd soundcore ne2k_pci 8390 usbcore nls_utf8 nls_cp437 vfat fat dm_mod
> Sep 28 09:30:30 wema45 kernel: CPU:    0
> Sep 28 09:30:30 wema45 kernel: EIP:    0060:[pg0+279583511/1068838912]    Not tainted
> Sep 28 09:30:30 wema45 kernel: EIP:    0060:[<d0f4cb17>]    Not tainted
> Sep 28 09:30:30 wema45 kernel: EFLAGS: 00210206   (2.6.7-adeos) 
> Sep 28 09:30:30 wema45 kernel: EIP is at count2nano+0x37/0x80 [rtai_lxrt]
> Sep 28 09:30:30 wema45 kernel: eax: 290f37a0   ebx: 00000000   ecx: 218711a0   edx: 0ee6b63f
> Sep 28 09:30:30 wema45 kernel: esi: 3b9aca00   edi: 001234dc   ebp: 00000000   esp: cc65df38
> Sep 28 09:30:30 wema45 kernel: ds: 007b   es: 007b   ss: 0068
> Sep 28 09:30:30 wema45 kernel: Process latency (pid: 11281, threadinfo=cc65c000 task=caefd790)
> Sep 28 09:30:30 wema45 kernel: Stack: d0f5af00 bfffefe8 00000000 00000000 d0f4f8b7 f0e25318 ffffffff 00000000 
> Sep 28 09:30:30 wema45 kernel:        00000000 70000000 0001448c 000186a0 00000000 40006fff dcbd6ada 00000000 
> Sep 28 09:30:30 wema45 kernel:        00000000 00000000 00000000 00000000 00000000 d0f511e0 00000078 d0f5af00 
> Sep 28 09:30:30 wema45 kernel: Call Trace:
> Sep 28 09:30:30 wema45 kernel:  [pg0+279595191/1068838912] rtai_lxrt_invoke+0x477/0xc00 [rtai_lxrt]
> Sep 28 09:30:30 wema45 kernel:  [<d0f4f8b7>] rtai_lxrt_invoke+0x477/0xc00 [rtai_lxrt]
> Sep 28 09:30:30 wema45 kernel:  [pg0+279601632/1068838912] rt_task_wait_period+0x0/0x240 [rtai_lxrt]
> Sep 28 09:30:30 wema45 kernel:  [<d0f511e0>] rt_task_wait_period+0x0/0x240 [rtai_lxrt]
> Sep 28 09:30:30 wema45 kernel:  [pg0+279593900/1068838912] rtai_lxrt_handler+0x1c/0x50 [rtai_lxrt]
> Sep 28 09:30:30 wema45 kernel:  [<d0f4f3ac>] rtai_lxrt_handler+0x1c/0x50 [rtai_lxrt]
> Sep 28 09:30:30 wema45 kernel: 
> Sep 28 09:30:30 wema45 kernel: Code: f7 f7 89 c1 89 d8 f7 f7 d1 e2 39 d7 89 ca 7d 06 83 c0 01 83 
> Sep 28 09:30:30 wema45 kernel:  LXRT releases MBX LATMBX
> Sep 28 09:30:30 wema45 kernel: LXRT releases PID 11281 (ID: latency).
> Sep 28 09:30:31 wema45 kernel: LXRT releases PID 11307 (ID: display).
> Sep 28 09:30:31 wema45 sudo:  alinder : TTY=pts/36 ; PWD=/usr/realtime/testsuite/user/latency ; USER=root ; COMMAND=/bin/kill -SIGINT 11281
> Sep 28 09:30:32 wema45 sudo:  alinder : TTY=pts/36 ; PWD=/usr/realtime/testsuite/user/latency ; USER=root ; COMMAND=/sbin/rmmod rtai_msg
> Sep 28 09:30:32 wema45 sudo:  alinder : TTY=pts/36 ; PWD=/usr/realtime/testsuite/user/latency ; USER=root ; COMMAND=/sbin/rmmod rtai_mbx
> Sep 28 09:30:32 wema45 sudo:  alinder : TTY=pts/36 ; PWD=/usr/realtime/testsuite/user/latency ; USER=root ; COMMAND=/sbin/rmmod rtai_sem
> Sep 28 09:30:32 wema45 sudo:  alinder : TTY=pts/36 ; PWD=/usr/realtime/testsuite/user/latency ; USER=root ; COMMAND=/sbin/rmmod rtai_lxrt
> Sep 28 09:30:32 wema45 kernel: RTAI[malloc]: unloaded.
> Sep 28 09:30:32 wema45 kernel: RTAI[sched_lxrt]: unloaded.
> Sep 28 09:30:32 wema45 sudo:  alinder : TTY=pts/36 ; PWD=/usr/realtime/testsuite/user/latency ; USER=root ; COMMAND=/sbin/rmmod rtai_hal
> Sep 28 09:30:32 wema45 kernel: Adeos: Domain RTAI unregistered.
> Sep 28 09:30:32 wema45 kernel: RTAI[hal]: unmounted.

-- 
Dipl.-Ing. Arne Linder
Electrical Machines and Drives
Faculty of Electrical, Information and Media Engineering
Wuppertal University
D-42097 Wuppertal
e-mail: alinder at uni-wuppertal.de







More information about the Rtai mailing list