These are chat archives for machinekit/machinekit

21st
Sep 2016
zhivko
@zhivko
Sep 21 2016 21:12

Hello everybody!
I took official machinekit image and started machinekit and I got following:

machinekit@beaglebone:~$ machinekit /home/machinekit/machinekit/configs/ARM.BeagleBone.CRAMPS/CRAMPS.ini
MACHINEKIT - 0.1
Machine configuration directory is '/home/machinekit/machinekit/configs/ARM.BeagleBone.CRAMPS'
Machine configuration file is 'CRAMPS.ini'
Starting Machinekit...
(time=1474491781.835921,pid=4023): Registering server on TCP port 5005.
(time=1474491781.837157,pid=4023): running server for TCP port 5005 (connection_socket = 3).
warning: removing unused HAL shm segment /linuxcnc-0-00414c32
warning: removing unused global shm segment /linuxcnc-0-00154711
io started
halcmd loadusr io started
CRAMPS.hal:16: execv(./setup.sh): Permission denied
CRAMPS.hal:16: ./setup.sh exited without becoming ready
Shutting down and cleaning up Machinekit...

Maybe somebody knows why what could be reason of getting "CRAMPS.hal:16: ./setup.sh exited without becoming ready"

It is funny because today I was sucesfully starting same machinekit without problems...
Michael Haberler
@mhaberler
Sep 21 2016 21:18
Chmod +x <pathto setup.sh>
And send a pr to fix it please
zhivko
@zhivko
Sep 21 2016 21:19
oh yes
I did that...
machinekit@beaglebone:~$ sudo chmod a+x ./machinekit/configs/ARM.BeagleBone.CRAMPS/setup.sh
machinekit@beaglebone:~$ machinekit /home/machinekit/machinekit/configs/ARM.BeagleBone.CRAMPS/CRAMPS.ini
MACHINEKIT - 0.1
Machine configuration directory is '/home/machinekit/machinekit/configs/ARM.BeagleBone.CRAMPS'
Machine configuration file is 'CRAMPS.ini'
Starting Machinekit...
(time=1474492686.589682,pid=7603): Registering server on TCP port 5005.
(time=1474492686.590928,pid=7603): running server for TCP port 5005 (connection_socket = 3).
io started
halcmd loadusr io started
cape-universal overlay found
cape-bone-iio overlay found
Waiting for component 'setup' to become ready...........................................
CRAMPS.hal:16: ./setup.sh exited without becoming ready
Shutting down and cleaning up Machinekit...
Michael Haberler
@mhaberler
Sep 21 2016 21:19
And..
zhivko
@zhivko
Sep 21 2016 21:20
if I run it on plain I can run it... I get
Michael Haberler
@mhaberler
Sep 21 2016 21:20
Must be some loadusr option, -wn or so
zhivko
@zhivko
Sep 21 2016 21:21
AAAHHHHHH
I changed from -w to -W
in hal - could this be the reason ?
Michael Haberler
@mhaberler
Sep 21 2016 21:21
Well what does the halcmd n
Man p age say
zhivko
@zhivko
Sep 21 2016 21:22
OH no...
yes - it should be -w for setup.sh
but
loadusr -W haltalk -d 5
works with -W ?
is this or let's say consistent?
Michael Haberler
@mhaberler
Sep 21 2016 21:23
Haltalk IS a halcomp
zhivko
@zhivko
Sep 21 2016 21:25
OK but this -w is parameter for loadusr command - yes? So wouldnt be correct to take always -W or always -w parameter ?
Michael Haberler
@mhaberler
Sep 21 2016 21:25
Loadusr ... setup.sh ist just a weird way of running a sh script
The difference is to wait or not wait for a halcomp to appear
Haltalk yes
Random shell script no
zhivko
@zhivko
Sep 21 2016 21:26
hmm... ok - I am not here to judge what is righ or wrong I just find it incosistent... I fixed my problem now - but maybe for others it would be maybe ok that it works same -w or -W - don't know - you decide....
so its ok to have it like it is... you dont see any point changing it? - OK...
Otherwise everything fine? things progressing I see - another platform (CHIP) under the hood :)
Michael Haberler
@mhaberler
Sep 21 2016 21:28
i have been away a bit
zhivko
@zhivko
Sep 21 2016 21:29
yes?
I am troubleshooting my 4axis g93 gcode - fine tuning...
zhivko
@zhivko
Sep 21 2016 22:05
Another thing... I hope I havent shoot my today bonus :)
Is there a reason why I don't have comp command in machinekit jessie official image?
machinekit@beaglebone:~/components$ comp --compile atanxy.comp
-bash: comp: command not found