
Nachos releases
Recommand: build in docker
GitHub - YOUSIKI/Docker-Nachos: Nachos Compile & Run Environment in Docker
Build docker container use dockerfile in the repo
ARG UPSTREAM_IMAGE=i386/ubuntu:bionic
FROM ${UPSTREAM_IMAGE}
ARG DOCKER_SHELL=bash
ARG DOCKER_MIRROR
# change apt mirror
ADD scripts /scripts
ADD mirrors /mirrors
RUN /scripts/apt-mirror.sh
# install compiler
RUN apt update && \\
apt install -y ed csh gdb build-essential vim wget && \\
apt clean -y && \\
rm -rf /var/lib/apt/lists/*
# install shell
RUN /scripts/install-shell.sh
# change workspace
WORKDIR /workspace
ENTRYPOINT [ "/bin/myshell" ]
docker buildx build -t nachos --build-arg DOCKER_SHELL=zsh .
Go into docker container
docker run -v $(pwd):/workspace -it nachos
Install nachos4.0 from github
git clone <https://github.com/Universeyi/nachos-for-ubuntu.git>
Follow the steps in csdn
<aside> <img src="/icons/info-alternate_blue.svg" alt="/icons/info-alternate_blue.svg" width="40px" />
After cloning github, you should work in Nachos for Ubuntu folder
cd nachos-for-ubuntu/NachOS4.1\\ for\\ ubuntu/
</aside>
Install cross compiler and decompress it to / in container
wget <https://github.com/chengscott-archive/nachos/raw/refs/heads/master/mips-decstation.linux-xgcc.gz>
tar xvzf mips-decstation.linux-xgcc.gz -C /.
Revise Makefile after configuration inside nachos-for-ubuntu/NachOS4.1 for ubuntu/coff2noff
CC=gcc
CFLAGS= -g -m32 -O2 -DRDATA -DHAVE_CONFIG_H -I@top_dir@ # adding -m32
LD=gcc -m32 # adding -m32
MacOS
Windows wsl2
Windows using virtualbox
Nachos Chapter · Operating system concept
A Roadmap to Nachos
Nachos + assignment + github