#emc-devel | Logs for 2006-01-05

Back
[01:52:29] <ajoni> ajoni is now known as alex_joni_
[02:03:23] <ajoni> ajoni is now known as alex_joni_
[02:07:08] <ajoni> ajoni is now known as alex_joni_
[06:50:56] <SWPadnos> SWPadnos is now known as SWP_Away
[13:39:32] <rayh> working on a test to see if a HAL is up.
[13:39:52] <rayh> scripts/realtime status returns the following
[13:40:20] <rayh> hal_lib is loaded
[13:40:21] <rayh> rtapi is loaded
[13:40:21] <rayh> rtai_math is loaded
[13:40:22] <rayh> rtai_sem is loaded
[13:40:24] <rayh> rtai_shm is loaded
[13:40:26] <rayh> rtai_fifos is loaded
[13:40:28] <rayh> rtai_up is loaded
[13:40:30] <rayh> rtai_hal is loaded
[13:40:32] <rayh> adeos is loaded
[13:41:03] <rayh> Question, are all of these required for a working HAL?
[13:46:59] <cradek> remember rtai is not our only supported realtime system
[13:47:18] <cradek> so the answer to that specific question is definitely no
[13:47:46] <cradek> I think you could check for just hal_lib because it won't load if the right support is not available
[13:48:37] <cradek> % scripts/realtime status
[13:48:37] <cradek> hal_lib is loaded
[13:48:37] <cradek> rtapi is loaded
[13:48:37] <cradek> rtl_fifo is loaded
[13:48:39] <cradek> rtl_posixio is loaded
[13:48:42] <cradek> rtl_sched is loaded
[13:48:44] <cradek> rtl_time is loaded
[13:48:47] <cradek> mbuff is loaded
[13:48:49] <cradek> rtl is loaded
[13:48:52] <cradek> fwiw, this is what my system reports
[13:53:19] <rayh> Okay. I tried the hal_lib and got some confusing answers when I tried halcmd.
[13:53:40] <rayh> Does rtapi sit atop hal_lib
[13:53:57] <cradek> no, rtapi is between the system realtime and hal
[13:54:14] <rayh> Okay.
[13:54:49] <rayh> If I simply search the reply from realtime status for "not"
[13:54:54] <rayh> that should do the job.
[13:55:16] <cradek> realtime status should return an exit code
[13:55:27] <cradek> the smarts for whether realtime is loaded and working should be in that script
[13:55:48] <cradek> then you can just test the exit code
[13:57:09] <cradek> bbl
[13:57:28] <rayh> From a terminal, do I see exit code
[14:12:51] <cradek> echo $?
[14:12:58] <cradek> after running the command
[14:13:09] <cradek> the script does not set it correctly
[14:18:21] <rayh> darn. for now I'll do the search.
[14:19:02] <rayh> Thanks for the help.
[14:19:11] <cradek> I fixed realtime status for you
[14:20:00] <cradek> but I didn't test it :-)
[14:20:55] <rayh> Hey thanks.
[14:21:19] <cradek> np
[15:05:48] <ajoni> ajoni is now known as alex_joni_
[16:37:54] <SWP_Away> SWP_Away is now known as SWPadnos