首页 | 新闻 | 新品 | 文库 | 方案 | 视频 | 下载 | 商城 | 开发板 | 数据中心 | 座谈新版 | 培训 | 工具 | 博客 | 论坛 | 百科 | GEC | 活动 | 主题月 | 电子展
返回列表 回复 发帖

在ZC702上运行Linux(3) - 建立编译环境

在ZC702上运行Linux(3) - 建立编译环境

1. Ubuntu首次运行在VMWare Player 5.0.0 build-812388上装了一个Ubuntu 10.10,用来做Embedded Linux交叉编译的环境。 Ubuntu下的Proxy配置:由于公司的外网出口统一经过proxy,需要在Ubuntu做些配置才能访问外网。在Firefox里面,点击Edit->references->Advanced->Network->Settings,在出现的窗口里选择Use system proxy settings。在System->reference->Network Proxy里面设置好proxy参数。注意配置完成后会提示是否应用到整个系统,选择“是”。 刚安装后的系统还比较干净,要先安装git准备下载各种源码,但是出错了。~$ sudo apt-get install gitReading package lists... DoneBuilding dependency treeReading state information... DoneE: Unable to locate package git 原来忘记update了~$ sudo apt-get update说明:apt-get update - 在你更改了/etc/apt/sources.list 或 /etc/apt/preferences 后,需要运行这个命令以令改动生效。同时也要定期运行该命令,以确保你的源列表是最新的。简单的说,就是刷新软件列表,源服务器里的软件更新后,通过刷新可以获得最新的软件列表信息;说白了就是刷新一下看看源里有没有新的软件或者软件的新版本。http://wiki.ubuntu.org.cn/UbuntuHelp:AptGetHowto/zh 2. 安装版本管理软件git~$ sudo apt-get install git 3. 安装并配置TFTP Server3.1 安装tftpd相关软件包$ sudo apt-get install xinetd tftpd tftp3.2创建文件/etc/xinetd.d/tftp并且按如下所示配置service tftp{protocol    = udpport    = 69socket_type = dgramwait    = yesuser    = nobodyserver  = /usr/sbin/in.tftpdserver_args = /tftpbootdisable = no}3.3在系统根目录下创建tftproot目录,并修改权限。为了方便起见,创建的是指向uImage所在目录的符号链接 sudo ln -s /home/wave/xilinx/linux-xlnx/arch/arm/boot /tftpboot$ sudo chmod -R 777 /tftpboot3.4启动tftp服务$ sudo /etc/init.d/xinetd stop$ sudo /etc/init.d/xinetd start3.5测试:传输一个文件$ tftp localhosttftp> get uImageReceived 2742981 bytes in 0.2 secondstftp> quit$ ls -l-rw-r--r-- 1 wave wave 2725432 2012-11-23 15:42 uImage 4. 安装并配置NFS Server嵌入式linux的调试,一般需要nfs文件系统的支持,首先需要配置host的nfs server设置:4.1 安装sudo apt-get install nfs-kernel-server4.2 指定共享文件夹,为了方便,可以创建一个链接指向实际的位置sudo ln -s /home/wave/xilinx/_rootfs /nfsroot         sudo chmod 777 /nfsroot4.3修改/etc/exports的内容为/nfsroot *(rw,sync,no_root_squash)4.4重启服务:sudo /etc/init.d/nfs-kernel-server restart4.5 4.检查$ showmount -e 127.0.0.1成功的话在本机上可以看到这样的讯息:Export list for 127.0.0.1:/home/wave/xilinx/_rootfs * mkdir nfsrootsudo mount -t nfs 127.0.0.1:/nfsroot nfsrootls nfsroot 来源:赛灵思中文社区论坛      



记录学习中的点点滴滴,让每一天过的更加有意义!
返回列表