User Tools

Site Tools


build_your_own_firmware

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:

john@doe:~/shc$ cd smarthomatic/firmware/shc_basestation/
john@doe:~/shc/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
john@doe:~/shc/smarthomatic/firmware/shc_basestation$

The resulting files are stores in the bin subdirectory from where you started the make command.

build_your_own_firmware.txt · Last modified: 2013/10/05 10:37 by breaker27