7i96 and PlasmaC Permission Denied

More
20 Aug 2019 15:45 - 20 Aug 2019 15:46 #142616 by PCW
Just to try an simplify things can you move you host static IP to say 10.10.10.5 and
the 7I96 to 10.10.10.10 (W5 down W6 up), just so you are not overlapping some
NAT range now or in the future.

Could you also start LinuxCNC from the command line and copy/paste all the
startup messages
Last edit: 20 Aug 2019 15:46 by PCW.

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

More
20 Aug 2019 16:25 - 20 Aug 2019 16:29 #142619 by GradeMind
If you have multiple network connections, might need to isolate the one connected to the board so it cant connect to anything else.

I see the word "MULTICAST" in there...

Ubuntu:
Edit Network connections - Ipv4 Settings - Routes - "Use only for resources on this network"

*Also, yes swap it to the 10.10.10.10 ip instead. Its just a jumper setting.
Last edit: 20 Aug 2019 16:29 by GradeMind.

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

More
20 Aug 2019 17:00 #142622 by tommylight
File permisions on the PlasmaC folder/files ???

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

More
20 Aug 2019 23:28 #142655 by MakingStuff
I posted this erlier in the thread but I just want to clarify that I don't get a permision denied error unless I boot the computer while it is plugged into the network router. If I plug the network cable into the Mesa 7i96 and boot the computer, I get the error "Network Unreachable". This only happens for the PlasmaC config.

The generic base machine that I setup before installing PlasmaC works no matter how the network cable is plugged in when booting.

I can ping the Mesa 7i96 and the Base machine works fine so I don't think this is a Linux network issue. It has more to do with how LinuxCNC is setup.

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

More
20 Aug 2019 23:35 #142658 by MakingStuff

Could you also start LinuxCNC from the command line and copy/paste all the
startup messages


This is what I see when I start LinuxCNC. The error is "Network Unreachable" but I can ping the Mesa board, I can also reach it with the 7i96 config utility and run the generic base machine I setup before installing PlasmaC and it works fine.

LINUXCNC - 2.9.0-pre0-476-gcd4faf117
Machine configuration directory is '/home/bobj/linuxcnc/configs/newplasma'
Machine configuration file is 'newplasma.ini'
Starting LinuxCNC...
twopass:invoked with <> options
twopass:found ./newplasma.hal
twopass:found ./plasmac.hal
twopass:found ./newplasma_connections.hal
Note: Using POSIX realtime
hm2: loading Mesa HostMot2 driver version 0.15
hm2_eth: loading Mesa AnyIO HostMot2 ethernet driver version 0.2
hm2_eth: ERROR: can't connect: Network is unreachable
hm2_eth: rtapi_app_main: Network is unreachable (-101)

twopass: load_the_modules cmd=<orig_loadrt hm2_eth [concat board_ip={"192.168.1.121"] config=\"num_encoders=1num_stepgens=4\"sserial_port_0=1>
waitpid failed /usr/bin/rtapi_app hm2_eth
/usr/bin/rtapi_app exited without becoming ready
insmod for hm2_eth failed, returned -1

Shutting down and cleaning up LinuxCNC...
hm2: unloading
Note: Using POSIX realtime
LinuxCNC terminated with an error. You can find more information in the log:
/home/bobj/linuxcnc_debug.txt
and
/home/bobj/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal

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

More
20 Aug 2019 23:36 #142659 by PCW
What is changed with PlasmaC?

OS?
LinuxCNC version?
LinuxCNC install method? (rip or normal)
Just hal file?

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

More
20 Aug 2019 23:39 #142660 by rodw
Can you tell us the IP address of your mesa card?

From the error, its defaulting to
192.168.1.121

Its more likely that you need it to be 10.10.10.10

I did mention to check the data that is being used from your ini file to populate the hostmot2 command. Most likely, you just need a simple edit to your config (ini or hal file) to point to the correct IP address.

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

More
20 Aug 2019 23:41 #142661 by phillc54
I don't know what is happening here, PlasmaC 'should' have nothing to do with networking.

Can you post the HAL and INI file from the PlasmaC config directory.

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

More
20 Aug 2019 23:48 - 20 Aug 2019 23:53 #142662 by PCW
There also may be an issue with twopass, ISTR that it trips on complex loadrt lines (like the loardrt hm2_eth line its mucking about with)

Edit:
You might want to include
# NOTWOPASS

In the hal file that loads the Ethernet driver

as a test
Last edit: 20 Aug 2019 23:53 by PCW.

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

More
21 Aug 2019 00:01 #142663 by dgarrett
If a twopass parsing problem is suspected, you
can exclude a single hal file. See

linuxcnc.org/docs/2.8/html/hal/twopass.html#_exluding_hal_files

For example, you can put a single loadrt line in a file
and then exclude just that file from twopass processing.

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

Moderators: snowgoer540
Time to create page: 0.099 seconds
Powered by Kunena Forum