fupload version 21092900
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),
as a set of -G/g/p options, or as a set of -G/I/w 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.

In ASCII data files one line is one data packet (hexadecimal byte values separated by spaces),
while lines starting with certain characters may be used to:
  # insert a comment line
  + insert a packet of the given length containing bytes of the given byte value
  & insert a configurable delay in microseconds between two packets
  > change the E-link number to upload to

Usage: fupload [-h|V] [-D] [-d <devnr>] [-b <size>] [-c] (-e <elink>
               | (-G <gbt> (-g <group> -p <path>) | (-I <index> -w <width>)) [-i <dma>]
               [-s <bytes>] [-P <patt>] [-f <speed>] [-R] [-t <secs>] [-u] [-x <size>] [-X] [-y <tlp>] [<filename>]
  -h         : Show this help text.
  -V         : Show version.
  -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.
  -d <devnr> : FLX-device to use (default: 0).
  -D         : Debug mode on, i.e. display blocks being uploaded.
  -f <speed> : Speed up default upload rate of about 8MB/s by factor <speed> (default: 1)
  -i <dma>   : FLX-device DMA controller to use (default: auto).
  -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).
  -u         : Do not perform the actual upload operation.
  -x <size>  : Size of single-shot DMA transfers, in KByte (default: 1).
  -X         : Use continuous-mode DMA for upload (default: single-shot).
  -y <tlp>   : Size of TLP used in DMA transfers, in bytes (default: 32).

Options to define the E-link to use:
  -e <elink> : E-link number (hex) or use -G/g/p or -G/I/w options.
  -E <elink> : an optional 2nd E-link number to upload to
               (alternating with the first given E-link number).
  -G <gbt>   : GBT-link number.
  -g <group> : Group number.
  -p <path>  : E-path number.
  -I <index> : Index of first bit of E-link in GBT frame.
  -w <width> : E-link width in bits (2, 4, 8 or 16).

  <filename> : Name of file with data to upload (ASCII or binary),
               or test pattern data if no name is given.
