All Projects → cirosantilli → raspberry-pi-bare-metal-blinker

cirosantilli / raspberry-pi-bare-metal-blinker

Licence: other
Run one command, get a bare metal hello world blinker image that blinks the OK LED. Tested on Ubuntu 16.04 host, Raspberry Pi 2.

Programming Languages

shell
77523 projects
c
50402 projects - #5 most used programming language
assembly
5116 projects

Raspberry Pi Bare Metal Blinker

Run one command, get a bare metal hello world blinker image that blinks the OK LED. Tested on Ubuntu 16.04 host, Raspberry Pi 2. Usage:

  1. Insert SD card on host

  2. Make the image:

    ./make.sh /dev/mmcblk0 p1
    

    Where:

    • /dev/mmcblk0 is the device of the SD card
    • p1 is the first partition of the device (/dev/mmcblk0p1)
  3. Inset SD card on PI

  4. Turn power off and on

demo.gif

There are many comprehensive bare metal resources out there, but it was hard to get the first example working, because you have to download some random blobs and put them together.

Making the first hello world easy is the only goal of this tutorial. The blinker code was adapted from: https://github.com/dwelch67/raspberrypi which was the most comprehensive Raspberry Pi bare metal resource available at the time.

Also explained at:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].