1、 对交叉工具的安装
a. 将“arm-linux-gcc-4.5.1-v6-vfp.tgz”拷贝到自己的工作目录下
b. 进入自己的工作目录下,”“tar –xzvf arm-linux-gcc-4.5.1-v6-vfp.tgz –C /”解压到根目录下
c. 添加环境变量,“vi /etc/profile”
# /etc/profile # System wide environment and startup programs, for login setup # Functions and aliases go in /etc/bashrc pathmunge () { if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then if [ "$2" = "after" ] ; then PATH=$PATH:$1 else PATH=$1:$PATH fi fi } # ksh workaround if [ -z "$EUID" -a -x /usr/bin/id ]; then EUID=`id -u` UID=`id -ru` fi # Path manipulation if [ "$EUID" = "0" ]; then pathmunge /sbin pathmunge /usr/sbin pathmunge /usr/local/sbin pathmunge /arm-linux/4.5.1/bin #添加刚解压的“arm-linux-gcc-4.5.1-v6-vfp.tgz “目录下的bin fi
d. 重新读入环境配置,“source /etc/profile“
2、 使用alias 定义别名,在开机登录后自动生效
1、 修改配置文件,”vi ~/.bashrc”
# .bashrc # User specific aliases and functions alias rm='rm -i' alias cp='cp -i' alias mv='mv -i' alias clr='clear' #在这里添加自己的东西 # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi set bell-style none
2. 重新读入环境配置,“source ~/.bashrc“