linux交叉編譯配置和檔案系統配置

來源:互聯網
上載者:User

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

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.