I.MX6 VMware 下Ubuntu 14.04 开发环境搭建

虚拟机:VMware® Workstation 14 Pro

系统:Ubuntu 14.04 


本文记录一下环境的配置过程,尤其是linux下代理上网的设置,相关操作方法参考网络资源,在此记录一下过程,以便日后参考。

原文链接:https://blog.csdn.net/leftfist/article/details/39677133

公司的环境只能通过代理的方式上网,浏览器可以设置代理,但虚拟机下需要相应的配置才能正常联网。


1、进入ubuntu的系统设置,NetWork,设置代理,设置完成后应用到系统


2、代理需要指定用户名和密码,需要进一步设置

打开终端,输入 sudo gedit /etc/environment

打开这个环境配置文件,将代理及账号、密码输入。如

http_proxy="http://account:password@proxyhost:port"

https_proxy="https://account:password@proxyhost:port"

……

如:http_proxy="http://zhangsan:test123@192.168.x.x:8080"

因为步骤1完成以后,系统会将代理信息覆盖到这里。如果先做步骤2,再做步骤1,那工作成果会被覆盖掉。


3、set up the proxies for apt-get and Update Manager

终端下,输入sudo gedit /etc/apt/apt.conf

然后输入:

Acquire::http::proxy "http://account:password@proxyhost:port";
Acquire::https::proxy "https://account:password@proxyhost:port";
Acquire::ftp::proxy "ftp://account:password@proxyhost:port"";

Acquire::socks::proxy "socks://account:password@proxyhost:port";

注意,上面的文字里面 proxy 和 后面的网址之间有空格存在。

备注:如果不知道代理服务器的IP,可以使用ping命令来获取,如 "  ping    proxy.xxx.com "

通过以上设置,软件中心,安装、更新软件都能顺利联网。


Yocto Project build environment,参考《i.MX Yocto Project User's Guide》

①Essential Yocto Project host packages are:

$ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \

build-essential chrpath socat libsdl1.2-dev

②i.MX layers host packages for a Ubuntu 12.04 or 14.04 host setup are:

$ sudo apt-get install libsdl1.2-dev xterm sed cvs subversion coreutils texi2html \

docbook-utils python-pysqlite2 help2man make gcc g++ desktop-file-utils \

libgl1-mesa-dev libglu1-mesa-dev mercurial autoconf automake groff curl lzop asciidoc

③i.MX layers host packages for a Ubuntu 14.04 host setup only are:

$ sudo apt-get install u-boot-tools

④Setting up the repo utility

$ mkdir ~/bin (this step may not be needed if the bin folder already exists)
$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo

$ chmod a+x ~/bin/repo

⑤Add the following line to the .bashrc file to ensure that the ~/bin folder is in your PATH variable.

export PATH=~/bin:$PATH

备注:得益于我朝性能极强的防火墙,使用第三方源,从其他途径获取源:

1

完成后,在 bin 目录下找到 repo 脚本文件,将其用文本编辑器打开。

  找到其中:

  一行,将其替换为:

进行以上操作后,才能够正常使用repo init 命令进行初始化,以上参考:http://www.ezapk.com/127.html



⑥First make sure that git is set up properly with the commands below.
$ git config --global user.name "Your Name"
$ git config --global user.email "Your Email"
$ git config --list

⑦This sets up the recipes that are used to build the project.

$ mkdir fsl-release-bsp

$ cd fsl-release-bsp

repo init -u git://git.freescale.com/imx/fsl-arm-yocto-bsp.git -b imx-morty -m imx-4.9.11-1.0.0_ga.xml
$ repo sync

但是由于代理还是做了限制,无法访问github等网址,只能以http的形式访问git资源。无法通过官方提供Yocto 的方式下载SDK环境,具体解决措施还没有找到,参考:https://community.nxp.com/thread/435818 。




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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值