1. Install Ubuntu System
Flash the ubuntu system image to Firefly-RK3399. I upgraded the Ubuntu single system: Firefly-RK3399_xubuntu1604_201707041527.img, you can go to the official website to download it.
Note, if your Firefly-RK3399 is the default dual system firmware, you can switch directly to the Ubuntu system and skip this step.
2. Install pip3
After entering the system, use ALT + CTRL + T to bring up the terminal and enter
1. sudo apt install python3-pip
3.Git to download tensorflow-1.1.0rc1-cp35-cp35m-linux_aarch64.whl
Install git
- sudo apt-get install git-core
Download tensorflow-1.1.0rc1-cp35-cp35m-linux_aarch64.whl4. Use pip3 to install Tensorflow
- cd TensorFlow4FireflyRK3399
- pip3 install tensorflow-1.1.0rc1-cp35-cp35m-linux_aarch64.whl
Install successfully
5. Test Tensorflow
After completing the above steps, TensorFlow has been installed to Firefly-RK3399, and now through a simple routine to test the program input
1.python3
2. import tensorflow as tf
hello = tf.constant('Hello world!')
sess = tf.Session()
print(sess.run(hello))
This time will print
b'Hello world!'