嵌入式驱动开发环境搭建

来源:互联网 发布:nike淘宝店 编辑:程序博客网 时间:2024/05/09 16:18
2、开发环境

2-1 编译工具
安装
sudo tar -zvxf arm-linux-gcc-4.3.2.tgz  -C  /
配置系统环境变量
sudo vi /etc/profile 或  ~/.bashrc
在文件最后添加交叉编译路径
PATH=$PATH:/usr/local/arm/4.3.2/bin
export PATH
保存,然后执行source /etc/profile或者~/.bashrc 使配置生效

2-2 配置开发工具
2-2-1 安装串口调试工具
sudo apt-get install minicom
使用:
sudo minicom

2-2-2 安装tftp服务  (ubuntu系统)
a、安装软件包
sudo apt-get install tftp tftpd xinetd
b、创建tftp服务目录并设置属性,如创建服务目录/tftphome/
sudo mkdir -p /tftphome
sudo chmod –R 777 /tftphome
sudo chown -R nobody /tftphome
c、创建tftp配置文件
sudo gedit /etc/xinetd.d/tftp
  输入以下配置信息:
service tftp{
protocol        = udp
port            = 69
socket_type     = dgram
wait            = yes
user            = nobody
server          = /usr/sbin/in.tftpd
server_args     = /tftphome   #该地址为上面创建的服务目录
disable         = no
}
d、重启tftp服务使配置生效
sudo /etc/init.d/xinetd restart

2-2-3 安装nfs服务  (ubuntu系统)
安装nfs服务软件包
sudo apt-get install nfs-kernel-server nfs-common portmap
配置nfs
sudo /etc/exports 添加nfs文件系统目录
/home/ *(rw,insecure,no_root_squash,no_subtree_check)
重启nfs服务
sudo /etc/init.d/nfs-kernel-server restart
nfs服务测试:
mount -t nfs -o nolock 192.168.1.10:/home/wxc/work/  /mnt/

2-2-4 编辑器
文本编辑器
vim
emacs
集成开发环境IDE
Netbeans——( Windows, Mac, Linux )
Eclipse——( Windows, Mac, Linux )


0 0
原创粉丝点击