WO2024000535A1 - Procédé et appareil de mise à jour de table de partition, dispositif électronique et support de stockage - Google Patents

Procédé et appareil de mise à jour de table de partition, dispositif électronique et support de stockage Download PDF

Info

Publication number
WO2024000535A1
WO2024000535A1 PCT/CN2022/103171 CN2022103171W WO2024000535A1 WO 2024000535 A1 WO2024000535 A1 WO 2024000535A1 CN 2022103171 W CN2022103171 W CN 2022103171W WO 2024000535 A1 WO2024000535 A1 WO 2024000535A1
Authority
WO
WIPO (PCT)
Prior art keywords
partition table
operating system
initial
startup
status information
Prior art date
Application number
PCT/CN2022/103171
Other languages
English (en)
Chinese (zh)
Inventor
董俊杰
杨冬东
王健宇
Original Assignee
北京小米移动软件有限公司
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 北京小米移动软件有限公司 filed Critical 北京小米移动软件有限公司
Priority to PCT/CN2022/103171 priority Critical patent/WO2024000535A1/fr
Publication of WO2024000535A1 publication Critical patent/WO2024000535A1/fr

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • 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
    • 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/445Program loading or initiating

Definitions

  • the present disclosure relates to the field of computer technology, and in particular, to a partition table updating method, device, electronic device and storage medium.
  • the present disclosure aims to solve one of the technical problems in the related art, at least to a certain extent.
  • the purpose of this disclosure is to propose a partition table update method, device, electronic device and storage medium, which can effectively improve the partition table update success rate.
  • the partition table update method proposed by the embodiment of the first aspect of the present disclosure includes: confirming that the electronic device is in system upgrade mode, detecting startup status information of the first operating system; confirming that the startup status information indicates that the first operating system meets the set startup event, and obtaining The initial partition table of the second operating system, wherein the system type of the first operating system is the same as the system type of the second operating system; and starting the second operating system according to the initial partition table, and updating the initial partition table to obtain an updated partition table, The partition indicated by the updated partition table is used to mount the first operating system after startup.
  • the method further includes: restarting the first operating system according to the updated partition table.
  • detecting the startup status information of the first operating system includes: updating the initial partition table to obtain the target partition table; starting the first operating system according to the target partition table; during the process of starting the first operating system , detecting the startup status information of the first operating system.
  • updating the initial partition table to obtain the target partition table includes: obtaining a partition table generation package, wherein the partition table generation package includes: at least two initial partition tables, and a partition table corresponding to the initial partition table.
  • Target partition table updates the initial partition table to the target partition table.
  • obtaining the initial partition table of the second operating system includes: reading the initial partition table from the partition table generation package, and using the read initial partition table as the initial partition table of the second operating system.
  • the partition table generation package further includes: an address offset between the storage address of each initial partition table and the storage address of the target partition table; wherein, the initial partition table is read from the partition table generation package. , and use the read initial partition table as the initial partition table of the second operating system, including: determining the reference storage address according to the storage address and address offset of the target partition table; reading and reference from the partition table generation package The initial partition table corresponding to the storage address is used as the initial partition table of the second operating system.
  • detecting startup status information of the first operating system includes: determining information on modules called by the first operating system during startup; using information on the called modules as startup status information; wherein the method further includes: : If the information of the called module matches at least one candidate module information, it is determined that the startup status information indicates that the first operating system satisfies the set startup event, wherein the candidate module information is preset.
  • detecting the startup status information of the first operating system includes: obtaining a mark recognized by the first operating system during the startup process; using the content of the recognized mark as the startup status information; wherein, the method further includes: if If the content of the identified mark matches at least one candidate mark content, it is determined that the startup status information indicates that the first operating system satisfies the set startup event, wherein the candidate mark content is preset.
  • the partition table update method proposed by the embodiment of the first aspect of the present disclosure by confirming that the electronic device is in the system upgrade mode, detects the startup status information of the first operating system, confirms that the startup status information indicates that the first operating system satisfies the set startup event, and obtains the first The initial partition table of the two operating systems, wherein the system type of the first operating system is the same as the system type of the second operating system, and starting the second operating system according to the initial partition table, and updating the initial partition table to obtain an updated partition table, wherein , the partition indicated by the updated partition table is used to mount the first operating system after startup, which can effectively improve the success rate of partition table update.
  • the partition table updating device proposed by the embodiment of the second aspect of the present disclosure includes: a detection module for confirming that the electronic device is in the system upgrade mode and detecting the startup status information of the first operating system; and an acquisition module for confirming that the startup status information indicates the first operating system.
  • An operating system satisfies the set startup event and obtains the initial partition table of the second operating system, wherein the system type of the first operating system is the same as the system type of the second operating system; and a first processing module is used to obtain the initial partition table according to the initial partition table Start the second operating system, and update the initial partition table to obtain an updated partition table, wherein the partition indicated by the updated partition table is used to mount the first operating system after startup.
  • it also includes:
  • the second processing module is used to restart the first operating system according to the updated partition table.
  • the detection module is specifically used to:
  • the startup status information of the first operating system is detected.
  • the detection module is also used to:
  • partition table generation package where the partition table generation package includes: at least two initial partition tables, and a target partition table corresponding to the initial partition table;
  • the acquisition module is specifically used for:
  • the partition table generation package further includes: an address offset between the storage address of each initial partition table and the storage address of the target partition table;
  • the acquisition module is also used for:
  • the corresponding initial partition table is used as the initial partition table of the second operating system.
  • the detection module is also used to:
  • the detection module is also used for:
  • the startup status information indicates that the first operating system satisfies the set startup event, wherein the candidate module information is preset.
  • the detection module is also used to:
  • the detection module is also used for:
  • the startup status information indicates that the first operating system satisfies the set startup event, wherein the candidate mark content is preset.
  • the partition table update device detects the startup status information of the first operating system by confirming that the electronic device is in the system upgrade mode, confirms that the startup status information indicates that the first operating system satisfies the set startup event, and obtains the second The initial partition table of the two operating systems, wherein the system type of the first operating system is the same as the system type of the second operating system, and starting the second operating system according to the initial partition table, and updating the initial partition table to obtain an updated partition table, wherein , the partition indicated by the updated partition table is used to mount the first operating system after startup, which can effectively improve the success rate of partition table update.
  • the third embodiment of the present disclosure provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor.
  • the processor executes the program, the third aspect of the present disclosure is implemented.
  • the embodiment proposes a partition table update method.
  • the fourth embodiment of the present disclosure provides a non-transitory computer-readable storage medium on which a computer program is stored.
  • the program is executed by a processor, the partition table updating method as proposed in the first embodiment of the present disclosure is implemented.
  • the fifth embodiment of the present disclosure provides a computer program product.
  • the partition table updating method proposed in the first embodiment of the present disclosure is executed.
  • Figure 1 is a schematic flowchart of a partition table update method proposed by an embodiment of the present disclosure
  • Figure 2 is a schematic flowchart of a partition table update method proposed by another embodiment of the present disclosure.
  • Figure 3 is a schematic diagram of a partition table update scenario in an embodiment of the present disclosure
  • Figure 4 is a schematic structural diagram of a partition table updating device proposed by an embodiment of the present disclosure.
  • Figure 5 is a schematic structural diagram of a partition table updating device proposed by another embodiment of the present disclosure.
  • FIG. 6 illustrates a block diagram of an exemplary electronic device suitable for implementing embodiments of the present disclosure.
  • FIG. 1 is a schematic flowchart of a partition table updating method proposed by an embodiment of the present disclosure.
  • the execution subject of the partition table update method in this embodiment is a partition table update device.
  • the device can be implemented by software and/or hardware.
  • the device can be configured in an electronic device, and there is no limitation on this.
  • An electronic device is a device that sends data to or receives data from other devices via communication facilities. That is to say, the electronic device can be, for example, a terminal device, a computer device, etc. that are capable of network communication connections. This does not mean limit.
  • the partition table update method includes:
  • S101 Confirm that the electronic device is in system upgrade mode, and detect the startup status information of the first operating system.
  • the system upgrade mode for example, the system upgrade mode based on Over the Air Technology (OTA), can also be called the online upgrade mode.
  • OTA Over the Air Technology
  • the electronic device when the electronic device is in system upgrade mode for system upgrade, there is a risk in updating the partition table. If the partition table fails to be updated successfully, it will affect the startup of the upgraded operating system.
  • the upgraded operation The system can be called the first operating system, and the embodiment of the present disclosure supports dynamic monitoring of the startup status of the upgraded first operating system when the electronic device is in the system upgrade mode, and obtains a description of the startup status of the first operating system.
  • the information is used as the startup status information.
  • the startup status information such as startup time, whether the startup is successful, etc. is not limited.
  • the operating system refers to the computer program that manages computer hardware and software resources.
  • the operating system can handle basic tasks such as managing and configuring memory, determining the priority of system resource supply and demand, controlling input devices and output devices, operating networks, and managing file systems. affairs.
  • the operating system also provides an operation interface for users to interact with the system.
  • the first operating system can be started under control based on the updated partition table, and during the startup process of the first operating system , detect the startup status information of the first operating system. For example, you can obtain the configuration file required for startup, analyze the startup status information based on the configuration file, or you can also obtain the log information of the first operating system startup, and dynamically analyze the startup status information based on the log information. Analyze startup status information without any restrictions.
  • the initial partition table can be updated to obtain the target partition table, the first operating system can be started according to the target partition table, and during the process of starting the first operating system, the first operating system can be detected.
  • the startup status information enables dynamic monitoring of the startup process of the first operating system. If the first operating system can be started normally, the electronic device can be controlled to enter the normal use process. If the first operating system cannot be started normally, the electronic device can be controlled to enter the normal use process. , can trigger execution of subsequent steps.
  • the partition table obtained by updating the initial partition table for the first time can be called the target partition table. Then, the start of the first operating system based on the target partition table can be triggered, and in the process of starting the first operating system, the first operating system is started. The startup process of an operating system is dynamically monitored.
  • S102 Confirm that the startup status information indicates that the first operating system meets the set startup event, and obtain the initial partition table of the second operating system, where the system type of the first operating system and the system type of the second operating system are the same.
  • the startup status information can be analyzed and processed to determine whether a set startup event occurs during the startup process of the first operating system.
  • the set startup event refers to an event that the first operating system fails to start normally.
  • the initial partition table of the second operating system can be obtained, and then the partition table is updated based on the initial partition table of the second operating system to update the partition table based on the obtained partition table. Restart the first operating system.
  • the partition table corresponding to the second operating system can be called the initial partition table, and the partition table refers to dividing the data of the large table into many small subsets called partitions.
  • the main types of partition tables are: Range (range), List (list) and Hash (hash) partitions.
  • the division is mainly based on the internal attributes of the table.
  • a partitioned table can create its own unique partition index. If the hard disk loses its partition table, data cannot be read and written in sequence, rendering it inoperable.
  • the system type of the first operating system is the same as the system type of the second operating system. That is to say, the system type is used to describe the type, model, name, etc. of the operating system.
  • the version of the second operating system can be higher than the version of the second operating system.
  • the first operating system has a lower version.
  • the second operating system can be an old version of the operating system before the system upgrade.
  • the first operating system can be a new version of the operating system after the system upgrade.
  • the initial partition table of the second operating system can be obtained to trigger the subsequent process of re-updating the initial partition table.
  • S103 Start the second operating system according to the initial partition table, and update the initial partition table to obtain an updated partition table, where the partition indicated by the updated partition table is used to mount the first operating system after startup.
  • the second operating system After confirming that the startup status information indicates that the first operating system meets the set startup event and obtaining the initial partition table of the second operating system, the second operating system can be started based on the initial partition table. Since the first operating system fails to start successfully, The old version of the second operating system can be started first so that the initial partition table can be updated again. Then the partition table obtained by updating the initial partition table again can be called an updated partition table. The partition indicated by the updated partition table is used for The first operating system after mounting and startup.
  • the first operating system can also be restarted according to the updated partition table, that is, after the first failure to start the first operating system , the second operating system before the upgrade can be started based on the initial partition table to ensure that the electronic device can be used normally, and then the initial partition table is triggered to be updated again to obtain the updated partition table, and the first operating system is restarted based on the updated partition table.
  • the operating system is the first operating system after startup.
  • partition identification is started based on the updated partition table to normally start the first operating system, ensuring that the initial partition table can be updated correctly, effectively reducing the cost of electronic equipment. maintenance time cost and economic cost.
  • the initial partition table of the second operating system is obtained, Starting the second operating system according to the initial partition table and updating the initial partition table to obtain the updated partition table can effectively improve the partition table update success rate.
  • FIG. 2 is a schematic flowchart of a partition table updating method proposed by another embodiment of the present disclosure.
  • the partition table update method includes:
  • S201 Obtain a partition table generation package, where the partition table generation package includes: at least two initial partition tables and a target partition table corresponding to the initial partition table.
  • each partition table when performing OTA on the operating system, each partition table can be backed up and saved in a designated location each time (for example, at least two copies can be backed up). If the partition table update fails, it is still guaranteed to obtain a complete partition. table, effectively avoiding the risk of abnormal and incomplete partition table updates.
  • the partition table to be updated can be generated in the same partition table as the original partition table (initial partition table). package so that you can quickly obtain a complete partition table later.
  • the obtained partition table generation package is used as a reference when updating the partition table in the electronic device.
  • the partition table generation package can be downloaded from the cloud server, and there is no restriction on this.
  • the target partition table corresponding to the initial partition table can be parsed from the partition table generation package. Then, the steps of updating the initial partition table can be performed to update the initial partition table to the target partition table. .
  • S203 Start the first operating system according to the target partition table.
  • the first operating system After updating the initial partition table to the target partition table, the first operating system can be started directly according to the target partition table, and the startup status information of the first operating system can be dynamically monitored.
  • S204 During the process of starting the first operating system, detect the startup status information of the first operating system.
  • the information of the module called by the first operating system during the startup process can be determined, and the information of the called module is used as the startup status information, then in If the information of the called module matches at least one candidate module information, it is determined that the startup status information indicates that the first operating system satisfies the set startup event, where the candidate module information is preset and can effectively represent the calling status of each module by the operating system. Whether the operating system can start normally. Therefore, when the startup status information is identified based on the situation of the called module, the accuracy of startup status information detection can be improved.
  • the candidate module refers to the module called by the first operating system under abnormal startup conditions, such as module A, module B, and module C.
  • the information used to describe the called module can be called candidate module information, such as the called The name, type, logo, function, etc. of the module.
  • the first operating system calls at least one of module A, module B, and module C during the actual startup process, it can be determined that the first operating system may have an abnormal startup situation, which means that the first operating system meets the set startup requirements. event.
  • the mark recognized by the first operating system during the startup process can also be obtained, and the content of the recognized mark is used as the startup status information, then the If the content of the identification mark matches at least one candidate mark content, it is determined that the startup status information indicates that the first operating system satisfies the set startup event, wherein the candidate mark content is preset, thereby effectively improving whether the first operating system satisfies the set startup event.
  • the flexibility of the judgment can be improved and the practicality of the judgment method can be improved.
  • the candidate mark content refers to the content of the mark accessed by the first operating system in the case of abnormal startup, such as mark 1, mark 2, mark 3, which is used to describe the actual mark content of the accessed mark, and can be called a candidate mark.
  • Content such as the name, type, etc. of the accessed tag.
  • the first operating system accesses the content of at least one of mark 1, mark 2, and mark 3 during the actual startup process, it can be determined that the first operating system may have an abnormal startup situation, which means that the first operating system meets the requirements of the device. Determine the startup event.
  • S205 Confirm that the startup status information indicates that the first operating system meets the set startup event, read the initial partition table from the partition table generation package, and use the read initial partition table as the initial partition table of the second operating system.
  • the system type of the first operating system is the same as the system type of the second operating system. That is to say, the system type is used to describe the type, model, name, etc. of the operating system.
  • the version of the second operating system can be higher than the version of the second operating system.
  • the first operating system has a lower version.
  • the second operating system can be an old version of the operating system before the system upgrade.
  • the first operating system can be a new version of the operating system after the system upgrade.
  • the initial partition table can be read from the partition table generation package, and the read initial partition table can be used as the initial partition table of the second operating system. This can effectively improve the efficiency of obtaining the initial partition table, improve the overall partition table update and recovery efficiency, and ensure the integrity of the obtained initial partition table.
  • the number of initial partition tables in the partition table generation package can be two or more.
  • a storage address can be pre-configured for each initial partition table.
  • the storage address describes the initial partition.
  • the table corresponds to the storage location in the partition table generation package.
  • the address offset between the storage location of the initial partition table and the storage location of the target partition table can also be determined, and different initial partition tables are marked based on the address offset. , in order to quickly read the complete initial partition table.
  • the partition table generation package also includes: an address offset between the storage address of each initial partition table and the storage address of the target partition table, wherein the initial partition table is read from the partition table generation package. partition table, and use the read initial partition table as the initial partition table of the second operating system.
  • the reference storage address can be determined based on the storage address and address offset of the target partition table, and read from the partition table generation package. Obtain the initial partition table corresponding to the reference storage address, and use the corresponding initial partition table as the initial partition table of the second operating system.
  • the storage address determined based on the storage address and address offset of the target partition table may be called a reference storage address, and the reference storage address may be the calculated storage address of the initial partition table in the partition table generation package,
  • the storage address of the target partition table indicates the storage address of the target partition table in the partition table generation package.
  • the reference storage address is determined based on the storage address and address offset of the target partition table.
  • the initial partition table that matches the reference storage address can be determined directly from the partition table generation package as the initial partition table of the second operating system.
  • S206 Start the second operating system according to the initial partition table, and update the initial partition table to obtain an updated partition table, where the partition indicated by the updated partition table is used to mount the first operating system after startup.
  • the second operating system After confirming that the startup status information indicates that the first operating system meets the set startup event and obtaining the initial partition table of the second operating system, the second operating system can be started based on the initial partition table. Since the first operating system fails to start successfully, The old version of the second operating system can be started first so that the initial partition table can be updated again. Then the partition table obtained by updating the initial partition table again can be called an updated partition table. The partition indicated by the updated partition table is used for The first operating system after mounting and startup.
  • the initial partition table of the second operating system is obtained, Starting the second operating system according to the initial partition table and updating the initial partition table to obtain the updated partition table can effectively improve the partition table update success rate.
  • the partition table generation package which includes: at least two initial partition tables and a target partition table corresponding to the initial partition table, the initial partition table is updated to the target partition table, and the third partition table is started based on the target partition table.
  • partition table to be updated target partition table
  • original partition table initial partition table
  • the initial partition table can be read from the partition table generation package, and the read initial partition table can be used as the initial partition table of the second operating system, thereby It can effectively improve the efficiency of obtaining the initial partition table, improve the overall partition table update and recovery efficiency, and also ensure the integrity of the obtained initial partition table.
  • Figure 3 is a schematic diagram of a partition table update scenario in an embodiment of the present disclosure.
  • the target partition table and the initial partition table are produced in the same partition table generation package, and the partition table is The generation is sent to the electronic device to be updated with the partition table.
  • the first operating system of the electronic device detects that it cannot start normally, it indicates that the initial partition table update failed and can trigger a switch to another partition to restart to ensure Successful startup ensures security and allows electronic devices to maintain normal startup. Since the initial partition table is retained, it can be restored to the initial partition table after updating to the target partition table, which can effectively solve the first problem of electronic devices in related technologies.
  • a in Figure 3 is equivalent to Read-Only Memory (ROM) A
  • B is equivalent to read-only memory B.
  • Selecting dtb means selecting the partition table. If the initial partition table is updated, for example, The initial partition table indicates that A and B are the same size, but the target partition table indicates that A and B are not the same size.
  • the first operating system accesses A via the target partition table, or accesses B via the target partition table, and the target partition The table stores the starting address that can access A, or stores the starting address that can access B.
  • the initial partition table and the target partition table are burned into the partition table generation package, and multiple backups of the initial partition table are performed.
  • the target partition table stores the starting address of accessing B.
  • the storage location of each initial partition table differs from the storage location of the target partition table by an address offset. If the path to access B fails, it can be located based on the address offset.
  • the initial partition table backed up in the partition table generation package ensures that the operating system of the electronic device can start normally. After normal startup, the initial partition table can be updated to obtain an updated partition table.
  • Save reserved(dtb) indicates the storage address of the partition table (initial partition table or target partition table). When the operating system (first operating system or second operating system) starts, after the storage address indicated by reserved(dtb), start loading The location of the bootloader, the location of privatization, and the location of operating system (first operating system or second operating system) related files.
  • FIG. 4 is a schematic structural diagram of a partition table updating device proposed by an embodiment of the present disclosure.
  • the partition table updating device 40 includes:
  • the detection module 401 is used to confirm that the electronic device is in the system upgrade mode and detect the startup status information of the first operating system;
  • the acquisition module 402 is used to confirm that the startup status information indicates that the first operating system satisfies the set startup event, and obtains the initial partition table of the second operating system, where the system type of the first operating system and the system type of the second operating system are the same; as well as
  • the first processing module 403 is configured to start the second operating system according to the initial partition table, and update the initial partition table to obtain an updated partition table, where the partition indicated by the updated partition table is used to mount the first operating system after startup.
  • it also includes:
  • the second processing module 404 is used to restart the first operating system according to the updated partition table.
  • the detection module 401 is specifically used for:
  • the startup status information of the first operating system is detected.
  • the detection module 401 is also used for:
  • partition table generation package where the partition table generation package includes: at least two initial partition tables, and a target partition table corresponding to the initial partition table;
  • the acquisition module 402 is specifically used for:
  • the partition table generation package further includes: an address offset between the storage address of each initial partition table and the storage address of the target partition table;
  • the acquisition module 402 is also used for:
  • the corresponding initial partition table is used as the initial partition table of the second operating system.
  • the detection module 401 is also used for:
  • the detection module is also used for:
  • the startup status information indicates that the first operating system satisfies the set startup event, wherein the candidate module information is preset.
  • the detection module 401 is also used for:
  • the detection module 401 is also used for:
  • the startup status information indicates that the first operating system satisfies the set startup event, wherein the candidate mark content is preset.
  • the present disclosure also provides a partition table update device.
  • the implementation of the partition table update method is also applicable to the partition table update device provided in the embodiment of the present disclosure, and will not be described in detail in the embodiment of the present disclosure.
  • the electronic device by confirming that the electronic device is in the system upgrade mode, detecting the startup status information of the first operating system, confirming that the startup status information indicates that the first operating system meets the set startup event, and obtaining the initial partition table of the second operating system, where , the system type of the first operating system is the same as the system type of the second operating system, and the second operating system is started according to the initial partition table, and the initial partition table is updated to obtain an updated partition table, wherein the partition indicated by the updated partition table is used Mounting the first operating system after startup can effectively improve the success rate of partition table update.
  • the present disclosure also proposes an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor.
  • the processor executes the program, the aforementioned embodiments of the present disclosure are implemented. Proposed partition table update method.
  • the present disclosure also proposes a non-transitory computer-readable storage medium on which a computer program is stored.
  • the program is executed by a processor, the partition table updating method as proposed in the previous embodiments of the present disclosure is implemented.
  • the present disclosure also proposes a computer program product.
  • the instruction processor in the computer program product is executed, the partition table updating method proposed in the previous embodiments of the present disclosure is executed.
  • FIG. 6 illustrates a block diagram of an exemplary electronic device suitable for implementing embodiments of the present disclosure.
  • the electronic device 12 shown in FIG. 6 is only an example and should not bring any limitations to the functions and scope of use of the embodiments of the present disclosure.
  • electronic device 12 is embodied in the form of a general computing device.
  • Components of electronic device 12 may include, but are not limited to: one or more processors or processing units 16, system memory 28, and a bus 18 connecting various system components (including system memory 28 and processing unit 16).
  • Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics accelerated port, a processor, or a local bus using any of a variety of bus structures.
  • these architectures include but are not limited to Industry Standard Architecture (hereinafter referred to as: ISA) bus, Micro Channel Architecture (Micro Channel Architecture; hereafter referred to as: MAC) bus, enhanced ISA bus, video electronics Standards Association (Video Electronics Standards Association; hereinafter referred to as: VESA) local bus and Peripheral Component Interconnection (hereinafter referred to as: PCI) bus.
  • ISA Industry Standard Architecture
  • MAC Micro Channel Architecture
  • VESA Video Electronics Standards Association
  • PCI Peripheral Component Interconnection
  • Electronic device 12 typically includes a variety of computer system readable media. These media may be any available media that can be accessed by electronic device 12, including volatile and nonvolatile media, removable and non-removable media.
  • the memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (Random Access Memory; hereinafter referred to as: RAM) 30 and/or cache memory 32.
  • Electronic device 12 may further include other removable/non-removable, volatile/non-volatile computer system storage media.
  • storage system 34 may be used to read and write to non-removable, non-volatile magnetic media (not shown in Figure 6, commonly referred to as a "hard drive").
  • a disk drive may be provided for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and a disk drive for reading and writing a removable non-volatile optical disk (e.g., a compact disk read-only memory).
  • Disc Read Only Memory hereinafter referred to as: CD-ROM
  • DVD-ROM Digital Video Disc Read Only Memory
  • each drive may be connected to bus 18 through one or more data media interfaces.
  • Memory 28 may include at least one program product having a set (eg, at least one) of program modules configured to perform the functions of embodiments of the present disclosure.
  • a program/utility 40 having a set of (at least one) program modules 42 may be stored, for example, in memory 28 , each of these examples or some combination may include the implementation of a network environment.
  • Program modules 42 generally perform functions and/or methods in the embodiments described in this disclosure.
  • Electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), may also communicate with one or more devices that enable a user to interact with electronic device 12, and/or with Any device (eg, network card, modem, etc.) that enables the electronic device 12 to communicate with one or more other computing devices. This communication may occur through input/output (I/O) interface 22.
  • the electronic device 12 can also communicate with one or more networks (such as a local area network (Local Area Network; hereinafter referred to as: LAN), a wide area network (Wide Area Network; hereinafter referred to as: WAN)) and/or a public network, such as the Internet, through the network adapter 20 ) communication.
  • networks such as a local area network (Local Area Network; hereinafter referred to as: LAN), a wide area network (Wide Area Network; hereinafter referred to as: WAN)
  • a public network such as the Internet
  • network adapter 20 communicates with other modules of electronic device 12 via bus 18 .
  • other hardware and/or software modules may be used in conjunction with electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives And data backup storage system, etc.
  • the processing unit 16 executes programs stored in the system memory 28 to perform various functional applications and data processing, such as implementing the partition table update method mentioned in the previous embodiment.
  • various parts of the present disclosure may be implemented in hardware, software, firmware, or combinations thereof.
  • various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system.
  • a logic gate circuit with a logic gate circuit for implementing a logic function on a data signal.
  • Discrete logic circuits application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGA), field programmable gate arrays (FPGA), etc.
  • the program can be stored in a computer-readable storage medium.
  • the program can be stored in a computer-readable storage medium.
  • each functional unit in various embodiments of the present disclosure may be integrated into one processing module, each unit may exist physically alone, or two or more units may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or software function modules. If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
  • the storage media mentioned above can be read-only memory, magnetic disks or optical disks, etc.

Landscapes

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

Abstract

L'invention concerne un procédé et un appareil de mise à jour de table de partition, ainsi qu'un dispositif électronique et un support de stockage. Le procédé comprend les étapes suivantes : lors de la confirmation qu'un dispositif électronique se trouve dans un mode de mise à niveau de système, détecter des informations d'état de démarrage d'un premier système d'exploitation (S101) ; lors de la confirmation que les informations d'état de démarrage indiquent que le premier système d'exploitation satisfait un événement de démarrage défini, acquérir une table de partition initiale d'un second système d'exploitation, le type de système du premier système d'exploitation étant le même que le type de système du second système d'exploitation (S102) ; et démarrer le second système d'exploitation selon la table de partition initiale, et mettre à jour la table de partition initiale pour obtenir une table de partition mise à jour, une partition indiquée par la table de partition mise à jour étant utilisée pour monter le premier système d'exploitation démarré (S103). Par conséquent, le taux de réussite de mise à jour d'une table de partition peut être efficacement augmenté.
PCT/CN2022/103171 2022-06-30 2022-06-30 Procédé et appareil de mise à jour de table de partition, dispositif électronique et support de stockage WO2024000535A1 (fr)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/103171 WO2024000535A1 (fr) 2022-06-30 2022-06-30 Procédé et appareil de mise à jour de table de partition, dispositif électronique et support de stockage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/103171 WO2024000535A1 (fr) 2022-06-30 2022-06-30 Procédé et appareil de mise à jour de table de partition, dispositif électronique et support de stockage

Publications (1)

Publication Number Publication Date
WO2024000535A1 true WO2024000535A1 (fr) 2024-01-04

Family

ID=89383881

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/103171 WO2024000535A1 (fr) 2022-06-30 2022-06-30 Procédé et appareil de mise à jour de table de partition, dispositif électronique et support de stockage

Country Status (1)

Country Link
WO (1) WO2024000535A1 (fr)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622280A (zh) * 2011-01-06 2012-08-01 苏州科达科技有限公司 一种基于双文件系统的软件版本升级的控制方法及装置
US20150277933A1 (en) * 2014-03-31 2015-10-01 Quanta Computer Inc. Method of operating multiple operating systems and the electronic device thereof
US20160321063A1 (en) * 2013-12-13 2016-11-03 Zte Corporation Method and Device for Making Differential Upgrade Package, and Method and Device for System Differential Upgrading
CN106708543A (zh) * 2015-07-22 2017-05-24 Tcl集团股份有限公司 一种操作系统的ota升级方法及装置
CN107341074A (zh) * 2017-07-25 2017-11-10 广东欧珀移动通信有限公司 一种升级异常修复方法、升级异常修复装置及智能终端
CN107967141A (zh) * 2017-11-27 2018-04-27 北京小米移动软件有限公司 操作系统升级方法、装置及终端
US20190347164A1 (en) * 2018-05-09 2019-11-14 Microsoft Technology Licensing, Llc Fault tolerant device upgrade
WO2022095758A1 (fr) * 2020-11-04 2022-05-12 华为技术有限公司 Procédé de mise à niveau de terminal et terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622280A (zh) * 2011-01-06 2012-08-01 苏州科达科技有限公司 一种基于双文件系统的软件版本升级的控制方法及装置
US20160321063A1 (en) * 2013-12-13 2016-11-03 Zte Corporation Method and Device for Making Differential Upgrade Package, and Method and Device for System Differential Upgrading
US20150277933A1 (en) * 2014-03-31 2015-10-01 Quanta Computer Inc. Method of operating multiple operating systems and the electronic device thereof
CN106708543A (zh) * 2015-07-22 2017-05-24 Tcl集团股份有限公司 一种操作系统的ota升级方法及装置
CN107341074A (zh) * 2017-07-25 2017-11-10 广东欧珀移动通信有限公司 一种升级异常修复方法、升级异常修复装置及智能终端
CN107967141A (zh) * 2017-11-27 2018-04-27 北京小米移动软件有限公司 操作系统升级方法、装置及终端
US20190347164A1 (en) * 2018-05-09 2019-11-14 Microsoft Technology Licensing, Llc Fault tolerant device upgrade
WO2022095758A1 (fr) * 2020-11-04 2022-05-12 华为技术有限公司 Procédé de mise à niveau de terminal et terminal

Similar Documents

Publication Publication Date Title
US20170046152A1 (en) Firmware update
JP4467624B2 (ja) ソフトウェアアップデート管理プログラム、ソフトウェアアップデート管理装置、およびソフトウェアアップデート管理方法
US7197634B2 (en) System and method for updating device firmware
US8245077B2 (en) Failover method and computer system
US10068015B2 (en) Monitoring a monitoring-target process
JP5768277B2 (ja) 記憶ボリュームのディスマウント
US10430082B2 (en) Server management method and server for backup of a baseband management controller
US10048978B2 (en) Apparatus and method for identifying a virtual machine having changeable settings
US11314665B2 (en) Information processing system, information processing device, BIOS updating method for information processing device, and BIOS updating program for information processing device
WO2021004256A1 (fr) Procédé de commutation de nœud dans une panne de nœud et dispositif associé
US10664193B2 (en) Storage system for improved efficiency of parity generation and minimized processor load
JP2007133544A (ja) 障害情報解析方法及びその実施装置
US11281550B2 (en) Disaster recovery specific configurations, management, and application
CN111090546A (zh) 一种操作系统重启方法、装置、设备及可读存储介质
JP6515462B2 (ja) 情報処理装置、情報処理装置の設定方法及び設定プログラム
TWI496086B (zh) 伺服器的基本輸入輸出系統更新方法
JP2017078998A (ja) 情報処理装置およびログ管理方法、並びにコンピュータ・プログラム
WO2024000535A1 (fr) Procédé et appareil de mise à jour de table de partition, dispositif électronique et support de stockage
US11734133B2 (en) Cluster system and fail-over control method of cluster system
US11226875B2 (en) System halt event recovery
US20160004607A1 (en) Information processing apparatus and information processing method
JP2017041110A (ja) マルチコンピュータシステム,管理装置および管理プログラム
WO2018135298A1 (fr) Dispositif de traitement d'informations et programme de gestion
JP6682897B2 (ja) 通信設定方法、通信設定プログラム、情報処理装置および情報処理システム
US12001285B2 (en) System booting method and apparatus, node device, and computer-readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22948637

Country of ref document: EP

Kind code of ref document: A1