loadrt motmod not permitted

161 views
Skip to first unread message

Jeff Washburn

unread,
Dec 18, 2017, 12:09:30 PM12/18/17
to Machinekit
There must be a permission file. The linuxcnc_module_helper documentation implies that there is a group list somewhere.

This happens whether it's a self generated halfile or one put together by Pncconf.

Perhaps it's because the 5i25 is not hooked up to the G540?

Bas de Bruijn

unread,
Dec 18, 2017, 1:26:35 PM12/18/17
to Jeff Washburn, Machinekit
Hi Jeff,
What configuration do you use? A github repo you can link to? Pastebin? (No attachment please)

What does /var/log/linuxcnc.log say after starting your config after you've done "export DEBUG=5" in the terminal?

We cant guess what's going on.

Jeff Washburn

unread,
Dec 18, 2017, 6:12:17 PM12/18/17
to Machinekit
Here is the linuxcnc.log output:

Dec 18 16:04:06 debian msgd:0: startup pid=3743 flavor=rt-preempt rtlevel=1 usrlevel=1 halsize=524288 shm=Posix cc=gcc 6.3.0 20170516  version=v0.1~-----~025ac3b
Dec 18 16:04:06 debian msgd:0: ØMQ=4.2.1 czmq=4.0.2 protobuf=3.0.0 atomics=gcc intrinsics    libwebsockets=2.0.3
Dec 18 16:04:06 debian msgd:0: configured: sha=025ac3b
Dec 18 16:04:06 debian msgd:0: built:      Nov 17 2017 17:21:35 sha=025ac3b
Dec 18 16:04:06 debian msgd:0: register_stuff: actual hostname as announced by avahi='debian.local'
Dec 18 16:04:06 debian msgd:0: zeroconf: registering: 'Log service on debian.local pid 3743'
Dec 18 16:04:07 debian rtapi:0: rtapi_app_main(motmod): -1 Operation not permitted
Dec 18 16:04:07 debian msgd:0: zeroconf: registered 'Log service on debian.local pid 3743' _machinekit._tcp 0 TXT "uuid=a42c8c6b-4025-4f83-ba28-dad21114744a" "instance=bfcb122a-e447-11e7-9912-b8ac6fa25b72" "service=log" "dsn=ipc:///tmp/0.log.a42c8c6b-4025-4f83-ba28-dad21114744a"
Dec 18 16:04:09 debian rtapi:0: unload: 'gantrykins' not loaded
Dec 18 16:04:09 debian msgd:0: rtapi_app exit detected - scheduled shutdown
Dec 18 16:04:11 debian msgd:0: msgd shutting down
Dec 18 16:04:11 debian msgd:0: zeroconf: unregistering 'Log service on debian.local pid 3743'
Dec 18 16:04:11 debian msgd:0: log buffer hwm: 0% (0 msgs, 0 bytes out of 524288)
Dec 18 16:04:11 debian msgd:0: normal shutdown - global segment detached

for this input from the halfile:

# Generated by PNCconf at Mon Dec 18 08:40:09 2017
# If you make changes to this file, they will be
# overwritten when you run PNCconf again

loadrt gantrykins coordinates=XYYZ
loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[TRAJ]AXES
loadrt probe_parport
loadrt hostmot2
loadrt hm2_pci config=" num_encoders=1 num_pwmgens=0 num_3pwmgens=0 num_stepgens=5 sserial_port_0=00xxxxxx "
setp     hm2_5i25.0.watchdog.timeout_ns 10000000
loadrt abs names=abs.0,abs.1,abs.2,abs.3,abs.4

truncated at the end of the core input. This is from the Pncconf generated version. I have debug=5 in the INI.

Bas de Bruijn

unread,
Dec 19, 2017, 1:06:31 AM12/19/17
to Jeff Washburn, Machinekit


On 19 Dec 2017, at 00:12, Jeff Washburn <washb...@gmail.com> wrote:

Here is the linuxcnc.log output:

Dec 18 16:04:06 debian msgd:0: startup pid=3743 flavor=rt-preempt rtlevel=1 usrlevel=1 halsize=524288 shm=Posix cc=gcc 6.3.0 20170516  version=v0.1~-----~025ac3b
Dec 18 16:04:06 debian msgd:0: ØMQ=4.2.1 czmq=4.0.2 protobuf=3.0.0 atomics=gcc intrinsics    libwebsockets=2.0.3
Dec 18 16:04:06 debian msgd:0: configured: sha=025ac3b
Dec 18 16:04:06 debian msgd:0: built:      Nov 17 2017 17:21:35 sha=025ac3b
Dec 18 16:04:06 debian msgd:0: register_stuff: actual hostname as announced by avahi='debian.local'
Dec 18 16:04:06 debian msgd:0: zeroconf: registering: 'Log service on debian.local pid 3743'
Dec 18 16:04:07 debian rtapi:0: rtapi_app_main(motmod): -1 Operation not permitted
Dec 18 16:04:07 debian msgd:0: zeroconf: registered 'Log service on debian.local pid 3743' _machinekit._tcp 0 TXT "uuid=a42c8c6b-4025-4f83-ba28-dad21114744a" "instance=bfcb122a-e447-11e7-9912-b8ac6fa25b72" "service=log" "dsn=ipc:///tmp/0.log.a42c8c6b-4025-4f83-ba28-dad21114744a"
Dec 18 16:04:09 debian rtapi:0: unload: 'gantrykins' not loaded
Dec 18 16:04:09 debian msgd:0: rtapi_app exit detected - scheduled shutdown
Dec 18 16:04:11 debian msgd:0: msgd shutting down
Dec 18 16:04:11 debian msgd:0: zeroconf: unregistering 'Log service on debian.local pid 3743'
Dec 18 16:04:11 debian msgd:0: log buffer hwm: 0% (0 msgs, 0 bytes out of 524288)
Dec 18 16:04:11 debian msgd:0: normal shutdown - global segment detached

for this input from the halfile:

# Generated by PNCconf at Mon Dec 18 08:40:09 2017
# If you make changes to this file, they will be
# overwritten when you run PNCconf again


Have a look at this configuration hal file

Especially the part about the "loadrt tp" and the next line where you also should load the tp=... and kins=...

loadrt gantrykins coordinates=XYYZ
loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[TRAJ]AXES
loadrt probe_parport
loadrt hostmot2
loadrt hm2_pci config=" num_encoders=1 num_pwmgens=0 num_3pwmgens=0 num_stepgens=5 sserial_port_0=00xxxxxx "
setp     hm2_5i25.0.watchdog.timeout_ns 10000000
loadrt abs names=abs.0,abs.1,abs.2,abs.3,abs.4

truncated at the end of the core input. This is from the Pncconf generated version. I have debug=5 in the INI.

On Monday, December 18, 2017 at 11:26:35 AM UTC-7, Bas de Bruijn wrote:
Hi Jeff,

On 18 Dec 2017, at 18:09, Jeff Washburn <washb...@gmail.com> wrote:

There must be a permission file. The linuxcnc_module_helper documentation implies that there is a group list somewhere.

This happens whether it's a self generated halfile or one put together by Pncconf.

Perhaps it's because the 5i25 is not hooked up to the G540?

What configuration do you use? A github repo you can link to? Pastebin? (No attachment please)

What does /var/log/linuxcnc.log say after starting your config after you've done "export DEBUG=5" in the terminal?

We cant guess what's going on.

--
website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit
---
You received this message because you are subscribed to the Google Groups "Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to machinekit+...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

Jeff Washburn

unread,
Dec 19, 2017, 11:44:51 AM12/19/17
to Machinekit
Thanks, Bas. I had looked at the github fies you referenced, but glossed tp= and kins=.


Reply all
Reply to author
Forward
0 new messages