<dfn id="yhprb"><s id="yhprb"></s></dfn><dfn id="yhprb"><delect id="yhprb"></delect></dfn><dfn id="yhprb"></dfn><dfn id="yhprb"><delect id="yhprb"></delect></dfn><dfn id="yhprb"></dfn><dfn id="yhprb"><s id="yhprb"><strike id="yhprb"></strike></s></dfn><small id="yhprb"></small><dfn id="yhprb"></dfn><small id="yhprb"><delect id="yhprb"></delect></small><small id="yhprb"></small><small id="yhprb"></small> <delect id="yhprb"><strike id="yhprb"></strike></delect><dfn id="yhprb"></dfn><dfn id="yhprb"></dfn><s id="yhprb"><noframes id="yhprb"><small id="yhprb"><dfn id="yhprb"></dfn></small><dfn id="yhprb"><delect id="yhprb"></delect></dfn><small id="yhprb"></small><dfn id="yhprb"><delect id="yhprb"></delect></dfn><dfn id="yhprb"><s id="yhprb"></s></dfn> <small id="yhprb"></small><delect id="yhprb"><strike id="yhprb"></strike></delect><dfn id="yhprb"><s id="yhprb"></s></dfn><dfn id="yhprb"></dfn><dfn id="yhprb"><s id="yhprb"></s></dfn><dfn id="yhprb"><s id="yhprb"><strike id="yhprb"></strike></s></dfn><dfn id="yhprb"><s id="yhprb"></s></dfn>

新聞中心

EEPW首頁(yè) > 嵌入式系統 > 設計應用 > PXA255的嵌入式Linux應用平臺的構建

PXA255的嵌入式Linux應用平臺的構建

作者: 時(shí)間:2012-04-12 來(lái)源:網(wǎng)絡(luò ) 收藏

2.3 配置根文件系統

并不使用設備標志符(如設備號或驅動(dòng)器名稱(chēng))來(lái)訪(fǎng)問(wèn)獨立文件系統,而是通過(guò)一個(gè)將整個(gè)文件系統表示成單一實(shí)體的層次樹(shù)結構來(lái)訪(fǎng)問(wèn)它。一個(gè)根文件系統需要包含支持系統運行的所有文件,通常包括:
(1)基本的文件系統結構。
(2)基本的目錄: /dev, /proc, /bin, /sbin, /etc, /tmp等。
(3)基本的工具: sh, ls, cp, cd, mv等。
(4)基本的配置文件: rc, inittab, fstab等。
(5)設備: /dev/hd*, /dev/tty*, /dev/fd0, /dev/ram*, /dev/console等。
(6)基本的運行庫。

為了建立根文件系統,可以利用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)庫編譯方式

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

還需要使用帶glibc庫支持的交叉編譯器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中選安裝路徑,默認是_install目錄
[*]Don't use /usr
(./_install)BusyBox installation prefix

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

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

建立etc目錄
#mkdir etc

建立rc文件,內容如下:
#!/bin/sh
hostname XScale
mount -t proc proc /proc
cat /etc/motd
改變r(jià)c屬性
#chmod 777 rc

建立inittab文件,主要內容如下:
::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文件的符號連接文件rcS

linux操作系統文章專(zhuān)題:linux操作系統詳解(linux不再難懂)

上一頁(yè) 1 2 下一頁(yè)

關(guān)鍵詞: 平臺 構建 應用 Linux 嵌入式 PXA255

評論


相關(guān)推薦

技術(shù)專(zhuān)區

關(guān)閉
国产精品自在自线亚洲|国产精品无圣光一区二区|国产日产欧洲无码视频|久久久一本精品99久久K精品66|欧美人与动牲交片免费播放
<dfn id="yhprb"><s id="yhprb"></s></dfn><dfn id="yhprb"><delect id="yhprb"></delect></dfn><dfn id="yhprb"></dfn><dfn id="yhprb"><delect id="yhprb"></delect></dfn><dfn id="yhprb"></dfn><dfn id="yhprb"><s id="yhprb"><strike id="yhprb"></strike></s></dfn><small id="yhprb"></small><dfn id="yhprb"></dfn><small id="yhprb"><delect id="yhprb"></delect></small><small id="yhprb"></small><small id="yhprb"></small> <delect id="yhprb"><strike id="yhprb"></strike></delect><dfn id="yhprb"></dfn><dfn id="yhprb"></dfn><s id="yhprb"><noframes id="yhprb"><small id="yhprb"><dfn id="yhprb"></dfn></small><dfn id="yhprb"><delect id="yhprb"></delect></dfn><small id="yhprb"></small><dfn id="yhprb"><delect id="yhprb"></delect></dfn><dfn id="yhprb"><s id="yhprb"></s></dfn> <small id="yhprb"></small><delect id="yhprb"><strike id="yhprb"></strike></delect><dfn id="yhprb"><s id="yhprb"></s></dfn><dfn id="yhprb"></dfn><dfn id="yhprb"><s id="yhprb"></s></dfn><dfn id="yhprb"><s id="yhprb"><strike id="yhprb"></strike></s></dfn><dfn id="yhprb"><s id="yhprb"></s></dfn>