1 Although our development environment is primarily geared to Linux, it
2 is possible to develop and test on Windows, using Cygwin. To do so,
3 do the following, adapting it to your local environment.
5 To develop on windows, you will install:
7 - a specific version of binutils (targetting i386-elf)
8 - a specific version of gcc (targetting i386-elf)
9 - a specific version of nasm, patched for VT and SVM instructions
10 - the as86, bcc, and ld86 tools from Dev86 (these are needed to build
11 the bioses and other vm boot package components)
14 To start, install cygwin (see cygwin.org). We have done a complete
15 installation ("all" -> "install") in our environment, and would
20 Check out vmm-dev from CVS, or unpack a copy from a tarball.
21 In the following, we assume /home/pdinda/Codes/vmm-dev
22 is the checked-out directory
24 export DEVROOT=/home/pdinda/Codes/vmm-dev
25 mkdir $DEVROOT/devtools
26 export LOCATION=$DEVROOT/devtools
28 Now build and install binutils into $LOCATION:
31 tar xfz binutils-2.16.91.0.7.tar.gz
32 cd binutils-2.16.91.0.7
33 ./configure --prefix=$LOCATION/i386 --target=i386-elf --disable-nls
37 Now build and install gcc:
40 tar xfz gcc-3.4.6.tar.gz
41 export PATH=$LOCATION/i386/bin:$PATH
43 ./configure --prefix=$LOCATION/i386 --target=i386-elf --disable-nls --enable-languages=c,c++ --without-headers
47 Now build and install the patched nasm:
50 tar xfz nasm-0.98.39.tar.gz
53 patch < ../nasm-install.patch
54 ./configure --prefix=$LOCATION
58 install bcc and other components of dev86:
61 tar xvf Dev86src-0.16.17.tar.gz
65 cp as/as86.exe bcc/bcc.exe bcc/bcc-cc1.exe cpp/bcc-cpp.exe ld/ld86.exe $LOCATION/bin
69 cd $DEVROOT/vmm-hack1/build
70 export PATH=$PATH:$LOCATION/bin
74 This should succeed, leaving you with a vmm.img file.