2017 Farn Wang OS
- Get ready with a 32 bit Liunx environment on Virtual Machine. Here we use ubuntu 14.04 (32bit).
- Download the Nachos package and the cross compiler package from course.
wget http://cc.ee.ntu.edu.tw/~farn/courses/OS/OS2017/projects/project.1/mips-x86.linux-xgcc.tar.gz
wgat http://cc.ee.ntu.edu.tw/~farn/courses/OS/OS2017/projects/project.1/nachos-4.0.tar.gz
- Untar file
tar –zxvf nachos-4.0.tar.gz
move cross compiler to the root
sudo mv mips-x86.linux-xgcc.tar.gz /
tar –zxvf /mips-x86.linux-xgcc.tar.gz
- Set up the dependency
sudo apt-get install csh
sudo apt-get install g++
- Build
make
Due to the dependency, it occur an error when we make
the test part. It shows that we still missing a dependency which is /usr/local/nachos
. To solve this follow steps below.
- Download this repository either
git clone
or download zip is fine2. Go tonachos
folder and move folder withsudo
cd ./NachOS-master/usr/local
sudo mv ./nachos /usr/local/
- Re-build again
Make sure go back to previous
nachos-4.0/code
folder.