Skip to content

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.

Notifications You must be signed in to change notification settings

cirosantilli/raspberry-pi-bare-metal-blinker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published