[SOLVED] 5i25 wrong mesaflash release generate flashing of INIT led

More
16 Jun 2017 08:51 - 17 Jun 2017 15:49 #94561 by bkt
ED]
linuxcnc-dev$ halrun
halcmd: loadrt hostmot2
Waiting for component 'hostmot2' to become ready...Waited 3 seconds for master.  giving up.
Note: Using POSIX realtime
.hm2: loading Mesa HostMot2 driver version 0.15

halcmd: loadrt hm2_pci
hm2_pci: loading Mesa AnyIO HostMot2 driver version 0.7
hm2_pci: discovered 5i25 at 0000:04:00.0
hm2/hm2_5i25.0: 34 I/O Pins used:
hm2/hm2_5i25.0:     IO Pin 000 (P3-01): IOPort
hm2/hm2_5i25.0:     IO Pin 001 (P3-14): IOPort
hm2/hm2_5i25.0:     IO Pin 002 (P3-02): IOPort
hm2/hm2_5i25.0:     IO Pin 003 (P3-15): IOPort
hm2/hm2_5i25.0:     IO Pin 004 (P3-03): IOPort
hm2/hm2_5i25.0:     IO Pin 005 (P3-16): IOPort
hm2/hm2_5i25.0:     IO Pin 006 (P3-04): IOPort
hm2/hm2_5i25.0:     IO Pin 007 (P3-17): IOPort
hm2/hm2_5i25.0:     IO Pin 008 (P3-05): IOPort
hm2/hm2_5i25.0:     IO Pin 009 (P3-06): IOPort
hm2/hm2_5i25.0:     IO Pin 010 (P3-07): IOPort
hm2/hm2_5i25.0:     IO Pin 011 (P3-08): IOPort
hm2/hm2_5i25.0:     IO Pin 012 (P3-09): IOPort
hm2/hm2_5i25.0:     IO Pin 013 (P3-10): IOPort
hm2/hm2_5i25.0:     IO Pin 014 (P3-11): IOPort
hm2/hm2_5i25.0:     IO Pin 015 (P3-12): IOPort
hm2/hm2_5i25.0:     IO Pin 016 (P3-13): IOPort
hm2/hm2_5i25.0:     IO Pin 017 (P2-01): IOPort
hm2/hm2_5i25.0:     IO Pin 018 (P2-14): IOPort
hm2/hm2_5i25.0:     IO Pin 019 (P2-02): IOPort
hm2/hm2_5i25.0:     IO Pin 020 (P2-15): IOPort
hm2/hm2_5i25.0:     IO Pin 021 (P2-03): IOPort
hm2/hm2_5i25.0:     IO Pin 022 (P2-16): IOPort
hm2/hm2_5i25.0:     IO Pin 023 (P2-04): IOPort
hm2/hm2_5i25.0:     IO Pin 024 (P2-17): IOPort
hm2/hm2_5i25.0:     IO Pin 025 (P2-05): IOPort
hm2/hm2_5i25.0:     IO Pin 026 (P2-06): IOPort
hm2/hm2_5i25.0:     IO Pin 027 (P2-07): IOPort
hm2/hm2_5i25.0:     IO Pin 028 (P2-08): IOPort
hm2/hm2_5i25.0:     IO Pin 029 (P2-09): IOPort
hm2/hm2_5i25.0:     IO Pin 030 (P2-10): IOPort
hm2/hm2_5i25.0:     IO Pin 031 (P2-11): IOPort
hm2/hm2_5i25.0:     IO Pin 032 (P2-12): IOPort
hm2/hm2_5i25.0:     IO Pin 033 (P2-13): IOPort
hm2/hm2_5i25.0: registered
hm2_5i25.0: initialized AnyIO board at 0000:04:00.0
halcmd: show pin hm2_5i25.0.7i77.0.0.output-00
Component Pins:
Owner   Type  Dir         Value  Name

halcmd: 

But I have some suspicius, because is the second 7i77 tha show these messages with the same 5i25.
I have a pc with 5i25 that I test with 2 different machine with on board 2 different 7i77..
the output:

LINUXCNC - 2.8.0~pre1
Machine configuration directory is '/home/jo/linuxcnc-dev/configs/giorgio1'
Machine configuration file is 'giorgio1.ini'
Starting LinuxCNC...
Found file(REL): ./giorgio1.hal
Note: Using POSIX realtime
hm2: loading Mesa HostMot2 driver version 0.15
hm2_pci: loading Mesa AnyIO HostMot2 driver version 0.7
hm2_pci: discovered 5i25 at 0000:04:00.0
hm2/hm2_5i25.0: 34 I/O Pins used:
hm2/hm2_5i25.0:     IO Pin 000 (P3-01): IOPort
hm2/hm2_5i25.0:     IO Pin 001 (P3-14): IOPort
hm2/hm2_5i25.0:     IO Pin 002 (P3-02): IOPort
hm2/hm2_5i25.0:     IO Pin 003 (P3-15): IOPort
hm2/hm2_5i25.0:     IO Pin 004 (P3-03): IOPort
hm2/hm2_5i25.0:     IO Pin 005 (P3-16): IOPort
hm2/hm2_5i25.0:     IO Pin 006 (P3-04): IOPort
hm2/hm2_5i25.0:     IO Pin 007 (P3-17): IOPort
hm2/hm2_5i25.0:     IO Pin 008 (P3-05): IOPort
hm2/hm2_5i25.0:     IO Pin 009 (P3-06): IOPort
hm2/hm2_5i25.0:     IO Pin 010 (P3-07): IOPort
hm2/hm2_5i25.0:     IO Pin 011 (P3-08): IOPort
hm2/hm2_5i25.0:     IO Pin 012 (P3-09): IOPort
hm2/hm2_5i25.0:     IO Pin 013 (P3-10): IOPort
hm2/hm2_5i25.0:     IO Pin 014 (P3-11): IOPort
hm2/hm2_5i25.0:     IO Pin 015 (P3-12): IOPort
hm2/hm2_5i25.0:     IO Pin 016 (P3-13): IOPort
hm2/hm2_5i25.0:     IO Pin 017 (P2-01): IOPort
hm2/hm2_5i25.0:     IO Pin 018 (P2-14): IOPort
hm2/hm2_5i25.0:     IO Pin 019 (P2-02): IOPort
hm2/hm2_5i25.0:     IO Pin 020 (P2-15): IOPort
hm2/hm2_5i25.0:     IO Pin 021 (P2-03): IOPort
hm2/hm2_5i25.0:     IO Pin 022 (P2-16): IOPort
hm2/hm2_5i25.0:     IO Pin 023 (P2-04): IOPort
hm2/hm2_5i25.0:     IO Pin 024 (P2-17): IOPort
hm2/hm2_5i25.0:     IO Pin 025 (P2-05): IOPort
hm2/hm2_5i25.0:     IO Pin 026 (P2-06): IOPort
hm2/hm2_5i25.0:     IO Pin 027 (P2-07): IOPort
hm2/hm2_5i25.0:     IO Pin 028 (P2-08): IOPort
hm2/hm2_5i25.0:     IO Pin 029 (P2-09): IOPort
hm2/hm2_5i25.0:     IO Pin 030 (P2-10): IOPort
hm2/hm2_5i25.0:     IO Pin 031 (P2-11): IOPort
hm2/hm2_5i25.0:     IO Pin 032 (P2-12): IOPort
hm2/hm2_5i25.0:     IO Pin 033 (P2-13): IOPort
hm2/hm2_5i25.0: registered
hm2_5i25.0: initialized AnyIO board at 0000:04:00.0
./giorgio1.hal:162: Pin 'hm2_5i25.0.7i77.0.0.output-05' does not exist
Shutting down and cleaning up LinuxCNC...
Running HAL shutdown script
hm2_5i25.0: dropping AnyIO board at 0000:04:00.0
hm2/hm2_5i25.0: unregistered
RTAPI_PCI: Unmapped 65536 bytes at 0x7f3c79a14000
hm2_pci: driver unloaded
hm2: unloading
Note: Using POSIX realtime

NOTE: the config run every day (7*7 10h*day) from 6 mounth.


regards
giorgio
Last edit: 17 Jun 2017 15:49 by bkt.

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

More
16 Jun 2017 10:33 - 16 Jun 2017 10:49 #94564 by bkt
-I test the 5i25 in other pc with ubuntu 10.04 ... it's ok ... so no mesa card damage.... but in ubuntu 10.04 pc using a firmware 5i25 of 12-2016 ... if I try to install new firmware on pc with problem (ubuntu 16.04) all 5i25 card install with error and INIT led flashing continuosly.... if on pc with problem (ubuntu 16.04) install the old firmware that run well on ubuntu 10.04 all 5i25 card that I test install with error and INIT led flashing ... I try some trik without success...

In these pc (ubuntu 16.04) i run latency histogram-1 from some time (30-40min using web ) and the result is these:



Not very good but I think a servo system can go .... So there is something strange that I do not understand that does not go ....

p.s. I've clean all plug 4 time today ... so not dust or oxide problem I've tested onto 2 system: old ubuntu 10.04 and new ubuntu 16.04, the same config, two different cable 25pin, two identical 7i77 machine ... ubuntu 10.04 run ok with any cable, 5i25, 7i77 ---- ubuntu 16.04 5i25 is detected but not the pin .....

regards
giorgio
Attachments:
Last edit: 16 Jun 2017 10:49 by bkt.

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

More
16 Jun 2017 13:27 #94575 by PCW
Make sure you have the latest mesaflash, if you are using a 64 bit system, older versions of mesaflash will corrupt
the FPGA flash memory on 64 bit systems

If you get a blinking init LED on a 5I25, this means that the user firmware is corrupted
and the 5I25 has loaded the fallback firmware. The fallback firmware will not work with any
daughtercards but does allow reprogramming the FPGA.
The following user(s) said Thank You: bkt

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

More
16 Jun 2017 13:36 #94577 by Todd Zuercher
Did you have the 7i77 boards fully powered when you were checking for the io pins from halcmd? (field power and 5v power)

I am not sure what you are trying to say when you are talking about Ubuntu 10 and 16. Are you saying the boards work fine when running 10.04 and don't with 16.04? Why were you trying to mess with the firmware? Did your problems start before or after you tried to update the firmware?

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

More
16 Jun 2017 14:57 #94584 by bkt
I try to re-install mesaflesh ... it is a possibility ...

giorgio

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

More
16 Jun 2017 15:05 #94586 by bkt
@todd ... the problem become first the updating .... but I'm quite sure the problem was an electrical spike ... after these I try to change 5i25 with other one ... after these I try to update firmware of these 2 5i25 on ubu16 and discover the INIT led problem .... So I try put these 5i25 on ubu10, re-install the previous firmware (5i25_7i77x2.bit, version 2016) and all work fine ... so i understand that the problem is on ubuntu16 pc but i dont know where. I also reinstalled linuxcnc (and find a marginally libmodbus bug) ...

It is more clear? I'm sorry I can not be clear in English.

giorgio

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

More
16 Jun 2017 16:10 #94592 by bkt
My mesaflash is 3.2.0 .... there are one more recent?

giorgio

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

More
16 Jun 2017 16:28 - 16 Jun 2017 16:30 #94597 by PCW
current is 3.3.0-pre

Another option is to just not use the 64 bit system to flash the 5I25 cards
unless you change your daughtercards, there's really no reason to reflash the 5I25s
Last edit: 16 Jun 2017 16:30 by PCW.
The following user(s) said Thank You: bkt

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

More
16 Jun 2017 16:52 #94598 by bkt
If download from mesanet page od fpga 5i25->download software ... unzip the file inside 5i25/utils/linux I find mesaflash 3.3.0-pre? I can use directly that executable named mesaflash3?

regards
giorgio

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

More
16 Jun 2017 17:02 - 16 Jun 2017 17:03 #94600 by PCW
No, to get the latest you fetch the source zip from:

github.com/micges/mesaflash

unzip it and then follow the directions at the very bottom of the page

and add

sudo make install

to install mesaflash
Last edit: 16 Jun 2017 17:03 by PCW.
The following user(s) said Thank You: bkt

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

Moderators: cmorley
Time to create page: 0.101 seconds
Powered by Kunena Forum