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時在點十進位數