Re: [Emc-users] Problems Compiling/Running - Update

2008-04-08 Thread Andrew Ayre
Jeff Epler wrote: > On Mon, Oct 29, 2007 at 07:18:08AM -0500, Jeff Epler wrote: >> EMC 2.1.x is unlikely to work on Ubuntu 7.10. However, the development >> version has been improved in various ways for compatability with newer >> versions of Ubuntu. >> >> On Ubuntu 7.10 the default amount of "loc

Re: [Emc-users] Problems Compiling/Running - Update

2008-04-08 Thread Jeff Epler
On Mon, Oct 29, 2007 at 07:18:08AM -0500, Jeff Epler wrote: > EMC 2.1.x is unlikely to work on Ubuntu 7.10. However, the development > version has been improved in various ways for compatability with newer > versions of Ubuntu. > > On Ubuntu 7.10 the default amount of "locked memory" for regular

Re: [Emc-users] Problems Compiling/Running - Update

2007-11-03 Thread Andrew Ayre
kernel latency test. If I am not then the RTAI test suite deletes /dev/rtf3 and then complains that it is missing. Andy Original Message Subject: Re: [Emc-users] Problems Compiling/Running - Update Date: Fri, 02 Nov 2007 12:45:13 -0700 From: Andrew Ayre <[EMAIL PROTECTED]&

Re: [Emc-users] Problems Compiling/Running - Update

2007-11-02 Thread Andrew Ayre
OTECTED]> > To: "Enhanced Machine Controller (EMC)" > Sent: Friday, November 02, 2007 9:11 PM > Subject: Re: [Emc-users] Problems Compiling/Running - Update > > >> Here is what I get: >> >> >> [EMAIL PROTECTED]:~/Deskt

Re: [Emc-users] Problems Compiling/Running - Update

2007-11-02 Thread Alex Joni
for run-in-place you need "scripts/realtime start" Regards, Alex - Original Message - From: "Andrew Ayre" <[EMAIL PROTECTED]> To: "Enhanced Machine Controller (EMC)" Sent: Friday, November 02, 2007 9:11 PM Subject: Re: [Emc-users] Problems Compiling

Re: [Emc-users] Problems Compiling/Running - Update

2007-11-02 Thread Andrew Ayre
Here is what I get: [EMAIL PROTECTED]:~/Desktop/emc2/emc2cvshead$ halcmd help RTAPI: ERROR: could not open shared memory (errno=19) HAL: ERROR: rtapi init failed halcmd: hal_init() failed: -9 NOTE: 'rtapi' kernel module must be loaded I'm

Re: [Emc-users] Problems Compiling/Running - Update

2007-11-02 Thread John Kasunich
Andrew Ayre wrote: > Thanks for the suggestion. I gave it a try: > > ./configure > make > sudo make install > > I then ran the script to create the devices. Unfortunately "halcmd help" > still segfaults for a non-root user. Any ideas? > Try the run-in-place method: (from the top of your c

Re: [Emc-users] Problems Compiling/Running - Update

2007-11-02 Thread Andrew Ayre
Thanks for the suggestion. I gave it a try: ./configure make sudo make install I then ran the script to create the devices. Unfortunately "halcmd help" still segfaults for a non-root user. Any ideas? Andy John Kasunich wrote: > Andrew Ayre wrote: >> Alex, >> >> Sorry, yes, I ran all the co

Re: [Emc-users] Problems Compiling/Running - Update

2007-11-02 Thread John Kasunich
Andrew Ayre wrote: > Alex, > > Sorry, yes, I ran all the commands as root. Constantly typing in sudo > annoys me so I enable the root account. Old skool perhaps... > I think that running "make" as root results in all the binaries and other generated files being owned by root. The intended meth

Re: [Emc-users] Problems Compiling/Running - Update

2007-11-01 Thread Andrew Ayre
Alex, Sorry, yes, I ran all the commands as root. Constantly typing in sudo annoys me so I enable the root account. Old skool perhaps... Andy Alex Joni wrote: > On Thu, 2007-11-01 at 12:18 -0700, Andrew Ayre wrote: >> Another thought - does permissions need to be set on a file somewhere to >> al

Re: [Emc-users] Problems Compiling/Running - Update

2007-11-01 Thread Andrew Ayre
Jeff, Does the following script do the same thing? -- [EMAIL PROTECTED]:/home/andy# cat /usr/realtime/bin/script.sh #!/bin/bash mknod -m 666 /dev/rtai_shm c 10 254 for n in `seq 0 9` do f=/dev/rtf$n mknod -m 666 $f c 150 $n done [EMAIL PROTECTED]:/

Re: [Emc-users] Problems Compiling/Running - Update

2007-11-01 Thread Jeff Epler
The following emc2.rules file, which is installed when you install a .deb of emc2 (but not by 'make install), makes the rtai_shm device accessible to all users: ~/emc2-src/debian/extras-Ubuntu-6.06/etc/udev/rules.d$ cat emc2.rules KERNEL=="RTAI_SHM" SYMLINK=="rtai_shm" MODE="0666" Jeff -

Re: [Emc-users] Problems Compiling/Running - Update

2007-11-01 Thread Alex Joni
On Thu, 2007-11-01 at 12:18 -0700, Andrew Ayre wrote: > Another thought - does permissions need to be set on a file somewhere to > allow the shared memory to work for all users? I did: > > ./configure > make > make install > > I didn't run make setuid. Is that still needed for a make install? >

Re: [Emc-users] Problems Compiling/Running - Update

2007-11-01 Thread Andrew Ayre
Another thought - does permissions need to be set on a file somewhere to allow the shared memory to work for all users? I did: ./configure make make install I didn't run make setuid. Is that still needed for a make install? Andy Original Message A little bit more info: When

Re: [Emc-users] Problems Compiling/Running - Update

2007-10-29 Thread Andrew Ayre
A little bit more info: When this function is called: retval = rtapi_shmem_getptr(mem_id, &mem); mem_id = 1. Upon return, mem = 0x0 and retval = 0. So it seems the shared memory system doesn't work properly as mem should never be set to zero. This is pretty much the limit of my debugging abilit

Re: [Emc-users] Problems Compiling/Running - Update

2007-10-29 Thread Andrew Ayre
Thanks. It seg faults at line 2350 in hal_lib.c: static int init_hal_data(void) { /* has the block already been initialized? */ if (hal_data->version != 0) { It appears that hal_data is NULL at this point. Here is the call stack: hal/utils/halcmd_main.c:195 (main) hal/utils/halcmd.c:109 (hal

Re: [Emc-users] Problems Compiling/Running - Update

2007-10-29 Thread Jeff Epler
A system call trace (produced by using "strace") or a backtrace at the time of the segmentation fault (produced using "gdb") would be helpful in pinpointing the location of the problem. You can find information how to use these utilities on many pages on the internet. Jeff --

Re: [Emc-users] Problems Compiling/Running - Update

2007-10-29 Thread Andrew Ayre
I have narrowed the problem down to this: [EMAIL PROTECTED]:~$ /usr/local/bin/halcmd help Segmentation fault [EMAIL PROTECTED]:~$ su Password: [EMAIL PROTECTED]:/home/andy# /usr/local/bin/halcmd help Use 'help ' for more details about each command Available commands: loadrt Load re

Re: [Emc-users] Problems Compiling/Running - Update

2007-10-29 Thread Andrew Ayre
Jeff, Thanks - I will give that a try. I think a shared memory error was in the mix. I also need to manually create the application menu entries. /usr/local/bin/emc is obvious. Are there any other executables that users should be able to run from the menu? Once I have this set up I will publish

Re: [Emc-users] Problems Compiling/Running - Update

2007-10-29 Thread Jeff Epler
EMC 2.1.x is unlikely to work on Ubuntu 7.10. However, the development version has been improved in various ways for compatability with newer versions of Ubuntu. On Ubuntu 7.10 the default amount of "locked memory" for regular users is too low. You can fix that problem by adding the line har

[Emc-users] Problems Compiling/Running - Update

2007-10-28 Thread Andrew Ayre
Update - I can get EMC2 CVS HEAD to start up with no errors if I start it as root. Otherwise it fails at the insmod stage. I guess regular users don't have permission to do this. So how do I solve this problem? thanks for the help! Andy Original Message Subject: Problems Compil

[Emc-users] Problems Compiling/Running

2007-10-28 Thread Andrew Ayre
Hi! For various reasons I have chosen to build my own kernel and compile EMC2. I'm nearly there but stumbling at the last stage. I have patched a vanilla 2.6.22 kernel with RTAI. My PC boot and runs normally and I can execute all the RTAI scripts in the testsuite. I am using Ubuntu 7.10. I compil