User Tools

Site Tools


build_your_own_firmware

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
build_your_own_firmware [2013/10/04 18:56] – external edit 127.0.0.1build_your_own_firmware [2013/10/05 10:36] breaker27
Line 2: Line 2:
  
 Get a copy of the project, if you haven't already. When you're running Debian (or another Linux) this will do the job: <code>git clone git://github.com/breaker27/smarthomatic</code> Get a copy of the project, if you haven't already. When you're running Debian (or another Linux) this will do the job: <code>git clone git://github.com/breaker27/smarthomatic</code>
-Go into the base station firmware directory, build the firmware 
  
-<code>pi@ninjablock ~/test $ cd smarthomatic/firmware/shc_basestation/ +Go into the subdirectory of the device you want to build (e.g. "firmware/shc_basestation/") and build the firmware: 
-pi@ninjablock ~/test/smarthomatic/firmware/shc_basestation $ make+ 
 +<code>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-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/
 [...] [...]
Line 19: Line 20:
    text    data     bss     dec     hex filename    text    data     bss     dec     hex filename
   17264      33     739   18036    4674 build/shc_basestation.elf   17264      33     739   18036    4674 build/shc_basestation.elf
-pi@ninjablock ~/test/smarthomatic/firmware/shc_basestation $+john@doe:~/shc/smarthomatic/firmware/shc_basestation$
 </code> </code>
 +
 +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