Overview | Releases | Download | Docs | Links | Help | RecentChanges

VmeConfiguration

Creating a config file

The VME configuration is achieved using the vmeconfig program in the DataFlow? release.

To Fix this do the following

  1. Log into the SBC
  2. Source the DAQ setup scripts
  3. vmeconfig -i <myfile> (where you can choose this file)
  4. select option 4 "Set master map decoder"
  5. set the parameters below:
    1. Master map decoder 2 Decoder number = 2
    2. Master map decoder 2 Enabled = Yes
    3. Master map decoder 2 VME base address= 0x00000000
    4. Master map decoder 2 PCI base address= 0x80000000
    5. Master map decoder 2 Window size = 0x20000000
    6. Master map decoder 2 Write posting = No
    7. Master map decoder 2 VME space = A32
    8. [this is okay for DF-00-05-00 for later use defaults for other parameters]
  6. select option 16 "Update Universe registers"
  7. select option 17 "Exit and save"

Does anyone have comments on what range of values are allowed for the PCI base address entry? (ie will it ever conflict with something else?)

Loading automatically on boot

This is done by the /etc/init.d/vme_rcc script which can be copied from the dataflow installation. See the files found by:

  ls $DF_INST_PATH/../*/*/src/driver/*_rcc

and read:

  man chkconfig 

"drivers_rcc" would appear to combine the other three functions.

By default this calls:

  /lib/modules/daq/vmeconfig -a /lib/modules/daq/vmetab

Unfortunately the DataFlow? libraries probably aren't in the load path at this point.

In order to fix this change the line to something like:

  LD_LIBRARY_PATH=$DF_INST_PATH/lib /lib/modules/daq/vmeconfig -a /lib/modules/daq/vmetab

(wher DF_INST_PATH can't be expected to be defined)

Obviously, the library path must match the version vmeconfig was compiled with. This also dictates which version vmetab must be created with.

It appears (so far) that the kernel interface hasn't changed significantly. vmeconfig of a different DataFlow? software version (up to 10 at time of writing) _seems to_ correctly configure the VME chip using kernel drivers compiled from earlier DataFlow? versions.