Skip to content

Commit 244bf9c

Browse files
committed
Remove protobuf instructions, add OS details
1 parent 4248556 commit 244bf9c

File tree

2 files changed

+16
-43
lines changed

2 files changed

+16
-43
lines changed

GUIDE.md

+9-42
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,11 @@ Here's the basic plan: build a 32-bit version of [Protobuf](https://github.com/g
2121
### Contents
2222

2323
1. [Install basic dependencies](#1-install-basic-dependencies)
24-
2. [Build Protobuf](#2-build-protobuf)
25-
3. [Install USB Memory as Swap](#3-install-a-memory-drive-as-swap-for-compiling)
26-
4. [Build Bazel](#4-build-bazel)
27-
5. [Compiling TensorFlow](#5-compiling-tensorflow)
28-
6. [Cleaning Up](#6-cleaning-up)
29-
7. [References](#references)
24+
2. [Install USB Memory as Swap](#2-install-a-memory-drive-as-swap-for-compiling)
25+
3. [Build Bazel](#3-build-bazel)
26+
4. [Compiling TensorFlow](#4-compiling-tensorflow)
27+
5. [Cleaning Up](#5-cleaning-up)
28+
6. [References](#references)
3029

3130
## The Build
3231

@@ -81,39 +80,7 @@ mkdir tf
8180
cd tf
8281
```
8382

84-
### 2. Build Protobuf
85-
86-
Clone the Protobuf repository.
87-
88-
```shell
89-
git clone https://github.com/google/protobuf.git
90-
```
91-
92-
Now move into the new `protobuf` directory, configure it, and `make` it. _Note: this takes a little while._
93-
94-
```shell
95-
cd protobuf
96-
git checkout v3.1.0
97-
./autogen.sh
98-
./configure
99-
make -j 4
100-
sudo make install
101-
sudo ldconfig
102-
```
103-
104-
Great! You should now have `protoc` installed in `/usr/local/bin`, and should be on your `PATH`. Check to make sure it's working correctly:
105-
106-
```shell
107-
protoc --version
108-
```
109-
110-
Now that we have the `protoc` compiler, let's install a USB stick as additional swap memory.
111-
112-
```
113-
cd ..
114-
```
115-
116-
### 3. Install a Memory Drive as Swap for Compiling
83+
### 2. Install a Memory Drive as Swap for Compiling
11784

11885
In order to succesfully build TensorFlow, your Raspberry Pi needs a little bit more memory to fall back on. Fortunately, this process is pretty straightforward. Grab a USB storage drive that has at least 1GB of memory. I used a flash drive I could live without that carried no important data. That said, we're only going to be using the drive as swap while we compile, so this process shouldn't do too much damage to a relatively new USB drive.
11986

@@ -174,7 +141,7 @@ sudo nano /etc/fstab
174141

175142
Alright! You've got swap! Don't throw out the `/dev/XXX` information yet- you'll need it to remove the device safely later on.
176143

177-
### 4. Build Bazel
144+
### 3. Build Bazel
178145

179146
To build [Bazel](https://github.com/bazelbuild/bazel), we're going to need to download a zip file containing a distribution archive. Let's do that now and extract it into a new directory called `bazel`:
180147

@@ -278,7 +245,7 @@ Move out of the `bazel` directory, and we'll move onto the next step.
278245
cd ..
279246
```
280247

281-
### 5. Compiling TensorFlow
248+
### 4. Compiling TensorFlow
282249

283250
First things first, clone the TensorFlow repository and move into the newly created directory.
284251

@@ -363,7 +330,7 @@ And then install it!
363330
pip install --user /tmp/tensorflow_pkg/tensorflow-1.0.1-cp27-none-linux_armv7l.whl
364331
```
365332

366-
### 6. Cleaning Up
333+
### 5. Cleaning Up
367334

368335
There's one last bit of house-cleaning we need to do before we're done: remove the USB drive that we've been using as swap.
369336

README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,13 @@ _We did it!_ It took a lot of head-banging and several indirect passings-of-the-
2020

2121
**Note: These are unofficial binaries (though built from the minimally modified official source), and thus there is no expectation of support from the TensorFlow team. Please don't create issues for these files in the official TensorFlow repository.**
2222

23-
This is the easiest way to get TensorFlow onto your Raspberry Pi 3. Note that currently, the pre-built binary is targeted for Raspberry Pi 3 running Raspbian 8.0 ("Jessie"), so this may or may not work for you.
23+
This is the easiest way to get TensorFlow onto your Raspberry Pi 3. Note that currently, the pre-built binary is targeted for Raspberry Pi 3 running Raspbian 8.0 ("Jessie"), so this may or may not work for you. The specific OS release is the following:
24+
25+
```
26+
Raspbian 8.0 "Jessie"
27+
Release: March 2, 2017
28+
Installed via NOOBS 2.3
29+
```
2430

2531
First, install the dependencies for TensorFlow:
2632

0 commit comments

Comments
 (0)