Skip to content

Commit b0b83dc

Browse files
committed
Use cross for easier build
1 parent 807c671 commit b0b83dc

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

README.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,25 @@ in rust
44

55
## Quick start
66

7-
> docker pull ragnaroek/rust-raspberry:1.39.0
8-
>
9-
> ./build.sh
7+
The easiest way to build this sample is with [Cross](https://github.com/rust-embedded/cross).
108

11-
Then scp the release file to your raspi.
9+
```
10+
cross build --release --target armv7-unknown-linux-gnueabihf
11+
```
12+
13+
> That assumes Raspberry Pi 2/3/4 running a 32 bit kernel
14+
15+
After the build finishes, copy it to your Raspberry Pi
16+
17+
```
18+
scp target/armv7-unknown-linux-gnueabihf/release/raspi-oled user@ip:/home/user
19+
```
20+
21+
Then SSH to your Pi and run it
22+
23+
```
24+
sudo ./raspi-oled
25+
```
1226

1327
## Example
1428

build.sh

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)