[ << ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This chapter explains how to install a Pintos development environment on your own machine. If you are using a Pintos development environment that has been set up by someone else, you do not need to read this chapter or follow these instructions.
The Pintos development environment is targeted at Unix-like systems. It has been most extensively tested on Linux. We do not support running Pintos on Solaris or architectures other that x86/x86-64. It is not designed to install under any form of Windows.
Prerequisites for installing a Pintos development environment include the following, on top of standard Unix utilities:
gcc
;
otherwise, an 80x86 cross-compiler should be available as
i386-elf-gcc
. A sample set of commands for installing GCC
3.3.6 as a cross-compiler are included in src/misc/gcc-3.3.6-cross-howto.
addr2line
, ar
, ld
,
objcopy
, and ranlib
. If the host machine is not an
80x86, versions targeting 80x86 should be available with an
i386-elf-prefix.
i386-elf-gdb.
Once these prerequisites are available, follow these instructions to install Pintos:
PATH
as described in section 1.1 Getting Started. Then use a
text editor to edit the installed copy of pintos-gdb, changing the definition of
GDBMACROS
to point to where you installed
gdb-macros. Test the installation by running
pintos-gdb
without any arguments. If it does not complain
about missing gdb-macros, it is installed correctly.
make
in
src/utils. Bochs needs
squish-pty, VMware Player needs
squish-unix. If they don't compile on your recent Linux distribution, comment out
#include <stropts.h>
in both
squish-pty.cand
squish-unix.c, and comment out lines 288-293 in
squish-pty.c.
my (@cmd) = ('qemu');
in src/utils/pintos::sub qemu
to point to your qemu binary (for example, qemu-system-x86_64
), or simply
create a qemu -> qemu-system-x86_64
symbolic link.
[ << ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |