Sync inav to Gitea
Make sure docs are updated / settings_md (push) Canceled after 0s
Build firmware / test (push) Canceled after 0s
Build firmware / build-SITL-Windows (push) Canceled after 0s
Build firmware / build-SITL-Mac (push) Canceled after 0s
Build firmware / build-SITL-Linux (push) Canceled after 0s
Build firmware / build-SITL-Linux-arm64 (push) Canceled after 0s
Build firmware / upload-artifacts (push) Canceled after 0s
Build firmware / build-single-target (push) Canceled after 0s
Build firmware / build (9) (push) Canceled after 0s
Build firmware / build (8) (push) Canceled after 0s
Build firmware / build (7) (push) Canceled after 0s
Build firmware / build (6) (push) Canceled after 0s
Build firmware / build (5) (push) Canceled after 0s
Build firmware / build (4) (push) Canceled after 0s
Build firmware / build (3) (push) Canceled after 0s
Build firmware / build (2) (push) Canceled after 0s
Build firmware / build (14) (push) Canceled after 0s
Build firmware / build (13) (push) Canceled after 0s
Build firmware / build (12) (push) Canceled after 0s
Build firmware / build (11) (push) Canceled after 0s
Build firmware / build (10) (push) Canceled after 0s
Build firmware / build (1) (push) Canceled after 0s
Build firmware / build (0) (push) Canceled after 0s
Build firmware / detect (push) Canceled after 0s
Build pre-release / build (push) Canceled after 0s
Build pre-release / Release (push) Canceled after 0s
Make sure docs are updated / settings_md (push) Canceled after 0s
Build firmware / test (push) Canceled after 0s
Build firmware / build-SITL-Windows (push) Canceled after 0s
Build firmware / build-SITL-Mac (push) Canceled after 0s
Build firmware / build-SITL-Linux (push) Canceled after 0s
Build firmware / build-SITL-Linux-arm64 (push) Canceled after 0s
Build firmware / upload-artifacts (push) Canceled after 0s
Build firmware / build-single-target (push) Canceled after 0s
Build firmware / build (9) (push) Canceled after 0s
Build firmware / build (8) (push) Canceled after 0s
Build firmware / build (7) (push) Canceled after 0s
Build firmware / build (6) (push) Canceled after 0s
Build firmware / build (5) (push) Canceled after 0s
Build firmware / build (4) (push) Canceled after 0s
Build firmware / build (3) (push) Canceled after 0s
Build firmware / build (2) (push) Canceled after 0s
Build firmware / build (14) (push) Canceled after 0s
Build firmware / build (13) (push) Canceled after 0s
Build firmware / build (12) (push) Canceled after 0s
Build firmware / build (11) (push) Canceled after 0s
Build firmware / build (10) (push) Canceled after 0s
Build firmware / build (1) (push) Canceled after 0s
Build firmware / build (0) (push) Canceled after 0s
Build firmware / detect (push) Canceled after 0s
Build pre-release / build (push) Canceled after 0s
Build pre-release / Release (push) Canceled after 0s
This commit is contained in:
@@ -0,0 +1,108 @@
|
||||
# Building in windows light [Deprecated]
|
||||
|
||||
> **Building with this method is deprecated and not advised. All Windows users should be using
|
||||
Linux Subsystem (WSL) instead**
|
||||
|
||||
no cygwin and no path changes
|
||||
|
||||
## Install Git for windows
|
||||
download https://github.com/git-for-windows/git/releases/download/v2.10.1.windows.1/Git-2.10.1-32-bit.exe
|
||||
|
||||
Recommended install location is C:\Git (no spaces or special characters in path)
|
||||
|
||||
Follow images as not all are at default settings.
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
## Install toolset scripts
|
||||
download https://www.dropbox.com/s/hhlr16h657y4l5u/devtools.zip?dl=0
|
||||
|
||||
extract it into C:\ it creates devtools folder
|
||||
|
||||
## Install latest arm toolchain
|
||||
download https://gcc.gnu.org/mirrors.html
|
||||
|
||||
extract it into C:\devtools\gcc-arm-none-eabi-... (folder already there)
|
||||
|
||||
## Install Ruby
|
||||
|
||||
Install the latest Ruby version using [Ruby Installer](https://rubyinstaller.org).
|
||||
|
||||
## Test
|
||||
Run C:\devtools\shF4.cmd
|
||||
|
||||
If everything went according the manual you should be in mingw console window. (if not we need to update this manual)
|
||||
|
||||
Try command "arm-none-eabi-gcc --version" and output should be like in screenshot. (tab complete works here)
|
||||
|
||||

|
||||
|
||||
Note1: Advanced users can edit shF4.cmd for paths if they don't want to use defaults. You might want to change TOOLS_DIR and PATH_DIRS variables.
|
||||
|
||||
Note2: You can copy shF4.cmd anywhere you want and run it from there. It will open console window in that folder.
|
||||
|
||||
Note3: Included example batch-scripts (make_REVO.bat) that you can use to build target just by double clicking it.
|
||||
|
||||
## Checkout and compile INAV
|
||||
|
||||
Head over to the INAV Github page and grab the URL of the GIT Repository: "https://github.com/iNavFlight/inav"
|
||||
|
||||
Run shF4.cmd and use the git commandline to checkout the repository:
|
||||
|
||||
```bash
|
||||
git clone https://github.com/iNavFlight/inav
|
||||
```
|
||||

|
||||
|
||||

|
||||
|
||||
To compile your INAV binaries, enter the INAV directory and build the project using the make command. You can append TARGET=[HARDWARE] if you want to build anything other than the default SPRACINGF3 target:
|
||||
|
||||
```bash
|
||||
cd inav
|
||||
make TARGET=SPRACINGF3
|
||||
```
|
||||
|
||||

|
||||
|
||||
within few moments you should have your binary ready:
|
||||
|
||||
```bash
|
||||
(...)
|
||||
arm-none-eabi-size ./obj/main/inav_SPRACINGF3.elf
|
||||
text data bss dec hex filename
|
||||
127468 916 16932 145316 237a4 ./obj/main/inav_SPRACINGF3.elf
|
||||
arm-none-eabi-objcopy -O ihex --set-start 0x8000000 obj/main/inav_SPRACINGF3.elf obj/inav_1.2.1_SPRACINGF3.hex
|
||||
```
|
||||
|
||||
You can use the INAV-Configurator to flash the ```obj/inav_1.2.1_SPRACINGF3.hex``` file.
|
||||
|
||||
## Updating and rebuilding
|
||||
|
||||
Navigate to the local inavflight repository and use the following steps to pull the latest changes and rebuild your version of inavflight:
|
||||
|
||||
```bash
|
||||
cd inav
|
||||
git reset --hard
|
||||
git pull
|
||||
make clean TARGET=SPRACINGF3
|
||||
make
|
||||
```
|
||||
Reference in New Issue
Block a user