Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kenbell/tamago-example-pi2
Example for Tamago bare-metal Go on Raspberry Pi 2b
https://github.com/kenbell/tamago-example-pi2
raspberry-pi tamago
Last synced: about 2 months ago
JSON representation
Example for Tamago bare-metal Go on Raspberry Pi 2b
- Host: GitHub
- URL: https://github.com/kenbell/tamago-example-pi2
- Owner: kenbell
- Created: 2020-08-01T17:33:03.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-09-25T03:14:09.000Z (over 4 years ago)
- Last Synced: 2024-10-13T08:13:21.652Z (3 months ago)
- Topics: raspberry-pi, tamago
- Language: Go
- Homepage:
- Size: 6.84 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tamago Example for Pi 2b
This is an example 'hello world' type application that runs on the Raspberry Pi 2b. The example does some basic validation of RAM, RNG, watchdog and LEDs. 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
```sh
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-2.bin` (the example)