Build XINU on Windows
First, make sure that you have all packages in the "Devel" category of Cygwin installed on your Windows machine. This will provide a UNIX-like background for performing gcc compilation and allows the use of other UNIX commands (ie.
Next, you will need to create two directories:
Then, download the GNU C Compiler. We downloaded GCC version 4.1.1 and saved it in the directory
Once these are both downloaded, navigate to their respective directories and untar the tar files.
First, navigate to the directory of the newly untarred files. For us the directory was
/usr/src/build-binutils/binutils-2.17. Once there, run the following commands:
./configure --target=mipsel --prefix=/usr/cross --disable-nls make all install
You will want to add these files to the path with the command:
NOTE: you can also add the command to your
~/.bashrc file to automatically add that directory to
PATH everytime Cygwin is started.
Again, navigate to the directory of the newly untarred files. For us the directory was
/usr/src/build-gcc/gcc-4.1.1. Once there, run the following commands:
./configure --target=mipsel --prefix=/usr/cross --disable-nls -enable-languages=c --without-headers make all-gcc install-gcc
Running on Windows
The previous setup should be sufficient for compiling and running XINU inside of a Cygwin bash shell. However, if you want to run it on regular Windows you will need to prepend the Cygwin paths to the Windows environment because in Windows XP hostname acts differently than hostname under UNIX. We solved this problem by adding
C:\cygwin\usr\cross\bin to the Windows XP environment PATH first, before any other directories. This way, hostname from the Cygwin installation will be the first occurrence of "hostname" when the XINU code tries to execute the command.
Alternatively, if you are setting up one or more frontend clients that use a Windows operating system you could use the Windows tool set to connect to the target pool or resource. This tool set was initially released in the Spring of 2008 and is entitled WinXINU.
This work is supported in part by NSF grant DUE-CCLI-0737476.