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.