Calibration tool error

Umar Qureshey uq at ecs.fullerton.edu
Sun Oct 31 05:24:20 CET 2004


Hi,

Ok, did a search on the archives and saw someone else with the same
problem (~March 2004).  Borrowing a hint, I ran the calibration test with
rtai-load --verbose.  Here's the contents of /var/log/kern.log:

###################################################
Adeos: Domain RTAI registered.
RTAI[hal]: 3.1 mounted over Adeos 2.6r7/x86.
RTAI[hal]: compiled with gcc version 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk).
insmod: page allocation failure. order:5, mode:0xd0
[<c0133924>] __alloc_pages+0x344/0x350
[<c013394f>] __get_free_pages+0x1f/0x40
[<c013765e>] kmem_getpages+0x1e/0xd0
[<c0138335>] cache_grow+0xa5/0x320
[<c01387d1>] cache_alloc_refill+0x221/0x250
[<c0138e0c>] __kmalloc+0x7c/0x90
[<c2039858>] alloc_extent+0x18/0x40 [rtai_up]
[<c2039a2c>] rtheap_init+0x13c/0x180 [rtai_up]
[<c2039fcb>] __rtai_heap_init+0x1b/0x60 [rtai_up]
[<c2036799>] __rtai_up_init+0x9/0x2c0 [rtai_up]
[<c012cd6e>] sys_init_module+0x10e/0x2f0
[<c01042f4>] syscall_call+0x7/0x14

RTAI[malloc]: failed to initialize the global heap (size=131072 bytes).
calibrate_rt: Unknown symbol nano2count
calibrate_rt: Unknown symbol rt_get_time
calibrate_rt: Unknown symbol rt_task_make_periodic
calibrate_rt: Unknown symbol start_rt_timer
calibrate_rt: Unknown symbol rt_task_delete
calibrate_rt: Unknown symbol rt_task_suspend
calibrate_rt: Unknown symbol rtf_put
calibrate_rt: Unknown symbol stop_rt_timer
calibrate_rt: Unknown symbol rtf_destroy
calibrate_rt: Unknown symbol rt_set_oneshot_mode
calibrate_rt: Unknown symbol rtf_create
calibrate_rt: Unknown symbol count2nano
calibrate_rt: Unknown symbol rt_task_init_cpuid
calibrate_rt: Unknown symbol rt_task_wait_period
Adeos: Domain RTAI unregistered.
RTAI[hal]: unmounted.
################################################


And here's the corresponding stderr + stdout:

################################################
Running calibrate from /usr/realtime/calibration/.runinfo
*
*
* Type ^C to stop this application.
*
*
+ /sbin/insmod /usr/realtime/modules/rtai_hal.ko
+ /sbin/insmod /usr/realtime/modules/rtai_up.ko
insmod: error inserting '/usr/realtime/modules/rtai_up.ko': -1 Cannot
allocate memory
ERROR: cannot load /usr/realtime/modules/rtai_up.ko
+ spawning command (./calibrate -i)
Error opening /dev/rtf/0
+ /sbin/rmmod rtai_hal
################################################

Looks like running out of memory possibly.  Should I decrease heap size in
RTAI config?  To what size would be reasonable?  I have 24MB RAM.  Any
help appreciated.

Regards,

Umar

On Sat, 30 Oct 2004, Umar Qureshey wrote:

> Hi,
>
> When I run the calibration tool
>
> /usr/realtime486/calibration# ./run
>
> I get this:
>
> Adeos: Domain RTAI registered.
> RTAI[hal]: 3.1 mounted over Adeos 2.6r7/x86.
> RTAI[hal]: compiled with gcc version 3.3.4 (Debian 1:3.3.4-13).
> RTAI[malloc]: loaded (global heap size=131072 bytes).
> RTAI[sched_up]: loaded.
> RTAI[sched_up]: fpu=yes, timer=periodic.
> RTAI[sched_up]: standard tick=1000 hz, CPU freq=1193180 hz.
> RTAI[sched_up]: timer setup=1676 ns, resched latency=2514 ns.
> Error opening /dev/rtf/0
> RTAI[malloc]: unloaded.
> RTAI[sched_up]: unloaded.
> Adeos: Domain RTAI unregistered.
> RTAI[hal]: unmounted.
>
> I am using kernel 2.6.7 on 486DX machine.  I have devfs support compiled
> in.
>
> /#ls -l /dev/rt*
>
> crw-rw-rw-  1 root root  10, 254 Oct 30 09:41 /dev/rtai_shm
> crw-rw----  1 root root  10, 135 Mar 14  2002 /dev/rtc
> crw-r--r--  1 root root 150,   0 Oct 30 10:48 /dev/rtf0
> crw-r--r--  1 root root 150,   1 Oct 30 10:48 /dev/rtf1
> crw-r--r--  1 root root 150,   2 Oct 30 10:48 /dev/rtf2
> crw-r--r--  1 root root 150,   3 Oct 30 10:48 /dev/rtf3
> crw-r--r--  1 root root 150,   4 Oct 30 10:48 /dev/rtf4
> crw-r--r--  1 root root 150,   5 Oct 30 10:48 /dev/rtf5
> crw-r--r--  1 root root 150,   6 Oct 30 10:48 /dev/rtf6
> crw-r--r--  1 root root 150,   7 Oct 30 10:48 /dev/rtf7
>
>
>
> Anyone seen this before?
>
> Regards,
>
> Umar
>
>
>





More information about the Rtai mailing list