Remote access

Fra Robin

Revisjon per 26. feb 2021 kl. 09:42 av Yngveha (Diskusjon | bidrag)
Gå til: navigasjon, søk

This article is specially made for remote access during the COVID-19 pandemic.


Using to access the UiOs services

  1. For the best user experience, we recommend download VMware on your own laptop. Follow the instructions on this guide.
  2. When you're logged in, you should be able to find the instance called "Ifi workstation". Start the instance by double clicking it. See icon in Figure 1.
Figure 1: Ifi workstation icon

Use-case: Xilinx Suite

The full version of Xilinx software used in in3160 and in5200 is only accessible at UiO's hosts. To access the tools, follow these steps.

  1. Follow the steps in the above section.
  2. To access the the Xilinx tools, ssh to a IFI computer:
ssh -Y <assigned_host>

See example in Figure 2. If you don't have an assigned computer or the assigned computer is overloaded you can use:

ssh -Y

Remember to set up the .bashrc file as described here to make it work.

Figure 2: Running Vivado on VMware

Special setup on LISP

To be able to program ZedBoards, and see motor and 7-segment display, do the following:

  1. Follow the steps in the first section.
  2. To access the the Xilinx tools, ssh to a IFI computer: ssh -Y <assigned_host>
  3. In the terminal use the premade alias zedboard-webcam to be able to monitor the ZedBoard. Note: Only one user at a time can use zedboard-webcam at a time, so remember to exit when you are finished.
  4. On the assigned hosts you should be able to program the ZedBoard. See example in Figure 3.
Figure 3: Running Vivado and zedboard-webcam on LISP

Alternativly, you can ssh directly from your own computer. To be able to get GUI aplications running, remember the -Y flag. On Windows you're required to use PuTTy and on MacOS we recommend XQuartz. Not that we don't recommend this method as it depends on the setup of your local machine. Hence, we won't necessarily give support if you don't manage to set it up.

"Zedboard" commands
Zedboard-webcam  Displays the webcamera showing the zedboard connected to the computer 
Zedboard-wipe    Wipes the board (use this before leaving the machine)
Zedboard-test    Displays a testpattern on the seven segment display. Should be readable.

Note that programming the zedboard (wipe/test or other) takes at least 15 seconds

Optional: TCL script for programming a board without vivado

If you are able to generate your .bit file on your own PC, you can choose to program the board using a script rather than through vivado. Here are the tcl commands used in the zedboard-wipe script:

# Connect to the Digilent Cable on localhost:3121
connect_hw_server -url localhost:3121
#current_hw_target [get_hw_targets */xilinx_tcf/Digilent/12345] Alternative but not as flexible
current_hw_target [lindex [get_hw_targets] 0]

# Program the Device
current_hw_device [lindex [get_hw_devices] 1]
set_property PROGRAM.FILE {./my_file.bit} [lindex [get_hw_devices] 1] 
program_hw_devices [lindex [get_hw_devices] 1]
refresh_hw_device [lindex [get_hw_devices] 1]

Store these in "my_scipt.tcl", and change my_file.bit to the bitfile name in use. Then program the board by running the command:

vivado -mode batch -source my_script.tcl
Personlige verktøy