BEKEN WIFI RTT SDK 编译

编程入门 行业动态 更新时间:2024-10-27 02:29:17

BEKEN <a href=https://www.elefans.com/category/jswz/34/1769738.html style=WIFI RTT SDK 编译"/>

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

更多推荐

BEKEN WIFI RTT SDK 编译

本文发布于:2024-02-11 13:47:42,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1681310.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:WIFI   BEKEN   SDK   RTT

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!