https://github.com/mauri870/baking-pi
My code for Baking Pi - Operating Systems Development online course by Cambridge University (Raspberry Pi 3 update)
https://github.com/mauri870/baking-pi
arm assembly baking-pi cambridge-university os-development raspberry-pi-3
Last synced: about 1 month ago
JSON representation
My code for Baking Pi - Operating Systems Development online course by Cambridge University (Raspberry Pi 3 update)
- Host: GitHub
- URL: https://github.com/mauri870/baking-pi
- Owner: mauri870
- Created: 2017-12-10T16:37:23.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-07-19T12:45:06.000Z (almost 2 years ago)
- Last Synced: 2025-03-27T01:11:14.347Z (about 2 months ago)
- Topics: arm, assembly, baking-pi, cambridge-university, os-development, raspberry-pi-3
- Language: Assembly
- Homepage:
- Size: 64.5 KB
- Stars: 26
- Watchers: 3
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Baking Pi - Operating Systems Development
> Warning: the course target Raspberry Pi 1 and is not compatible with the Raspberry Pi 2/3. The code here is modified to work in Raspberry Pi 3
I'll keep this repository with my code for the online course `Baking Pi - Operating Systems Development`.
The code here is a modified version because I don't have a Pi 1 to test the code, so I've made some modifications to be able to run this on Raspberry Pi 3 Model B. You can view more info about the course on the [Cambridge University website](https://www.cl.cam.ac.uk/projects/raspberrypi/tutorials/os/).
## Requirements
Since the assembly code in this repo is targeting Raspberry Pi 3, you will need a Pi 3 for testing the actual code, but you don't need a Pi 3 to compile, you can use the gcc arm eabi toolchain.
You can install the ARM gcc with:
```bash
yaourt -S gcc-arm-none-eabi-bin
# or
apt-get install gcc-arm-none-eabi
```## Compiling and running on Raspberry Pi 3
```bash
# The lesson is a subfolder in src/
LESSON=ok01 make
```> NOTE: Since there's changes in the mailbox in the newer versions of the firmware this project will no longer work so use this [commit tree](https://github.com/raspberrypi/firmware/tree/af555f618088abb5ea4eecbd4d40336356554f25) which is guaranteed to work.
Copy the generated `kernel8-32.img` to your SD card, along with the [Raspberry Pi boot files](https://github.com/raspberrypi/firmware/tree/af555f618088abb5ea4eecbd4d40336356554f25/boot) (bootloader.bin and start.elf).