1 建立根文件系统结构 
  #mkdir rootfs 
  #cd rootfs 
  #mkdir bin dev etc lib proc sbin tmp usr var 
  #chmod 1777 tmp 
  #mkdir usr/bin usr/lib usr/sbin 
  #mkdir var/lib var/lock var/log var/run var/tmp 
  #chmod 1777 var/tmp 
  2 准备链接库 
  #cd ${OBJ_LIB}/lib (${OBJ_LIB}是交叉编译环境的目录) 
  #for file in libc libcrypt libdl libm \ 
  >libpthread libresolv libutil 
  >do 
  >cp $file-*.so /home/fortis/rootfs/lib 
  >cp -d $file.so.[*0-9] /home/fortis/rootfs/lib 
  >done 
  #cp -d ld*.so* /home/fortis/rootfs/lib 
  3 使用busybox制作系统应用程序 
  3.1 下载busybox(
http://www.busybox.net/)并解压。 
  3.2 进入解压后的目录,配置Busybox 
  $make menuconfig 
  Busybox Settings > 
  General Configuration > 
  [*] Support for devfs 
  Build Options > 
  [*] Build BusyBox as a static binary (no shared libs) 
  /* 将busybox编译为静态连接,少了启动时找动态库的麻烦 */ 
  [*] Do you want to build BusyBox with a Cross Compiler? 
  (/usr/local/arm/3.3.2/bin/armlinux) 
  Cross Compiler prefix/* 指定交叉编译工具路径 */ 
  Init Utilities > 
  [*] init 
  [*] Support reading an inittab file 
  /* 支持init读取/etc/inittab配置文件,一定要选上 */ 
  Shells > 
  Choose your default shell (ash) > 
 
								 
									
相关文章
									
Linux下用BusyBox制作Ramdisk全过程
Windows何处能敌?Linux桌面六大优势
澳大利亚华人论坛
考好网
日本华人论坛
华人移民留学论坛
英国华人论坛