Install all the things!
Linux
Ubuntu 16/14
- Run
cd ~/
to change to your home directory - Run
sudo apt install wget make
to install wget and GNU Make - Run
wget [LINK]
to download the install script - Run
./install.mk
to install the compiler - Run
sudo apt install nasm
to install the assembler
The compiler (none-eabi-gcc
) and assembler (nasm
) should now be
installed.
You can uninstall the compiler and assembler with
sudo install.sh remove
sudo apt remove nasm
Other Linux distributions
- Run
cd ~/
to change to your home directory - Run
sudo apt install wget make
to install wget and GNU Make - Run
wget https://raw.githubusercontent.com/jsren/os-workshop-ex1/files/install.mk
to download the cross-compiler script - Run
chmod +x install.mk
to allow the Makefile to execute - Run
install.mk
to build and install the compiler - Read through workshop website, check Facebook etc. until complete (~30 mins)
- Run
sudo apt install nasm
to install the assembler
(If you’re interested in what’s happening, check out this page.)
The compiler (none-eabi-gcc
) and assembler (nasm
) should now be
installed.
You can uninstall the compiler and assembler with
install.mk remove
sudo apt remove nasm
Windows
Windows 10
Windows 10 supports native Linux binaries via the Windows Subsytem for Linux (WSL).
- Search for
Windows Powershell
in the start menu, right-click and run as administrator - Run
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
- Go to https://www.microsoft.com/store/productId/9NBLGGH4MSV6 or open the Microsoft Store and search for and install ‘Ubuntu’.
With this installed, you should be able to run bash
from the command line.
- Run
bash
- Change to a suitable directory (or
cd ~/
to your home directory) - Run
sudo apt install wget make
to install wget and GNU Make - Run
wget [LINK]
to download the install script - Run
./install.mk
to install the compiler - Run
sudo apt install nasm
to install the assembler
The compiler (none-eabi-gcc
) and assembler (nasm
) should now be
installed.
You can uninstall the compiler and assembler with
sudo install.sh remove
sudo apt remove nasm
Other Windows Versions
In order to run the compiler, you will require a Linux shell. The easiest to set up is Cygwin.
To install Cygwin:
- Visit https://www.cygwin.com/install.html and download either the 64-bit or 32-bit setup
- Run the setup installer and proceed with setup
- Make sure “Install from Internet” is selected, click Next
- Select an installation directory, click Next
- Set a valid location for the package directory, e.g. your Downloads folder.
- Configure your network access (defaults are normally fine), click Next
- Select any item from the box and click Next
- The “Select Packages” page should now be visible
- Search for “nasm”
- Expand “Devel” in the tree
- Click on the “skip” label next to the entry for nasm until it changes to a version number (e.g.
2.10.07
) - Search for “wget”
- Expand “Web” in the tree
- Click on the “skip” label next to the entry for wget until it changes to a version number (e.g.
1.19.1
) - Search for “make”
- Expand “Devel” in the tree
- Click on the label next to the entry for make until it changes to a version number (e.g.
4.2.1
) - Click Next and Next again to complete installation
With this installed, you should be able to run bash
from the command line.
- Run
bash
- Change to a suitable directory (or
cd ~/
to your home directory) - Run
wget [LINK]
to download the install script - Run
./install.mk
to install the compiler
The compiler (none-eabi-gcc
) and assembler (nasm
) should now be
installed.
OSx
- Run
brew install qemu
to installqemu