海思Hi3518—开发环境搭建

目标机版本ubuntu16.04(64位)

参考官方文档搭建开发环境
1、Hi3516EV200R002C05SPC012\ReleaseDoc\zh\01.software\board\OSDRV\Hi35xx Huawei LiteOS 开发环境用户指南
2、Hi3516EV200R002C05SPC012\ReleaseDoc\zh\01.software\board\Hi3516EV200╱Hi3516EV300╱Hi3518EV300 Huawei LiteOS SDK 安装以及升级使用说明

环境搭建过程中遇到的问题,特此记录,尤其是安装软件包时卡了很长时间才解决

1、ubuntu的上网问题

ping主机可以ping通,但是ping百度ping不通,原因是需要设置dns服务器

sudo vi /etc/network/interfaces

*修改为:
auto ens33
iface ens33 inet static
#iface ens33 inet dhcp
address 192.168.10.141
netmask 255.255.255.0
gateway 192.168.10.1
dns-nameserver 8.8.8.8*

sudo ifconfig ens33 down //重启网卡
sudo ifconfig ens33 up

参考 : https://blog.51cto.com/123110773/1915905

2、执行./sdk.cleanup 时报错

./sdk.cleanup: 2: ./sdk.cleanup: source: not found
./sdk.cleanup: 4: ./sdk.cleanup: ECHO: not found
./sdk.cleanup: 6: ./sdk.cleanup: ECHO: not found
./sdk.cleanup: 7: ./sdk.cleanup: WARN: not found
./sdk.cleanup: 8: ./sdk.cleanup: ECHO: not found
./sdk.cleanup: 17: ./sdk.cleanup: ECHO: not found
./sdk.cleanup: 18: ./sdk.cleanup: pushd: not found
./sdk.cleanup: 19: ./sdk.cleanup: run_command_progress_float: not found
./sdk.cleanup: 20: ./sdk.cleanup: popd: not found
./sdk.cleanup: 22: ./sdk.cleanup: ECHO: not found
./sdk.cleanup: 23: ./sdk.cleanup: pushd: not found
./sdk.cleanup: 24: ./sdk.cleanup: run_command_progress_float: not found
./sdk.cleanup: 25: ./sdk.cleanup: popd: not found
./sdk.cleanup: 27: ./sdk.cleanup: ECHO: not found
./sdk.cleanup: 28: ./sdk.cleanup: pushd: not found
./sdk.cleanup: 29: ./sdk.cleanup: run_command_progress_float: not found
./sdk.cleanup: 30: ./sdk.cleanup: popd: not found
./sdk.cleanup: 34: ./sdk.cleanup: ECHO: not found
./sdk.cleanup: 35: ./sdk.cleanup: pushd: not found
./sdk.cleanup: 36: ./sdk.cleanup: run_command_progress_float: not found
./sdk.cleanup: 37: ./sdk.cleanup: popd: not found

系统默认的sh(脚本解析器)为dash,可以使用 ls -l /bin/sh 命令查看
修改默认脚本解析器为bash,方法如下:
(1)命令行输入:sudo dpkg-reconfigure dash
(2)选择
(3)ls -l /bin/sh 查询确认

参考:https://blog.csdn.net/jd404647184/article/details/44593587

3、ubuntu16.04安装软件包时,使用 apt-get install 报错版本不符合

报错内容如下:
apt-get install uuid-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
 uuid-dev : Depends: libuuid1 (= 2.27.1-6ubuntu3) but 2.27.1-6ubuntu3.3 is to be installed
E: Unable to correct problems, you have held broken packages.

解决办法是使用 aptitue install 安装
aptitude install uuid-dev

The following NEW packages will be installed:
  uuid-dev{b} 
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 26.5 kB of archives. After unpacking 153 kB will be used.
The following packages have unmet dependencies:
 uuid-dev : Depends: libuuid1 (= 2.27.1-6ubuntu3) but 2.27.1-6ubuntu3.3 is installed.
The following actions will resolve these dependencies:

     Keep the following packages at their current version:
1)     uuid-dev [Not Installed]                           

Accept this solution? [Y/n/q/?] n
The following actions will resolve these dependencies:

     Downgrade the following packages:                               
1)     libuuid1 [2.27.1-6ubuntu3.3 (now) -> 2.27.1-6ubuntu3 (xenial)]

Accept this solution? [Y/n/q/?] Y

参考:https://blog.csdn.net/u013083918/article/details/80860142

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值