Use of the cramfs root file system-general Linux technology-Linux programming and kernel information. The following is a detailed description. My file system has always been yaffs, mainly because the Development Board was previously equipped with yaffs (haha, lazy). Later I transplanted a root file system and wanted to change a file system, at last, I didn't do this. At the end of porting 2.6.24, The yaffs file system went wrong, mainly because the yaffs and mtd updates were not synchronized, causing inconsistency in oob processing, reading the file after mount is abnormal. This is also discussed by many people on the Internet. Recently, I have prepared to port a Linux instance of the latest version because 2.6.13 is a little old. For the sake of simplicity, you don't need to use yaffs. Cramfs is used. This is well supported and the compressed files are much smaller. My own file system, yaffs 2160 k, and cramfs is only 1179 k, saving nearly 50%. Let's talk less and get into the right question.
1. Select cramfs when compiling the kernel. (Nonsense, don't you choose to do it ?), Remove yaffs at the same time. Otherwise, specify filetype in bootarg.
After downloading and decompressing the package, make will generate mkcramfs. Directly./mkcramfs rootfs (your own file system) filesystem. cramfs. Filesystem. cramfs is the generated cramfs file system image. Simply burn it into the nand partition. You can simply use the nand write command to burn the cramfs file system, and the yaffs needs to use nand write. yaffs1. It seems that cramfs is still simple.
After the preceding steps are completed, you can start the kernel. Test vi hello, save. The readonly filesystem prompt is displayed. Very good.
The next step is to port 2.6.25. Skip the latest version because I have been unable to port the SD card driver for 2.6.13. Haha. Check whether the latest version of Linux is complete, and check whether the program is complete. However, the SD card is divided into too many files, which is a little troublesome.
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