File: replace-softloader.sh

package info (click to toggle)
open-plc-utils 0.0.6%2Bgit20250712.46c3506-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 17,208 kB
  • sloc: ansic: 60,860; xml: 16,179; sh: 1,216; makefile: 698
file content (30 lines) | stat: -rwxr-xr-x 900 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh

# this script replaces the intellon softloader with runtime firmware;
# it assumes the softloader is running when the script is started;

# ====================================================================
# file symbols;
# --------------------------------------------------------------------

ETH=eth4
PIB=../firmware/v3.3.6.pib
NVM=../firmware/v3.3.6-0-8-B-RC1.nvm
MAC=00B05200CA08
DAK=689F074B8B0275A2710B0B5779AD1630
NMK=50D3E4933F855B7040784DF815AA8DB7

# ====================================================================
#  
# --------------------------------------------------------------------

modpib -M ${MAC} -D ${DAK} -N ${NMK} ${PIB}
int6k -i ${ETH} -P ${PIB} -N ${NVM} -F
int6k -i ${ETH} -P ${PIB} -N ${NVM} -FF

# ====================================================================
#  
# --------------------------------------------------------------------

 exit 0