Skip to content

kenbell/tamago-example-pizero

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tamago Example for Pi Zero

This is an example 'hello world' type application that runs on the Raspberry Pi Zero. The example just flashes the on-board activity LED. Connect a UART cable to see diagnostic output.

Prerequisites

To use this example, you need:

  • A FAT-formatted micro-SD card with the Raspberry Pi bootloader present (bootcode.bin, start.elf, fixup.dat)

Build & install example

export TAMAGO=~/work/tamago-go/bin/go
export CROSS_COMPILE=arm-linux-gnueabi-
export INSTALLDIR=/mnt/sdcard
make install

The install target will perform these steps:

  1. Compile the example using TAMAGO Go compiler
  2. Copy these files to the SD card:
    • config.txt (the Pi config to load the example as a 'kernel')
    • example-pi-zero.bin (the example)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages