Friday, March 2, 2012

pintos init

The following post is for those looking to setup a working environment to start work on pintos project. I am documenting ways to overcome some difficulties at start, as my hard-disk is reporting "crash imminent" and I may need to do this again later.


Started working on a new hobby project pintos last weekend.
The intro can be found here: http://www.scs.stanford.edu/10wi-cs140/pintos/pintos.html.
I started with setting up the environment by following steps given here: http://www.scs.stanford.edu/10wi-cs140/pintos/pintos_12.html#SEC166
While I was breezing past the first 3 points (bochs installed, setting path to add gdbmacros,src/utils), I hung up on the 4th i.e. Compile the remaining Pintos utilities by typing make in src/utils. The problem when I invoked make is that make file generates commands like 
$gcc -lm squish-pty.c
which resulted into error with my version of gcc, as -lm . So, had to ignore makefile, and ran those commands individually:
$gcc squish-pty.c -o squish-pty -lm
then, copied each generated executable into PATH directory.


A second problem that was lurking was, bochs didn't install correctly and would crash, when running the pintos command. Downloading a prepatched version of bochs from http://cit.dixie.edu/cs/3400/pintos-install.php, helped.


In the next post, I will give the git url for this project, and provide new ideas and materials to learn from to complete the project.