Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Get an SBC, either a mvme5500 or mvme6100.
  2. Get a SLAC ID from Doug or Kristi. You will be given two stickers. Put one on the front faceplate of your SBC. Put the other on the board itself, near the serial number and ethernet MAC addresses which are typically visible on white labels attached to the top of the board, near the front faceplate.
  3. Get a network address for your SBC. Go to the LCLS Development Network Nodes page (SLAC-only), and you'll see a list of all reserved addresses. Click the edit button to put your name with any unused entry, then you can use the corresponding network address for your IOC. Enter the two ethernet (MAC) addresses, the serial number, and the SLAC ID number.
  4. A VME enclosure with power for the SBC.
  5. Two Ethernet cables, and an Ethernet to Serial adapter. You might also need a DB9 to USB adapter; see below.
    1. The Ethernet to Serial Adapter physically connects the wires from the RJ45 connector of the ethernet cable to the pins of a female 9-pin serial connector, as shown in Figure 1 below. See Table 1 for pinouts.
      Wiki Markup
      {center:class=myclass}
      !Adapter-RJ45-DB9.png!
      *Figure 1*. An RJ45 to DB9 Adapter for the SBC's Serial Console Line. Ideally, yours will be assembled\!{center}
    2. The DB9 to USB adapter will be needed if your computer doesn't have a 9-pin male serial connection. Some computers use USB exclusively for serial communication, such as the Mac.
      Wiki Markup
      {center:class=myclass}
      !DB9-Keyspan-USB-Adapter.png!
      *Figure 2*. DB9 to USB Adapter; The Keyspan USA-19HS for the Mac.
      \\ 
      \\
      *Table 1.* Serial cable pinouts for DB9-Female to RJ45.
      || RJ45 Signal || RJ45 Socket 8 Position || To Color || DB9 Socket 9 Position || *DB9 Signal* ||
      | DCD | 1 | Blue | 4 | DTR |
      | RTS | 2 | Orange | 8 | CTS |
      | GND | 3 | Black | 5 | GND |
      | GND | 4 | Yellow | 5 | GND |
      | TxD | 5 | Red | 2 | RxD |
      | RxD | 6 | Green | 3 | TxD |
      | CTS | 7 | Brown | 7 | RTS |
      | DTR | 8 | White | 6 | DSR |
      | DTR | 8 | White | 1 | DCD |
      {center}
    3. If you want to connect the cpu serial port to a DIGI Terminal Server you will need a cat5 cable with RJ45 connectors on both. For a cable diagram click here.
  6. You'll need network access to the LCLS Development server (lcls-dev.slac.stanford.edu)
  7. A computer running UNIX (Linux, MacOS X, Solaris, etc.) or Microsoft Windows.
    • The computer must have an available serial port. If the computer has only USB connections with no DB9-type serial ports, you'll need a serial DB9 to USB adapter. For MacOS X, we use the Keyspan model USA-19HS.

...

The gevEdit command is used to create or change an environment variable. These are different for each type of processor, because of the Flash memory address.

...

For the mvme5500, you would type the following:

Panel

MVME5500> gevEdit mot-script-boot
(Blank line terminates input.)
netShut
bmw -af2000000 -bf20fffff -c4000000
go -a4000000

Update Global Environment Area of NVRAM (Y/N)? Y
MVME5500>

Panel

On the mvme6100, you would type:

Panel

MVME6100> gevEdit mot-script-boot
(Blank line terminates input.)
netShut
bmw -af4000000 -bf40fffff -c4000000
go -a4000000

Update Global Environment Area of NVRAM (Y/N)? Y
MVME6100>

...

panel

Confirm that the mot-script-boot variable is set correctly. You can type gevShow, and the contents of the environment variables will be printed. Reboot the processor:

Panel

MVME5500> reset

...

panel

Reboot the Processor

You can power cycle the crate or if you have a "Cexp>" prompt, you can type rtemsReboot() and the processor will restart. It will boot up automatically, loading the rtems.exe file specified in the NVRAM. Change that filename to boot another file as your IOC development proceeds.

Reprogramming FLASH

Development:

Panel

Cexp> BSP_flashWriteEnable(0)
Cexp> BSP_flashWriteFile(0,0,"/boot/package/rtems/4.9.1/target/ssrlApps/powerpc-rtems/beatnik/img/netboot.flashimg.bin")

Panel

Production:

Panel

Cexp> BSP_flashWriteEnable(0)
Cexp> BSP_flashWriteFile(0,0,"/boot/lcls/rtems/rtems-4.9.1/target/ssrlApps/powerpc-rtems/beatnik/img/netboot.flashimg.bin")

Panel

RTEMS CEXP Functions

...