New repo setup

This commit is contained in:
2024-05-28 14:26:46 -05:00
commit 9ee197f57b
97 changed files with 11047 additions and 0 deletions

22
README.md Normal file
View File

@@ -0,0 +1,22 @@
# Kernel
## Introduction
## Building
You will need: GCC cross compiler targeting aarch64. See [Arm GNU Toolchain Downloads](https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads)
or consult your package manager for help obtaining the correct compiler.
To build the kernel, simply run `make` in this directory. `make` will produce an ELF binary, `kernel.elf`,
as well as a flat binary, `kernel8.img`, for running on the Raspberry Pi.
## Running
This kernel has so far been tested on an emulator, [QEMU](https://www.qemu.org/), as well as the Raspberry Pi 3B.
To run this kernel on QEMU, run:
`qemu-system-aarch64 -M raspi3b -serial stdio -kernel kernel8.img`
To run this kernel on the Raspberry Pi, place `kernel8.img` in the boot partition of your Pi's SD card.
On the Raspberry Pi 3B, you may also need to add the following like to `confix.txt`:
`arm_64bit=1`