37
First we need to download the tar. Using wget we can get the java version of nachos. The source is : http://www.cs.ucr.edu/~jdou/cs153/nachos-153.tgz

Nachos 5.0j

Embed Size (px)

DESCRIPTION

How to compile nachos j

Citation preview

Page 1: Nachos 5.0j

First we need to download the tar.

Using wget we can get the java version of nachos.

The source is : http://www.cs.ucr.edu/~jdou/cs153/nachos-153.tgz

Page 2: Nachos 5.0j
Page 3: Nachos 5.0j
Page 4: Nachos 5.0j

Using ls look up for the tar.

Then decompress and extract the tgz

Use this command. tar zxvf nachos-153.tgz

Page 5: Nachos 5.0j
Page 6: Nachos 5.0j
Page 7: Nachos 5.0j

If you want,

move the nachos directory

to another place

Page 8: Nachos 5.0j
Page 9: Nachos 5.0j

We need to download another tar.

Use wget and download the Crosscompiler.

The source is: http://inst.eecs.berkeley.edu/~cs162/sp05/Nachos/xgcc/mips-x86.linux-xgcc.tgz

Page 10: Nachos 5.0j
Page 11: Nachos 5.0j
Page 12: Nachos 5.0j

untar the crosscompiler

tar zxvf mips-x86.linux-xgcc.tgz

Page 13: Nachos 5.0j
Page 14: Nachos 5.0j

If you want, move the crosscompiler

directoryto another place

Page 15: Nachos 5.0j
Page 16: Nachos 5.0j

Edit you .bashrc and add the path of the crosscompiler

and the nachos/bin

Page 17: Nachos 5.0j
Page 18: Nachos 5.0j
Page 19: Nachos 5.0j

Move to the nachos directory

Once there, you need to edit your Makefile

Page 20: Nachos 5.0j
Page 21: Nachos 5.0j

Find the “test” line

And remove the g of gmake

Page 22: Nachos 5.0j
Page 23: Nachos 5.0j

Move to the Proj0 directory

it is supposed to contain 2 files

make and nachos.conf

Use the command make to compile the project

Page 24: Nachos 5.0j
Page 25: Nachos 5.0j
Page 26: Nachos 5.0j

If it was successful

A new directory called nachos should

appear

Page 27: Nachos 5.0j
Page 28: Nachos 5.0j

That's all, now just run

nachos

Page 29: Nachos 5.0j
Page 30: Nachos 5.0j

By the way in this version there's no Project 4 ( Distributed Systems )

You need download another tar and steal the Project 4 directory

Use this tar:http://www-

inst.eccs.berkeley.edu/~cs162/sp10/Nachos/nachos-java.tar.gz

Page 31: Nachos 5.0j
Page 32: Nachos 5.0j
Page 33: Nachos 5.0j

Untar

Tar zxvf nachos-java.tar.gz

Page 34: Nachos 5.0j
Page 35: Nachos 5.0j
Page 36: Nachos 5.0j

And copy the Project4 directory

that's all

Page 37: Nachos 5.0j