2017-07-27 06:01:54 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
# Copyright (C) 2017 by Andy Uribe CA6JAU
|
|
|
|
|
|
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
|
# (at your option) any later version.
|
|
|
|
|
#
|
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
|
#
|
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
|
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
|
2017-07-28 19:57:04 +02:00
|
|
|
cd ~
|
2017-07-27 06:01:54 +02:00
|
|
|
|
2017-07-28 19:57:04 +02:00
|
|
|
# Install the necessary software tools
|
|
|
|
|
sudo apt-get update
|
|
|
|
|
sudo apt-get install gcc-arm-none-eabi gdb-arm-none-eabi libstdc++-arm-none-eabi-newlib libnewlib-arm-none-eabi
|
2017-07-27 06:01:54 +02:00
|
|
|
|
2017-07-28 19:57:04 +02:00
|
|
|
# Install stm32flash
|
|
|
|
|
cd ~
|
|
|
|
|
git clone https://git.code.sf.net/p/stm32flash/code stm32flash
|
|
|
|
|
cd stm32flash
|
|
|
|
|
make
|
|
|
|
|
sudo make install
|
2017-07-27 06:01:54 +02:00
|
|
|
|
2017-07-28 19:57:04 +02:00
|
|
|
# Download the firmware sources
|
|
|
|
|
cd ~
|
|
|
|
|
git clone https://github.com/juribeparada/MMDVM_HS
|
|
|
|
|
cd MMDVM_HS/
|
|
|
|
|
git clone https://github.com/juribeparada/STM32F10X_Lib
|
2017-07-30 00:43:18 +02:00
|
|
|
|