Firefly教程網站:http://wiki.t-firefly.com/zh_CN/Firefly-RK3399/started.html
系統燒錄:
http://wiki.t-firefly.com/zh_CN/Firefly-RK3399/linux_sdk.html#ubuntu_upgrade
ubuntu系統燒錄后用戶名:firefly 密碼:firefly
1.安裝基礎環境:
1.1 安裝python3.6
輸入命令:
sudo add-apt-repository ppa:jonathonf/python-3.6
按Enter確認
輸入命令:
sudo apt-get upgrade
sudo apt-get install python3.6
調整Python3的優先級,使得3.6優先級較高
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 1
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 2
重啟
sudo reboot
升級pip
sudo python3 -m pip install –upgrade –force pip
安裝python編譯環境
sudo apt-get install aptitude
sudo aptitude install python3.6-dev
安裝依賴:
sudo pip3 install numpy
sudo pip3 install pyserial
sudo pip3 install pandas
sudo pip3 install Matplotlib
1.2 安裝環境
sudo apt-get update
sudo apt-get upgarde
sudo apt-get install python-pip python-dev build-essential
sudo apt-get install python3-pip python3-dev build-essential
sudo apt-get install gedit
sudo apt-get install openssl*
sudo apt-get install ipython3
sudo apt-get install minicom
sudo apt-get install cmake git
sudo apt-get install inetutils-ping
安裝中文庫和輸入法:
sudo apt-get install scim scim-pinyin
安裝火狐瀏覽器:
sudo apt-get install firefox
2.安裝opencv
2.1 安裝依賴:
sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev
sudo apt-get install libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
2.2 安裝opencv
下載opencv庫的zip文件 我這里下載的是opencv-3.4.0.zip
cd
mkdir app
cp Downloads/opencv-3.4.0.zip app/
cd app
unzip opencv-3.4.0.zip
cd opencv-3.4.0
mkdir release
cd release
cmake -D CMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local ..
sudo make -j4 編譯的時間比較長,耐心等待吧
編譯完成后安裝:
sudo make install 安裝這一步比較快
完成后修改/etc/ld.so.conf文件,在文件中添加:
/usr/local/lib
使配置生效:
sudo /sbin/ldconfig
測試:
進入python3
輸入:import cv2
可以成功導入表示安裝成功
3.遠程登錄
3.1 安裝ssh
sudo apt-get install openssh-server
安裝完成后可以使用以下命令:
sudo service sshd status
sudo service sshd start
3.2 在/etc/ssh/sshd_config文件中追加
Ciphers aes128-cbc,aes192-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr,3des-cbc,arcfour128,arcfour256,arcfour,blowfish-cbc,cast128-cbc
MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-sha1-96,hmac-md5-96
KexAlgorithms diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group1-sha1,curve25519-sha256@libssh.org
3.3 免密登錄
客戶機輸入:ssh-keygen -t rsa
一路回車
將生成的.pub文件復制到服務端的~/.ssh/authorized_keys中
3.4 設置靜態ip
sudo gedit /etc/network/interfaces
在后面添加:
auto wlan0
iface wlan0 inet static
address 192.168.0.201
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 192.168.0.1
wpa-ssid "maxiao"
wpa-passphrase "12345678"
wireless-channel 11
重啟網絡:
sudo /etc/init.d/networking restart