Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revisionLast revisionBoth sides next revision | ||
nootloader [2020/09/28 21:29] – yair | bootloader [2020/09/29 10:03] – yair | ||
---|---|---|---|
Line 1: | Line 1: | ||
===to compile a tiny bootloader=== | ===to compile a tiny bootloader=== | ||
+ | |||
+ | ===TLDR=== | ||
+ | on ubuntu (or wsl) | ||
+ | <code bash> | ||
+ | sudo apt-get install avr-libc gcc-avr | ||
+ | git clone git@github.com: | ||
+ | cd TinyAudioBoot | ||
+ | sh setup.sh | ||
+ | cd TinyAudioBoot | ||
+ | #build the hex | ||
+ | make | ||
+ | #flash the hex | ||
+ | make upload | ||
+ | </ | ||
+ | |||
+ | we are piggy backing on a windows successful bootloader upload to grab the right fuses everything. \\ | ||
+ | just need to adapt | ||
+ | * serial port (if changed from the windows upload sequence. | ||
+ | * full path to HEX file (TinyFlexiAudioBoot_PB0.hex) you got from the make/linux build.\\ | ||
+ | |||
+ | if you first had it running from arduino just changing the serial and hex file should have this running from cmd anywhere in your system. | ||
+ | |||
+ | < | ||
+ | #fuses burn | ||
+ | C: | ||
+ | |||
+ | #burn the bootloader | ||
+ | C: | ||
+ | </ | ||
+ | |||
+ | === why=== | ||
was asked to compile the [[https:// | was asked to compile the [[https:// | ||
- | i couldn' | + | i couldn' |
+ | yes, recreate the symbolic link for '' | ||
+ | ln -s / | ||
so decided to make an automated build system that will pull (most) needed dependencies and compile. | so decided to make an automated build system that will pull (most) needed dependencies and compile. | ||
+ | |||
+ | [[https:// | ||
the current dependencies are | the current dependencies are | ||
Line 11: | Line 46: | ||
* [[https:// | * [[https:// | ||
- | ===os support=== | + | **os support** |
for the following i used ubuntu on windows. \\ | for the following i used ubuntu on windows. \\ | ||
so get into ubuntu, TLDR: use [[https:// | so get into ubuntu, TLDR: use [[https:// | ||
Line 35: | Line 71: | ||
./ | ./ | ||
from the arduino directory to get the icons on desktop, we are not interested. | from the arduino directory to get the icons on desktop, we are not interested. | ||
+ | |||
+ | |||
===get the project=== | ===get the project=== | ||
we will clone the git for tinyaudio and get the two other submodules. | we will clone the git for tinyaudio and get the two other submodules. | ||
Line 47: | Line 85: | ||
make | make | ||
#flash the hex | #flash the hex | ||
- | make flash | + | make upload |
</ | </ | ||
the output has this flags, broken into lines. because its an automated build system it spits out a few double and empty flags.\\ | the output has this flags, broken into lines. because its an automated build system it spits out a few double and empty flags.\\ | ||
note the first Capital Letter after a '' | note the first Capital Letter after a '' | ||
+ | <hidden output/> | ||
<code bash> | <code bash> | ||
/ | / | ||
Line 93: | Line 132: | ||
</ | </ | ||
+ | </ | ||
+ |