RAM and ROM File System vs ROM-only File System

Source: Internet
Author: User

 

This article Reprinted from http://chenyq2008.spaces.live.com/blog/

Both are file system drivers. Can read the ROM file system. The difference is: in addition to being able to read ROM disks, the former also constructs a ramdisk. (Because file system is very confusing, I call it ROM disk and ramdisk ).

This article Reprinted from http://chenyq2008.spaces.live.com/blog/
What does ramdisk mean? Is a virtual disk in the ram space. Let's talk a little bit of nonsense: After ce is set up, all available memory will be split into two spaces. The storage memory and program memory will be allocated at by default. You can go to config. set FSRAMPERCENT in bib to change the allocation ratio. The program memory is the memory available for the program, and the memory that is normally understood. Storage memory: Object Store, which includes the registry, attribute database, and ramdisk mentioned above.
What do ROM disks mean? First of all, it must be nk. bin. Secondly, does it mean the nk. bin in flash or the nk. bin that is loaded into the memory? After testing, we should refer to the nk. bin loaded into the memory. After the internal kernel is started, you need to find the file to execute. First, you need to execute nk.exe. This is a special case, because the image entry point is it. nk.exewants to initialize filesys.exe, and filesys.exe needs to obtain the Registry. At this time, Disks, this is an argument. In addition, a test was conducted to download nk. bin from the computer through a usb or network cable to run the device,
After downloading, it is not written to the disk, but directly run. This test is successful, indicating that the ROM disk is indeed an image in the memory.

Return to the topic of RAM and ROM File System vs ROM-only File System. If the former is used, the root directory of the system is the ramdisk mentioned above, while external disks such as \ ResidentFlash and \ Storage Card become independent directories mounted under the root directory, the content of the ROM disk is placed in the \ windows directory. If xip is used, you can even see the nk represented by \ binfs. the disk where the bin is located. Except for external disks, write and change to other directories occur in the memory. Therefore, after the system is restarted, all of them disappear. This leads to a problem: how to install third-party software permanently?
Because third-party software often saves things under the windows directory, it also modifies the registry. It cannot be used after restart. This completely deviates from the user experience. (Microsoft considers that the device never shuts down, so early ppc did not have the shutdown function .) Add the ROM-only File System component to the catalog and modify the MountFlags or MountAsRoot of the Registry to use the ROM-only File System function. If you have an existing project, remember to check the clear when rebuild is re-built. It treats a disk as the root directory of the system. However, wince5.0 may have a problem,
That is, the synchronization function cannot work. According to the data, both Wince6.0 and mobile provide a File replacition filter driver (fsreplxfilt. dll) to solve this problem. According to my analysis, because synchronization needs to be synchronized to the Object Store, this driver provides the processing of the Object Store interface. The link to the description about File replacition is here: http://msdn.microsoft.com/en-us/library/aa911937.aspx

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.