The following assumes that your shell is bash. The syntax may vary slightly if you use a different shell. (Run "echo $0" to determine your current shell.)
Setting environment variables for Xinu:
1. Edit .bashrc in your home directory by adding /p/xinu/bin to your path:
export PATH=${PATH}:/p/xinu/bin
2. Run source .bashrc (or its equivalent) to make the change take effect.
Accessing and untarring Xinu tarball source files:
In your home directory, you will now have a directory called xinu-spring2013-x86. The subdirectories under this directory contain source code, header files, configuration files, and Makefile for compiling XINU.
cd xinu-spring2013-x86/compile makeThis creates an executable file called xinu.
The backend machines are shared resources. When a backend machine is grabbed by a student, it is dedicated for use by that student to run his/her version of XINU. To see which backends are available for booting XINU, type:
cs-statusThis will show you who is using each backend and how long they have been using it. As with all hardware, sometimes they fail and may become unavailable until repaired by our technical staff. See XINU Backend Status for the list of machines that are known to be working within the last 24 hours.
To boot your copy of XINU on a backend, connect to a back-end by issuing the command:
cs-console [xinu1__]With no arguments cs-console will connect you to the first available backend (including broken ones). For best results, you should specify a backend by name (xinu101 through xinu147).
To load your copy of XINU onto the backend:
(control-@) OR (control-spacebar) //esc to local command-mode (command-mode) d //download command file: xinu //tell it to download 'xinu' (this example assumes that you are in the xinu-spring2013-x86/compile directory) (control-@) OR (control-spacebar) //esc to local command-mode (command-mode) p //power cycle the backendAfter several seconds, XINU should boot with a "Welcome to Xinu!" message.
To disconnect and free up the backend:
(control-@) OR (control-spacebar) (command-mode) p //power cycle the backend (control-@) OR (control-spacebar) (command-mode) q //quit
NOTE:
Please do not leave a running
copy of your Xinu on a backend. This will prevent others from using that
backend.
Use of the x86 backends is limited to implementing, testing, and evaluating lab assignments of CS 354. To access the backends, you don't have to be physically present in the XINU lab but may remote login using ssh to one of the lab's frontend machines.