LED Cube/Building From Source: Unterschied zwischen den Versionen

Aus Wiki CCC Göttingen
Wechseln zu: Navigation, Suche
Zeile 24: Zeile 24:
 
  make fuse
 
  make fuse
 
  make flash
 
  make flash
 +
 +
==Building the Bootloader Application==
 +
The Windows app is already prebuilt in the git repository. The bootloader is bootloadHID, so please inform yourself about how to do this for Windows.
 +
 +
For Linux, the command line application is included in <code>bootloader/commandline/</code>
 +
 +
===Requirements===
 +
You will need libusb with headers.
 +
 +
===Building===
 +
cd cube-3/bootloader/commandline
 +
make

Version vom 14. April 2012, 15:55 Uhr

Getting the Sources

git clone http://www.0x53a.de/git/cube-3

Building the Bootloader

(Notice: You do not need this step if you have a preflashed cube, only if you want to modify the bootloader.)

Requirements

You will need

  • gmake
  • avr-libc, avr-binutils, avr-gcc
  • avrdude
  • an ISP- or JTAG-Programmer like AVR ISP mkII, usbasp, or any (avrdude-compatible, if you want to use the Makefile) other.

Building

The bootloader is in the directory bootloader/firmware/. It can be built with

cd cube-3/bootloader/firmware/
make

Flashing

To flash it, modify the bootloader/firmware/Makefile:

AVRDUDE = avrdude -P usb -c avrispmkii -p m8 -p $(DEVICE)

to match your programmer. This is the line for AVR ISP mkII. If you have a programmer, you probably know how to do this, so I won't get into it.

Then apply fuse settings and flash:

make fuse
make flash

Building the Bootloader Application

The Windows app is already prebuilt in the git repository. The bootloader is bootloadHID, so please inform yourself about how to do this for Windows.

For Linux, the command line application is included in bootloader/commandline/

Requirements

You will need libusb with headers.

Building

cd cube-3/bootloader/commandline
make