mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 21:48:28 -04:00
build: add instructions on how to upload to Linux boards
This commit is contained in:
parent
e68a3e2687
commit
c03aae947e
18
BUILD.md
18
BUILD.md
@ -68,15 +68,25 @@ list some basic and more used commands as example.
|
|||||||
* **Upload or install**
|
* **Upload or install**
|
||||||
|
|
||||||
Build commands have a `--upload` option in order to upload the binary built
|
Build commands have a `--upload` option in order to upload the binary built
|
||||||
to a connected board. This option is supported by Pixhawk. The command below
|
to a connected board. This option is supported by Pixhawk and Linux-based boards
|
||||||
uses the `--targets` option that is explained in the next item.
|
The command below uses the `--targets` option that is explained in the next item.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
./waf --targets bin/arducopter --upload
|
./waf --targets bin/arducopter --upload
|
||||||
```
|
```
|
||||||
|
|
||||||
Currently Linux boards don't support the upload option, but there's an
|
On Linux you need to first configure the IP of the board you are going to upload
|
||||||
install command, which will install to a certain directory. This can be
|
to. This is done on configure phase with:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
./waf configure --board <board> --rsync-dest <destination>
|
||||||
|
```
|
||||||
|
|
||||||
|
What this does is to install to a temporary location and calling
|
||||||
|
`sync <temp_install_location>/ <destination>`
|
||||||
|
|
||||||
|
On Linux boards there's also an install command, which will install to a certain
|
||||||
|
directory, just like the temporary install above does. This can be
|
||||||
used by distributors to create .deb, .rpm or other package types:
|
used by distributors to create .deb, .rpm or other package types:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
Loading…
Reference in New Issue
Block a user