BEKEN WIFI RTT SDK 编译

1:按装samba sudo apt install samba

2:新建共享文件夹 sudo mkdir -p /home/share

3:配置samba sudo vi /etc/samba/smb.conf 

在末尾添加

[secret]    #共享目录名,访问时的展示名
    comment = Secret File       #该共享目录的描述
    path = /home/share  #访问的实际路径,前面设置的
    writable = yes              #可写,是
    browsable = yes             #可浏览,是
    public = yes

4:重启samba  sudo /etc/init.d/smbd restart

5:  安装 ssh   sudo apt install openssh-server

6:重启 ssh sudo /etc/init.d/ssh restart

7: 按照BK72XX SDK User’s Manua 文档进行

安装 GCC 

sudo mkdir -p /usr/local/share/toolchain/

tar xf gcc-arm-none-eabi-5_4-2016q3-20160926-linux.tar.bz2 -C /usr/local/share/toolchain/

8:添加环境变量

export RTT_EXEC_PATH=/usr/local/share/toolchain/gcc-arm-none-eabi-5_4-2016q3/bin

9:安装python2

sudo apt install python2

2. 设置默认方式(替代版本)
首先查看是否已经配置了 Python 的默认方式(替代版本):

$ sudo update-alternatives --list python
若没有设置,会显示:

update-alternatives: error: no alternatives for python
若设置了,则是显示你替代的版本,可以以此确认你的备选方案是否可用:

$ sudo update-alternatives --list python
/usr/bin/python2
/usr/bin/python3
然后使用如下命令设置默认方式(替代版本):

$ sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 1
$ sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 2
选用可选的 Python 版本:

$ sudo update-alternatives --config python
There are 2 choices for the alternative python (providing /usr/bin/python).
  Selection    Path              Priority   Status
------------------------------------------------------------
* 0            /usr/bin/python3   2         auto mode
  1            /usr/bin/python2   1         manual mode
  2            /usr/bin/python3   2         manual mode
Press  to keep the current choice[*], or type selection number: 1
在本例中,选择 1 来选择 Python2…

最后,你可以检查你的 Python 版本来确认是否设置成功:

$ python -V
Python 2.7.18
10:安装scons

sudo apt-get install scons

11: 编译

$ scons -c # cleanup
$ scons --beken=bk7251 -j4 # build bk7251 with 4 CPU core 
$ scons --beken=bk7231u # build bk7231u
$ scons --beken=bk7231n # build bk7231n

If you encounter compile errors about python, you may replace scons with python2 `which scons`, for example

$ python2 `which scons` -c # cleanup
$ python2 `which scons` --beken=bk7231u

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值