Flashing 7i73

More
19 Sep 2014 20:41 - 19 Sep 2014 20:46 #51346 by Nick
Flashing 7i73 was created by Nick
Hi!

I've got 7i73 with older firmware, so I tried to flash it. Unfortunately with no luck.

What I've done:

1. got the sserral.zip here www.mesanet.com/software/parallel/sserial.zip
2. found readme, that talks about different update scripts, but no scripts.
3. found some hal files, one of them seems to be just for 7i73
loadrt hostmot2 sserial_baudrate=115200
loadrt hm2_pci  
loadrt setsserial cmd="flash hm2_5i25.0.7i73.0.2 hm2/sserial/7I73R14.BIN"
exit
4. moved firmware bin file to /lib/firmwares/hm2
5. have connected 7i73 through 7i74 to 5i25.
6. and now the problem comes - if I put 7i73 to config mode (both W5 and W6 up) then I'm starting to get error after loading hm2_pci
and in operational mode I cannot flash the card. See dmesg output at the bottom

What should I do to flash the 7i73?
[  913.156375] hm2/hm2_5i25.0: Chan 7. Baudrate set to 115200
[  913.163274] Setup mode
[  913.163277] found a 7I73
[  913.163348] hm2/hm2_5i25.0: Setup mode, creating no pins for smart-serial channel hm2_5i25.0.7i73.1.1
[  913.165945] hm2/hm2_5i25.0: Smart serial card hm2_5i25.0.7i73.1.1 error = (15) Communication Not Ready
[  913.165949] hm2/hm2_5i25.0: Smart serial card hm2_5i25.0.7i73.1.1 error = (14) No Remote ID
[  913.165952] hm2/hm2_5i25.0: Smart serial card hm2_5i25.0.7i73.1.1 error = (13) Communication error
[  913.165955] hm2/hm2_5i25.0: Smart serial card hm2_5i25.0.7i73.1.1 error = (8) Remote fault
[  913.165958] hm2/hm2_5i25.0: Smart serial card hm2_5i25.0.7i73.1.1 error = (7) Too many errors
[  913.165961] hm2/hm2_5i25.0: Smart serial card hm2_5i25.0.7i73.1.1 error = (3) Timeout
[  913.166831] hm2/hm2_5i25.0: 34 I/O Pins used:
[  913.166834] hm2/hm2_5i25.0:     IO Pin 000 (P3-01): IOPort
[  913.166837] hm2/hm2_5i25.0:     IO Pin 001 (P3-14): IOPort

====================

[  913.166923] hm2/hm2_5i25.0:     IO Pin 033 (P2-13): IOPort
[  913.166956] hm2/hm2_5i25.0: registered
[  913.166958] hm2_5i25.0: initialized AnyIO board at 0000:04:00.0
[  913.170647] flash command
[  913.174379] Firmware size 0xa800
[  913.229008] setup start: data_reg readback = 2
[  913.229012] Remote failed to start
[  913.229030] Firmware Flash Failed




The code to burn
cnc@cnc-1740:~$ halrun 
halcmd: loadrt hostmot2 sserial_baudrate=115200
halcmd: loadrt hm2_pci  config="sserial_port_0=xxxxxxxx sserial_port_1=x0xxxxxx "
halcmd: loadrt setsserial cmd="flash hm2_5i25.0.7i73.1.1 hm2/7I73R14.BIN"
Error: could not insert module /usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/setsserial.ko: Operation not permitted
<stdin>:3: exit value: 1
<stdin>:3: insmod failed, returned -1
See the output of 'dmesg' for more information.


PS I've got two ( one red and one green) leds on in setup mode on my 7i73.
Last edit: 19 Sep 2014 20:46 by Nick.

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

More
19 Sep 2014 21:54 #51347 by PCW
Replied by PCW on topic Flashing 7i73
I have added the missing updatess script to sserial.zip

I suspect your issue is that channel number is not right

Try the updatess script with the correct channel number
The following user(s) said Thank You: Nick

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

More
19 Sep 2014 23:43 #51356 by Nick
Replied by Nick on topic Flashing 7i73
So that 7i73's pins do not appear in halcmd show after hm2_pci is loaded is normal behaviour?

And this errors are fine?
[ 913.165961] hm2/hm2_5i25.0: Smart serial card hm2_5i25.0.7i73.1.1 error = (3) Timeout


PS How to determine sschanel? I've determined it by iterating sserial_port_0=x1xxxxxx placing 1 to different places and found that only sserial_port_1=x0xxxxxx 7i73 appears in hal or dmesg.

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

More
20 Sep 2014 00:07 - 20 Sep 2014 00:09 #51357 by PCW
Replied by PCW on topic Flashing 7i73
The ss channel is in the hal pin name if you have not changed the
7I73 serial port connections

you can determine the overall firmware pinout by running
sudo mesaflash --device cardname --readhmid

fetch the latest at:
github.com/micges/mesaflash

There may be an issue with flashing remote ss devices on
the second port (the script certainly assumes port 0)
so I would connect the 7I73 to port 0

(you current connection is port1 channel 1)

also you dont need to iterate, sserial_port_0=00000000, sserial_port_1=00000000 will enable everything

and yes in setup mode, no hal pins are created


btw I will be unavailable till Monday afternoon so if you cannot resolve the issue,
we may need to continue on Monday or Tuesday next week
Last edit: 20 Sep 2014 00:09 by PCW.

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

More
20 Sep 2014 00:13 #51358 by Nick
Replied by Nick on topic Flashing 7i73
In ssinstall there are
sudo mkdir /bin/firmware/hm2/sserial
sudo mv *.BIN /bin/firmware/hm2/sserial/

Should not they be /lib instead of /bin?

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

More
20 Sep 2014 00:58 #51360 by Nick
Replied by Nick on topic Flashing 7i73
Another strange thing, 7i73 always appears as
hm2_5i25.0.7i73.1.0 or hm2_5i25.0.7i73.1.N
but newer hm2_5i25.0.7i73.0.0

no mater where 7i74 is plugged in P1 or P2 of the 5i25.

Right now if i try new script dmesg says^
[ 194.458101] Unable to find sserial remote corresponding to hm2_5i25.0.7i73.0.0
which is reasonable, because 7i73 is on 1 not 0.

If I try old way throught hal and sserial with correct 7i73.1.0, dmesg says

[  535.182957] hm2_5i25.0: initialized AnyIO board at 0000:04:00.0
[  537.798823] flash command
[  537.801693] Firmware size 0xa800
[  537.856322] setup start: data_reg readback = 1
[  537.856326] Remote failed to start
[  537.856344] Firmware Flash Failed

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

More
20 Sep 2014 01:06 - 21 Sep 2014 17:49 #51361 by Nick
Replied by Nick on topic Flashing 7i73
I've did it!!!
Sorry we have did it :)

I've changed 7i74 connection to P1 of 5i25 once again and finally got 7i73 flashed!

Thank you very much!
[   86.727987] flash command
[   86.731758] Firmware size 0xa800
[   86.738593] setup start: data_reg readback = 0
[   86.740030] hm2/hm2_5i25.0: Write Size = 100, Erase Size = 800
[   86.740396] hm2/hm2_5i25.0: Skipped Block 1
[   86.740401] hm2/hm2_5i25.0: Skipped Block 2
[   86.740405] hm2/hm2_5i25.0: Skipped Block 3
[   86.765578] hm2/hm2_5i25.0: Erased block 4
[   87.083992] hm2/hm2_5i25.0: Wrote block 4
[   87.109168] hm2/hm2_5i25.0: Erased block 5
[   87.427574] hm2/hm2_5i25.0: Wrote block 5
[   87.452746] hm2/hm2_5i25.0: Erased block 6
[   87.771142] hm2/hm2_5i25.0: Wrote block 6
[   87.796314] hm2/hm2_5i25.0: Erased block 7
[   88.114702] hm2/hm2_5i25.0: Wrote block 7
[   88.139872] hm2/hm2_5i25.0: Erased block 8
[   88.458259] hm2/hm2_5i25.0: Wrote block 8
[   88.483437] hm2/hm2_5i25.0: Erased block 9
[   88.801831] hm2/hm2_5i25.0: Wrote block 9
[   88.826999] hm2/hm2_5i25.0: Erased block 10
[   89.145412] hm2/hm2_5i25.0: Wrote block 10
[   89.170584] hm2/hm2_5i25.0: Erased block 11
[   89.488967] hm2/hm2_5i25.0: Wrote block 11
[   89.514138] hm2/hm2_5i25.0: Erased block 12
[   89.832549] hm2/hm2_5i25.0: Wrote block 12
[   89.857723] hm2/hm2_5i25.0: Erased block 13
[   90.176153] hm2/hm2_5i25.0: Wrote block 13
[   90.201328] hm2/hm2_5i25.0: Erased block 14
[   90.519769] hm2/hm2_5i25.0: Wrote block 14
[   90.544951] hm2/hm2_5i25.0: Erased block 15
[   90.863378] hm2/hm2_5i25.0: Wrote block 15
[   90.888553] hm2/hm2_5i25.0: Erased block 16
[   91.206967] hm2/hm2_5i25.0: Wrote block 16
[   91.232141] hm2/hm2_5i25.0: Erased block 17
[   91.550564] hm2/hm2_5i25.0: Wrote block 17
[   91.575732] hm2/hm2_5i25.0: Erased block 18
[   91.894155] hm2/hm2_5i25.0: Wrote block 18
[   91.919332] hm2/hm2_5i25.0: Erased block 19
[   92.237744] hm2/hm2_5i25.0: Wrote block 19
[   92.262923] hm2/hm2_5i25.0: Erased block 20
[   92.581344] hm2/hm2_5i25.0: Wrote block 20
[   92.581359] Firmware Flash Success
Last edit: 21 Sep 2014 17:49 by Nick.

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

Moderators: PCWjmelson
Time to create page: 0.089 seconds
Powered by Kunena Forum