一、移植busybox
2、解壓並進入目錄
#tar -xvf busybox-1.20.2.tar.bz2
#cd busybox-1.20.2
3、修改makefile中的體系結構arch和交叉編譯器字首cross_compile
#vim makefile
cross_compile = arm-linux-
arch = arm
4、配置busybox
其他選項都是一些linux基本命令選項,自己需要哪些命令就編譯進去,一般用預設的就可以了,配值好後退出並儲存。
5、編譯busybox
#make -j 2
6、安裝
#make install
在busybox-1.20.2目錄下可以找到_install子目錄,這就是剛才的安裝目錄。
7、分析
#ls -l /bin
#ls -l _install/bin
二、加入必要的目錄與檔案
三、構建根檔案系統
2、編譯mkyaffs2image工具
#tar xvf yaffs2-source.tar
#cd yaffs2/utils
#make
#cd mkyaffs2image /usr/local/bin
3、製作根檔案系統映象
回到busybox那個目錄:
#mkyaffs2image mini_rootfs rootfs.img
五、使用者管理
六、nfs配置
1、#cp /root/build_rootfs/busybox-1.20.2/mini_rootfs/ / -rdf
2、#vi /etc/exports
內容如下:
/mini_rootfs *(rw,sync,no_root_squash)
啟動nfs伺服器:
#service nfs restart
3、測試nfs伺服器
#mount -t nfs 192.168.0.41:/mini_rootfs /mnt
其中192.168.0.41是你的虛擬機器系統的ip位址
#ls /mnt
#umount /mnt
4、配置核心以支援nfs啟動
ARM裸機s5pv210 最簡單根檔案系統製作
cd root porting x210 rootfs dd if dev zero of rootfs.ext2 bs 1024 count 2048 losetup dev loop1 rootfs.ext2 loop1繁忙就往loop2,依次嘗試,loop14直接可以 mke2fs m 0 d...
s5pv210 時鐘系統
根據推薦值來設定相應的mux開關 pll鎖相環倍頻 div分頻器的值來得到相應的時鐘。1 設定鎖定週期,一般為預設值。因為pll倍頻需要一定時間才能達到相應的頻率。1 用來開啟或關閉pll電路,設定倍頻引數,檢視pll鎖定狀態等。設定apll的倍頻率 fout mdiv x fin pdiv 2 s...
最小根檔案系統製作
一 移植busybox make menuconfig busybox settings build options build busybox as a static binary no shared libs 是否編譯成靜態庫,在這裡我沒選,使用動態庫 busybox library tunin...