GithubHelp home page GithubHelp logo

rusty-pi4's Introduction

rusty-pi4

This repo contains a working version of the blinking LED 32-bit baremetal code inspired in the video Low Level Learning's BAREMETAL RUST Runs on EVERYTHING that can be run in the RPi 4.

I couldn't find a solid guide about it when doubts kicked in while I was trying to do it myself, so here I leave a guide about it that may clarify the path to others.

Main differences between the implementation in RPi 3 and RPi 4.

The processor

RPi 3 uses a Broadcom BCM2837 ARM Cortex-A53 and the RPi 4 uses a Broadcom BCM2711 ARM Cortex-A72. Both can run ARMv7 code. The main difference is the peripherals' starting address: For RPi 4, we use the 32-bit 'Legacy master addresses' starting at 0x0_FEnn_nnnn because 'Low Peripheral mode' is enabled by default for the Pi. See here, in the 'Address Map' section.

The boot files

In the RPi 4 you have to use the files that have the '4' suffix: fixup4.dat and start4.elf. You don't need bootcode.bin because that code is now stored in the onboard EEPROM. See here.

The kernel name

The kernel is expected to be called kernel7l.img (notice the 'l'). See here.

rusty-pi4's People

Contributors

bryancalisto avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.