Create a file system and image in busybox

Source: Internet
Author: User

In embedded learning, uboot transplantation, kernel cropping and transplantation, and file system creation.

Here we mainly use the busybox tool to create a file system and the mkyaffs2image tool to create a file system that can be downloaded to the Development Board as an image. IMG file.

First, install the busybox tool (which has many resources on the Internet). decompress the tool and enter the file directory. This is similar to the configuration cut kernel. after entering the tool, find the MAKEFILE file and set the arch? = $ (Subarch) changed to arch? = $ Arm, set cross_compile? = Changed to cross_comfile? = Arm-Linux -.

Then make menuconfig. after entering the file system, you can cut some features of the file system. After saving and exiting, A. config configuration file will be generated. Run the make command to compile busybox. After compilation, it is displayed:

Finally, execute make config_prefix =/home/fs_mini install, which indicates that config_prefix is the last generated file system. You can select it here. Generated after compilation:

The above is the prototype of a simple file system.

The following describes how to use the mkyaffs2image tool to create an image for the generated file system.

Run the command: mkyaffs2image-128M/home/fs_mini fs_mini.img to generate.

Of course, this is just a simple description of the entire process of file system creation, including a lot of content to be produced.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.