User Tools

Site Tools


build_your_own_firmware

This is an old revision of the document!


Build your own firmware

Get a copy of the project, if you haven't already. When you're running Debian (or another Linux) this will do the job:

git clone git://github.com/breaker27/smarthomatic

Go into the subdirectory of the device you want to build (e.g. “firmware/shc_basestation”) and build the firmware:

pi@ninjablock ~/test $ cd smarthomatic/firmware/shc_basestation/
pi@ninjablock ~/test/smarthomatic/firmware/shc_basestation $ make
avr-gcc -c -gdwarf-2 -DF_CPU=20000000UL -DUART_BAUD_RATE=19200UL -DUART_RX=1UL -Os -mmcu=atmega328 -I.  -fdata-sections -ffunction-sections -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wundef -std=c99  -Wa,-adhlns=build/
[...]
avr-objdump -h -S build/shc_basestation.elf > build/shc_basestation.lss
avr-nm -n build/shc_basestation.elf > build/shc_basestation.sym

Fuses:
  LFUSE = 0xF7
  HFUSE = 0xD1
  EFUSE = 0x07

Image size:
   text    data     bss     dec     hex filename
  17264      33     739   18036    4674 build/shc_basestation.elf
pi@ninjablock ~/test/smarthomatic/firmware/shc_basestation $
build_your_own_firmware.1380961884.txt.gz · Last modified: 2013/10/05 10:31 by breaker27