loading hm2_pci fails on 5i24
- Reinhard
- Offline
- Platinum Member
-
Less
More
- Posts: 508
- Thank you received: 94
26 Jul 2020 11:22 #175886
by Reinhard
loading hm2_pci fails on 5i24 was created by Reinhard
Hi,
after a harddisk failure I had to setup linuxcnc from scratch. May be, I did not record all steps worked out at first time, but I remember, that I did not have any problems like the current one.
I rebuilt linuxcnc, run pncconf with new configuration and til then all worked as expected.
Now on trying to run halcmd to retrieve pin names, halrun fails with:
I tried different calls. First I used the commandline from halfile generated from pncconf:
but as there is no mesa0_discovered.xml.BIT file, I tried to execute this variant:
last not least I tried to load hm2_pci without firmware parameter (which worked earlier), but that failed the same way.
The cited file 'enable' exists and is writable to root, so I tried to run halrun as root.
But that is not permitted from halrun.
So I'm trapped.
after a harddisk failure I had to setup linuxcnc from scratch. May be, I did not record all steps worked out at first time, but I remember, that I did not have any problems like the current one.
I rebuilt linuxcnc, run pncconf with new configuration and til then all worked as expected.
Now on trying to run halcmd to retrieve pin names, halrun fails with:
hm2: loading Mesa HostMot2 driver version 0.15
hm2_pci: loading Mesa AnyIO HostMot2 driver version 0.7
Failed to open "/sys/devices/pci0000:00/0000:00:09.0/0000:01:05.0/enable" (Permission denied)
hm2_pci: skipping AnyIO board at 0000:01:05.0, failed to enable PCI device
Driver probe function failed!
hm2_pci: error registering PCI driver
hm2_pci: rtapi_app_main: Operation not permitted (-1)
test.hal:2: waitpid failed /usr/local/src/linuxcnc-dev/bin/rtapi_app hm2_pci
test.hal:2: /usr/local/src/linuxcnc-dev/bin/rtapi_app exited without becoming ready
test.hal:2: insmod for hm2_pci failed, returned -1
I tried different calls. First I used the commandline from halfile generated from pncconf:
loadrt hostmot2
loadrt hm2_pci config="firmware=hm2/Discovered:5i24/~/mesa0_discovered.xml.BIT num_encoders=8 num_pwmgens=1 num_stepgens=10 sserial_port_0=1111xx"
but as there is no mesa0_discovered.xml.BIT file, I tried to execute this variant:
loadrt hostmot2
loadrt hm2_pci config="firmware=5i24/5i24_16_sibitest.bit num_encoders=8 num_pwmgens=1 num_stepgens=10 sserial_port_0=1111xx"
last not least I tried to load hm2_pci without firmware parameter (which worked earlier), but that failed the same way.
The cited file 'enable' exists and is writable to root, so I tried to run halrun as root.
But that is not permitted from halrun.
So I'm trapped.
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18531
- Thank you received: 5079
26 Jul 2020 13:58 #175898
by PCW
Replied by PCW on topic loading hm2_pci fails on 5i24
What does
lspci -v
Say about the 5I24?
How did you install LinuxCNC?
If you forgot "sudo make setuid" it might behave this way
lspci -v
Say about the 5I24?
How did you install LinuxCNC?
If you forgot "sudo make setuid" it might behave this way
Please Log in or Create an account to join the conversation.
- Reinhard
- Offline
- Platinum Member
-
Less
More
- Posts: 508
- Thank you received: 94
27 Jul 2020 03:44 #176001
by Reinhard
Thank you for the hint.
I copied the linuxcnc source tree and thought everything would be ok.
The good point: I learned, what that command is for
May be I run into the next stupid error - don't know. The 7i73 cr1-led is bright red.
Manual says: watchdog error.
I use Cat5e cables which work fine with my local network at 1Gbit/s and I tested different cables.
What might be wrong this time?
If I remember well, I already had that 7i73 led shining green - but last setup is to far away to remember
I wrote a protocol of installation that time, but probably I missed some steps to write down.
Replied by Reinhard on topic loading hm2_pci fails on 5i24
Argh! - what a stupid error!If you forgot "sudo make setuid" it might behave this way
Thank you for the hint.
I copied the linuxcnc source tree and thought everything would be ok.
The good point: I learned, what that command is for

May be I run into the next stupid error - don't know. The 7i73 cr1-led is bright red.
Manual says: watchdog error.
I use Cat5e cables which work fine with my local network at 1Gbit/s and I tested different cables.
What might be wrong this time?
If I remember well, I already had that 7i73 led shining green - but last setup is to far away to remember

I wrote a protocol of installation that time, but probably I missed some steps to write down.
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18531
- Thank you received: 5079
27 Jul 2020 03:51 - 27 Jul 2020 03:52 #176003
by PCW
Replied by PCW on topic loading hm2_pci fails on 5i24
Is the 7I73 detected?
That is, do its hal pins show up?
Normally the 7I73 should have a red light when power in on but communications
are not established, and a blinking green (~1 Hz at 1 KHz servo thread) when running.
That is, do its hal pins show up?
Normally the 7I73 should have a red light when power in on but communications
are not established, and a blinking green (~1 Hz at 1 KHz servo thread) when running.
Last edit: 27 Jul 2020 03:52 by PCW.
Please Log in or Create an account to join the conversation.
- Reinhard
- Offline
- Platinum Member
-
Less
More
- Posts: 508
- Thank you received: 94
27 Jul 2020 03:55 #176004
by Reinhard
Replied by Reinhard on topic loading hm2_pci fails on 5i24
Hi,
thank you for your attention and fast reply!
Yes, you're right. The 7i73 are detected - I just forgot, that the green led only shows with running hal ...
Sorry for that confusion!
thank you for your attention and fast reply!
Yes, you're right. The 7i73 are detected - I just forgot, that the green led only shows with running hal ...
Sorry for that confusion!
Please Log in or Create an account to join the conversation.
- Reinhard
- Offline
- Platinum Member
-
Less
More
- Posts: 508
- Thank you received: 94
27 Jul 2020 15:23 #176087
by Reinhard
Replied by Reinhard on topic loading hm2_pci fails on 5i24
stil having trouble with 7i73 ...
stripped down hal file so that linuxcnc comes up (with axis gui), but lots of errors appear in gui and terminal output.
Terminal logs look like:Don't know, whether generated hal file would be ok for startup.
How could I verify working of 7i73 without starting linuxcnc?
generated hal file may have too much errors I don't know how to handle, so would be nice to start with little steps.
Testcase might be digital input and/or analog input (latter preferable).
stripped down hal file so that linuxcnc comes up (with axis gui), but lots of errors appear in gui and terminal output.
Terminal logs look like:
hm2/hm2_5i24.0: Watchdog has bit! (set the .has-bit pin to False to resume)
hm2/hm2_5i24.0: Watchdog has bit! (set the .has-bit pin to False to resume)
hm2/hm2_5i24.0: Smart serial card hm2_5i24.0.7i73.0.0 local error = (13) Communication error
hm2/hm2_5i24.0: Smart serial card hm2_5i24.0.7i73.0.0 local error = (13) Communication error
hm2/hm2_5i24.0: Smart serial card hm2_5i24.0.7i73.0.0 local error = (7) Too many errors
hm2/hm2_5i24.0: Smart serial card hm2_5i24.0.7i73.0.0 local error = (3) Timeout
hm2/hm2_5i24.0: Smart serial card hm2_5i24.0.7i73.0.1 local error = (13) Communication error
hm2/hm2_5i24.0: Smart serial card hm2_5i24.0.7i73.0.1 local error = (7) Too many errors
hm2/hm2_5i24.0: Smart serial card hm2_5i24.0.7i73.0.1 local error = (3) Timeout
hm2/hm2_5i24.0: Smart Serial Comms Error: There have been more than 1 errors in 10 thread executions at least 200 times. See other error messages for details.
hm2/hm2_5i24.0: ***Smart Serial Port 0 will be stopped***
How could I verify working of 7i73 without starting linuxcnc?
generated hal file may have too much errors I don't know how to handle, so would be nice to start with little steps.
Testcase might be digital input and/or analog input (latter preferable).
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18531
- Thank you received: 5079
27 Jul 2020 15:32 #176090
by PCW
This is not a 7I73 issue but more likely a real time issue on the host
(when the watchdog bites, all output pins are disabled so you get a cascade of sserial
errors since communications are lost)
Replied by PCW on topic loading hm2_pci fails on 5i24
hm2/hm2_5i24.0: Watchdog has bit! (set the .has-bit pin to False to resume)
This is not a 7I73 issue but more likely a real time issue on the host
(when the watchdog bites, all output pins are disabled so you get a cascade of sserial
errors since communications are lost)
Please Log in or Create an account to join the conversation.
- Reinhard
- Offline
- Platinum Member
-
Less
More
- Posts: 508
- Thank you received: 94
28 Jul 2020 06:50 #176211
by Reinhard
Don't know, what was wrong. Obviously I made a mistake on last install, so I installed os again from scratch.
This time it works and leds turn into blinking green
Thanks
Replied by Reinhard on topic loading hm2_pci fails on 5i24
Thanks for the hint!This is not a 7I73 issue but more likely a real time issue on the host
Don't know, what was wrong. Obviously I made a mistake on last install, so I installed os again from scratch.
This time it works and leds turn into blinking green

Thanks
Please Log in or Create an account to join the conversation.
Moderators: PCW, jmelson
Time to create page: 0.179 seconds