1. 在redhat系统的profile文件中,有如下内容:
#path manipulation
if [`id -u` = 0];then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
# pathmunge /opt/EmbedSky/crosstool_3.4.5/gcc-3.4.5-glibc-2.3.6/arm-linux/bin
pathmunge /pot/EmbedSky/4.3.3/bin
fi
对交叉编译器版本进行选择,然后source /etc/profile,使其生效
在SUSE的profile中,由于其path是以追加的方式进行输出的,用一下方式进行设置:
#PATH=$PATH:/opt/EmbedSky/crosstools_3.4.5_softfloat/gcc-3.4.5-glibc-2.3.6/arm-linux/bin/
#export PATH
PATH=$PATH:/opt/EmbedSky/4.3.3/bin/
export PATH
#export set PATH=/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/lib/jvm/jre/bin
可以用set PATH来恢复以前的状态,然后再追加交叉编译器。
2./etc目录下文件、目录
fstab指明需要挂载的文件系统
group用户组信息
inittabinit进程配置文件
shadow
passwd
profile用户配置文件
mdev.conf 2.6.18版本内核放弃了devfs,采用了udev(mdev为其简化版本)
resolv.conf 存放dns配置信息
init.d->rcS init.d存放系统启动时的配置和自启动加载的信息
sysconfig
rc.d 存放自启动需要的脚本信息
vi /etc/xinetd.d/tftp
/etc/init.d/xinetd restart
十六进制数,除两个400,不足400时在点十进制数