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:
-
Insert SD card on host
-
Make the image:
./make.sh /dev/mmcblk0 p1
Where:
/dev/mmcblk0
is the device of the SD cardp1
is the first partition of the device (/dev/mmcblk0p1
)
-
Inset SD card on PI
-
Turn power off and on
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: