fupload version 25111000
Upload data (test data or from file) to the given FLX-device E-link.
The E-link number is provided as a (hex) number directly (-e option)
or as a set of -G/g/p options,
unless option -R is given ('raw' unformatted upload).

Checks whether the E-link is valid and configured on the selected FLX-device,
unless option -c is given.

Usage: fupload -h|V -D -d<devnr> -b<size> -c -i<dma>
               (-e<elink> | -G<lnk> -g<group> -p<path>) [-I]
               -s<bytes> -P<patt> -R -t<secs> -T
               -u -x<size> -X -A -y<tlp>
               [<filename>]
  -h         : Show this help text.
  -V         : Show version.
  -A         : Do not disable continuous-mode DMA after the upload
               (for DMA status inspection afterwards; debug option).
  -b <size>  : DMA (cmem_rcc) memory buffer size to use, in MB (default 128, max 4096).
  -B         : Contents of <filename> is read as binary data (default: ASCII).
  -c         : Do *not* check whether E-link is configured on FLX-device
               (Note: for raw and broadcast uploads no check is done).
  -d <devnr> : FLX-device to use (default: 0).
  -D         : Debug mode on, i.e. display blocks being uploaded.
  -i <dma>   : DMA controller number to use for upload (default: auto).
  -I         : Run a trickle DMA (Trickle DMA index selected by -i).
  -P <patt>  : Test data pattern: 0=incr, 1=0x55/0xAA, 2=0xFF, 3=incr-per-chunk (default: 0).
  -r <repeat>: Test data repeat count: upload <repeat>*<bytes> bytes of data (default: 30).
  -R         : Upload data unformatted, not as CR from-host data packets with header.
  -s <bytes> : Number of bytes per chunk to upload (default: 32).
  -t <secs>  : Number of seconds for DMA time-out or wait until DMA done when 0 (default: 0).
  -T         : Display timestamp for the (start of the) operation.
  -u         : Do not perform the actual upload operation.
  -x <size>  : Size of single-shot DMA transfers, in KByte (default 0: one DMA, all data).
  -X         : Use single-shot DMA for upload (default: continuous).
  -y <tlp>   : Size of TLP used in FromHost DMA transfers, in bytes (default: 32; expert use only).

Options to define the E-link to use:
  -e <elink> : E-link number (hex) or use -G/g/p options.
  -E <elink> : an optional 2nd E-link number to upload to
               (alternating with the first given E-link number).
  -G <lnk>   : GBT-link number.
  -g <group> : Group number.
  -p <path>  : E-path number.
  <filename> : Name of file with data to upload (ASCII or binary),
               or test pattern data if no name is given.

In ASCII data files one line represents one data packet (hexadecimal byte values separated by spaces),
while lines starting with certain characters may be used to:
  #           insert a comment line (ignored)
  + <b> <cnt> insert a packet of the given length 'cnt' containing bytes of the given (hex) byte value 'b'
  * <n>       repeat the previous chunk 'n' times
  & <d>       insert a configurable delay 'd' in microseconds between two packets
  > <e>       change the E-link number to upload to to 'e' (hex)
