Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


fixed CLGI window
[palacios.git] / SETUP.WINDOWS
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.
4
5 To develop on windows, you will install:
6
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)
12
13
14 To start, install cygwin (see cygwin.org).  We have done a complete
15 installation ("all" -> "install") in our environment, and would
16 recommend it. 
17
18 Run a bash shell.
19
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
23
24 export DEVROOT=/home/pdinda/Codes/vmm-dev
25 mkdir $DEVROOT/devtools
26 export LOCATION=$DEVROOT/devtools
27
28 Now build and install binutils into $LOCATION:
29
30 cd $DEVROOT/utils
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
34 make -j 4 all
35 make install
36
37 Now build and install gcc:
38
39 cd $DEVROOT/utils
40 tar xfz gcc-3.4.6.tar.gz
41 export PATH=$LOCATION/i386/bin:$PATH
42 cd gcc-3.4.6
43 ./configure --prefix=$LOCATION/i386 --target=i386-elf --disable-nls --enable-languages=c,c++ --without-headers
44 make -j 4 all-gcc
45 make install-gcc
46
47 Now build and install the patched nasm:
48
49 cd $DEVROOT/utils
50 tar xfz nasm-0.98.39.tar.gz
51 cd nasm-0.98.39
52 patch < ../vmx.patch 
53 patch < ../nasm-install.patch
54 ./configure --prefix=$LOCATION
55 make
56 make install
57
58 install bcc and other components of dev86:
59
60 cd $DEVROOT/utils
61 tar xvf Dev86src-0.16.17.tar.gz
62 cd dev86-0.16.17
63 make as86 ld86 bcc86
64 make -C cpp
65 cp as/as86.exe bcc/bcc.exe bcc/bcc-cc1.exe cpp/bcc-cpp.exe ld/ld86.exe $LOCATION/bin
66
67 Now test:
68
69 cd $DEVROOT/vmm-hack1/build
70 export PATH=$PATH:$LOCATION/bin
71
72 make world
73
74 This should succeed, leaving you with a vmm.img file.