Tutorial: Writing a “bare metal” operating system for Raspberry Pi 4

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • rpi4-osdev

    Tutorial: Writing a "bare metal" operating system for Raspberry Pi 4

  • I forgot the RPi didn't use u-boot, but they use an equivalent.

    https://github.com/isometimes/rpi4-osdev/tree/master/part2-b...

    https://raspberrypi.stackexchange.com/questions/10489/how-do...

    You don't handle the CPU from the reset vector like you would in a microcontroller or system firmware environment. There is an entire loader stack that finds a boot device to read a kernel image from that exists under you.

    That's not to take away from this series at all, it's just the parent comment was asking about how it was so easy to get into a kernel image written in C on an SD card without any apparent SD card or FS logic.

  • circle

    A C++ bare metal environment for Raspberry Pi with USB (32 and 64 bit) (by rsta2)

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • rust-raspberrypi-OS-tutorials

    :books: Learn to write an embedded OS in Rust :crab:

  • Is this just an alternative UI for GitHub but without the files? Am I missing something obvious? I'm confused.

    Actual github repo for anyone looking for the files: https://github.com/rust-embedded/rust-raspberrypi-OS-tutoria...

  • Is this just an alternative UI for GitHub but without the files? Am I missing something obvious? I'm confused.

    Actual github repo for anyone looking for the files: https://github.com/rust-embedded/rust-raspberrypi-OS-tutoria...

  • usbboot

    Raspberry Pi USB booting code, moved from tools repository

  • On the Pi Zero and Pi CM (maybe also others) you don't even need an SD card to boot it. You can boot it via rpi-boot https://github.com/raspberrypi/usbboot

  • linux

    Linux kernel source tree

  • Yeah, the bootloader is responsible for the hardware stuff up to this point. It doesn't take that much more assembly code to bootstrap C in the Linux kernel on x86: https://github.com/torvalds/linux/blob/master/arch/x86/boot/...

    There are a bunch of other headers in that file, but the "start_of_setup:" label is what's invoked by the bootloader, and "calll main" transitions to C. So 32 lines of code, by my count.

  • duckduckgo-locales

    Translation files for <a href="https://duckduckgo.com"> </a>

  • Yeah, C is really easy to interface with assembly language.

    Doesn't necessarily have to involve assembly!

    https://duckduckgo.com/?q=c+interpreter

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • tools

  • cs140e-20win

    cs140e course materials.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts