Updating 7i77 firmware failing.
14 Oct 2018 15:28 #118776
by sliptonic
Updating 7i77 firmware failing. was created by sliptonic
Full disclosure: This is a machinekit install
I'm updating my mill and trying to get rid of a persistent warning:
"hm2/hm2_5i25.0: Warning: sserial remote device 7i77 channel 0 has old firmware that should be updated"
The mill has three servos and a stepper for the 4th axis. I flash the 5i25 like this:
sudo mesaflash --device 5i25 --write 5i25_7i77_bstech.bit
And everything works correctly but the above warning shows on startup.
I downloaded the latest serial firmware and have tried to update the 7i77 without success. Log follows. Note, I also tried this as root which fails with a different error that it won't run as root. So I guess this is a difference between LCNC and MK. Can someone point me to a MK friendly upgrade procedure?
I'm updating my mill and trying to get rid of a persistent warning:
"hm2/hm2_5i25.0: Warning: sserial remote device 7i77 channel 0 has old firmware that should be updated"
The mill has three servos and a stepper for the 4th axis. I flash the 5i25 like this:
sudo mesaflash --device 5i25 --write 5i25_7i77_bstech.bit
And everything works correctly but the above warning shows on startup.
I downloaded the latest serial firmware and have tried to update the 7i77 without success. Log follows. Note, I also tried this as root which fails with a different error that it won't run as root. So I guess this is a difference between LCNC and MK. Can someone point me to a MK friendly upgrade procedure?
brad@millstone:~/utils/linuxcnc$ ./update7i77
move 7I77 W4 and W12 to right hand positions
cycle 7I77 field power and 5V power and hit return
updating 7I77 field I/O
msgd:0 stopped
rtapi:0 stopped
rtapi_msgd command: /usr/libexec/linuxcnc/rtapi_msgd --instance=0 --rtmsglevel=1 --usrmsglevel=1 --halsize=524288
rtapi_app command: /usr/libexec/linuxcnc/rtapi_app_rt-preempt --instance=0
update7i77d.hal:4: insmod failed, returned -1:
rtapi_app_main(setsserial): -1 Operation not permitted
See /var/log/linuxcnc.log for more information.
updating 7i77 analog out
msgd:0 stopped
rtapi:0 stopped
rtapi_msgd command: /usr/libexec/linuxcnc/rtapi_msgd --instance=0 --rtmsglevel=1 --usrmsglevel=1 --halsize=524288
rtapi_app command: /usr/libexec/linuxcnc/rtapi_app_rt-preempt --instance=0
update7i77a.hal:4: insmod failed, returned -1:
rtapi_app_main(setsserial): -1 Operation not permitted
See /var/log/linuxcnc.log for more information.
now move 7I77 W4 and W12 to the left hand positiona
and cycle field power and 5V power
brad@millstone:~/utils/linuxcnc$ ./update7i77
move 7I77 W4 and W12 to right hand positions
cycle 7I77 field power and 5V power and hit return
^Cbrad@millstone:~/utils/linuxcnc$
Please Log in or Create an account to join the conversation.
14 Oct 2018 17:00 #118783
by andypugh
Replied by andypugh on topic Updating 7i77 firmware failing.
That isn't necessarily wrong, the setsserial utility always exits with an error. (documented behaviour..)
linuxcnc.org/docs/devel/html/man/man9/setsserial.9.html
Have you power cycled the 7i77 after the flash?
linuxcnc.org/docs/devel/html/man/man9/setsserial.9.html
Have you power cycled the 7i77 after the flash?
Please Log in or Create an account to join the conversation.
14 Oct 2018 18:23 #118787
by sliptonic
Replied by sliptonic on topic Updating 7i77 firmware failing.
Yes. The same warning returns
Please Log in or Create an account to join the conversation.
14 Oct 2018 19:31 #118791
by PCW
Replied by PCW on topic Updating 7i77 firmware failing.
Can you try running say the update7i77d.hal script a bit at time a via
halrun to see where it fails? that is, type the commands in the script
one at a time in a halrun session.
Maybe the firmware is not installed or in the wrong place or setsserial has some generic problem with the MK environment
halrun to see where it fails? that is, type the commands in the script
one at a time in a halrun session.
Maybe the firmware is not installed or in the wrong place or setsserial has some generic problem with the MK environment
Please Log in or Create an account to join the conversation.
14 Oct 2018 20:14 #118795
by sliptonic
Replied by sliptonic on topic Updating 7i77 firmware failing.
Good call. Nailed it. The machinekit docs say, "The firmware should be placed somewhere in the /lib/firmware/hm2 tree, where the Linux firmware loading macros can find it." But it needs to be exactly in /lib/firmware/hm2/sserial.
Probably should have caught that myself. Thank you.
Probably should have caught that myself. Thank you.
Please Log in or Create an account to join the conversation.
Time to create page: 0.136 seconds