prettify

Jun 22, 2016

compile root file system (busybox)





1.    Busybox compiling config
a.     Don’t set the static library.
b.     Should set up the cross compile prefix.
c.     Set ‘Not support big files’
d.     Set ‘Not use local  /usr’
2.     Compile busybox
a.     make menuconfig
b.     make
c.     make install
d.     the default installing directory for busybox is busybox_root/_install
3.     If using initramfs format as rootfs, when compiling kernel we should set up kernel’s config file to support initramfs. Including the following setting:
                CONFIG_INITRAMFS_SOURCE="/home/project/a/busybox/_install" (this directory _install is from the above step 3)
            The above path is rootfs’s directories path.
            When compiling kernel, it will create the cpio.gz file in              
                 kernel_root/usr/initramfs_data.cpio.gz.
          At the same time, the rootfs will be compiled with kernel image. So the file Image includes kernel and rootfs.