Below are instructions for setting up the xv6 build environment on Windows 7 (32-bit), without using Cygwin or virtual machines.
1. Install MSYS
MSYS provides several build tools ( bash , make , dd , perl , git , rm )
Download msys + 7za + wget + svn + git + mercurial + cvs-rev13.7z
Unzip anywhere, for example. ~/tools/msys/ .
2. Install the integrated tool chain
The toolchain package provides a version of gcc and binutils for creating 32-bit Windows programs such as xv6/mkfs .
Download i686-w64-mingw32-gcc-4.8.0-win32_rubenvb.7z
Unzip anywhere, for example. ~/tools/mingw32/ . Add ~/tools/mingw32/bin to PATH .
Unzip anywhere, for example. ~/tools/ia32-2012.09/
I'm not sure if this Qemu binary includes the enhanced debugging support mentioned here http://pdos.csail.mit.edu/6.828/2012/tools.html .
5. Starting bash
Double click on ~/tools/msys/msys.bat
6. Configure git and clone xv6 repository
git config --global core.autocrlf false git config --global core.eol lf git config --global core.filemode false git clone git:
7. Apply this patch to the xv6 tree for
- indicate the tools installed above.
- fix
mkfs.c , so it builds and works correctly
(fixed patch with ff2783442ea2801a4bf6c76f198f36a6e985e7dd)
8. make qemu
This will compile xv6 and run Qemu
sigjuice
source share