虚拟机搭建LINUX的ARM软件编译环境
来源:互联网 发布:小米笔记本如何 知乎 编辑:程序博客网 时间:2024/05/22 00:18
经过利用近五天加班后回家的时间,在自己的笔记本上完成LINUX的ARM小系统开发环境的搭建。过程十分悲催,这里简单描述一下,加深自己印象同时也希望其他学习者少走点弯路。
主要完成的工作:1.安装虚拟机,并在其上安装ubuntu11.10。
2.在LINUX上安装并配置SAMBA。
3.安装交叉编译器,更新源和LIB库
鄙人在此过程中遇到许多问题,好在都一一克服。
安装虚拟机基本比较顺利,就是先用虚拟光驱载入ubuntu的.ISO文件,然后用VM打开开始安装,安装完后发现停在命令行下,重启后进入ubuntu的图形界面。(这个地方装了几次,开始装的9.10版本,考虑到BSP内核是3.0的,所以重新装11.10,装完发现整个屏幕是终端,哥要用图形界面好不,比较傻,其实已经装好,只要重启,装了几次后。。)
另外11.10版本的ubuntu终端好难找,在左上的黑色按钮DASH HOME,在里面输入term会联想到终端的应用程序。
接下来是安装SAMBA(芳邻,中文名有些暧昧),开始在网上找安装及配置方法,五花八门,自己随便下了一个压缩包,放到目录下,要用到rpm命令,真是悲剧,系统居然没这个命令,自己也不熟,后来干脆直接用了sudo act get samba install,居然有就直接下载安装了。在etc/samba目录下有个sam.conf,进去后在结尾加上:
[global]
workgroup = LinuxSir
netbios name = LinuxSir05
server string = Linux Samba Server TestServer
security = share
[linuxsir]
path = /opt/linuxsir
writeable = yes
browseable = yes
guest ok = yes
返回命令行,建立目录并授权
[root@localhost ~]# mkdir -p /opt/linuxsir
[root@localhost ~]# id nobody
uid=99(nobody) gid=99(nobody) groups=99(nobody)
[root@localhost ~]# chown -R nobody:nobody /opt/linuxsir
启动smbd和nmbd服务器:
[root@localhost ~]# smbd
[root@localhost ~]# nmbd
查看smbd进程,确认Samba 服务器是否运行起来了:
[root@localhost ~]# pgrep smbd
13564
13568
OK,配置好以后reboot吧,LINUX起来后,在WINDOWS运行中输入\\192.168.0.101(我的小网IP),就成功进入我的LINUX所在区域了,这样,我就可以用Source insight直接编写这个路径下的代码了!
最后是交叉编译这部分,按照手册一路都比较好理解,问题是在完成内核配置找不到libncurses5-dev,更新源依然不行。于是,我就
1 sudo gedit /etc/apt/sources.list
(打开Ubuntu 11.10源列表文件)
3、将下面的代码粘贴进去(“#”开头的那一行为注释,可以直接复制进文件中)
4、通知ubuntu启用新的更新源
1 sudo apt-get update
#台湾源
deb http://tw.archive.ubuntu.com/ubuntu/ oneiric main universe restricted multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu/ oneiric main universe restricted multiverse
deb http://tw.archive.ubuntu.com/ubuntu/ oneiric-security universe main multiverse restricted
deb-src http://tw.archive.ubuntu.com/ubuntu/ oneiric-security universe main multiverse restricted
deb http://tw.archive.ubuntu.com/ubuntu/ oneiric-updates universe main multiverse restricted
deb-src http://tw.archive.ubuntu.com/ubuntu/ oneiric-updates universe main multiverse restricted
#网易 Ubuntu 11.10 源(速度很快)
deb http://mirrors.163.com/ubuntu/ oneiric main universe restricted multiverse
deb-src http://mirrors.163.com/ubuntu/ oneiric main universe restricted multiverse
deb http://mirrors.163.com/ubuntu/ oneiric-security universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ oneiric-security universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ oneiric-updates universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ oneiric-proposed universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ oneiric-proposed universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ oneiric-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ oneiric-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ oneiric-updates universe main multiverse restricted
#骨头源,骨头源是bones7456架设的一个Ubuntu源 ,提供ubuntu,deepin
deb http://ubuntu.srt.cn/ubuntu/ oneiric main universe restricted multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ oneiric main universe restricted multiverse
deb http://ubuntu.srt.cn/ubuntu/ oneiric-security universe main multiverse restricted
deb-src http://ubuntu.srt.cn/ubuntu/ oneiric-security universe main multiverse restricted
deb http://ubuntu.srt.cn/ubuntu/ oneiric-updates universe main multiverse restricted
deb http://ubuntu.srt.cn/ubuntu/ oneiric-proposed universe main multiverse restricted
deb-src http://ubuntu.srt.cn/ubuntu/ oneiric-proposed universe main multiverse restricted
deb http://ubuntu.srt.cn/ubuntu/ oneiric-backports universe main multiverse restricted
deb-src http://ubuntu.srt.cn/ubuntu/ oneiric-backports universe main multiverse restricted
deb-src http://ubuntu.srt.cn/ubuntu/ oneiric-updates universe main multiverse restricted
#mirror.lupaworld.com的源,速度很快
deb http://mirror.lupaworld.com/ubuntu/archive/ oneiric main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu/archive/ oneiric-security main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu/archive/ oneiric-updates main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu/archive/ oneiric-backports main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu/ubuntu-cn/ oneiric main restricted universe multiverse
#这里你也可以直接使用更快速的ubuntu.cn99.com的源(推荐):
deb http://ubuntu.cn99.com/ubuntu/ oneiric main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ oneiric-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ oneiric-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ oneiric-backports main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu-cn/ oneiric main restricted universe multiverse
然后sudo apt-get install libncurses5-dev,make menuconfig,BSP内核配置完毕,UBOOT简单就不说了
gcc:
1.解压:arm-linux-gcc-4.4.6.tgz
2.chmod 777 arm
3./etc/bash.bashrc修改gcc版本
4.source /root/.bashrc
5.logout一下再进系统就好了
写于2012-02-29
- 虚拟机搭建LINUX的ARM软件编译环境
- arm-linux交叉编译环境的搭建
- ARM-LINUX交叉编译环境的搭建
- arm-linux-gcc 交叉编译环境的便捷搭建
- arm-linux-gcc 交叉编译环境的搭建
- Ubuntu下Arm-Linux-GCC交叉编译环境的搭建
- arm-linux-gcc交叉编译环境的搭建
- arm-linux-gcc交叉编译环境的搭建
- arm-linux-gcc交叉编译环境的搭建
- 新手刚接触linux+arm,交叉编译环境的搭建。
- Ubuntu下Arm-Linux-GCC交叉编译环境的搭建
- Linux下搭建ARM交叉编译环境的步骤
- skyeye arm 硬件虚拟机环境的搭建
- 搭建arm-linux-gcc交叉编译环境
- Linux下搭建arm交叉编译环境
- arm-linux-gcc交叉编译环境搭建
- arm-linux-gcc交叉编译环境搭建
- Windows下通过虚拟机搭建android的linux编译环境
- Linux 自学笔记(五)——时间显示与管理&监控网络信息
- http://wiki.hotoo.me/Canvas-SVG-VML.html
- 堆和栈的区别(转过无数次的文章)
- replay attacker
- 存储博文精选专辑
- 虚拟机搭建LINUX的ARM软件编译环境
- *走了不少弯路吧?看看别人经验分享*
- Ubuntu 11.04 下安装配置 JDK 7
- 从《谍中谍4》看知识经济时代团队的特点
- 如何做一位优秀的管理者
- 可以不设置activity的layout 但是必须有:
- J2EE架构师之路
- 我叫LD,我是PM,我在路上
- POJ 2459 Feed Accounting(我的水题之路——英文题啊!!!)