New User problems...Linuxcnc terminated with an error

More
5 years 4 months ago #212998 by Simon
Hello good people :)
Complete new user here. I have spent all weekend trying to install and configure linuxcnc and a mesa 7i76e board, for a Churchill-Redman lathe (Monarch copy) conversion, with limited success so far.
I bought the 7i76e second hand, but unused. The guy I got it from originally bought it in 2014.
Card details:
7I76E
Mesa Electronics lot#13608L1
Firmware revision S14H1
UNIT = 1A000005

I have tried several installations of different iso's ,and am currently running Debian Buster 2.8.0 iso. Running on an old windows machine I had kicking around.
Code:
simon@debian:~$ sudo lshw -short H/W path Device Class Description ================================================================== system To Be Filled By O.E.M. (T /0 bus B75M-ITX /0/0 memory 64KiB BIOS /0/7 memory 1MiB L2 cache /0/8 memory 256KiB L1 cache /0/9 memory 6MiB L3 cache /0/a memory 4GiB System Memory /0/a/0 memory DIMM [empty] /0/a/1 memory 4GiB DIMM DDR3 Synchronou /0/b processor Intel(R) Core(TM) i5-3470 /0/100 bridge Xeon E3-1200 v2/3rd Gen C /0/100/2 display Xeon E3-1200 v2/3rd Gen C /0/100/14 bus 7 Series/C210 Series Chip /0/100/14/0 usb2 bus xHCI Host Controller /0/100/14/1 usb3 bus xHCI Host Controller /0/100/16 communication 7 Series/C216 Chipset Fam /0/100/1a bus 7 Series/C216 Chipset Fam /0/100/1a/1 usb1 bus EHCI Host Controller /0/100/1a/1/1 bus Integrated Rate Matching /0/100/1a/1/1/2 input HP USB Optical Mouse /0/100/1a/1/1/4 generic 802.11n WLAN Adapter /0/100/1b multimedia 7 Series/C216 Chipset Fam /0/100/1c bridge 7 Series/C216 Chipset Fam /0/100/1c.3 bridge 7 Series/C216 Chipset Fam /0/100/1c.3/0 enp2s0 network RTL8111/8168/8411 PCI Exp /0/100/1d bus 7 Series/C216 Chipset Fam /0/100/1d/1 usb4 bus EHCI Host Controller /0/100/1d/1/1 bus Integrated Rate Matching /0/100/1d/1/1/5 bus Hub in Apple Extended USB /0/100/1d/1/1/5/3 input Apple Extended USB Keyboa /0/100/1e bridge 82801 PCI Bridge /0/100/1f bridge B75 Express Chipset LPC C /0/100/1f.2 scsi0 storage 7 Series/C210 Series Chip /0/100/1f.2/0.0.0 /dev/sda disk 320GB ST320LT007-9ZV14 /0/100/1f.2/0.0.0/1 /dev/sda1 volume 294GiB EXT4 volume /0/100/1f.2/0.0.0/2 /dev/sda2 volume 3775MiB Extended partitio /0/100/1f.2/0.0.0/2/5 /dev/sda5 volume 3775MiB Linux swap volume /0/100/1f.3 bus 7 Series/C216 Chipset Fam /0/1 system PnP device PNP0c01 /0/2 system PnP device PNP0c02 /0/3 system PnP device PNP0b00 /0/4 generic PnP device INT3f0d /0/5 system PnP device PNP0c02 /0/6 system PnP device PNP0c02 /0/c system PnP device PNP0c02 /0/d system PnP device PNP0c01 /1 wlx801f02fda5f4 network Wireless interface
Code:
simon@debian:~$ uname -a Linux debian 4.19.0-11-rt-amd64 #1 SMP PREEMPT RT Debian 4.19.146-1 (2020-09-17) x86_64 GNU/Linux

I have managed to get the network talking to the card, but only on the default IP 192.168.1.121, for some reason I can't connect using 10.10.10.10, the ping drops all packets, and mesaflash says no 7i76e found...

When using the default IP I get:
Code:
simon@debian:~$ mesaflash --device 7i76e --verbose ETH device 7I76E-16 at ip=192.168.1.121 Communication: transport layer: ethernet IPv4 UDP ip address: 192.168.1.121 mac address: 00:60:1B:10:40:05 protocol: LBP16 version 2 Board info: Flash size: 16Mb (id: 0x14) Connectors count: 3 Pins per connector: 17 Connectors names: on-card P1 P2 FPGA type: 6slx16ftg256 Number of leds: 4 Board firmware info: memory spaces: 0: HostMot2 (registers, RW, 32-bit) [size=64K] 1: KSZ8851 (registers, RW, 16-bit) [size=256] 2: EtherEEP (EEPROM, RW, 16-bit) [size=128], page size: 1, erase size: 1 3: FPGAFlsh (flash, RW, 32-bit) [size=16M], page size: 256, erase size: 65536 6: LBP16RW (memory, RW, 16-bit) [size=16] 7: LBP16RO (memory, RO, 16-bit) [size=16] [space 0] HostMot2 [space 2] Ethernet eeprom: mac address: 00:60:1B:10:40:05 ip address: 10.10.10.10 board name: 7I76E-16 user leds: eth debug [space 3] FPGA flash eeprom: flash size: 16Mb (id: 0x14) [space 6] LBP16 control/status: packets received: all 23738, UDP 20007, bad 0 packets sent: all 12346, UDP 12333, bad 0 parse errors: 4, mem errors 0, write errors 0 error flags: 0x0001 debug LED ptr: 0x0008 scratch: 0x0000 [space 7] LBP16 info: board name: 7I76E-16 LBP16 protocol version 2 board firmware version 13 IP address jumpers at boot: fixed 192.168.1.121

Now to my problem...I have run through the Pncconf, with a very basic step and direction only configuration, just to try and make a stepper going...baby steps...

The Hal latency test shows:
Servo thread (1ms): Max Jitter 6011
Base Thread (25us): Max jitter 12973

The test / tune axis dosen't appear to do anything, otherwise the Pncconf finishes without errors.
However, when I run Linuxcnc, it does not start, saying linuxcnc terminated with and error.

And running linuxcnc from the console I get:
Code:
simon@debian:~$ linuxcnc LINUXCNC - 2.8.1 Machine configuration directory is '/home/simon/linuxcnc/configs/my_LinuxCNC_machine' Machine configuration file is 'my_LinuxCNC_machine.ini' Starting LinuxCNC... Found file(REL): ./my_LinuxCNC_machine.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: 192.168.1.121: INFO: Hardware address (MAC): 00:60:1b:10:40:05 hm2_eth: discovered 7I76E-16 hm2/hm2_7i76e.0: Low Level init 0.15 hm2/hm2_7i76e.0: Smart Serial Firmware Version 42 Board hm2_7i76e.0.7i76.0.0 Hardware Mode 0 = standard Board hm2_7i76e.0.7i76.0.0 Software Mode 0 = io_spin Board hm2_7i76e.0.7i76.0.0 Software Mode 1 = io_ana_spin Board hm2_7i76e.0.7i76.0.0 Software Mode 2 = io_enc_ana_spin_fv board fails HM2 registration hm2_eth: in hm2_eth_reset hm2_eth: rtapi_app_main: Resource temporarily unavailable (-11) ./my_LinuxCNC_machine.hal:9: waitpid failed /usr/bin/rtapi_app hm2_eth ./my_LinuxCNC_machine.hal:9: /usr/bin/rtapi_app exited without becoming ready ./my_LinuxCNC_machine.hal:9: insmod for hm2_eth failed, returned -1 Shutting down and cleaning up LinuxCNC... Running HAL shutdown script hm2: unloading Note: Using POSIX realtime LinuxCNC terminated with an error. You can find more information in the log: /home/simon/linuxcnc_debug.txt and /home/simon/linuxcnc_print.txt as well as in the output of the shell command 'dmesg' and in the terminal

This has been a pretty tough learning curve, having never used linux before this weekend. All my knowledge so far comes from this forum, and I wouldn't have got this far without it, but I am at a loss what to try next.
Any help would be greatly appreciated!
Cheers,
Simon : )

Please Log in to join the conversation.

  • BeagleBrainz
  • New Member
  • New Member
More
5 years 4 months ago #213000 by BeagleBrainz
Shame you're having a issue, Mesa gear is rock solid.

Do you have the Mesa card connected to the computer directly via cable. ie not through a hub, switch or router ?

That's all I can suggest at the moment, PCW should chime and fix you right up.
In the meantime could you post your hal & ini file ? These always help in debugging issues.

Please Log in to join the conversation.

More
5 years 4 months ago #213003 by chris@cnc
Hi,
let's analyze the debug first.
You want to load this config: "my_LinuxCNC_machine.ini" with this card: "hm2_eth: 192.168.1.121:. "
The message from the debug.
"hm2_eth: rtapi_app_main: Resource temporarily unavailable (-11)"
Possible mistake:
Your network configuration is not correct and your card cannot be found.
Network card in the PC must have a static IP address and other than your "7i76e" adress.
wiki.debian.org/NetworkConfiguration
The channel is busy during operation and cannot talk to any other device. There should be no hub or router between.
To use adress 10.10.10.10 set up jumper W3 in UP position.

Common stable setup is 2 Networkcards.
In PC static address 10.10.10.1 and mesa address 10.10.10.10 with set up Jumper W3.
Second card adjust to your home network.

Please Log in to join the conversation.

More
5 years 4 months ago #213005 by Simon
Thanks for the speedy replies!
Some progress!
I can now connect with mesaflash using 10.10.10.10. I wonder if my problems might be coming from Wicd network manager? I only have one ethernet card, and am using an edimax USB wifi doodad for internet connection.
Wicd only seems to let me connect to either the wifi or mesa card, but not both at the same time. I just de-selected 'automatically connect to this network' for the wifi, and mesaflash connected for the first time using 10.10.10.10...

Code:
simon@debian:~$ ip addr show 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether bc:5f:f4:a2:1c:4d brd ff:ff:ff:ff:ff:ff inet 10.10.10.11/8 brd 10.255.255.255 scope global enp2s0 valid_lft forever preferred_lft forever inet6 fe80::be5f:f4ff:fea2:1c4d/64 scope link valid_lft forever preferred_lft forever 5: wlx801f02fda5f4: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000 link/ether 80:1f:02:fd:a5:f4 brd ff:ff:ff:ff:ff:ff


Code:
simon@debian:~$ mesaflash --device 7i76e --addr 10.10.10.10 --verbose ETH device 7I76E-16 at ip=10.10.10.10 Communication: transport layer: ethernet IPv4 UDP ip address: 10.10.10.10 mac address: 00:60:1B:10:40:05 protocol: LBP16 version 2 Board info: Flash size: 16Mb (id: 0x14) Connectors count: 3 Pins per connector: 17 Connectors names: on-card P1 P2 FPGA type: 6slx16ftg256 Number of leds: 4 Board firmware info: memory spaces: 0: HostMot2 (registers, RW, 32-bit) [size=64K] 1: KSZ8851 (registers, RW, 16-bit) [size=256] 2: EtherEEP (EEPROM, RW, 16-bit) [size=128], page size: 1, erase size: 1 3: FPGAFlsh (flash, RW, 32-bit) [size=16M], page size: 256, erase size: 65536 6: LBP16RW (memory, RW, 16-bit) [size=16] 7: LBP16RO (memory, RO, 16-bit) [size=16] [space 0] HostMot2 [space 2] Ethernet eeprom: mac address: 00:60:1B:10:40:05 ip address: 10.10.10.10 board name: 7I76E-16 user leds: eth debug [space 3] FPGA flash eeprom: flash size: 16Mb (id: 0x14) [space 6] LBP16 control/status: packets received: all 15577, UDP 15091, bad 0 packets sent: all 9354, UDP 9334, bad 0 parse errors: 3, mem errors 0, write errors 0 error flags: 0x0001 debug LED ptr: 0x0008 scratch: 0x0000 [space 7] LBP16 info: board name: 7I76E-16 LBP16 protocol version 2 board firmware version 13 IP address jumpers at boot: fixed from EEPROM


But, linuxcnc is still not loading...I did just notice the line: "Note: Using POSIX realtime"
is this my problem? Does it need to be preemp rt kernel for the 7i76e?
Code:
simon@debian:~$ linuxcnc LINUXCNC - 2.8.1 Machine configuration directory is '/home/simon/linuxcnc/configs/my_LinuxCNC_machine' Machine configuration file is 'my_LinuxCNC_machine.ini' Starting LinuxCNC... Found file(REL): ./my_LinuxCNC_machine.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: 10.10.10.10: INFO: Hardware address (MAC): 00:60:1b:10:40:05 hm2_eth: discovered 7I76E-16 hm2/hm2_7i76e.0: Low Level init 0.15 hm2/hm2_7i76e.0: Smart Serial Firmware Version 42 Board hm2_7i76e.0.7i76.0.0 Hardware Mode 0 = standard Board hm2_7i76e.0.7i76.0.0 Software Mode 0 = io_spin Board hm2_7i76e.0.7i76.0.0 Software Mode 1 = io_ana_spin Board hm2_7i76e.0.7i76.0.0 Software Mode 2 = io_enc_ana_spin_fv board fails HM2 registration hm2_eth: in hm2_eth_reset hm2_eth: rtapi_app_main: Resource temporarily unavailable (-11) ./my_LinuxCNC_machine.hal:9: waitpid failed /usr/bin/rtapi_app hm2_eth ./my_LinuxCNC_machine.hal:9: /usr/bin/rtapi_app exited without becoming ready ./my_LinuxCNC_machine.hal:9: insmod for hm2_eth failed, returned -1 Shutting down and cleaning up LinuxCNC... Running HAL shutdown script hm2: unloading Note: Using POSIX realtime LinuxCNC terminated with an error. You can find more information in the log: /home/simon/linuxcnc_debug.txt and /home/simon/linuxcnc_print.txt as well as in the output of the shell command 'dmesg' and in the terminal

I tried looking through the dmesg, but I don't know what I'm looking for : /
Thanks again,
Simon.

Please Log in to join the conversation.

  • BeagleBrainz
  • New Member
  • New Member
More
5 years 4 months ago #213006 by BeagleBrainz
Going by this
Code:
hm2_eth: loading Mesa AnyIO HostMot2 ethernet driver version 0.2 hm2_eth: 192.168.1.121: INFO: Hardware address (MAC): 00:60:1b:10:40:05 hm2_eth: discovered 7I76E-16
The driver has found the MAC and reports discovering the 7i76e.

The Op has also reported he managed to get info from the board, so I think we can assume that the PC & Mesa card are on the same network. Hopefully the wireless & wired network are on different networks......otherwise there could be an issue.

The output of
Code:
ip a
would help.

Please Log in to join the conversation.

More
5 years 4 months ago #213007 by Simon
Thanks again,

I will show two results for ip a, because I can only connect to either wifi or the mesa card at one time.

This one when I'm connected to the 7i76:
Code:
simon@debian:~$ ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether bc:5f:f4:a2:1c:4d brd ff:ff:ff:ff:ff:ff inet 10.10.10.11/8 brd 10.255.255.255 scope global enp2s0 valid_lft forever preferred_lft forever inet6 fe80::be5f:f4ff:fea2:1c4d/64 scope link valid_lft forever preferred_lft forever 5: wlx801f02fda5f4: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000 link/ether 80:1f:02:fd:a5:f4 brd ff:ff:ff:ff:ff:ff

And this one when I'm connected to wifi.
Code:
simon@debian:~$ ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether bc:5f:f4:a2:1c:4d brd ff:ff:ff:ff:ff:ff inet6 fe80::be5f:f4ff:fea2:1c4d/64 scope link valid_lft forever preferred_lft forever 5: wlx801f02fda5f4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 link/ether 80:1f:02:fd:a5:f4 brd ff:ff:ff:ff:ff:ff inet 192.168.20.43/24 brd 192.168.20.255 scope global dynamic wlx801f02fda5f4 valid_lft 86393sec preferred_lft 86393sec inet6 fe80::821f:2ff:fefd:a5f4/64 scope link valid_lft forever preferred_lft forever

Thanks : )

Please Log in to join the conversation.

More
5 years 4 months ago #213008 by chris@cnc

Simon wrote: Does it need to be preemp rt kernel for the 7i76e?

uname -a show: "Linux debian 4.19.0-11-rt-amd64 #1 SMP PREEMPT RT"
You have the right one

but to start linuxcnc change into your config folder
Code:
cd /home/simon/linuxcnc/configs/my_LinuxCNC_machine
and start linuxcnc by
Code:
linuxcnc my_LinuxCNC_machine.ini
or shortcut on your desktop
But share your hal and ini. Maybe there is something wrong inside

Please Log in to join the conversation.

More
5 years 4 months ago #213009 by tommylight
1 how is Mesa powered
2 give us the "debug" part of the error report also.

Please Log in to join the conversation.

  • BeagleBrainz
  • New Member
  • New Member
More
5 years 4 months ago #213010 by BeagleBrainz
This is your issue.

inet 10.10.10.11/8 brd

The PC & Mesa card must be on the same network.

The Mesa card can not have a 192.168.1.xxx and the PC have a 10.10.10.xxx address.


Also the wired network card must have a static address. The reason for this is that the Mesa card most be connected directly to the PC via a cable, there can be no hub, switch or router connected and therefore there will be no other device that can give out an IP address.

Technically there is no reason why the wifi interface & wired interface can not be enabled at the same time. But they must be on separate networks.

ie: The wifi would have an 192.168.1.xx address
The wired interface would have a 10.10.10.xxx address (but not the same as the mesa card)

The manual for the 7i76e is here www.mesanet.com/pdf/parallel/7i76eman.pdf and has info on setting the jumpers.
The page for the IP Address is here: www.mesanet.com/pdf/parallel/7i76eman.pdf#page=10

Set the Jumpers for "FIXED FROM EEPROM" as long as the user hasn't messed with this.
Remember to power down the 7i76e before changing the jumpers.

Please Log in to join the conversation.

More
5 years 4 months ago #213018 by arvidb

Simon wrote:

Code:
board fails HM2 registration

This user had the same issue. Flashing an up-to-date bitfile seems to have fixed the problem, if I get that thread correctly.

Please Log in to join the conversation.

Time to create page: 0.068 seconds
Powered by Kunena Forum