want 9 axes; STEPGEN outputs only 8 channels?

More
11 Jul 2013 04:06 #36534 by niftyEnt
Also...

I need to install the custom UVWkins.c file for the RIP version.

when I enter:

tom@shop:~/linuxcnc-dev/configs/UVW$ sudo comp --install UVWkins.c
[sudo] password for tom:
make KBUILD_EXTRA_SYMBOLS=/usr/realtime-2.6.32-122-rtai/modules/linuxcnc/Module.symvers -C /usr/src/linux-headers-2.6.32-122-rtai SUBDIRS=`pwd` CC=gcc V=0 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.32-122-rtai'
CC [M] /tmp/tmpOmD2iU/UVWkins.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/tmpOmD2iU/UVWkins.mod.o
LD [M] /tmp/tmpOmD2iU/UVWkins.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-122-rtai'
cp UVWkins.ko /usr/realtime-2.6.32-122-rtai/modules/linuxcnc/
tom@shop:~/linuxcnc-dev/configs/UVW$



comp is obviously installing at ~/linuxcnc/ instead of ~/linuxcnc-dev/ and running:

tom@shop:~/linuxcnc-dev$ linuxcnc
LINUXCNC - 2.6.0~pre
Machine configuration directory is '/home/tom/linuxcnc/configs/UVWdev'
Machine configuration file is 'UVW.ini'
Starting LinuxCNC...
io started
halcmd loadusr io started
UVW.hal:4: Can't find module 'UVWkins' in /home/tom/linuxcnc-dev/rtlib
Shutting down and cleaning up LinuxCNC...
...

Is there some way to force comp to install in the correct directory?

Please Log in or Create an account to join the conversation.

More
11 Jul 2013 04:11 - 11 Jul 2013 04:12 #36535 by BigJohnT

thanx Basher,

That did the trick.

I can launch linuxCNC from Terminal with:

tom@shop:~/linuxcnc-dev$ linuxcnc

but the configurations offered are from the stock version at:

tom@shop:~/linuxcnc$

Any idea how I point the config screen to the config folder at tom@shop:~/linuxcnc-dev?


Open a terminal and change to your dev directory then do
. ./scripts/rip-environment

from the same terminal
linuxcnc

The rip-environment script sets up that session to point to the RIP install.

comp --install will put the files into the installed directory. For a RIP you place the file in /src/hal/components and build.

JT
Last edit: 11 Jul 2013 04:12 by BigJohnT.

Please Log in or Create an account to join the conversation.

More
11 Jul 2013 04:49 #36536 by niftyEnt
Okay JT,

I copied UVWkins.c to tom@shop:~/linuxcnc-dev/src/hal/components

I started a fresh terminal and entered:

tom@shop:~/linuxcnc-dev$ . ./scripts/rip-environment

then:

tom@shop:~/linuxcnc-dev/src/hal/components$ sudo comp --install UVWkins.c
[sudo] password for tom:
make KBUILD_EXTRA_SYMBOLS=/usr/realtime-2.6.32-122-rtai/modules/linuxcnc/Module.symvers -C /usr/src/linux-headers-2.6.32-122-rtai SUBDIRS=`pwd` CC=gcc V=0 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.32-122-rtai'
CC [M] /tmp/tmpEVJmYq/UVWkins.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/tmpEVJmYq/UVWkins.mod.o
LD [M] /tmp/tmpEVJmYq/UVWkins.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-122-rtai'
cp UVWkins.ko /usr/realtime-2.6.32-122-rtai/modules/linuxcnc/
tom@shop:~/linuxcnc-dev/src/hal/components$ c

then:

tom@shop:~/linuxcnc-dev$ linuxcnc
LINUXCNC - 2.6.0~pre
Machine configuration directory is '/home/tom/linuxcnc/configs/UVWdev'
Machine configuration file is 'UVW.ini'
Starting LinuxCNC...
io started
halcmd loadusr io started
UVW.hal:4: Can't find module 'UVWkins' in /home/tom/linuxcnc-dev/rtlib
Shutting down and cleaning up LinuxCNC...
Cleanup done
LinuxCNC terminated with an error. You can find more information in the log:
/home/tom/linuxcnc_debug.txt
and
/home/tom/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
tom@shop:~/linuxcnc-dev$


I'm still getting the stock config splash screen, and UVWkins does not exist in:

/home/tom/linuxcnc-dev/rtlib

The . ./scripts/rip-environment script does not seem to be resetting the $PATH.

More suggestions?

Please Log in or Create an account to join the conversation.

More
11 Jul 2013 05:33 #36537 by niftyEnt
except that it is:

tom@shop:~/linuxcnc-dev/configs/UVW$ echo $PATH
/home/tom/linuxcnc-dev/bin:/home/tom/linuxcnc-dev/scripts:/home/tom/linuxcnc-dev/tcl:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
tom@shop:~/linuxcnc-dev/configs/UVW$

Please Log in or Create an account to join the conversation.

More
11 Jul 2013 05:42 #36538 by niftyEnt
SO!

I manually copied:

~ /usr/realtime-2.6.32-122-rtai/modules/linuxcnc/UVWkins.ko

to:

~/linuxcnc-dev/rtlib

then launched from tom@shop:~/linuxcnc-dev/linuxcnc

and AXIS has loaded. I'm still getting the stock config splash screen, but I'm going to play with what I've got and see if the kins are correct.

not a very elegant work-around, but...

If you guys have any other ideas, please post.

many thanks to JT and cncbasher

niftyEnt

Please Log in or Create an account to join the conversation.

More
11 Jul 2013 19:03 - 11 Jul 2013 19:07 #36551 by BigJohnT
Looks like you skipped the build step after copying the component to the tom@shop:~/linuxcnc-dev/src/hal/components.

After copying you need to go to the /src directory and rebuild and setuid then run the RIP script from the /linuxcnc-dev directory.

comp --install installs to the installed directory not the rip directory, you only use that if your running the installed version.

Once you get it to work manually then create a script to launch it from the desktop.

JT
Last edit: 11 Jul 2013 19:07 by BigJohnT.

Please Log in or Create an account to join the conversation.

Time to create page: 0.159 seconds
Powered by Kunena Forum