CN117435141A - Memory activation method, electronic equipment and storage medium - Google Patents

Memory activation method, electronic equipment and storage medium Download PDF

Info

Publication number
CN117435141A
CN117435141A CN202311535308.1A CN202311535308A CN117435141A CN 117435141 A CN117435141 A CN 117435141A CN 202311535308 A CN202311535308 A CN 202311535308A CN 117435141 A CN117435141 A CN 117435141A
Authority
CN
China
Prior art keywords
memory
firmware
solid state
state disk
data
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.)
Pending
Application number
CN202311535308.1A
Other languages
Chinese (zh)
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.)
Honor Device Co Ltd
Original Assignee
Honor Device Co 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202311535308.1A priority Critical patent/CN117435141A/en
Publication of CN117435141A publication Critical patent/CN117435141A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • G06F3/0632Configuration or reconfiguration of storage systems by initialisation or re-initialisation of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]
    • 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/4411Configuring for operating with peripheral devices; Loading of device drivers

Landscapes

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

Abstract

The application provides a memory activation method, electronic equipment and a storage medium, and relates to the technical field of storage. The method comprises the following steps: detecting state information of the first memory, the state information indicating whether the first memory is in an active state; if the state information indicates that the first memory is in an inactive state, acquiring firmware of the first memory from at least one firmware stored in a preset storage space, wherein different firmware is used for activating different memory; the first memory is activated using firmware of the first memory. In this way, the electronic device can automatically load the adaptive firmware for the memory, so as to realize the activation of the memory, and save labor cost.

Description

Memory activation method, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of storage technologies, and in particular, to a method for activating a memory, an electronic device, and a storage medium.
Background
Currently, with the development of big data technology and artificial intelligence technology, the demand for data storage is increasing. The memory serves as a basic module for data storage and plays an important role in data bearing. The memory includes a control device and a storage medium. The control means of the memory implement interaction with the storage medium and with the processor of the electronic device by means of running software logic. This software logic is generally referred to as firmware. The firmware required by the different memories is not completely consistent. Typically, the firmware is burned into the memory before the memory leaves the factory, so that the memory can be used normally. The process of setting firmware in memory such that the memory loads the firmware may be referred to as a memory card opening process, or an activation process.
However, the activation scheme of the firmware pre-burned in the memory cannot meet the application scenarios and requirements of the memory diversification.
Disclosure of Invention
The application provides a memory activation method, electronic equipment and a storage medium, which can automatically activate a memory and meet application scenes and requirements of memory diversification.
In order to achieve the above purpose, the embodiments of the present application adopt the following technical solutions:
in a first aspect, a memory activation method is provided, the method comprising: state information of the first memory is detected, the state information indicating whether the first memory is in an active state. If the state information indicates that the first memory is in an inactive state, acquiring the firmware of the first memory from at least one firmware stored in a preset storage space, wherein different firmware is used for activating different memory. The first memory is further activated using firmware of the first memory.
In a case where the control device and the storage medium of the memory are separately configured, it is difficult to install the adapted firmware in the memory in advance. And the memory is usually fixedly installed in the electronic equipment, and other card opening equipment such as a card opener and the like are difficult to insert to realize card opening. In the method, the electronic equipment can automatically load the adaptive firmware for the memory, so that the labor cost is saved. The control device and the storage medium in the memory can not be bound any more, and a user can select the combination of the control device and/or the storage medium configured in the memory according to the requirement, so that the flexibility of the memory configuration is improved.
In a possible implementation manner of the first aspect, each firmware of the at least one firmware corresponds to a combination of one control device and one storage medium, and different firmware corresponds to different combinations. The first memory includes a first control device and a first storage medium. If the state information indicates that the first memory is in an inactive state, acquiring firmware corresponding to the package information of the first memory from at least one firmware stored in a preset storage space. The package information is used to indicate a combination relationship of a control state of the memory and the storage medium. Thus, the electronic device can acquire the firmware adapting to the current memory from one or more firmware, and realize the card opening of the current memory.
In another possible implementation manner of the first aspect, the preset storage space is located in the electronic device. The preset memory space may be a memory of a basic boot program in the electronic device or a memory dedicated to storing firmware in the electronic device. The preset storage space is equivalent to providing backup space for the solid state. Even if the firmware is not installed in the memory, the electronic device can activate the memory through the preset memory space inside.
In another possible implementation manner of the first aspect, the preset storage space may be an electronic device peripheral memory. For example, a memory is provided outside such as a usb disk. The peripheral memory can provide enough storage space to store firmware with larger data quantity, so that the occupation of the internal storage space of the electronic equipment is reduced.
In another possible implementation manner of the first aspect, the state information of the first memory is detected during the running of the basic boot program. In this implementation, the activation program of the memory is added in the basic boot program. In the process of running the basic boot program, the electronic equipment can activate the memory under the condition that the state information of the first memory indicates that the first memory is in an inactive state, so that automatic card opening of the memory is realized.
In another possible implementation manner of the first aspect, the preset storage space is a storage space of the remote device. The electronic device may obtain firmware of the memory from the remote device to enable activation of the memory.
In another possible implementation manner of the first aspect, the program of the operating system is obtained from the remote device, and the state information of the first memory is detected during the running of the operating system. In this implementation, the activation program of the memory is set in an operating system program provided by the remote device, and the electronic device may implement automatic activation of the memory when the state information of the first memory indicates that the first memory is in an inactive state during running the operating system provided by the remote device.
In another possible implementation manner of the first aspect, after the first memory is activated by using the firmware of the first memory, an operating system of the electronic device may also be installed in the first memory. In this implementation, the memory may serve as an installation space for the operating system.
In another possible implementation manner of the first aspect, the electronic device may periodically send data mapping information of the solid state disk to the cloud device, where the data mapping information is used to represent a mapping relationship between a logical address and a physical address of data. Thus, the reliability and the safety of data storage in the memory can be improved.
In another possible implementation manner of the first aspect, if the data in the first memory fails to be read, after activating the first memory by re-adopting the firmware of the first memory, the data mapping information of the first memory is obtained from the cloud device, and the data in the first memory is recovered according to the data mapping information. In the implementation manner, if the memory in the electronic device fails, the electronic device can restore the data stored in the memory by combining the data mapping information backed up in the cloud device, so as to realize the recovery of the data disaster tolerance. In this way, the security and reliability of the data can be enhanced.
In another possible implementation manner of the first aspect, if the data in the first memory fails to be read, after activating the first memory by re-using the firmware of the first memory, the data mapping information is acquired in the first memory, where the data mapping information is used to represent a mapping relationship between a logical address and a physical address of the data, and the data in the first memory is recovered according to the data mapping information. In this implementation, if the memory fails, the electronic device may recover the data stored in the memory by using the data mapping information stored in the memory, so as to implement data disaster recovery. In this way, the security and reliability of the data can be enhanced.
In another possible implementation manner of the first aspect, after activating the first memory with the firmware of the first memory, the state information of the first memory may be changed from a first identifier to a second identifier, where the first identifier indicates that the first memory is in an inactive state, and the second identifier indicates that the first memory is in an active state. In this way, the electronic device can update the status information, so that the status information can accurately indicate whether the first memory is in an activated state.
In a second aspect, the present application provides an electronic device comprising: one or more memories and a processor. The one or more memories are coupled to the processor. The memory has stored therein computer program code comprising computer instructions which, when executed by the processor, cause the electronic device to perform the method of the first aspect and any of its possible implementations.
In a third aspect, the present application provides a computer readable storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method of the first aspect and any one of the possible implementations thereof.
In a fourth aspect, the present application provides a computer program product comprising program instructions which, when run on a computer, enable the computer to perform the method of the first aspect and any one of its possible implementations. For example, the computer may be the electronic device described above.
In a fifth aspect, the present application provides a chip system, which is applied to an electronic device. The system-on-chip includes an interface circuit and a processor. The interface circuit and the processor are interconnected by a wire. The interface circuit is for receiving signals from the memory and transmitting signals to the processor, the signals including computer instructions stored in the memory. When the processor executes the computer instructions, the electronic device performs the method of the first aspect and any possible implementation manner thereof.
Drawings
Fig. 1 is a schematic diagram of an example of a solid state hard disk card opening provided in an embodiment of the present application;
fig. 2 is a schematic diagram of an example of a control device and a storage medium of a memory according to an embodiment of the present application;
fig. 3 is a hardware structural block diagram of an electronic device according to an embodiment of the present application;
fig. 4 is a block diagram of an electronic device activating a first memory according to an embodiment of the present application;
fig. 5 is a schematic diagram of a motherboard integrated module according to an embodiment of the present application;
FIG. 6 is a flowchart of a method for activating a memory according to an embodiment of the present application;
fig. 7 is a schematic diagram of another motherboard integrated module according to an embodiment of the present application;
fig. 8 is a schematic diagram of a notebook computer connected with a peripheral memory according to an embodiment of the present application;
FIG. 9 is a flowchart of another method for activating a memory according to an embodiment of the present application;
FIG. 10 is a flowchart of a further method for activating a memory according to an embodiment of the present application;
FIG. 11 is a flowchart of a data mapping information backup process according to an embodiment of the present disclosure;
fig. 12 is a flowchart of a data recovery process according to an embodiment of the present application.
Detailed Description
Currently, the memory is usually disposed on a motherboard or a circuit board (such as a printed circuit board (Printed Circuit Board, PCB)) of the electronic device in a pluggable manner, so as to provide a storage space for data of the electronic device. The memory includes a control device and a storage medium. The control device of the memory is mainly responsible for management and control of the storage medium. The storage medium of the memory may characterize the data by a change in charge.
The control device of the memory realizes normal operation by running the stored firmware so as to enable the electronic equipment to read and write data in the memory. The firmware required for different memories is not completely consistent for different memories. Typically, the firmware of the memory will be burned into the memory by a specific device (such as a card opener) before the memory leaves the factory, so as to realize the card opening (or activation) of the memory. In this way, the electronic device can run the memory while configuring the memory, and read and write data in the memory.
The opening process of the memory is described by taking a Solid State Disk (SSD) as an example. As shown in fig. 1, the solid state disk includes a high-speed serial computer expansion bus standard (Peripheral Component Interconnect Express, PCI-Express) interface (PCIE interface or interfaces for short). The card opener includes PCIE slots (which may be simply referred to as slots). The solid state disk is accessed into a PCIE slot of the card opener through a PCIE interface. After the card opener is connected with the solid state disk, the card opener can burn firmware matched with the solid state disk into a memory to realize card opening (or called activation) of the solid state disk.
In the above-mentioned memory card opening or activating mode, the memory control device and the storage medium are bound, and the firmware in the memory is also preconfigured. In this case, the control device in the memory cannot be replaced with another control device, and the storage medium in the memory cannot be replaced with another storage medium.
However, in some application scenarios, such as new-type on-board solid state drives, the control device and the storage medium of the memory are provided separately. For example, as shown in fig. 2, the user may select one of the control devices a, B, and C, and may select one of the storage media a, B, and C to combine into one memory. In this case, since the combination of the control device and the storage medium in the memory cannot be predetermined, the firmware cannot be configured in the memory in advance to realize the card opening. It can be seen that the conventional card opening or activating scheme cannot meet the application requirements of memory diversification.
In view of this, the embodiments of the present application provide a memory activation method, which can implement automatic activation of a memory. Specifically, a first memory is fixedly installed in the electronic device. The electronic device detects status information of the first memory, the status information being used to indicate whether the first memory is in an active state. If the state information indicates that the first memory is in an inactive state, the electronic device acquires the firmware of the first memory from at least one firmware stored in the preset storage space. Further, the electronic device loads the firmware into the first memory, so that the first memory is activated according to the firmware of the first memory, and automatic activation of the first memory is realized.
The first memory is an external memory fixedly mounted on a motherboard of the electronic device. For example, the first memory may be a memory such as an SSD, a universal flash memory (Universal Flash Storage, UFS), or an embedded multimedia card (embedded Multi Media Card, eMMC). The first memory needs to be loaded with the appropriate firmware to enable activation. If the first memory is in an inactive state, the electronic device cannot communicate with the first memory and cannot read or write (may be simply referred to as reading or writing) data in the first memory. The preset memory space stores one or more firmware for activating the memory. Different firmware is used to activate different memories. Among the one or more firmware stored in the preset memory space, there is firmware suitable for the first memory. If the electronic equipment detects that the state information of the first memory indicates that the first memory is in an inactive state, acquiring firmware of the first memory from a preset memory space to activate the first memory.
In this way, the electronic device can automatically load the adaptive firmware for the memory, thereby saving labor cost. The control device and the storage medium in the memory can not be bound any more, and a user can select the combination of the control device and/or the storage medium configured in the memory according to the requirement, so that the flexibility of the memory configuration is improved.
By way of example, the electronic device described in embodiments of the present application may be a cell phone, tablet, desktop, laptop, handheld, notebook, ultra-mobile personal computer (UMPC), netbook, and cellular telephone, personal digital assistant (personal digital assistant, PDA), augmented reality (augmented reality, AR) \virtual reality (VR) device, media player, wearable device, etc. The embodiment of the application does not particularly limit the specific form of the electronic device.
The hardware structure of the electronic device in the embodiment of the present application is described below by way of an example. As shown in fig. 3, the electronic device may include: processor 110, external memory interface 120, internal memory 121, universal serial bus (universal serial bus, USB) interface 130, charge management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headset interface 170D, sensor module 180, keys 190, motor 191, indicator 192, camera 193, display 194, and subscriber identity module (subscriber identification module, SIM) card interface 195, etc.
The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), a driver processor, and the like. Wherein the different processing units may be separate devices or may be integrated in one or more processors. The processor 110 may be a neural hub and a command center of the electronic device. The processor 110 may generate operation control signals according to the instruction operation code and the timing signals to complete instruction fetching and instruction execution control.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
In this embodiment, the electronic device further includes a fixedly installed external memory, for example, a solid state disk, a general flash memory, an embedded multimedia card, and the like. The first memory may be an external memory fixedly mounted to the electronic device.
The internal memory 121 may be used to store computer executable program code including instructions. The processor 110 executes various functional applications of the electronic device and data processing by executing instructions stored in the internal memory 121. For example, in an embodiment of the present application, the processor 110 may include a storage program area and a storage data area by executing instructions stored in the internal memory 121, and the internal memory 121 may include a storage program area and a storage data area.
The storage program area may store, among other things, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, a configuration file of the motor 191, etc. The storage data area may store data created during use of the electronic device (e.g., audio data, phonebook, etc.), and so forth. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like. The internal memory 121 is also used to store basic boot programs such as BIOS programs, bootLoader programs, and the like.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory (e.g., the first memory), the display 194, the camera 193, the wireless communication module 160, etc. In some embodiments, the power management module 141 and the charge management module 140 may also be provided in the same device.
The wireless communication function of the electronic device may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like. In some embodiments, the antenna 1 and the mobile communication module 150 of the electronic device are coupled, and the antenna 2 and the wireless communication module 160 are coupled, so that the electronic device can communicate with the network and other devices through wireless communication technology.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc. applied on an electronic device. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wi-Fi network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc. for application on an electronic device.
In some implementations of embodiments of the present application, the electronic device may communicate with the cloud device through the mobile communication module 150 or the wireless communication module 160. For example, the electronic device may send data mapping information of the first memory to the cloud device. For another example, the electronic device may receive data mapping information of the first memory from the cloud device.
The sensor module 180 may include sensors such as a pressure sensor, a gyroscope sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a hall sensor, a touch sensor, an ambient light sensor, and a bone conduction sensor. The electronics can collect various data via the sensor module 180.
It should be understood that the connection relationship between the modules illustrated in this embodiment is only illustrative, and does not limit the structure of the electronic device. In other embodiments, the electronic device may also include more or fewer modules than provided in the foregoing embodiments, and different interfaces or a combination of multiple interfaces may be used between the modules in the foregoing embodiments. The hardware structure of the electronic device provided in the embodiment of the present application may also refer to the hardware structure of the electronic device as shown in the figure. The methods in the following embodiments may be implemented in an electronic device having the above-described hardware configuration.
As described above, the electronic device may acquire the firmware of the first memory in the preset storage space, so as to implement activation of the first memory. In some embodiments, the preset storage space is in the electronic device and is part of the electronic device. The method provided by the embodiment of the application, in which the preset storage space is located in the electronic device, is described below.
In order to facilitate understanding of the solution provided by the embodiments of the present application, first, a basic process of activating the first memory by the electronic device will be described. As shown in fig. 4, the electronic device includes a power management module 410, a flash memory chip 420, a processor 430, a first control device 441, and a first storage medium 442. The first control device 441 and the first storage medium 442 may form a first memory 440. Wherein the flash memory chip 420 is used for storing a basic boot program. In some implementations, the electronic device further includes a second memory 450 for storing at least one firmware, the second memory 450 including a preset memory space.
The electronic device is started, and the power management module of the electronic device supplies power to the modules such as the flash memory chip 420, the processor 430, the first memory 440, and the like. The electronic device may add an activation program for the memory in the basic boot program. The processor 430 of the electronic device loads the basic boot program in the flash memory chip 420. During the running process of the basic bootstrap program, if the processor 430 of the electronic device detects that the first memory 440 is in an inactive state, the processor 430 of the electronic device acquires the firmware adapted to the first memory 440 from the preset storage space of the electronic device, loads the firmware for the first memory 440, and activates the first memory 440. The predetermined memory space is a flash memory chip 420 or other independent memory (i.e., the second memory 450) for storing the basic boot program. After the first memory 440 loads the firmware, the control device (i.e., the first control device 441) of the first memory 440 may implement control of the storage medium (i.e., the first storage medium 442).
It can be understood that the basic boot program of the electronic device is used to initialize the hardware structure of the electronic device configuration after the electronic device is started, and to boot the electronic device to load the operating system. For example, the basic boot program is a basic input output system (Basic Input Output System, BIOS) program, a BootLoader (BootLoader) program, or the like. The electronic device adds an activation program of the memory in the basic boot program, and can realize activation of the first memory in the process of running the basic boot program.
In the following, the method provided in the embodiment of the present application is described by taking an example that the electronic device is a notebook computer, the first memory is a Solid State Disk (SSD), and the basic boot program is a BIOS program.
In one implementation manner of the embodiment of the present application, the preset storage space is a flash memory chip. The flash memory chip stores at least one firmware in addition to the BIOS program. Each of the at least one firmware corresponds to a combination of one memory and one storage medium.
As shown in fig. 5, the first control device and the first storage medium are integrated on the motherboard of the notebook computer, and are not connected to the motherboard in a pluggable manner. The first control device is connected with the first storage medium and can be combined to form a solid state disk. The processor of the notebook computer is respectively connected with the flash memory chip and the first control device and is used for acquiring the firmware of the solid state disk from the flash memory chip and transmitting the firmware to the first control device so that the first control device loads the firmware. The power management module is respectively connected with the flash memory chip, the processor, the first control device and the first storage medium to supply power to the modules.
The method provided in the embodiment of the present application is described below with reference to the hardware structure shown in fig. 5. As shown in fig. 6, the method provided in the embodiment of the present application includes S601-S607.
S601, the power management module controls the flash memory chip, the processor, the first control device and the first storage medium to be electrified.
The power management module of the notebook computer is connected with the battery, and can provide electric energy for a plurality of modules in the notebook computer. The notebook computer is started, and each module in the notebook computer is controlled to be electrified through the power management module.
S602, loading a basic input/output system program in the flash memory chip by the processor, and running the basic input/output system.
After the laptop is powered on, the laptop reads the BIOS program in the flash memory chip for storing the BIOS program, and runs the BIOS. The Flash memory chip storing the BIOS program may be a serial Flash (SPI Flash).
The BIOS program is pre-burned in the flash memory chip. The BIOS program comprises a driver of a hardware peripheral configured in the notebook computer and an activation program of the solid state disk. A variety of hardware peripherals may be configured in a notebook computer, for example, a notebook computer may be configured with a mouse, a keyboard, and other hardware peripherals. The processor of the notebook computer realizes the control of the hardware peripheral through running a driver of the hardware peripheral in the BIOS program.
S603, in the process of running the basic input output system, the processor detects whether a memory interface is connected.
The memory interface is used for being connected with the first control device of the solid state disk, and the processor of the notebook computer is connected with the first control device through the memory interface. The memory interface may be an external memory interface, such as external memory interface 120 described above.
When the processor proceeds to the activation flow of the solid state disk during the running of the BIOS, it is detected whether the memory interface is in place (i.e. whether the memory interface is connected).
If the processor detects that the memory interface is in place, the solid state disk is fixedly arranged in the notebook computer, so that the processor can be considered to be connected with the solid state disk. In this case, the notebook computer performs S604.
If the processor does not detect that the memory interface is in place, i.e., the processor is not connected with the memory interface. This may be due to problems with the hardware connection of the notebook computer. In this case, the notebook computer displays a prompt message in the screen, and prompts the user to check whether the hardware connection has a problem or not through the prompt message.
And S604, the processor judges whether the state information of the solid state disk indicates that the solid state disk is in an inactive state.
The state information of the solid state disk is used for indicating whether the solid state disk is in an activated state or an inactivated state. The active state (or called loaded state) indicates that the solid state disk is loaded with the adapted firmware, and the card opening is completed through the firmware. The inactive state (or called the unloaded state) indicates that the solid state disk is not loaded with the adapted firmware, and the card opening is not completed through the firmware.
The first control device of the solid state disk can record the activation state of the solid state disk.
For example, if the status information is a first identifier, such as "1" or "TRUE", the solid state disk is in an activated state, i.e. the solid state disk is activated. In this case, the processor of the notebook computer can read and write data in the solid state disk. For example, a processor of a notebook computer may access a program of an operating system from a solid state disk to load the operating system.
If the status information is the second identifier, such as "0" or "FALSE", the solid state disk is in an inactive state, that is, the solid state disk needs to load firmware at this time, and the notebook computer continues to execute S605.
S605, the processor acquires the firmware adapting to the solid state disk from at least one firmware stored in the flash memory chip.
As described above, the flash memory chip stores at least one firmware in addition to the BIOS program. Each of the at least one firmware in the flash memory chip corresponds to a combination of the control device and the storage medium of the memory. The memory formed by the combination of the different control means and the storage medium is adapted to the different firmware. At least one firmware in the flash memory chip is provided with firmware corresponding to the combination of the first control device of the solid state disk and the first storage medium. The processor determines firmware of the solid state disk in at least one firmware of the flash memory chip.
The processor of the notebook computer may obtain the package information of the solid state disk from the first control device. Or, the processor of the notebook computer may obtain the package information of the solid state disk in a Bill of materials (BOM) of the motherboard. The package information is used to indicate a combination relationship of the first control device and the first storage medium. The package information of the solid state disk comprises a device identifier of the first control device and a medium identifier of the first storage medium. If the package information is a motherboard identification number "001A", the "001" in the motherboard identification number is a device flag of the first control device. "a" in the main board identification number is a medium identification of the first storage medium. The processor of the notebook computer may obtain firmware with a firmware name including a motherboard identification number "001A" from at least one firmware, where the firmware is firmware of the solid state disk.
It can be understood that the bill of materials records the packaging information of the parts required by the motherboard of the notebook computer in the manufacturing process. For example, the bill of materials has recorded therein package information such as the model, manufacturer, function, etc. of the part. The notebook computer can determine each part configured in the main board through the bill of materials.
In the embodiment of the present application, the first control device may be one of a plurality of control devices. The first storage medium may be one of a plurality of storage media. For example, as shown in fig. 2, a user may select one of the control devices a, B, and C as a first control device to be packaged in a main board, and select one of the storage media a, B, and C as a first storage medium during the packaging of the main board of the notebook computer. Wherein the control means a and the storage medium a originate from a manufacturer, such as manufacturer a. The control means B and the storage medium B originate from a manufacturer, e.g. manufacturer B. The control means C and the storage medium C originate from a manufacturer, e.g. manufacturer C. There are 9 kinds of combinations of the control device a, the control device B, and the control device C with the storage medium a, the storage medium B, and the storage medium C. The combination of the first control means and the first storage medium may be any one of these 9 combination relations. The memories corresponding to the 9 combinations correspond to different firmware, respectively. Firmware corresponding to each of the 9 combinations may be stored in the flash memory chip. Of course, only the firmware corresponding to the combination of the first control device and the first storage medium may be stored in the flash memory chip.
S606, the processor transmits the firmware of the solid state disk to the first control device.
After the processor of the notebook computer obtains the firmware adapting to the solid state disk from the flash memory chip, the firmware of the solid state disk is transmitted to the first control device of the solid state disk, so that the solid state disk is activated through the firmware.
S607, the first control device loads the firmware of the solid state disk and manages the first storage medium.
And the first control device loads the firmware of the solid state disk after acquiring the firmware transmitted by the processor. The first control device may initialize the first storage medium during the process of loading the firmware, for example, obtain the capacity of the first storage medium, the medium name, and other medium information. The first control device can copy the firmware of the solid state disk into the first storage medium, so that after the notebook computer is started again to operate, the first control device can directly read the firmware in the first storage medium, and the activation process of the solid state disk can be omitted.
After the initialization is completed, the solid state disk is activated, and the first control device can manage the first storage medium. For example, the first control device updates the state information, changing the state information from indicating an inactive state to indicating an active state. For another example, the first control device may be in communication with the processor after initialization is complete. The first control state may allocate storage space in the first storage medium according to a demand of the processor, respond to a read or write request from the processor to the first storage medium, and the like.
The first control device may also notify the processor that the card opening is completed. After receiving the card opening completion notification sent by the first control device, the processor can continue to run the BIOS and load the drivers of other hardware peripherals.
The first control device may also notify the processor that the card opening is completed. After receiving the card opening completion notification sent by the first control device, the processor can continue to run the BIOS and load the drivers of other hardware peripherals.
In the embodiment of the application, the firmware of the solid state disk is integrated in a flash memory chip for storing the BIOS program. The activation of the solid state disk is completed in the process of loading the BIOS by the notebook computer, and even if the solid state disk is not preset with the adaptive firmware, the notebook computer can realize the automatic card opening of the solid state disk. Therefore, the control device and the storage medium in the solid state disk can be flexibly combined, and the configuration requirement of users on diversification of the solid state disk is met.
In another implementation manner of the embodiment of the present application, the preset storage space is a memory (i.e., a second memory) dedicated to firmware backup in the notebook computer, and the second memory is different from a flash memory chip storing the basic boot program. Or, the preset storage space is a peripheral memory (i.e. a second memory) of the notebook computer, such as a usb disk, etc. The second memory may be a flash memory, such as a NOR type flash memory, a NAND type flash memory, or the like. Each of the at least one firmware stored in the preset storage space corresponds to a combination of one memory and one storage medium.
For example, as shown in fig. 7, a second memory for storing at least one firmware is configured on the main board of the notebook computer in addition to the flash memory chip, the processor, the first control device and the first storage medium. The second memory is directly welded in the main board of the notebook computer as a special memory for storing at least one firmware. The second memory is connected with the processor of the notebook computer. The processor of the notebook computer can communicate with the second memory in the process of running the BIOS, so that the firmware of the solid state disk is obtained in the second memory, and the activation of the solid state disk is realized. In this implementation, although the hardware design of the second memory is added in the notebook computer, the independent second memory can provide enough storage space to store the firmware with larger data volume, and reduce the occupation of the flash memory chip memory of the BIOS.
As another example, as shown in fig. 8, the notebook computer is connected with a second memory through an interface of the peripheral memory. The second memory is a pluggable peripheral memory. The processor of the notebook computer can communicate with the second memory in the process of running the BIOS, and the firmware of the solid state disk is obtained in the second memory, so that the activation of the solid state disk is realized. In this implementation, the second memory may provide enough storage space to store firmware with larger data size, so as to reduce the occupation of the flash memory chip memory of the BIOS.
The method provided in the embodiment of the present application is described below with reference to the hardware structure shown in fig. 9. As shown in fig. 9, the method provided in the embodiment of the present application includes S901-S907.
S901, a power management module controls a flash memory chip, a processor, a first control device and a first storage medium to be electrified.
S902, loading a basic input/output system program in the flash memory chip by the processor, and running the basic input/output system.
S903, during the process of running the bios, the processor detects whether a memory interface is connected.
If the processor detects that the memory interface is in place, the solid state disk is fixedly arranged in the notebook computer, so that the processor can be considered to be connected with the solid state disk. In this case, the notebook computer performs S904.
If the processor does not detect that the memory interface is in place, i.e., the processor is not connected with the memory interface. This may be due to problems with the hardware connection of the notebook computer. In this case, the notebook computer displays a prompt message in the screen, and prompts the user to check whether the hardware connection has a problem or not through the prompt message.
And S904, the processor judges whether the state information of the solid state disk indicates that the solid state disk is in an inactive state.
And if the solid state disk is in an activated state, indicating that the solid state disk is activated. In this case, the processor of the notebook computer can read and write data in the solid state disk. For example, a processor of a notebook computer may access a program of an operating system from a solid state disk to load the operating system.
If the solid state disk is in an inactive state, the solid state disk is required to be loaded with firmware at the moment. In this case, the notebook computer continues to execute S905.
S901 to S904 in the embodiment of the present application may refer to the contents described in S601 to S604, and are not described herein.
S905, the processor acquires the firmware adapting to the solid state disk from at least one firmware stored in the second memory.
As described above, the second memory stores at least one firmware therein. Each of the at least one firmware in the second memory corresponds to a combination of the control device and the storage medium of the memory. The memory formed by the combination of the different control means and the storage medium is adapted to the different firmware. At least one firmware in the second memory is provided with a firmware corresponding to the combination of the first control device of the solid state disk and the first storage medium. The processor determines firmware of the solid state disk in at least one firmware of the second memory.
The processor of the notebook computer may obtain the package information of the solid state disk from the first control device. The package information of the solid state disk comprises a device identifier of the first control device and a medium identifier of the first storage medium. The processor of the notebook computer can obtain firmware corresponding to the package information of the solid state disk from at least one firmware in the second memory, and the firmware is the firmware of the solid state disk. The process that the processor of the notebook computer obtains the firmware of the adapted solid state disk from the second memory according to the package information of the solid state disk can refer to the process that the processor obtains the firmware of the adapted solid state disk from the flash memory chip in S605, which is not described herein.
S906, the processor transmits the firmware of the solid state disk to the first control device, and instructs the first control device to load the firmware of the solid state disk.
After the processor of the notebook computer successfully obtains the firmware adapting to the solid state disk in the second memory, the firmware of the solid state disk is transmitted to the first control device of the solid state disk, so that the solid state disk is activated through the firmware.
S907, the first control device loads firmware of the solid state disk and manages the first storage medium.
This step is described in S607, and will not be described here.
In the embodiment of the application, the firmware of the solid state disk is integrated in the second memory, and the independent second memory can provide enough storage space to store the firmware with larger data size. The BIOS program of the notebook computer is additionally provided with an activation flow of the solid state disk. And in the process of loading the BIOS by the notebook computer, acquiring the firmware which is adapted to the solid state disk by accessing the second memory, and completing the activation of the solid state disk. Even if the matched firmware is not preset in the solid state disk, the notebook computer can realize automatic card opening of the solid state disk. By the mode, the control device and the storage medium in the solid state disk can be flexibly combined, and the configuration requirement of users on diversification of the solid state disk is met.
Based on the above activation scheme provided by the embodiment of the application, the firmware of the solid state disk is integrated in the flash memory chip or the second memory of the BIOS in advance, which is equivalent to performing an original backup on the firmware of the solid state disk. After the solid state disk is successfully activated, the firmware of the solid state disk is copied to a storage medium (namely the first storage medium) of the solid state disk, and secondary backup of the firmware of the solid state disk is performed. Therefore, the notebook computer can realize double backup of the firmware of the solid state disk. When the solid state disk is damaged or the firmware of the solid state disk is damaged, the notebook computer can carry out secondary card opening on the solid state disk through the scheme provided by the embodiment of the application, namely, the process is executed again, and the firmware of the solid state disk is loaded into the solid state disk, so that the activation of the solid state disk is realized. If the firmware of the solid state disk is only stored in the storage medium of the solid state disk, once the storage medium is lost, the firmware is damaged, and the solid state disk is at risk of failure. Therefore, the method provided by the embodiment of the application can improve the reliability of the solid state disk and reduce the risk of failure of the solid state disk.
In other embodiments, the preset storage space is in the remote device, and the electronic device obtains firmware of the first memory from the remote device, so as to activate the first memory. In the following, the method provided by the embodiment of the application where the electronic device is a notebook computer and the first memory is a solid state disk is introduced under the condition that the preset storage space is a remote device. As shown in fig. 10, the method provided in the embodiment of the present application includes:
s1001, the power management module controls the flash memory chip, the processor, the first control device and the first storage medium to be powered on.
S1001 in the embodiment of the present application may refer to the content described in S601, which is not described herein.
S1002, the processor loads the basic input/output system program in the flash memory chip and runs the basic input/output system.
In the embodiment of the application, after the laptop is powered on, the laptop reads the BIOS program from the flash memory chip for storing the BIOS program, and runs the BIOS. The BIOS program is used for guiding the notebook computer to activate the first memory through the remote device. For example, the processor receives a remote connect operation in the BIOS setup interface during running the BIOS. The remote connection operation is used to indicate a connection to a remote device. The notebook computer will turn on the remote connection function in response to the remote connection operation.
S1003, after the operation of the basic input and output system is finished, loading an operating system provided by a remote device by a processor of the notebook computer.
After the BIOS is loaded, the processor of the notebook computer is connected with the remote equipment through a pre-boot execution environment (Preboot eXecution Environment, PXE). The PXE technology is a remote connection function that can implement an electronic device to start an operating system without relying on locally stored data. After the notebook computer is connected with the remote device, the program of the operating system is acquired from the remote device. The processor of the notebook computer further loads the operating system.
The activation program of the solid state disk is preset in an operating system program provided by the remote equipment.
S1004, in the running process of the operating system, the processor detects whether a memory interface is connected.
If the processor detects that the memory interface is in place, the solid state disk is fixedly arranged in the notebook computer, so that the processor can be considered to be connected with the solid state disk. In this case, the notebook computer performs S1005.
If the processor does not detect that the memory interface is in place, i.e., the processor is not connected with the memory interface. This may be due to problems with the hardware connection of the notebook computer. In this case, the notebook computer displays a prompt message in the screen, and prompts the user to check whether the hardware connection has a problem or not through the prompt message.
S1005, the processor judges whether the state information of the solid state disk indicates that the solid state disk is in an inactive state.
If the solid state disk is in an activated state, which means that the solid state disk is activated, the activation flow of the solid state disk can be exited.
If the solid state disk is in an inactive state, the solid state disk is required to be loaded with firmware at the moment. In this case, the notebook computer continues to execute S1006.
S1006, the processor of the notebook computer obtains the firmware of the adaptive solid state disk from the remote device.
As described above, the second memory is a memory space in the remote device. The second memory of the remote device has at least one firmware stored therein. Each of the at least one firmware in the remote device corresponds to a combination of the control means of the memory and the storage medium. The memory formed by the combination of the different control means and the storage medium is adapted to the different firmware. At least one firmware in the remote equipment is provided with firmware corresponding to the combination of the first control device of the solid state disk and the first storage medium. The notebook computer obtains the firmware of the solid state disk from at least one firmware stored in a second memory of the remote equipment.
The processor of the notebook computer may obtain the package information of the solid state disk from the first control device. The package information of the solid state disk comprises a device identifier of the first control device and a medium identifier of the first storage medium. The notebook computer can send a firmware acquisition request to the remote equipment, wherein the firmware acquisition request carries the encapsulation information of the solid state disk. And the remote equipment responds to the firmware acquisition request and acquires firmware corresponding to the packaging information of the solid state disk from at least one firmware in the second memory, wherein the firmware is the firmware of the solid state disk. Further, the remote device returns the firmware of the solid state disk to the notebook computer.
S1007, the processor of the notebook computer transmits the firmware of the solid state disk to the first control device, and instructs the first control device to load the firmware of the solid state disk.
After the processor of the notebook computer successfully obtains the firmware adapting to the solid state disk, the firmware of the solid state disk is transmitted to the first control device of the solid state disk, so that the solid state disk is activated through the firmware.
S1008, the first control device loads firmware of the solid state disk and manages the first storage medium.
This step is described in S607, and will not be described here.
In the embodiment of the application, the firmware of the solid state disk is stored in the remote device. The notebook computer is connected with the remote equipment through PXE, and reads the operating system from the remote equipment. The activation flow of the solid state disk is additionally arranged in the operating system. In the process of operating the operating system of the notebook computer, the firmware which is adapted to the solid state disk is obtained by accessing the remote equipment, so that the activation of the solid state disk is realized. Even if the matched firmware is not preset in the solid state disk, the notebook computer can realize automatic card opening of the solid state disk. By the mode, the control device and the storage medium in the solid state disk can be flexibly combined, and the configuration requirement of users on diversification of the solid state disk is met.
In the embodiment of the application, the solid state disk can be used as an installation disk of an operating system. In some implementations, after the solid state disk is activated for the first time, the notebook computer may install an operating system in the solid state disk, so that an operating environment convenient for the user to use is provided for the user through the operating system.
In order to improve reliability of the operating system, in some implementations, the notebook computer may further send data mapping information of the solid state disk to the cloud device in a process of running the operating system. Therefore, the cloud device can be used for backing up the data mapping information of the solid state disk, and a basis is provided for data recovery of the solid state disk. The cloud device and the remote device are the same device or different devices.
The process of backing up data mapping information is described below by way of one example. As shown in fig. 11, the method provided in the embodiment of the present application may further include:
s1101, loading an operating system by the notebook computer.
After the opening of the solid state disk of the notebook computer is completed, the activated state of the solid state disk is changed into an activated state, which indicates that the solid state disk is activated and can be used. In the process of running the BIOS again, if the activated state of the solid state disk is detected to be the activated state, the notebook computer loads an operating system installed in the solid state disk. Thus, the user can control the notebook computer through the interface window of the operating system.
S1102, in the process of running the operating system, the notebook computer sends data mapping information of the solid state disk to the cloud device through a wireless communication network.
The notebook computer may access a wireless communication network, such as a Wi-Fi network, through a wireless communication module (e.g., wireless communication module 160 described above) during running of the operating system. After the notebook computer is connected to the wireless communication network, the notebook computer can provide internet service for users.
The data mapping information is used to represent a mapping relationship between logical addresses and physical addresses of data. The logical address of the data is a virtual address of the data store provided for the user. The logical address is not the real address where the data is stored in the solid state disk. And the physical address is the real address of the data stored in the solid state disk. Illustratively, the data mapping information includes a data mapping table. The data mapping table records the mapping relation between the logical address and the physical address of the data. The notebook computer stores a data mapping table. When the data in the solid state disk is changed, the notebook computer can update the data mapping table so that the data mapping table records the latest mapping relation between the logical address and the physical address of the data. The mapping relation between the operating system and the solid state disk can be established through the data mapping table. When a user controls an operating system to check data, the notebook computer determines the physical address of the data in the solid state disk through the data mapping table, and further reads corresponding data at the physical address in the solid state disk.
In order to improve reliability and safety of data storage in the solid state disk, the notebook computer can send data mapping information of the solid state disk to the cloud device according to a first period under the condition that the notebook computer is connected with a wireless communication network. For example, the notebook computer may periodically send the data mapping table of the solid state disk to the cloud device with a period of 3 hours, 5 hours, or the like as a first period. By the mode, the notebook computer can realize that the data mapping table of the solid state disk is stored in the cloud device.
In some implementations, if the data in the solid state disk fails to be read, the notebook computer obtains a data mapping table of the solid state disk from the cloud device, and restores the data in the solid state disk according to the data mapping table. By the mode, the notebook computer can recover the data stored in the solid state disk through the data mapping table stored in the cloud device, and data disaster recovery is achieved.
The process of data recovery is described below by way of an example. As shown in fig. 12, the method provided in the embodiment of the present application may further include:
s1201, the notebook computer receives a reset operation in the setting interface of the bios.
The reset operation is used for indicating that the activated state of the solid state disk is set to be the inactivated state.
If the operating system cannot be loaded or the hard disk is damaged in the using process of the notebook computer, the operating system of the notebook computer needs to be repaired. The user can enter the setting interface of the BIOS in the process of running the BIOS by the notebook computer. For example, a notebook computer receives an interrupt signal triggered by a user pressing the "DEL" key of a keyboard. And the notebook computer responds to the interrupt signal and enters a setting interface of the BIOS. In the setting interface of the BIOS, the notebook computer receives the reset operation of the user. The reset operation is used for indicating that the activated state of the solid state disk is set to be the inactivated state.
S1202, in response to the reset operation, the notebook computer sets the activated state of the solid state disk to the inactivated state.
The notebook computer sets an activated state of the solid state disk to an inactivated state through a General-Purpose Input/Output (GPIO) port in response to a reset operation of a user. For example, the notebook computer responds to the reset operation of the user, pulls up the point position of the GPIO, and sets the activated state of the solid state disk to the inactivated state.
S1203, when the solid state disk is in an inactive state, the notebook computer activates the solid state disk.
Under the condition that the notebook computer enters an inactive state of the solid state disk, the notebook computer obtains firmware matched with the solid state disk from the flash memory chip or the peripheral memory, and the solid state disk is restarted according to the firmware matched with the solid state disk. The process of activating the solid state disk by the notebook computer according to the firmware adapted to the solid state disk can be referred to above, and will not be described again here.
If the notebook computer cannot find the solid state disk or fails to open the card, the notebook computer displays prompt information in a screen, and prompts a user to check whether the hardware has a problem or not through the prompt information.
And S1204, the notebook computer acquires data mapping information from the solid state disk, and recovers the data in the solid state disk according to the data mapping information in the solid state disk.
For example, after the notebook computer re-activates the solid state disk, the notebook computer obtains data mapping information of the solid state disk in a preset physical area of the solid state disk. Further, the notebook computer reads data of the operating system stored in the solid state disk according to the mapping relation between the logical address and the physical address included in the data mapping information. The notebook computer loads an operating system through the solid state disk, and provides an operating system interface for a user.
In some implementations, because there may be a damaged portion of the data mapping information stored in the solid state disk, the notebook computer may not be able to recover all the data stored in the solid state disk through the data mapping information (which may be referred to as the first data mapping information) stored in the solid state disk. Thus, the notebook computer may also obtain data mapping information (which may be referred to as second data mapping information) from the cloud device. The method provided by the embodiment of the application can further comprise the following steps:
s1205, the notebook computer sends an acquisition request to the cloud device.
Because the first data mapping information stored in the solid state disk may be damaged, the operating system recovered by the notebook computer may not be completely consistent with the operating system used by the user before the solid state disk fails. For example, the operating system reloaded by the notebook computer does not have data such as applications installed by the user and stored files. The data may be stored in the solid state disk, but the notebook computer cannot read the data stored in the solid state disk because the data mapping information in the solid state disk is incomplete. In this case, the notebook computer sends an acquisition request to the cloud device, and requests the cloud device to acquire data mapping information of the solid state disk through the acquisition request.
S1206, the cloud device responds to the acquisition request and sends data mapping information of the solid state disk to the notebook computer.
S1207, the notebook computer recovers the data in the solid state disk according to the data mapping information sent by the cloud device.
The notebook computer receives data mapping information (namely second data mapping information) of the solid state disk sent by the cloud device, and further establishes a corresponding relation between the operating system and the solid state disk according to a mapping relation between a logical address and a physical address of data recorded in the second data mapping information. The notebook computer can read data at a physical address corresponding to a logical address of the operating system, so that the data before the failure of the solid state disk is recovered.
According to the method provided by the embodiment of the application, the combination relation between the control device and the storage medium cannot be predicted when the memory in the electronic equipment is subjected to board mounting, and firmware for opening the memory is difficult to burn in the memory in advance, so that the memory can be opened in a self-adaptive mode according to the combination condition of the control device and the medium chip of the circuit board mounting. In addition, the electronic device can also re-open the memory through the firmware backed up in the flash memory chip, the external memory or the remote device when the memory fails. After the memory is opened, the data stored in the memory can be restored by combining the data mapping information backed up in the cloud device, so that the recovery of data disaster tolerance is realized. In this way, the security and reliability of the data can be enhanced.
It should be noted that, the personal information (such as the operating system or the data in the memory) used in the technical solution of the present application is limited to the information that is individually agreed by the individual, including, but not limited to, notifying and reminding the user to read the relevant user protocol (notification) and signing the protocol (authorization) including the information about the authorized relevant user before the user uses the function.
Still further embodiments of the present application provide an electronic device, including: a memory and one or more processors. The memory is coupled to the processor. The memory has stored therein computer program code comprising computer instructions. The electronic device, when executed by a processor, may perform the functions or steps of the method embodiments described above. Of course, the electronic device may also include other hardware structures. For example, the electronic device further includes a hardware structure such as a sensor and a communication module. The structure of the electronic device may refer to the structure of the electronic device shown in fig. 3.
The embodiment of the application also provides a chip system which is applied to the electronic equipment. The system-on-chip includes at least one processor and at least one interface circuit. The processors and interface circuits may be interconnected by wires. For example, the interface circuit may be used to receive signals from other devices (e.g., memory). For another example, the interface circuit may be used to send signals to other devices (e.g., processors). The interface circuit may, for example, read instructions stored in the memory and send the instructions to the processor. The instructions, when executed by the processor, may cause the electronic device to perform the various steps of the embodiments described above. Of course, the chip system may also include other discrete devices, which are not specifically limited in this embodiment of the present application.
Embodiments of the present application also provide a computer-readable storage medium including computer instructions that, when executed on an electronic device as described above, cause the electronic device to perform the functions or steps of the method embodiments described above.
Embodiments of the present application also provide a computer program product which, when run on a computer, causes the computer to perform the functions or steps of the method embodiments described above. For example, the computer may be the electronic device described above.
It will be apparent to those skilled in the art from this description that, for convenience and brevity of description, only the above-described division of the functional modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to perform all or part of the functions described above.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and the parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a specific embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered in the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (14)

1. The memory activation method is characterized by being applied to electronic equipment, wherein a first memory is fixedly installed in the electronic equipment; the method comprises the following steps:
detecting state information of the first memory, the state information indicating whether the first memory is in an active state;
if the state information indicates that the first memory is in an inactive state, acquiring firmware of the first memory from at least one firmware stored in a preset storage space; wherein different firmware is used to activate different memory;
the first memory is activated using firmware of the first memory.
2. The method of claim 1, wherein each of the at least one firmware corresponds to a combination of one control device and one storage medium, and different firmware corresponds to different combinations; the first memory includes a first control device and a first storage medium; if the state information indicates that the first memory is in an inactive state, acquiring the firmware of the first memory from at least one firmware stored in a preset storage space, including:
If the state information indicates that the first memory is in an inactive state, acquiring packaging information of the first memory, wherein the packaging information is used for indicating a combination relation between the first control device and the first storage medium;
and acquiring firmware corresponding to the package information from at least one firmware stored in the preset storage space.
3. The method of claim 1, wherein the preset storage space is located in the electronic device;
the preset storage space is also used for storing a basic bootstrap program of the electronic equipment; alternatively, the preset storage space is different from a memory storing a basic boot program of the electronic device.
4. The method of claim 1, wherein the preset memory space is a peripheral memory of the electronic device.
5. The method of claim 3 or 4, wherein detecting status information of the first memory comprises: during the running of the basic boot program, state information of the first memory is detected.
6. The method of claim 1, wherein the predetermined storage space is located in a remote device.
7. The method of claim 6, wherein the method further comprises:
acquiring a program of an operating system from the remote device;
the detecting the state information of the first memory includes: and detecting the state information of the first memory in the process of running the operating system.
8. The method of claim 1, wherein after activating the first memory with firmware of the first memory, the method further comprises:
and installing an operating system of the electronic equipment in the first memory.
9. The method of claim 8, wherein after installing the operating system of the electronic device in the first memory, the method further comprises:
and sending data mapping information of the first memory to the cloud device according to a first period, wherein the data mapping information is used for representing the mapping relation between the logical address and the physical address of the data.
10. The method according to claim 9, wherein the method further comprises:
if the data in the first memory fails to be read, after the firmware of the first memory is re-adopted to activate the first memory, acquiring data mapping information of the first memory from the cloud device;
And recovering the data in the first memory according to the data mapping information.
11. The method according to claim 1, wherein the method further comprises:
if the data in the first memory fails to be read, after the firmware of the first memory is re-adopted to activate the first memory, acquiring data mapping information in the first memory, wherein the data mapping information is used for representing the mapping relation between the logical address and the physical address of the data;
and recovering the data in the first memory according to the data mapping information.
12. The method of claim 1, wherein after the activating the first memory with the firmware of the first memory, the method further comprises:
changing the state information of the first memory from a first identifier to a second identifier, wherein the first identifier indicates that the first memory is in an inactive state, and the second identifier indicates that the first memory is in an active state.
13. An electronic device, comprising: one or more memories and a processor; the one or more memories are coupled with the processor;
Wherein the memory has stored therein computer program code comprising computer instructions which, when executed by the processor, cause the electronic device to perform the method of any of claims 1-12.
14. A computer readable storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method of any of claims 1-12.
CN202311535308.1A 2023-11-17 2023-11-17 Memory activation method, electronic equipment and storage medium Pending CN117435141A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311535308.1A CN117435141A (en) 2023-11-17 2023-11-17 Memory activation method, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311535308.1A CN117435141A (en) 2023-11-17 2023-11-17 Memory activation method, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117435141A true CN117435141A (en) 2024-01-23

Family

ID=89553369

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311535308.1A Pending CN117435141A (en) 2023-11-17 2023-11-17 Memory activation method, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117435141A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104536848A (en) * 2014-12-22 2015-04-22 小米科技有限责任公司 Firmware recovery method, device and terminal
CN111026410A (en) * 2019-11-18 2020-04-17 哈尔滨安天科技集团股份有限公司 Method and device for automatically deploying software of upper computer, electronic equipment and storage medium
CN113778482A (en) * 2021-08-11 2021-12-10 中国长城科技集团股份有限公司 Dynamic updating method of running program, embedded controller and electronic equipment
CN113885969A (en) * 2021-12-07 2022-01-04 阿里云计算有限公司 Embedded device, embedded software loading method and storage medium
CN116700776A (en) * 2023-06-25 2023-09-05 中国第一汽车股份有限公司 Information management method, device, equipment and storage medium of battery management system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104536848A (en) * 2014-12-22 2015-04-22 小米科技有限责任公司 Firmware recovery method, device and terminal
CN111026410A (en) * 2019-11-18 2020-04-17 哈尔滨安天科技集团股份有限公司 Method and device for automatically deploying software of upper computer, electronic equipment and storage medium
CN113778482A (en) * 2021-08-11 2021-12-10 中国长城科技集团股份有限公司 Dynamic updating method of running program, embedded controller and electronic equipment
CN113885969A (en) * 2021-12-07 2022-01-04 阿里云计算有限公司 Embedded device, embedded software loading method and storage medium
CN116700776A (en) * 2023-06-25 2023-09-05 中国第一汽车股份有限公司 Information management method, device, equipment and storage medium of battery management system

Similar Documents

Publication Publication Date Title
CN112055424B (en) Electronic device and method for switching electronic device
CN111051152B (en) Method for providing smart key service and electronic device thereof
CN113900699B (en) System upgrading method and electronic equipment
US11163583B2 (en) Electronic device and method for transceiving control signal
CN110764825B (en) Starting method and terminal equipment
CN111373379A (en) Data backup method and terminal
CN115328563B (en) System starting method and electronic equipment
WO2022063037A1 (en) Method and apparatus for installing patch package
US11379458B2 (en) Electronic device and data management method thereof
US11604656B2 (en) Method and apparatus for managing application
CN116382791B (en) Configuration file protection method and electronic equipment
US11507384B2 (en) Electronic device for performing booting, and operating method therefor
CN114995886B (en) Memory card identification method and electronic equipment
US20210026807A1 (en) Method for managing data associated with application and electronic device therefor
CN117435141A (en) Memory activation method, electronic equipment and storage medium
CN117130541A (en) Storage space configuration method and related equipment
CN114489814B (en) Terminal equipment starting method and terminal equipment
US11423012B2 (en) Electronic device for prohibiting loss of data in database and method for operating the same
CN116661875B (en) Method for starting terminal equipment and electronic equipment
WO2022222956A1 (en) I/o request forwarding method and apparatus
CN116661678B (en) Data dump method and electronic equipment
CN117130947B (en) Memory management method and electronic equipment
CN117116258B (en) Voice awakening method and electronic equipment
CN117707629A (en) System startup method, readable storage medium, and electronic device
CN116088747A (en) Information processing method, device, equipment and storage medium

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