RK3399软件安装

前奏
把rz  sz 复制到/usr/bin目录下

1.  查看软件包分类
firefly@firefly:~$ lsb_release  -c
Codename:       xenial
然后根据Codename的信息修改源地址中的参数,如:
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb.list

2. 更新源
sudo apt-get update

3. 如需要在RK3399上编译,请安装以下必需的工具
apt-get install autoconf automake libtool
apt-get install make pkg-config check g++ librsync-dev libz-dev libssl-dev uthash-dev libyajl-dev autoreconf -vif

4.  编译安装libmodbus
git clone git://github.com/stephane/libmodbus
./configure  #参数视情况而定
make -j4 && sudo make install

5. 安装mongodb 4.0.10
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb.list
sudo apt update
sudo apt install mongodb-org

6. 安装python3-pip
sudo apt install python3-pip
sudo apt-get install libffi6 libffi-dev 

7. 安装python3常用软件包
sudo apt install libssl-dev
sudo apt install libjpeg-dev
sudo -H pip3 install --upgrade pip
sudo -H pip3 install -r requirements.txt   #requirements.txt可通过pip3 freeze > x.txt命令来生成,内容如下:
###############start#################
asn1crypto==0.24.0
bcrypt==3.1.6
cffi==1.12.2
cryptography==2.6.1
escpos==1.6
numpy==1.16.2
paramiko==2.4.2
Pillow==5.4.1
pyasn1==0.4.5
pycparser==2.19
PyNaCl==1.3.0
pyserial==3.4
pyusb==1.0.2
qrcode==6.1
six==1.12.0
###############end##################

8. 设置wifi
nmcli dev wifi connect TP-LINK_5G_test password 'XXXXXXXX'

9. 把profile放在/etc目录下
/etc/profile

10. 修改/etc/rc.local增加如下代码在exit 0之前
/opt/rcS start

11. 更新一级网关主软件包。
chmod +x  SR-GWFL-RK39-A000-FN4-BY00-Vx.x.x.app
sudo ./SR-GWFL-RK39-A000-FN4-BY00-Vx.x.x.app

 12. 重新再打过一个包就不用每次都这么辛苦啦!!!! 

You may also like...

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据