Atomix-RISCV64 is an operating system built from scratch targeting the RISC-V 64-bit architecture. The project focuses on learning, implementing fundamental OS concepts, and enabling multi-hart support in a bare-metal environment. It uses the RISC-V GNU toolchain for development and QEMU for emulation on macOS.
This guide explains how to install the RISC-V GNU toolchain on macOS using Homebrew, allowing you to develop and run RISC-V programs in an emulated environment.
Before starting, ensure that you have the following:
- macOS system with command line tools installed.
- Homebrew package manager installed.
Open the Terminal and paste the following command:
git clone https://github.com/Aks132/RISC-V.git
cd RISC-V
chmod +x mac-setup.sh
sh mac-setup.sh
Open the Terminal and paste the following command:
git clone https://github.com/Aks132/RISC-V.git
cd RISC-V
chmod +x ubuntu-setup.sh
sh ubuntu-setup.sh
You can now verify that the toolchain is properly installed and accessible by running the following commands:
riscv64-unknown-elf-gcc --version
riscv64-unknown-elf-as --version
If the toolchain is set up correctly, you should see version information for both commands.
- The RISC-V Instruction Set Manual Volume I: User-Level ISA
- The RISC-V Instruction Set Manual Volume II: Privileged Architecture.
- OpenSBI Deep Dive
- xv6: a simple, Unix-like teaching operating system
- Core Locking
- Memory Mapping
This project is licensed under the MIT License. See the LICENSE file for more information.