系统环境:rhel 6.5 (32bit)虚拟机
一、搭建交叉编译环境
1、拷贝toolchain到/usr/local/opt
tar zxvf crosstools-451.tar.gz -C /usr/local/opt
2、修改环境变量,添加交叉编译器到路径PATH中
# vim /etc/profile
添加 export PATH=$PATH:/usr/local/opt/4.5.1/bin
# source /etc/profile
注:还可以在/etc/bashrc和/root/.bashrc中添加PATH环境变量,与/etc/profile中效果一样。
1、ctags
$ tar zxvf ctags-5.8.tar.gz
$ cd ctags-5.8
$ ./configure
$ make
# make install
配置:
2、cscope
$ tar -jxvf cscope-15.7a.tar.bz2
$ cd cscope-15.7a
$ ./configure
$make
#make install
配置:
三、配置TFTP
更改文件:# vim /etc/xinetd.d/tftp
service tftp
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /var/lib/tftpboot
per_source = 11
cps = 100 2
flags = IPv4
}
重启tftp:# /etc/init.d/xinetd restart
四、配置NFS
创建nfs共享文件夹:#mkdir /OK6410
更改文件夹OK6410的权限:#chmod 777 /OK6410
更改文件:# vim /etc/exports,添加
/OK6410 192.168.1.*(rw, sync, no_root_squash)
重启nfs:# /etc/init.d/nfs restart