A repo to setup a working environment for experimentation
The code provided as part of this repository is ONLY for learning purposes!
- Create a code space (reuse if already created):
code
->codespaces
->+
button!- Wait for codespaces to initialize fully (might take 2-3 minutes)
- You should see a working vscode code environment
- Don't worry about the dependencies. Toolchains, headers, build-essentials, QEMU environment setup everything is setup for you
:)
- Compile the bare-metal kernel for
Raspberry Pi-3b
for a particular assignment/lab-exercise:- Create a new folder e.g.
cd sample-assignment
- Create necessary files and copy over the source code from the files attached in the course's assignment/lecture sections
- Once all the files are copied, your directory structure should contain -
- Source -
.c
/.S
files - Headers -
.h
files - Makefile -
Makefile
- Linker Script
linker.ld
- Source -
- Run
make
to compile the kernel (You should seekernel8.img
file being generated)
- Create a new folder e.g.
- Run the generated image on QEMU
qemu-system-aarch64 -M raspi3b -kernel kernel8.img -serial null -serial stdio
Ctrl + c
to quit QEMU
Copyright © 2024 inpyjama.com. All Rights Reserved.