CN113448639A - Access method, device, equipment and storage medium for user configuration variable area - Google Patents

Access method, device, equipment and storage medium for user configuration variable area Download PDF

Info

Publication number
CN113448639A
CN113448639A CN202110993478.9A CN202110993478A CN113448639A CN 113448639 A CN113448639 A CN 113448639A CN 202110993478 A CN202110993478 A CN 202110993478A CN 113448639 A CN113448639 A CN 113448639A
Authority
CN
China
Prior art keywords
user configuration
configuration information
user
memory
variable area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110993478.9A
Other languages
Chinese (zh)
Other versions
CN113448639B (en
Inventor
高溪
陈振宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba China Co Ltd
Alibaba Cloud Computing Ltd
Original Assignee
Alibaba China Co Ltd
Alibaba Cloud Computing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba China Co Ltd, Alibaba Cloud Computing Ltd filed Critical Alibaba China Co Ltd
Priority to CN202110993478.9A priority Critical patent/CN113448639B/en
Publication of CN113448639A publication Critical patent/CN113448639A/en
Application granted granted Critical
Publication of CN113448639B publication Critical patent/CN113448639B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention provides an access method, a device, equipment and a storage medium for a user configuration variable area, wherein the method comprises the following steps: copying user configuration information stored in a user configuration variable area in a flash to a storage area in a processor through a read interface command word of the flash, wherein different flashes share the read interface command word; reading user configuration information stored in a user configuration variable area from the storage area; and starting up the computer according to the editing result of the user configuration information. In the scheme, the problem that the user configuration variable region accessed by the processor is limited by a flash medium is solved by copying the user configuration variable region in the flash to a certain storage region in the processor.

Description

Access method, device, equipment and storage medium for user configuration variable area
Technical Field
The present invention relates to the field of internet technologies, and in particular, to an access method, an access device, an access apparatus, and a storage medium for a user configuration variable area.
Background
With the continuous development of the technology, most computer motherboards support a boot system with a Unified Extensible Firmware Interface (UEFI), so that the starting speed of an operating system is increased. Different vendors have different implementations of UEFI, and a more common open source implementation is EDK2 (EFI Developer Kit), and EDK2 is a cross-platform firmware development environment that conforms to the UEFI standard and the PI standard.
The developer develops a starting program such as a server through the EDK2, and during the starting process of the server based on the starting program, a configuration interface can be displayed for a user to perform some configuration operations related to starting, such as configuring a starting disk, selecting whether to start a memory interleaving function, and the like.
The configuration result or default configuration information when the user starts the server before needs to be stored in a specific storage address interval in a flash memory (flash), which is called a user configuration variable area. When the server is started next time, the flash can be accessed in an execute in place (xip) mode to read the user configuration variable area, and the server is started based on the configuration information in the user configuration variable area.
The xip mode driver codes of different flash manufacturers on the market are not uniform, a specific driver interface provided by the manufacturer is needed when the server is used, and when the server is used for the flashes of multiple manufacturers, the EDK2 codes need to contain the xip mode driver codes corresponding to different flashes. Therefore, when the server is online, if a flash of a new manufacturer is added, the EDK2 code needs to be synchronously upgraded for compatible adaptation, otherwise, the server cannot be started.
Disclosure of Invention
The embodiment of the invention provides an access method, device, equipment and storage medium for a user configuration variable area, which are used for solving the problem that the access user configuration variable area is limited by different flashes.
In a first aspect, an embodiment of the present invention provides an access method for a user configuration variable area, where the method includes:
copying user configuration information stored in a user configuration variable area in a flash memory into a storage area in a processor through a read interface command word of the flash memory, wherein different flash memories share the read interface command word;
reading the user configuration information from the storage area;
and starting up the computer according to the editing result of the user configuration information.
In a second aspect, an embodiment of the present invention provides an access apparatus for configuring a variable area by a user, where the apparatus includes:
the copying module is used for copying user configuration information stored in a user configuration variable area in the flash memory into a storage area in the processor through a read interface command word of the flash memory, and different flash memories share the read interface command word;
a reading module, configured to read the user configuration information from the storage area;
and the starting processing module is used for carrying out starting processing according to the editing result of the user configuration information by the user.
In a third aspect, an embodiment of the present invention provides an electronic device, including: a memory, a processor, a communication interface; wherein the memory has stored thereon executable code which, when executed by the processor, causes the processor to implement at least the method of accessing a user-configurable variable area as described in the first aspect.
In a fourth aspect, an embodiment of the present invention provides a non-transitory machine-readable storage medium having stored thereon executable code, which when executed by a processor of an electronic device, causes the processor to implement at least the method for accessing a user-configurable variable area according to the first aspect.
In the scheme provided by the embodiment of the invention, although the xip mode drive codes of the flash of each manufacturer are different, the read-write interface command words of the bottom layers of various flash media are the same, namely the read (read), write (write) and erase (erase) command words sent by a hardware link are the same. Therefore, taking a server as an example, in a starting process after the server is powered on, firstly, all user configuration information stored in a user configuration variable area in a flash is copied to a storage area in a processor (CPU) through a read interface command word of the flash, then, the user configuration information stored in the user configuration variable area at this time is read from the storage area of the processor to output the user configuration information recorded therein for a user to edit (confirm or modify), and finally, the power-on starting process is performed according to an editing result of the user on the read user configuration information. In the scheme, the user configuration information stored in the user configuration variable area in the flash is copied to a certain storage area in the processor, so that the problem that the processor is limited to the flash medium when accessing the user configuration variable area is solved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
Fig. 1 is a flowchart of an access method for a user configuration variable area according to an embodiment of the present invention;
fig. 2 is an application diagram of an access method for a user configuration variable area according to an embodiment of the present invention;
fig. 3 is a flowchart of an access method for a user configuration variable area according to an embodiment of the present invention;
fig. 4 is an application diagram of an access method for a user configuration variable area according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an access apparatus for configuring a variable area by a user according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device corresponding to the access device for configuring the variable area by the user according to the embodiment shown in fig. 5.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In addition, the sequence of steps in each method embodiment described below is only an example and is not strictly limited.
The access method for the user configuration variable area provided by the embodiment of the invention can be executed by an electronic device, and the electronic device can be a terminal device such as a PC (personal computer), a notebook computer, a smart phone and the like, and can also be a server. The server may be a physical server or may also be a virtual server.
Fig. 1 is a flowchart of an access method for a user configuration variable area according to an embodiment of the present invention, as shown in fig. 1, which may include the following steps:
101. copying user configuration information stored in a user configuration variable area in the flash to a storage area in a processor through a read interface command word of the flash, wherein different flashes share the read interface command word.
102. And reading the user configuration information stored in the user configuration variable area from the storage area, and outputting the user configuration information recorded in the user configuration variable area.
103. And starting up the computer according to the editing result of the user configuration information.
The scheme provided by the embodiment of the invention can be applied to any electronic equipment, such as a server, in the starting process, wherein a user can perform related starting configuration operation.
Taking a server as an example, in practical applications, one server may have multiple flash memories therein, and the multiple flash memories may be produced by different manufacturers.
As described above, in the process of starting the server, the processor (the processor herein may be a central processing unit, CPU) needs to read the user configuration variable region storing the user configuration information in the flash, and in order to improve the data access efficiency between the CPU and the flash, the CPU may access the flash in the xip mode. The drive codes of the xip modes of the flash produced by different manufacturers are different, the EDK2 code needs to contain the xip mode drive codes corresponding to the flash of different manufacturers, and the compatibility problem of the xip mode needs to be considered when a new flash is added in the server, so that the cost is high.
In the scheme provided by the embodiment of the invention, a new data access mode between the CPU and the flash is provided, so that a developer does not need to design an xip mode driving code of the corresponding flash in an EDK2 code in the development process, namely, the CPU and the flash are not accessed through the xip mode any more.
It can be understood that when a plurality of flash memories are arranged in the server, in the process of starting the server once, the starting program is only located in one flash memory, and the server is started through the flash memory. Therefore, the flash in each step of the embodiment of the present invention is the flash used in the present starting process.
Although the xip mode driving codes of the flash of each manufacturer are different, the read-write interface command words of the bottom layers of various flash media are the same, namely the read (read), write (write) and erase (erase) command words sent by a hardware link are the same. Therefore, a new flash access mode can be designed based on the universal read-write interface command words.
Taking a server as an example, in a starting process after the server is powered on, initialization of many software and hardware resources may be involved, and in this process, a user may be prompted to perform some relevant configuration operations through an interface, for example, the user may be prompted to select a starting disk used in the current starting, and whether to start a memory interleaving function in a memory initialization process, and the like.
The premise of displaying the configuration interfaces is that a CPU firstly acquires all user configuration information stored in a user configuration variable area previously stored in a flash, and outputs the user configuration information read from the user configuration variable area on the interface for a user to edit, wherein the editing generally comprises confirmation or modification, wherein the confirmation refers to the configuration information before the current starting process is reused, and the modification refers to some configuration information before the modification.
The method for acquiring the user configuration information stored in the user configuration variable area in the flash by the CPU is as follows: the user configuration information stored in the user configuration variable area in the flash is firstly copied to a certain storage area of the CPU through a read interface command word (read) of the flash, and the storage area is set as the user configuration variable area identified in the EDK2 code, so that the CPU can directly read the user configuration information recorded in the user configuration variable area from the storage area.
Optionally, the storage area includes a Static Random-Access Memory (SRAM for short), and the SRAM is an area that can be read and written when the CPU is powered on, which meets the requirement of configuring a variable area by a Random read-write user in a starting process.
The method for copying the user configuration information stored in the user configuration variable area in the flash to a certain storage area of the CPU specifically can be realized as follows:
determining a storage address corresponding to a user configuration variable area in the storage area;
and copying the user configuration information stored in the user configuration variable area in the flash into the storage area according to the storage address.
Specifically, assuming that storage addresses corresponding to user configuration variable regions in flash are H1-H2, a block of storage space with the same size is configured in advance in the SRAM, and assuming that addresses corresponding to the block of storage space are C1-C2, after the server is powered on, user configuration information stored in the user configuration variable regions stored in the storage addresses H1-H2 can be copied to the storage addresses C1-C2 of the SRAM.
The memory addresses C1-C2 of the SRAM for storing the user configuration information in the user configuration variable area can be preset in the EDK2 code, so that when the CPU runs the EDK2 code, the user configuration information stored in the user configuration variable area read from the flash can be written into the memory addresses (C1-C2) of the SRAM based on the setting.
After copying the user configuration information stored in the user configuration variable area into the SRAM, the CPU can directly read the user configuration variable area from the SRAM to obtain the user configuration information stored in the user configuration variable area, and the user configuration information is output to a user.
It should be noted that, the reason why the user configuration information stored in the entire user configuration variable area is copied is that: it can be considered that a plurality of bytes (or bits) are defined in the user configuration variable region, different bytes correspond to different configuration items, and a user may set a certain configuration item to a certain state in the last configuration process, and some configuration items are default configuration states. In the configuration process, the configuration item may be set to another state, so that in order to store the configuration behavior of the user in the user configuration variable area, the user configuration information stored in the whole user configuration variable area needs to be copied, and the local configuration behavior of the user is directly written into the corresponding position, so that the write-back of the complete user configuration information in the subsequent user configuration variable area to the flash is facilitated.
After the previous user configuration information is presented to the user, the user can select whether to use the user configuration information, if so, the user configuration information is confirmed, otherwise, the user configuration information is modified. And then, on one hand, executing related starting processing based on the user configuration information finally determined by the user, on the other hand, storing the user configuration information confirmed by the user into the SRAM, and specifically, writing the user configuration information finally determined by the user into a storage address of a corresponding configuration item in the SRAM. The user configuration information finally determined by the user is the modified new user configuration information or the output user configuration information adopted before.
Assuming that a user modifies some configuration information to obtain new user configuration information, on one hand, the new user configuration needs to be stored in the storage area of the SRAM, and on the other hand, the user configuration information stored in the SRAM needs to be copied from the SRAM to the flash through a write or erase command word that is common to the flash under a specific condition, so as to implement writing of a user configuration result into the flash.
The specific condition is, for example, a condition that data in the SRAM is lost due to shutdown, restart, or the like.
In summary, in the process of starting the machine, by copying the user configuration information stored in the user configuration variable region in the flash to a certain storage region (for example, the storage region is located in the SRAM) in the CPU, the problem that the CPU access to the user configuration variable region is limited to different flash media is solved, that is, the problem that the xip mode driver code of each flash manufacturer needs to be compatible in the EDK2 code is solved.
In order to facilitate understanding of the implementation of the above-described scheme, an exemplary description is given in conjunction with fig. 2. As shown in fig. 2, the server includes a CPU and two flashes, one of which is a primary flash and the other of which is a backup flash, and in the case where the primary flash does not have a failure, it is assumed that the primary flash is used to start the server. The CPU includes SRAM. After the server is powered on, the CPU copies the user configuration information stored in the user configuration variable area in the flash to the SRAM for storage through the general read command word corresponding to the flash, and then reads the user configuration information recorded in the user configuration variable area from the SRAM and outputs the user configuration information for the user to edit. Assuming that the user modifies some of the user configuration information, the modification result of the user is stored in the SRAM. And completing the starting of the server based on the modified user configuration information. When the server is shut down or restarted, the CPU writes the user configuration information stored in the SRAM back into the flash through the general write command word of the flash for use when the server is started next time. Because the SRAM is positioned in the CPU, the CPU can directly access the SRAM, and the access speed is high.
Fig. 3 is a flowchart of an access method for a user configuration variable area according to an embodiment of the present invention, and as shown in fig. 3, the method may include the following steps:
301. copying user configuration information stored in a user configuration variable area in the flash to a cache of the CPU through a read interface command word of the flash.
302. And reading the first user configuration information from the cache of the CPU.
303. And responding to the initialization of the memory, and copying the second user configuration information stored in the cache into the memory from the cache of the CPU.
304. And reading the second user configuration information from the memory.
305. And starting up the computer according to the editing result of the first user configuration information and the second user configuration information by the user.
306. And storing the new user configuration information into a memory, wherein the editing result comprises the new user configuration information input by the user.
307. And if the set conditions are met, copying the user configuration information from the memory to a user configuration variable area in the flash through the write interface command word of the flash.
In the foregoing embodiment, the SRAM in the CPU is used as the storage area corresponding to the user configuration variable area, and actually, in addition to the SRAM, the cache in the CPU and the memory in the server may also be used as the storage area corresponding to the user configuration variable area. The cache is an On-Chip Memory (OCM for short)
The server is started up by initializing many resources, including initializing the memory. The initialization of the memory will cause the cache in the CPU to disappear, and therefore, when the cache of the CPU is used to store the user configuration information stored in the user configuration variable region, the cache of the CPU needs to be used in combination with the memory.
Specifically, after the server is powered on, the CPU may copy the user configuration information stored in the user configuration variable area in the flash to the cache of the CPU through the read command word. The CPU can directly carry out data interaction with the internal cache, and the access efficiency is high. The method includes that a server needs to be executed to memory initialization after being powered on for a period of time, some user configuration operations are involved in the period of time, then in the period of time, when certain user configuration operation needs to be carried out, a CPU (central processing unit) can read user configuration information (called as first user configuration information) originally recorded in a user configuration variable area from a cache of the CPU, a user determines whether to modify the first user configuration information, if not, execution is continued according to the first user configuration information, otherwise, if modification is carried out, a starting process is executed according to the modified first user configuration information. At this time, the modified first user configuration information may be written into the cache.
When the memory needs to be initialized, the CPU will copy the user configuration information recorded in the cache to the memory, and then when a certain user configuration operation needs to be performed, the CPU may read the user configuration information (referred to as second user configuration information) from the memory, and the user determines whether to modify the second user configuration information, and if not, the execution is continued according to the second user configuration information, otherwise, the start-up process is executed according to the modified second user configuration information. At this time, the modified second user configuration information may be written into the memory. The second user profile may be a user profile that is modified from the first user profile.
Therefore, the new user configuration information generated based on the modification behavior of the user is finally stored into the memory.
And then, when specific conditions (such as shutdown and restart) are met, the CPU writes the last user configuration information back to the flash from the memory through the write command word.
In order to facilitate understanding of the implementation of the above-described scheme, an exemplary description is given in conjunction with fig. 4. As shown in fig. 4, the server includes a CPU and two flashes, one of which is a primary flash and the other of which is a backup flash, and in the case where the primary flash does not have a failure, it is assumed that the primary flash is used to start the server. The CPU includes a cache. After the server is powered on, the CPU copies the user configuration information stored in the user configuration variable area in the flash to the cache for storage through the general read command word corresponding to the flash, and then reads the corresponding user configuration information recorded in the original user configuration variable area from the cache when certain configuration operation needs to be executed, and outputs the user configuration information for the user to edit. And if the user modifies some user configuration information, storing the modification result of the user into a cache, and continuing to start the server based on the modified user configuration information. When the memory needs to be initialized, the CPU copies the user configuration information from the cache to the memory, and then reads the user configuration information from the memory and outputs the user configuration information for the user to edit when certain configuration operation needs to be executed. And if the user modifies some user configuration information, storing the modification result of the user into the memory, and continuing to start the server based on the modified user configuration information. When the server is shut down or restarted, the CPU writes the user configuration information stored in the memory back into the flash through the general write command word of the flash for use when the server is started next time.
In conclusion, the problem that the user configuration variable region accessed by the CPU is limited by the flash medium is solved by copying the user configuration information stored in the user configuration variable region in the flash to the SRAM or the cache of the CPU.
It should be noted that, as can be seen from the above description, both the SRAM and the cache in the CPU can be used as storage areas corresponding to the user configuration variable area. In practical applications, the storage space of the SRAM is generally smaller than the storage space of the cache. Therefore, optionally, if the remaining storage space in the SRAM is larger than the storage space required for storing the user configuration variable region, the SRAM may be selected to store the user configuration information stored in the user configuration variable region, otherwise, if the remaining storage space in the SRAM is smaller than the storage space required for storing the user configuration variable region, the cache may be selected to store the user configuration information stored in the user configuration variable region.
The access means of the user configuration variable region of one or more embodiments of the present invention will be described in detail below. Those skilled in the art will appreciate that these means can each be constructed using commercially available hardware components and by performing the steps taught in this disclosure.
Fig. 5 is a schematic structural diagram of an access apparatus for configuring a variable area by a user according to an embodiment of the present invention, and as shown in fig. 5, the apparatus includes: a copy module 11, a read module 12, and a start processing module 13.
The copy module 11 is configured to copy the user configuration information stored in the user configuration variable area in the flash memory to a storage area in the processor through a read interface command word of the flash memory, where different flash memories share the read interface command word.
A reading module 12, configured to read the user configuration information from the storage area.
And the starting processing module 13 is configured to perform starting processing according to an editing result of the user configuration information by the user.
Optionally, the copy module 11 is specifically configured to: determining a storage address corresponding to the user configuration variable area in the storage area; and copying the user configuration information stored in the user configuration variable area in the flash memory into the storage area according to the storage address.
Optionally, the editing result includes new user configuration information input by the user; the device further comprises: the writing module is used for storing the new user configuration information into the storage area; and if the set conditions are met, copying the user configuration information stored in the storage area from the storage area to the flash memory through the write interface command words of the flash memory, wherein different flash memories share the write interface command words.
Optionally, the storage area includes: static random access memory or cache memory in the processor.
When the storage area includes a cache, the reading module 12 is specifically configured to: responding to the initialization of the memory, and copying the user configuration information stored in the cache into the memory from the cache; and reading the user configuration information from the memory.
Based on this, optionally, the editing result includes new user configuration information input by the user; the write module is further to: storing the new user configuration information into the memory; and if the set conditions are met, copying the user configuration information stored in the memory from the memory to the flash memory through the write interface command words of the flash memory, wherein different flash memories share the write interface command words.
Optionally, the copy module 11 is specifically configured to: if the residual storage space of the static random access memory meets the requirement of the user configuration variable area, copying user configuration information stored in the user configuration variable area in the flash memory into the static random access memory; and if the residual storage space of the static random access memory does not meet the requirement of the user configuration variable area, copying the user configuration information stored in the user configuration variable area in the flash memory into the cache.
The apparatus shown in fig. 5 may perform the steps described in the foregoing embodiments, and the detailed performing process and technical effects refer to the descriptions in the foregoing embodiments, which are not described herein again.
In one possible design, the structure of the access device for the user configuration variable area shown in fig. 5 may be implemented as an electronic device, which may include: a processor 21, a memory 22, and a communication interface 23. Wherein the memory 22 has stored thereon executable code which, when executed by the processor 21, makes the processor 21 at least to implement the access method of the user configured variable area as provided in the previous embodiments.
As mentioned above, the storage 22 may include a cache memory, an SRAM, and a memory in the processor 21.
In addition, an embodiment of the present invention provides a non-transitory machine-readable storage medium having stored thereon executable code, which, when executed by a processor of an electronic device, causes the processor to implement at least the access method of a user-configured variable region as provided in the foregoing embodiments.
The above-described apparatus embodiments are merely illustrative, wherein the units described as separate components may or may not be physically separate. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by adding a necessary general hardware platform, and of course, can also be implemented by a combination of hardware and software. With this understanding in mind, the above-described aspects and portions of the present technology which contribute substantially or in part to the prior art may be embodied in the form of a computer program product, which may be embodied on one or more computer-usable storage media having computer-usable program code embodied therein, including without limitation disk storage, CD-ROM, optical storage, and the like.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. An access method for a user configuration variable area, comprising:
copying user configuration information stored in a user configuration variable area in a flash memory into a storage area in a processor through a read interface command word of the flash memory, wherein different flash memories share the read interface command word;
reading the user configuration information from the storage area;
and starting up the computer according to the editing result of the user configuration information.
2. The method of claim 1, wherein copying the user configuration information stored in the user configuration variable area in the flash memory to a storage area in the processor comprises:
determining a storage address corresponding to the user configuration variable area in the storage area;
and copying the user configuration information stored in the user configuration variable area in the flash memory into the storage area according to the storage address.
3. The method of claim 1, wherein the edit result includes new user configuration information entered by a user; the method further comprises the following steps:
storing the new user configuration information into the storage area;
and if the set conditions are met, copying the user configuration information stored in the storage area from the storage area to the flash memory through the write interface command words of the flash memory, wherein different flash memories share the write interface command words.
4. The method of claim 1, wherein the storage area comprises: static random access memory or cache memory in the processor.
5. The method of claim 4, wherein the storage area comprises a cache; the reading of the user configuration information stored in the user configuration variable area from the storage area includes:
responding to the initialization of the memory, and copying the user configuration information stored in the cache into the memory from the cache;
and reading the user configuration information from the memory.
6. The method of claim 5, wherein the edit result includes new user configuration information entered by a user; the method further comprises the following steps:
storing the new user configuration information into the memory;
and if the set conditions are met, copying the user configuration information stored in the memory from the memory to the flash memory through the write interface command words of the flash memory, wherein different flash memories share the write interface command words.
7. The method of claim 4, wherein copying the user configuration information stored in the user configuration variable area in the flash memory to a storage area in the processor comprises:
if the residual storage space of the static random access memory meets the requirement of the user configuration variable area, copying user configuration information stored in the user configuration variable area in the flash memory into the static random access memory;
and if the residual storage space of the static random access memory does not meet the requirement of the user configuration variable area, copying the user configuration information stored in the user configuration variable area in the flash memory into the cache.
8. An access device for configuring a variable area by a user, comprising:
the copying module is used for copying user configuration information stored in a user configuration variable area in the flash memory into a storage area in the processor through a read interface command word of the flash memory, and different flash memories share the read interface command word;
a reading module, configured to read the user configuration information from the storage area;
and the starting processing module is used for carrying out starting processing according to the editing result of the user configuration information by the user.
9. A non-transitory machine-readable storage medium having stored thereon executable code, which when executed by a processor of an electronic device, causes the processor to perform the method of accessing a user-configurable variable area as claimed in any one of claims 1 to 7.
10. An electronic device, comprising: a memory, a processor, a communication interface; wherein the memory has stored thereon executable code which, when executed by the processor, causes the processor to perform the method of accessing a user-configurable variable region as claimed in any one of claims 1 to 7.
CN202110993478.9A 2021-08-27 2021-08-27 Access method, device, equipment and storage medium for user configuration variable area Active CN113448639B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110993478.9A CN113448639B (en) 2021-08-27 2021-08-27 Access method, device, equipment and storage medium for user configuration variable area

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110993478.9A CN113448639B (en) 2021-08-27 2021-08-27 Access method, device, equipment and storage medium for user configuration variable area

Publications (2)

Publication Number Publication Date
CN113448639A true CN113448639A (en) 2021-09-28
CN113448639B CN113448639B (en) 2022-02-18

Family

ID=77818848

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110993478.9A Active CN113448639B (en) 2021-08-27 2021-08-27 Access method, device, equipment and storage medium for user configuration variable area

Country Status (1)

Country Link
CN (1) CN113448639B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101097522A (en) * 2006-06-30 2008-01-02 联想(北京)有限公司 Method for accelerating BIOS operation
CN101526922A (en) * 2009-04-03 2009-09-09 深圳市宝捷信科技有限公司 Flash data access method and device thereof
CN104573421A (en) * 2014-12-30 2015-04-29 北京兆易创新科技股份有限公司 Multi-partition based MCU chip information protection method and device
CN110333901A (en) * 2019-07-09 2019-10-15 环胜电子(深圳)有限公司 The title update method of storage device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101097522A (en) * 2006-06-30 2008-01-02 联想(北京)有限公司 Method for accelerating BIOS operation
CN101526922A (en) * 2009-04-03 2009-09-09 深圳市宝捷信科技有限公司 Flash data access method and device thereof
CN104573421A (en) * 2014-12-30 2015-04-29 北京兆易创新科技股份有限公司 Multi-partition based MCU chip information protection method and device
CN110333901A (en) * 2019-07-09 2019-10-15 环胜电子(深圳)有限公司 The title update method of storage device

Also Published As

Publication number Publication date
CN113448639B (en) 2022-02-18

Similar Documents

Publication Publication Date Title
TW518517B (en) Storing system-level mass storage configuration data in non-volatile memory on each mass storage device to allow for reboot/power-on reconfiguration of all installed mass storage devices to the same configuration as last use
US10394570B2 (en) Method of generating boot image for fast booting and image forming apparatus for performing the method, and method of performing fast booting and image forming apparatus for performing the method
CN100394391C (en) Systems and methods for storing data on computer systems
US20130036300A1 (en) Method of fixing error of boot image for fast booting and image forming apparatus for performing the method
US20130042097A1 (en) Method of updating boot image for fast booting and image forming apparatus for performing the method
KR20050079835A (en) Method for updating firmware in embedded controller and medium recorded update firmware
JP5778296B2 (en) Virtual computer system, virtualization mechanism, and data management method
KR20060122064A (en) Electronic device and booting method thereof
US7958344B2 (en) Method for adjusting set-up default value of bios and mainboard using the same method
US20100115004A1 (en) Backup system that stores boot data file of embedded system in different strorage sections and method thereof
CN109426511B (en) Soft core updating method and system
CN110825421B (en) Firmware upgrading method, system and readable storage medium
CN113448639B (en) Access method, device, equipment and storage medium for user configuration variable area
WO2018059565A1 (en) Method and system for backing up flash memory data
CN111694580B (en) Method and device for upgrading and initializing storage device and electronic device
TWI518594B (en) Computer system and activation method for computer system
JP4735765B2 (en) Linux program startup system
CN109582370B (en) Starting method and device of NOR FLASH embedded equipment
US20220066784A1 (en) Disabling software persistence
CN115904820B (en) Recovery method and system for failed hard disk
KR100575927B1 (en) Method for booting the nand flash memory using multi boot loader in mobile station
JP2000267707A (en) Sequence controller, maintenance method for maintenance area in the same device, and recording medium for storing computer program for executing the same method
CN116048630A (en) Method for accessing hidden area data, electronic equipment and storage medium
KR100640612B1 (en) Method and Apparatus for writing a main code
US20220108017A1 (en) Firmware to restore configurable option

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant