<meter id="pryje"><nav id="pryje"><delect id="pryje"></delect></nav></meter>
          <label id="pryje"></label>

          新聞中心

          EEPW首頁 > 嵌入式系統(tǒng) > 設(shè)計(jì)應(yīng)用 > 基于PXA255的嵌入式Linux應(yīng)用平臺(tái)的構(gòu)建

          基于PXA255的嵌入式Linux應(yīng)用平臺(tái)的構(gòu)建

          作者: 時(shí)間:2012-03-22 來源:網(wǎng)絡(luò) 收藏

          為了建立根文件系統(tǒng),可以利用BusyBox工具,在網(wǎng)上下載最近版本busybox-1.1.0.tar.gz,一些主要步驟如下:

          #tar zxvf busybox-1.1.0.tar.gz

          #cd busybox-1.1.0

          #make menuconfig

          在build Options菜單下,可以選擇靜態(tài)庫(kù)編譯方式

          [*]Build BusyBox as a static binary (no shared libs)

          還需要使用帶glibc庫(kù)支持的交叉編譯器arm-linux-gcc

          [*]Do you want to build BusyBox with a Cross Compiler?

          /usr/local/hybus-arm-linux-R1.1/bin/arm-linux-

          在installation Options中選安裝路徑,默認(rèn)是_install目錄

          [*]Don't use /usr

          (./_install)BusyBox installation prefix

          之后選擇一些需要的編譯命令后就可以編譯BusyBox了。

          #make dep

          #make

          #make install

          完成后生成_install目錄,目錄下有bin linuxrc sbin目錄,下面介紹對(duì)根文件系統(tǒng)的進(jìn)一步配置:

          建立etc目錄

          #mkdir etc

          建立rc文件,內(nèi)容如下:

          #!/bin/sh

          hostname XScale

          mount -t proc proc /proc

          cat /etc/motd

          改變r(jià)c屬性

          #chmod 777 rc

          建立inittab文件,主要內(nèi)容如下:

          ::sysinit:/etc/init.d/rcS

          ::askfirst:/bin/sh

          tty1::respawn:/sbin/getty 38400 tty1

          tty2::respawn:/sbin/getty 38400 tty2

          ::restart:/sbin/init

          ::ctrlaltdel:/sbin/reboot

          ::shutdowm:/bin/umount -a -r

          ::shutdowm:/sbin/swapoff -a

          在init.d目錄下,建立rc文件的符號(hào)連接文件rcS



          評(píng)論


          相關(guān)推薦

          技術(shù)專區(qū)

          關(guān)閉
          看屁屁www成人影院,亚洲人妻成人图片,亚洲精品成人午夜在线,日韩在线 欧美成人 (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })();