The script ubuntu_pintos.sh installs pintos on Ubuntu 16.04 or Ubuntu 14.04 and sets up your machine to run Pintos
bash pintos_ubuntu.sh
source ~/.bashrc
-
sudo apt-get install qemu
-
Download Pintos source code from Stanford
-
tar -xzvf pintos.tar.gz
-
Open pintos/src/utils/pintos-gdb. Make the variable GDBMACROS point to pintos/src/misc/gdb-macros
i.e.
GDBMACROS=/home/....../pintos/src/misc/gdb-macros
. Note that it should point to the full path. -
Open pintos/src/utils/Makefile. Change
LDFLAGS
toLDLIBS
. -
cd pintos/src/utils make
-
Open pintos/src/threads/Make.vars and on line 7 change
bochs
toqemu
-
cd pintos/src/threads make
-
Open pintos/src/utils/pintos and make the following changes:
- Line 103: Replace
bochs
withqemu
. - Line 259: Replace
kernel.bin
with/home/.../pintos/src/threads/build/kernel.bin
. Note that we're making it point to full path of kernel.bin - Line 623: Replace
qemu
withqemu-system-x86_64
- Line 103: Replace
-
Open pintos/src/utils/Pintos.pm and make the following change:
- Line 362: Replace
loader.bin
with/home/.../pintos/src/threads/build/loader.bin
- Line 362: Replace
-
Open ~/.bashrc and add this to the last line:
export PATH=/home/.../pintos/src/utils:$PATH
-
source ~/.bashrc
-
pintos run alarm-multiple