WO2022057756A1 - Method and apparatus for starting device, electronic device, and computer storage medium - Google Patents

Method and apparatus for starting device, electronic device, and computer storage medium Download PDF

Info

Publication number
WO2022057756A1
WO2022057756A1 PCT/CN2021/117923 CN2021117923W WO2022057756A1 WO 2022057756 A1 WO2022057756 A1 WO 2022057756A1 CN 2021117923 W CN2021117923 W CN 2021117923W WO 2022057756 A1 WO2022057756 A1 WO 2022057756A1
Authority
WO
WIPO (PCT)
Prior art keywords
configuration
startup
configuration information
bios
information
Prior art date
Application number
PCT/CN2021/117923
Other languages
French (fr)
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 阿里巴巴集团控股有限公司
Publication of WO2022057756A1 publication Critical patent/WO2022057756A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • 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
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Definitions

  • the embodiments of the present application relate to the field of computer technologies, and in particular, to a device startup method, device, electronic device, and computer storage medium.
  • BIOS Basic Input Output System
  • the embodiments of the present application provide a device startup solution to at least partially solve the above problems.
  • a method for booting a device where the device includes a basic input output system BIOS, and the method includes:
  • the BIOS acquires the first startup configuration information in the personality configuration table, wherein part of the information in the first startup configuration information is startup configuration information generated by a user for a configuration modification operation of the BIOS;
  • the second startup configuration information is the startup configuration information used for the previous startup of the device
  • the startup configuration information to be used is determined according to the comparison result, and the device is started according to the determined startup configuration information.
  • a device booting device the device includes a basic input output system BIOS, and the device includes:
  • BIOS obtains the first startup configuration information in the personality configuration table, wherein part of the information in the first startup configuration information is the startup configuration information generated by the user for the configuration modification operation of the BIOS;
  • a comparison module that compares the first startup configuration information with the corresponding second startup configuration information in the management configuration table used by the BIOS, wherein the second startup configuration information is the startup device used for the previous startup of the device configuration information;
  • the startup module determines the startup configuration information to be used according to the comparison result, and starts the device according to the determined startup configuration information.
  • a computer device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the program when executing the program The startup method as described in the first aspect.
  • a computer storage medium is provided on which a computer program is stored, and when the program is executed by a processor, the device startup method according to the first aspect is implemented.
  • the BIOS of the device can read the first startup configuration information in the personality configuration table during the startup phase, and compare it with the corresponding second startup configuration information in the management configuration table.
  • the startup configuration information is determined by comparing the results, so that the device is started according to the determined startup configuration information.
  • the solution of the embodiment of the present application can guarantee the BIOS configuration in the device. In addition to the timeliness of the device, it can also achieve efficient, batch management and maintenance of the BIOS configuration of the device, making the configuration management of the device more convenient and efficient.
  • FIG. 1 is a schematic structural diagram of a system involved in an embodiment of the present application
  • FIG. 2 is a schematic flowchart of a method for starting a device according to an embodiment of the present application
  • FIG. 3 is a schematic flowchart of the startup of a device according to an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of a device for starting a device according to an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 1 is a schematic structural diagram of a system involved in an embodiment of the present application.
  • the server can provide multiple devices for users of multiple devices (device 1, device 2, device 3...), and these devices may be in different locations in space, and the server needs to perform unified management based on the management end , maintenance, modification and other processing operations.
  • the present application provides a more convenient device startup solution.
  • This solution enables the BIOS to start the device based on the management configuration table and the personality configuration table.
  • the basic BIOS configuration information is recorded in the management configuration table. Based on the BIOS configuration information in the table, the device can be started normally, but most of the data can be fixedly configured and do not need to be changed for a long period of time, so it can be Seen as a cold watch.
  • the modification of a configuration item in the BIOS configuration by the user can be fed back through the personalized configuration table to meet their own needs and improve the flexibility of the BIOS configuration, which can be regarded as a hot table.
  • 100 items of basic configuration of the BIOS are stored in the management configuration table, among which 20 items are allowed to be modified by the user, and the other 80 items are not allowed to be modified by the user.
  • the user can modify the 20 to meet their own needs, and after combining with the other 80 items, through the synchronization between the management configuration table and the personality configuration table, a personality configuration table that can feedback the user's configuration modification is finally formed.
  • the device when the device is initially started, it first needs to be a flash memory (for example, Complementary Metal Oxide Semiconductor (CMOS), a readable and writable parallel or serial FLASH chip from the device , the configuration parameters of the BIOS can be saved in the form of a binary string) to obtain the initial startup configuration information of the BIOS, write the initial startup configuration information into the initial management configuration table, and further synchronize the initial management configuration table to the personality configuration table, At this time, the synchronized initial management configuration table and the initial personality configuration table are obviously the same, so the comparison results between the two must be consistent, and the device can start according to the second startup configuration information in the management configuration table.
  • CMOS Complementary Metal Oxide Semiconductor
  • FIG. 2 is a schematic flowchart of a device startup method provided by an embodiment of the present application, including:
  • the BIOS acquires first startup configuration information in a personality configuration table, where part of the information in the first startup configuration information is startup configuration information generated by a user for a configuration modification operation of the BIOS.
  • the personality configuration table in the device is no longer empty, but a table containing multiple startup configuration items, including startup configuration items and management configuration tables.
  • the included startup configuration items are the same and correspond one-to-one, and the multiple startup configuration items and the assignment of each startup configuration item constitute startup configuration information.
  • the user may need to modify the startup configuration information of the BIOS of the device, and the startup configuration information generated based on the user's configuration modification operation will be written into the personality configuration table.
  • the user does not modify all the startup configuration items, but modifies part of the startup configuration items, that is, part of the information in the personality configuration table is the startup configuration information generated by the user for the configuration modification operation of the BIOS.
  • the user who modifies the personality configuration table can be a user on the management side or a device user on the device side.
  • the management terminal can also remotely manage, monitor or maintain the BIOS configuration of the device. As shown in FIG. 1 , in each device, the management terminal can maintain a management network port or serial port connecting the device in advance, and manage each device. This link is independent of the application data link generated by the device user using the device for specific applications.
  • the management terminal can manage (including configure and update) the personality configuration table, and push the personality configuration table from the management terminal to each device uniformly, and save it by each device, that is, the management terminal performs remote unified configuration for multiple devices manage. Moreover, when the management end pushes again, each device can instantly receive the pushed personality configuration table, and update and save it locally.
  • each management terminal performs batch update management on the personality configuration table
  • the information of the personality configuration table on each device is synchronized and consistent.
  • the user at the management end can configure and modify the specific values of the parameters in the personality configuration table on the management end without being locally on the device.
  • the management terminal can also rush to one or several devices for a personalized configuration table, and other devices do not push it.
  • the BIOS has the ability to actively read the startup configuration information of the BIOS once during the startup phase, which can ensure that the configuration of the BIOS of the device is up-to-date every time, thereby making the management of the device status by the management end simpler and more direct.
  • the reading process does not need to change the existing system structure, maintains the operation mode of the existing system, and effectively maintains the security of the system.
  • the second startup configuration information is the startup configuration used for the previous startup of the device information.
  • Table 1 is an exemplary management configuration table provided by the embodiment of the present application.
  • “CPU Internal Cache” in Table 1 is a startup configuration item, and “Enabled” is the assignment of the startup configuration item.
  • the startup configuration information in the management configuration table specifies the relevant startup methods of the device during startup, such as: opening the built-in cache of the CPU, booting the operating system from the first hard disk, supporting the block mode of the hard disk, and automatically detecting DIMM/PCI clock frequency, etc.
  • the boot configuration information can be synchronized from the flash memory to the management configuration table.
  • the configuration parameters in the flash memory and the second startup configuration information in the management configuration table and the first startup configuration information in the personality configuration table.
  • the second startup configuration information stored in the management configuration table is the startup configuration information used for the previous startup of the device.
  • the startup configuration items contained in the personality configuration table and the management configuration table are the same and correspond one-to-one.
  • the comparison of the two refers to whether the assignments of the two tables are consistent in the same startup configuration item. If the assignments in the startup configurations in the two tables are completely consistent, it is determined that the first startup configuration information is consistent with the second startup configuration information; if the assignment of any startup configuration item is inconsistent, then the first startup configuration information is consistent with the second startup configuration information. 2.
  • the startup configuration information is inconsistent.
  • both tables contain 100 startup configuration items. If the user configures 20 of them individually, the two tables will be listed in the 20 startup configuration items. Items are assigned differently, but otherwise the same.
  • S205 Determine the startup configuration information to be used according to the comparison result, and start the device according to the determined startup configuration information.
  • the device is started according to the second startup configuration information.
  • the two are consistent, indicating that no user has modified the startup configuration information of the device, that is, the configuration parameters saved in the flash memory are consistent with the second startup configuration information. Therefore, the device can be started according to the second startup configuration information.
  • the configuration parameters of the BIOS can be modified based on the first boot configuration information, so that the modified BIOS configuration parameters are consistent with the first boot configuration information, and the modified BIOS configuration parameters are used to boot the device.
  • the configuration parameters of the BIOS refer to the configuration parameters of the BIOS stored in the flash memory in the form of binary strings.
  • the BIOS of the device can read the first startup configuration information in the personality configuration table during the startup phase, and compare it with the corresponding second startup configuration information in the management configuration table.
  • the startup configuration information is determined by comparing the results, so that the device is started according to the determined startup configuration information.
  • the solution of the embodiment of the present application can guarantee the BIOS configuration in the device. In addition to the timeliness of the device, it can also achieve efficient, batch management and maintenance of the BIOS configuration of the device, making the configuration management of the device more convenient and efficient.
  • the modified configuration parameters may also be written into the management configuration table, and the management configuration parameters may be written to the management configuration table.
  • a configuration table is aligned to the personality configuration table.
  • the configuration items in the personality configuration table are consistent with the management configuration table, but the configuration values corresponding to some configuration items may be different, that is, the configuration items that have been modified by the user through the BIOS configuration interface or the personality configuration table, when aligning the two .
  • This part of the modified configuration items are first fed back in the management configuration table through the mapping relationship between the BIOS configuration parameters and the management configuration table, and then fed back in the personality configuration table by aligning the management configuration table with the personality configuration table.
  • the values of these modified configuration items are retained, while the values of other configuration items are still the configuration values in the management configuration table, so that the effective transfer of data and the alignment operation are realized.
  • the management of the management configuration table and the personality configuration table are consistent with the management configuration table, but the configuration values corresponding to some configuration items may be different, that is, the configuration items that have been modified by the user through the BIOS configuration interface or the personality configuration table, when aligning the two .
  • the modified configuration parameters saved in the flash memory are written to the management configuration table, and the management configuration table is aligned to the personality configuration table, where alignment refers to both There is a one-to-one correspondence on the startup configuration items.
  • the assignments in the personality configuration table are modified to the assignments in the management configuration table.
  • the device may save the management configuration table and clear the currently used personality configuration table. Further, the modified configuration parameters saved in the form of binary strings are read from the flash memory, and then the currently used management configuration table is updated with the modified configuration parameters, and after the management configuration table is updated, the management configuration table is synchronized. configuration table to the personality configuration table.
  • the validity of the first startup configuration information may also be judged to determine whether to allow the The first startup configuration information takes effect. After it is determined that the first startup configuration information is valid, it is determined that the first startup configuration information is allowed to take effect, and then the configuration parameters corresponding to the BIOS are modified according to the first startup configuration information.
  • a whitelist containing valid startup configuration information can be preset, and the startup configuration information included in the personality configuration table can be matched, that is, to check whether the startup configuration information included in the personality configuration table belongs to the In the above whitelist, if it belongs to the whitelist, it can be confirmed that the personality configuration table is legal, otherwise it is illegal; or, a blacklist containing illegal startup configuration information can also be preset. If it belongs to the blacklist, it is determined that the personality configuration is illegal, otherwise it is legal.
  • the configuration parameters corresponding to the BIOS of the device should not be modified.
  • each device user May have their own personalized settings. Based on this, before starting the device according to the management configuration table and entering the operating system, a corresponding personalized setting service can also be provided to the device user.
  • the BIOS is usually classified as an in-band system, while the personalization service can be classified as an out-of-band system.
  • the setting interface of the BIOS can be displayed (the information displayed in the setting interface at this time is the configuration parameters of the BIOS in the flash memory), and the setting interface of the BIOS can be displayed in the out-of-band system.
  • the operation instruction of the device user is received in the setting interface, the startup configuration information of the BIOS is modified, and configuration modification information is generated.
  • the configuration parameters of the BIOS are directly modified according to the configuration modification information, and the device is started according to the modified configuration parameters of the BIOS, and the modified configuration parameters can be written into the A management configuration table is aligned, and the management configuration table is aligned to the personality configuration table.
  • the out-of-band system may also display the personality configuration table to the user and/or Or the management terminal, and then the user and/or the management terminal can modify the first startup configuration information in the personality configuration table. Since this modification does not directly affect the configuration parameters of the BIOS in the flash memory, it will not affect this startup, that is, the modified startup configuration information will not take effect in this startup.
  • the next startup needs to be based on the modified configuration parameters.
  • the configuration parameters of the BIOS are modified, and the device is started according to the modified configuration parameters of the BIOS.
  • the two configuration tables are used to manage the rights of the BIOS and administrator users.
  • the personalized configuration table can be modified, but the management configuration table can not be modified, but the management configuration table can be viewed. At the same time, it can also improve the operability and maintainability of the equipment system.
  • Both the management configuration table and the personality configuration table can be stored in the baseboard management controller (Baseboard Manager Controller, BMC) of the device.
  • BMC Baseboard Manager Controller
  • the BMC does not depend on other hardware (such as CPU, memory, etc.) on the system, nor does it depend on the BIOS or the operating system, but the BMC can interact with the BIOS and the operating system.
  • the modification information in the personality configuration table may be determined at the same time, and the modification information may include the modified user, the modification time, which configuration items have been modified, and the value of the modified configuration items. And a modification log containing the modification information is generated and saved.
  • the generated modification log can be saved in the BMC of the local device, or directly uploaded to the management terminal for storage, so that the management terminal can timely understand the individual needs of each device user and the specific changes, making the management of the device more convenient and efficient. Manage configuration tables.
  • integrity verification may also be performed on the personality configuration table in advance. Integrity verification refers to determining whether a piece of information has been altered during storage (including man-made alterations, or accidental alterations caused by possible hardware errors). If the integrity verification is passed, it means that the personality configuration table is accurate and has not been modified, then the device can be started according to the startup configuration information contained in the personality configuration table.
  • the hash value of the personality configuration table can be predetermined and stored in the trusted area of the device; or the personality configuration can be determined by a trusted platform control module (tpcm) of the device.
  • the hash value of the table is stored in tpcm, and then when the integrity of the personality configuration table is verified, the hash value of the personality configuration table can be calculated again by tpcm, and the consistency comparison is carried out. If they are equal, the verification is passed.
  • tpcm trusted platform control module
  • the trusted hash value of the updated personality configuration table can also be regenerated and saved, so that subsequent Integrity verification.
  • FIG. 3 is a schematic flowchart of a startup of a device according to an embodiment of the present application, which corresponds to an overall process of a single device during a single startup.
  • the BIOS After the device is powered on, the BIOS obtains the startup configuration information in the personality configuration table and the management configuration table from the BMC, and compares the two. The configuration parameters are modified; if the two are the same, the device startup can be performed based on the second startup configuration information, and of course, the use of the first startup configuration information is also applicable.
  • the configuration information of the BIOS displayed at this time in the setting interface the device user can modify it, generate configuration modification information, and modify and save the configuration parameters of the BIOS according to the configuration modification information. Exit the setting interface.
  • the management configuration table is saved in the BMC and the personality configuration table is cleared.
  • the modified BIOS configuration parameters are sent to the management configuration table, and the management configuration table is synchronized to the individual configuration table.
  • the BIOS continues to operate and enters the operating system to complete the device startup.
  • the management configuration table can still be saved in the BMC, and the personality configuration table can be cleared.
  • the configuration parameters of the BIOS are sent to the management configuration table, and the management configuration table is synchronized to the individual configuration table.
  • the BIOS continues to operate and enters the operating system to complete the device startup.
  • the device startup method in this embodiment may be executed by any appropriate electronic device with data processing capabilities, including but not limited to: a server, a mobile terminal (such as a mobile phone, a PAD, etc.), a PC, and the like. Implement specific restrictions.
  • a device for starting a device is further provided, and the device includes a basic input output system BIOS, as shown in FIG. 4 , which is a device provided by an embodiment of the present application
  • BIOS basic input output system
  • the BIOS obtains the first startup configuration information in the personality configuration table, wherein part of the information in the first startup configuration information is the startup configuration information generated by the user for the configuration modification operation of the BIOS;
  • the comparison module 403 compares the first startup configuration information with the corresponding second startup configuration information in the management configuration table used by the BIOS, where the second startup configuration information is the one used for the previous startup of the device Startup configuration information;
  • the startup module 405 determines the startup configuration information to be used according to the comparison result, and starts the device according to the determined startup configuration information.
  • the comparison result indicates that the first startup configuration information is consistent with the second startup configuration information, and the device is started according to the second startup configuration information; if the comparison result indicates that the first startup configuration information is consistent with the second startup configuration information If the first startup configuration information is inconsistent with the second startup configuration information, the configuration parameters of the BIOS are modified according to the first startup configuration information, and the device is started using the modified configuration parameters.
  • the apparatus further includes an alignment module 407, which, after modifying the configuration parameters of the BIOS according to the first startup configuration information, writes the modified configuration parameters into the management configuration table and writes the modified configuration parameters to the management configuration table.
  • the management profile is aligned to the personality profile.
  • the alignment module 407 saves the currently used management configuration table, and performs a clearing operation on the currently used personality configuration table; uses the modified configuration parameters to update the currently used management configuration table, and uses the updated The management configuration table of synchronously updates the currently used personality configuration table.
  • the apparatus further includes a judgment module 409, which judges whether to allow the first start-up configuration information to take effect before modifying the configuration parameters corresponding to the BIOS according to the first start-up configuration information; , the operation of modifying the configuration parameter corresponding to the BIOS according to the first startup configuration information is performed.
  • a judgment module 409 which judges whether to allow the first start-up configuration information to take effect before modifying the configuration parameters corresponding to the BIOS according to the first start-up configuration information; , the operation of modifying the configuration parameter corresponding to the BIOS according to the first startup configuration information is performed.
  • the apparatus further includes a first modification module 411, which receives configuration modification information from the user equipment and/or the management terminal, wherein the configuration modification information is based on the user equipment and/or the management terminal through the user equipment and/or the management terminal.
  • the BIOS configuration interface displayed in the BIOS configuration modification operation is generated; the configuration parameters of the BIOS are modified according to the configuration modification information.
  • the apparatus further includes a second modification module 413, which receives configuration modification information from the user equipment and/or the management terminal, wherein the configuration modification information is based on the user through the user equipment and/or the management terminal. Carry out the BIOS configuration modification operation generation for the startup configuration information in the personality configuration table; modify the personality configuration table according to the configuration modification information, so as to perform the modification according to the modified configuration parameters when the device starts up next time startup of the device.
  • a second modification module 413 which receives configuration modification information from the user equipment and/or the management terminal, wherein the configuration modification information is based on the user through the user equipment and/or the management terminal. Carry out the BIOS configuration modification operation generation for the startup configuration information in the personality configuration table; modify the personality configuration table according to the configuration modification information, so as to perform the modification according to the modified configuration parameters when the device starts up next time startup of the device.
  • the apparatus further includes an initial startup module 415, which obtains an initial management configuration table from the flash memory of the device, and synchronizes the initial management table to the initial personality configuration table;
  • the initial management configuration table is used to initially start the device.
  • the management configuration table and/or the personality configuration table are stored in the baseboard management controller BMC of the device.
  • the device for starting the device in this embodiment is used to implement the corresponding starting methods in the foregoing multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.
  • the function implementation of each module in the startup device of this embodiment reference may be made to the descriptions of the corresponding parts in the foregoing method embodiments, which will not be repeated here.
  • an electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements the above-mentioned program when executing the program The method of any one.
  • the electronic device may include: a processor (processor) 502, a communication interface (Communications Interface) 504, a memory (memory) 506, and a communication bus 508, and the device includes a basic input output system BIOS.
  • processor processor
  • Communication interface Communication interface
  • memory memory
  • communication bus 508 the device includes a basic input output system BIOS.
  • the processor 502 , the communication interface 504 , and the memory 506 communicate with each other through the communication bus 508 .
  • the communication interface 504 is used to communicate with other electronic devices or servers.
  • the processor 502 is configured to execute the program 510, and specifically may execute the relevant steps in the above-mentioned embodiments of the device startup method.
  • the program 510 may include program code including computer operation instructions.
  • the processor 502 may be a central processing unit (CPU), or a specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application.
  • processors included in the smart device may be the same type of processors, such as one or more CPUs; or may be different types of processors, such as one or more CPUs and one or more ASICs.
  • the memory 506 is used to store the program 510 .
  • Memory 506 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk memory.
  • the program 510 can be specifically used to cause the processor to drive the BIOS in the device to perform the following operations:
  • the BIOS acquires the first startup configuration information in the personality configuration table, wherein part of the information in the first startup configuration information is startup configuration information generated by a user for a configuration modification operation of the BIOS;
  • the second startup configuration information is the startup configuration information used for the previous startup of the device
  • the startup configuration information to be used is determined according to the comparison result, and the device is started according to the determined startup configuration information.
  • a computer storage medium is provided on which a computer program is stored, and when the program is executed by a processor, the device startup method according to the first aspect is implemented.
  • each component/step described in the embodiments of the present application may be split into more components/steps, or two or more components/steps or part of operations of components/steps may be combined into New components/steps to achieve the purpose of the embodiments of the present application.
  • the above-mentioned methods according to the embodiments of the present application can be implemented in hardware, firmware, or as software or computer codes that can be stored in a recording medium (such as CD ROM, RAM, floppy disk, hard disk, or magneto-optical disk), or implemented through Network downloaded computer code originally stored in a remote recording medium or non-transitory machine-readable medium and will be stored in a local recording medium so that the methods described herein can be stored on a computer using a general purpose computer, special purpose processor or programmable or such software processing on a recording medium of dedicated hardware such as ASIC or FPGA.
  • a recording medium such as CD ROM, RAM, floppy disk, hard disk, or magneto-optical disk
  • Network downloaded computer code originally stored in a remote recording medium or non-transitory machine-readable medium and will be stored in a local recording medium so that the methods described herein can be stored on a computer using a general purpose computer, special purpose processor or programmable or such software processing on a recording medium of dedicated hardware such as A
  • a computer, processor, microprocessor controller or programmable hardware includes storage components (eg, RAM, ROM, flash memory, etc.) that can store or receive software or computer code when the software or computer code is executed by a computer, When accessed and executed by a processor or hardware, the boot method of the device described herein is implemented. Furthermore, when a general-purpose computer accesses code for implementing the device startup method shown herein, the execution of the code converts the general-purpose computer into a special-purpose computer for executing the device startup method shown herein.
  • storage components eg, RAM, ROM, flash memory, etc.

Abstract

A method and apparatus for starting a device, an electronic device, and a computer storage medium. A BIOS of a device can read first startup configuration information in a personality configuration table in the startup stage, the first startup configuration information is compared with corresponding second startup configuration information in a management configuration table, and startup configuration information is determined according to the comparison result so as to start the device according to the determined startup configuration information.

Description

一种设备的启动方法、装置、电子设备及计算机存储介质Device startup method, device, electronic device, and computer storage medium
本申请要求2020年09月18日递交的申请号为202010988456.9、发明名称为“一种设备的启动方法、装置、电子设备及计算机存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on September 18, 2020 with the application number of 202010988456.9 and the invention titled "A device startup method, device, electronic device and computer storage medium", the entire contents of which are incorporated by reference in this application.
技术领域technical field
本申请实施例涉及计算机技术领域,尤其涉及一种设备的启动方法、装置、电子设备及计算机存储介质。The embodiments of the present application relate to the field of computer technologies, and in particular, to a device startup method, device, electronic device, and computer storage medium.
背景技术Background technique
基本输入输系统(Basic Input Output System,BIOS)是一组固化到芯片上的程序,它保存着最重要的基本输入输出的程序、开机后自检程序和系统自启动程序,为设备提供底层和直接的硬件设置和控制。通常,对于BIOS的修改都是在本地的开机过程中通过手动修改来完成。The Basic Input Output System (BIOS) is a set of programs that are solidified on the chip. It saves the most important basic input and output programs, self-checking programs after booting, and system self-starting programs, providing the bottom layer and Direct hardware setup and control. Usually, the modification to the BIOS is done manually during the local boot process.
这样一来,在存在大量的设备的情况下,对设备的BIOS的管理、维护及修改等操作都较为麻烦。如果均采用人工方式对大量设备进行逐一操作,效率太低,而且容易出错。In this way, when there are a large number of devices, operations such as management, maintenance, and modification of the BIOS of the devices are relatively troublesome. If a large number of devices are manually operated one by one, the efficiency is too low and it is prone to errors.
基于此,需要一种更为便捷的对BIOS配置进行处理进而启动设备的方案。Based on this, there is a need for a more convenient solution for processing the BIOS configuration and then starting the device.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本申请实施例提供一种设备的启动方案,以至少部分解决上述问题。In view of this, the embodiments of the present application provide a device startup solution to at least partially solve the above problems.
根据本申请实施例的第一方面,提供了一种设备的启动方法,所述设备包含有基本输入输出系统BIOS,所述方法包括:According to a first aspect of the embodiments of the present application, a method for booting a device is provided, where the device includes a basic input output system BIOS, and the method includes:
所述BIOS获取个性配置表中的第一启动配置信息,其中,所述第一启动配置信息中的部分信息为用户针对所述BIOS的配置修改操作生成的启动配置信息;The BIOS acquires the first startup configuration information in the personality configuration table, wherein part of the information in the first startup configuration information is startup configuration information generated by a user for a configuration modification operation of the BIOS;
将所述第一启动配置信息与所述BIOS使用的管理配置表中相对应的第二启动配置信息进行比较,其中,所述第二启动配置信息为前次启动设备所使用的启动配置信息;comparing the first startup configuration information with the corresponding second startup configuration information in the management configuration table used by the BIOS, wherein the second startup configuration information is the startup configuration information used for the previous startup of the device;
根据比较结果确定待使用的启动配置信息,并根据确定的启动配置信息启动所述设备。The startup configuration information to be used is determined according to the comparison result, and the device is started according to the determined startup configuration information.
根据本申请实施例的第二方面,提供了一种设备的启动装置,所述设备中包含有基本输入输出系统BIOS,所述装置包括:According to a second aspect of the embodiments of the present application, there is provided a device booting device, the device includes a basic input output system BIOS, and the device includes:
获取模块,所述BIOS获取个性配置表中的第一启动配置信息,其中,所述第一启动配置信息中的部分信息为用户针对所述BIOS的配置修改操作生成的启动配置信息;an obtaining module, wherein the BIOS obtains the first startup configuration information in the personality configuration table, wherein part of the information in the first startup configuration information is the startup configuration information generated by the user for the configuration modification operation of the BIOS;
比较模块,将所述第一启动配置信息与所述BIOS使用的管理配置表中相对应的第二启动配置信息进行比较,其中,所述第二启动配置信息为前次启动设备所使用的启动配置信息;A comparison module that compares the first startup configuration information with the corresponding second startup configuration information in the management configuration table used by the BIOS, wherein the second startup configuration information is the startup device used for the previous startup of the device configuration information;
启动模块,根据比较结果确定待使用的启动配置信息,并根据确定的启动配置信息 启动所述设备。The startup module determines the startup configuration information to be used according to the comparison result, and starts the device according to the determined startup configuration information.
根据本申请实施例的第三方面,提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述程序时实现如第一方面述的启动方法。According to a third aspect of the embodiments of the present application, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the program when executing the program The startup method as described in the first aspect.
根据本申请实施例的第四方面,提供了一种计算机存储介质,其上存储有计算机程序,该程序被处理器执行时实现如第一方面所述的设备的启动方法。According to a fourth aspect of the embodiments of the present application, a computer storage medium is provided on which a computer program is stored, and when the program is executed by a processor, the device startup method according to the first aspect is implemented.
根据本申请实施例提供的设备的启动方案,设备的BIOS在启动阶段可以读取个性配置表中的第一启动配置信息,并且与管理配置表中相对应的第二启动配置信息进行比较,根据比较结果来确定启动配置信息,从而根据确定的启动配置信息启动所述设备,与现有的通过本地闪存中获得启动配置信息的方式相比,本申请实施例的方案除可保障设备中BIOS配置的时效性外,还可实现对设备的BIOS配置的高效、批量管理和维护,使得对于设备的配置管理更为便捷高效。According to the device startup solution provided by the embodiment of the present application, the BIOS of the device can read the first startup configuration information in the personality configuration table during the startup phase, and compare it with the corresponding second startup configuration information in the management configuration table. The startup configuration information is determined by comparing the results, so that the device is started according to the determined startup configuration information. Compared with the existing method of obtaining the startup configuration information through the local flash memory, the solution of the embodiment of the present application can guarantee the BIOS configuration in the device. In addition to the timeliness of the device, it can also achieve efficient, batch management and maintenance of the BIOS configuration of the device, making the configuration management of the device more convenient and efficient.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请实施例中记载的一些实施例,对于本领域普通技术人员来讲,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments described in the embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings.
图1为本申请实施例所涉及的系统的架构示意图;FIG. 1 is a schematic structural diagram of a system involved in an embodiment of the present application;
图2为本申请实施例所提供的一种设备的启动方法的流程示意图;2 is a schematic flowchart of a method for starting a device according to an embodiment of the present application;
图3为本申请实施例所提供的一种设备的启动时的流程示意图;FIG. 3 is a schematic flowchart of the startup of a device according to an embodiment of the present application;
图4为本申请实施例所提供的一种设备的启动装置的结构示意图;4 is a schematic structural diagram of a device for starting a device according to an embodiment of the present application;
图5为本申请实施例所提供的一种电子设备的结构示意图。FIG. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式detailed description
为了使本领域的人员更好地理解本申请实施例中的技术方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本申请实施例一部分实施例,而不是全部的实施例。基于本申请实施例中的实施例,本领域普通技术人员所获得的所有其他实施例,都应当属于本申请实施例保护的范围。In order to make those skilled in the art better understand the technical solutions in the embodiments of the present application, the following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application. The embodiments described above are only a part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in the embodiments of the present application should fall within the protection scope of the embodiments of the present application.
在为用户提供设备服务(例如,出租服务器或者存储设备)时,通常是存在大规模的设备需要集中管理和运维。如图1所示,图1为本申请实施例所涉及的系统的架构示意图。服务方可以为多个设备(设备1、设备2、设备3……)用户提供了多个设备,这些设备可能在空间上都处于不同的位置,而需要服务方基于管理端来进行统一的管理、维护、修改等处理操作。When providing equipment services for users (for example, renting servers or storage equipment), there are usually large-scale equipment that needs to be managed and maintained centrally. As shown in FIG. 1 , FIG. 1 is a schematic structural diagram of a system involved in an embodiment of the present application. The server can provide multiple devices for users of multiple devices (device 1, device 2, device 3...), and these devices may be in different locations in space, and the server needs to perform unified management based on the management end , maintenance, modification and other processing operations.
这个过程中,如果基于人工操作来批量的处理各设备的BIOS的启动配置信息,并 使其按照修改后的BIOS的启动配置信息进行启动那么将会非常的低效且容易出错。基于此,本申请提供一种更为便捷的设备启动方案。该方案可以使得BIOS可以基于管理配置表及个性配置表进行设备启动。其中,管理配置表中记录有基础的BIOS配置信息,基于该表中的BIOS配置信息,设备即可正常启动,但其中的大部分数据可固定配置,在相当长的时期内无需变动,因此可被看作是冷表。而用户对BIOS配置中的某项配置项目进行的修改则可通过个性配置表反馈,以满足自身的需求,提升BIOS配置的灵活性,可被看作是热表。例如,假设管理配置表中存储有100项BIOS的基础配置,其中有20项可允许用户进行修改,另外80项则不允许用户进行修改。基于此,用户可被该20进行符合自身需求的修改,并与另外80项结合后,通过管理配置表与个性配置表之间的同步,最终形成可反馈该用户的配置修改的个性配置表。In this process, if the startup configuration information of the BIOS of each device is processed in batches based on manual operations, and the startup configuration information of the BIOS is started after modification, it will be very inefficient and prone to errors. Based on this, the present application provides a more convenient device startup solution. This solution enables the BIOS to start the device based on the management configuration table and the personality configuration table. Among them, the basic BIOS configuration information is recorded in the management configuration table. Based on the BIOS configuration information in the table, the device can be started normally, but most of the data can be fixedly configured and do not need to be changed for a long period of time, so it can be Seen as a cold watch. The modification of a configuration item in the BIOS configuration by the user can be fed back through the personalized configuration table to meet their own needs and improve the flexibility of the BIOS configuration, which can be regarded as a hot table. For example, it is assumed that 100 items of basic configuration of the BIOS are stored in the management configuration table, among which 20 items are allowed to be modified by the user, and the other 80 items are not allowed to be modified by the user. Based on this, the user can modify the 20 to meet their own needs, and after combining with the other 80 items, through the synchronization between the management configuration table and the personality configuration table, a personality configuration table that can feedback the user's configuration modification is finally formed.
此外,在本申请的实施例中,设备在进行初始启动时,首先需要从设备的闪存(例如,互补金属氧化物半导体(Complementary Metal Oxide Semiconductor,CMOS),可读写的并行或串行FLASH芯片,可以二进制串的形式来保存BIOS的配置参数)中获取得到BIOS的初始启动配置信息,将初始启动配置信息写入到初始管理配置表,并进一步将初始管理配置表同步至个性配置表中,此时同步后的初始管理配置表和初始个性配置表显然是相同的,因此二者的比较结果必然一致,设备可以根据管理配置表中的第二启动配置信息进行启动。In addition, in the embodiment of the present application, when the device is initially started, it first needs to be a flash memory (for example, Complementary Metal Oxide Semiconductor (CMOS), a readable and writable parallel or serial FLASH chip from the device , the configuration parameters of the BIOS can be saved in the form of a binary string) to obtain the initial startup configuration information of the BIOS, write the initial startup configuration information into the initial management configuration table, and further synchronize the initial management configuration table to the personality configuration table, At this time, the synchronized initial management configuration table and the initial personality configuration table are obviously the same, so the comparison results between the two must be consistent, and the device can start according to the second startup configuration information in the management configuration table.
下面结合本申请实施例附图进一步说明本申请实施例具体实现。如图2所示,图2为本申请实施例所提供的一种设备的启动方法的流程示意图,包括:The specific implementation of the embodiments of the present application is further described below with reference to the accompanying drawings of the embodiments of the present application. As shown in FIG. 2, FIG. 2 is a schematic flowchart of a device startup method provided by an embodiment of the present application, including:
S201,所述BIOS获取个性配置表中的第一启动配置信息,其中,所述第一启动配置信息中的部分信息为用户针对所述BIOS的配置修改操作生成的启动配置信息。S201, the BIOS acquires first startup configuration information in a personality configuration table, where part of the information in the first startup configuration information is startup configuration information generated by a user for a configuration modification operation of the BIOS.
如前所述,在进行了初始启动后,设备中的个性配置表就不再是空的,而是包含了多个启动配置项的一张表,其所包含的启动配置项和管理配置表所包含的启动配置项相同且一一对应,多个启动配置项和各启动配置项的赋值即构成了启动配置信息。As mentioned above, after the initial startup, the personality configuration table in the device is no longer empty, but a table containing multiple startup configuration items, including startup configuration items and management configuration tables. The included startup configuration items are the same and correspond one-to-one, and the multiple startup configuration items and the assignment of each startup configuration item constitute startup configuration information.
用户有可能需要对设备的BIOS的启动配置信息进行修改操作,那么基于用户的配置修改操作所生成的启动配置信息就会被写入个性配置表中。通常而言,用户并不会修改所有的启动配置项,而是修改部分的启动配置项,即个性配置表中的部分信息为用户针对所述BIOS的配置修改操作生成的启动配置信息。The user may need to modify the startup configuration information of the BIOS of the device, and the startup configuration information generated based on the user's configuration modification operation will be written into the personality configuration table. Generally speaking, the user does not modify all the startup configuration items, but modifies part of the startup configuration items, that is, part of the information in the personality configuration table is the startup configuration information generated by the user for the configuration modification operation of the BIOS.
对于个性配置表进行修改的用户可以是管理端的用户,也可以是设备端的设备用户。The user who modifies the personality configuration table can be a user on the management side or a device user on the device side.
在一种可行方式中,还可以由管理端对设备的BIOS配置进行远程管理、监控或维护。如图1中所示,在各设备中,管理端可以预先维护一份连接设备的管理网口或串口,对各设备进行管理。这条链路与设备用户在使用设备进行具体应用所产生的应用数据链路相互独立。In a feasible manner, the management terminal can also remotely manage, monitor or maintain the BIOS configuration of the device. As shown in FIG. 1 , in each device, the management terminal can maintain a management network port or serial port connecting the device in advance, and manage each device. This link is independent of the application data link generated by the device user using the device for specific applications.
进而,管理端可以管理(包括配置并更新)个性配置表,并将个性配置表由所述管 理端统一推送至各设备中,由各设备进行保存,即管理端对多设备进行远程的统一配置管理。并且,当管理端再次统一推送时,各设备可以即时接收推送的个性配置表,并在本地更新和保存。Furthermore, the management terminal can manage (including configure and update) the personality configuration table, and push the personality configuration table from the management terminal to each device uniformly, and save it by each device, that is, the management terminal performs remote unified configuration for multiple devices manage. Moreover, when the management end pushes again, each device can instantly receive the pushed personality configuration table, and update and save it locally.
从而使得在每次管理端对个性配置表进行批量的更新管理后,每个设备上的个性配置表的信息是同步一致的。管理端的用户可以在管理端而无需在设备本地,即可以实现对于该个性配置表中的参数的具体值进行相关的配置以及修改。但不限于批量处理的方式,管理端也可以有针对性地向某个或某几个设备抢着个性配置表,其它设备不进行推送。Therefore, after each management terminal performs batch update management on the personality configuration table, the information of the personality configuration table on each device is synchronized and consistent. The user at the management end can configure and modify the specific values of the parameters in the personality configuration table on the management end without being locally on the device. However, it is not limited to batch processing. The management terminal can also rush to one or several devices for a personalized configuration table, and other devices do not push it.
进而,BIOS在启动阶段拥有一次主动读取BIOS的启动配置信息的能力,该读取可以保证设备每次BIOS的配置是最新的,从而使得管理端对于设备的状态管理更为简单且直接。并且,读取的过程不用改变现有的系统结构,维持了现有系统的运作方式,系统的安全性可得到有效保持。Furthermore, the BIOS has the ability to actively read the startup configuration information of the BIOS once during the startup phase, which can ensure that the configuration of the BIOS of the device is up-to-date every time, thereby making the management of the device status by the management end simpler and more direct. In addition, the reading process does not need to change the existing system structure, maintains the operation mode of the existing system, and effectively maintains the security of the system.
203,将所述第一启动配置信息与所述BIOS使用的管理配置表中相对应的第二启动配置信息进行比较,其中,所述第二启动配置信息为前次启动设备所使用的启动配置信息。203. Compare the first startup configuration information with the corresponding second startup configuration information in the management configuration table used by the BIOS, where the second startup configuration information is the startup configuration used for the previous startup of the device information.
如表1所示,表1本申请实施例所提供的一种示例性的管理配置表。As shown in Table 1, Table 1 is an exemplary management configuration table provided by the embodiment of the present application.
表1管理配置表Table 1 Management configuration table
CPU Internal CacheCPU Internal Cache EnabledEnabled
First Boot DeviceFirst Boot Device HDD-0HDD-0
IDE HDD Block ModeIDE HDD Block Mode EnabledEnabled
Auto Detect DIMM/PCI ClkAuto Detect DIMM/PCI Clk EnabledEnabled
……... ……...
表1中的“CPU Internal Cache”即为一种启动配置项,“Enabled”即为该启动配置项的赋值。管理配置表中的启动配置信息指定了设备在启动时的相关启动方式,如包括:打开CPU内置高速缓存、从第一硬盘引导载入操作系统、支持硬盘的块模式、自动侦测DIMM/PCI的时钟频率等等。"CPU Internal Cache" in Table 1 is a startup configuration item, and "Enabled" is the assignment of the startup configuration item. The startup configuration information in the management configuration table specifies the relevant startup methods of the device during startup, such as: opening the built-in cache of the CPU, booting the operating system from the first hard disk, supporting the block mode of the hard disk, and automatically detecting DIMM/PCI clock frequency, etc.
在不同的场景需要时,具体的配置项和配置值可以根据实际需要进行设定和修改。When needed in different scenarios, specific configuration items and configuration values can be set and modified according to actual needs.
从设备的初始启动后的每次启动,其启动配置信息可以从闪存中同步到管理配置表中。闪存中的配置参数与管理配置表中的第二启动配置信息及个性配置表中的第一启动配置信息均存在对应关系。基于此,在设备进行初始启动之后的任意一次启动中,管理配置表中所保存的第二启动配置信息即为前次启动设备所使用的启动配置信息。At each boot after the initial boot of the slave device, its boot configuration information can be synchronized from the flash memory to the management configuration table. There is a corresponding relationship between the configuration parameters in the flash memory and the second startup configuration information in the management configuration table and the first startup configuration information in the personality configuration table. Based on this, in any startup after the initial startup of the device, the second startup configuration information stored in the management configuration table is the startup configuration information used for the previous startup of the device.
如前所述,个性配置表与管理配置表中的所包含的启动配置项相同且一一对应,二者的比较即指的是在相同的启动配置项中两张表的赋值是否一致。若两张表中的启动配置中的赋值完全一致,则认定第一启动配置信息与所述第二启动配置信息一致;若存在 任一启动配置项的赋值不一致,则第一启动配置信息与所述第二启动配置信息不一致。As mentioned above, the startup configuration items contained in the personality configuration table and the management configuration table are the same and correspond one-to-one. The comparison of the two refers to whether the assignments of the two tables are consistent in the same startup configuration item. If the assignments in the startup configurations in the two tables are completely consistent, it is determined that the first startup configuration information is consistent with the second startup configuration information; if the assignment of any startup configuration item is inconsistent, then the first startup configuration information is consistent with the second startup configuration information. 2. The startup configuration information is inconsistent.
通常,即使二者存在不同,也是部分启动配置项不同,例如,两张表中均包含100个启动配置项,如果用户对其中20个进行了个性化配置,那么两张表就会在20个启动配置项的赋值上不同,而其它地方相同。Usually, even if the two are different, some of the startup configuration items are different. For example, both tables contain 100 startup configuration items. If the user configures 20 of them individually, the two tables will be listed in the 20 startup configuration items. Items are assigned differently, but otherwise the same.
S205,根据比较结果确定待使用的启动配置信息,并根据确定的启动配置信息启动所述设备。S205: Determine the startup configuration information to be used according to the comparison result, and start the device according to the determined startup configuration information.
具体而言,若比较结果指示所述第一启动配置信息与所述第二启动配置信息一致,则根据所述第二启动配置信息启动所述设备。二者一致,说明没有用户对于设备的启动配置信息进行过修改,即闪存里所保存的配置参数和第二启动配置信息是一致的,因此,可以根据所述第二启动配置信息启动所述设备。Specifically, if the comparison result indicates that the first startup configuration information is consistent with the second startup configuration information, the device is started according to the second startup configuration information. The two are consistent, indicating that no user has modified the startup configuration information of the device, that is, the configuration parameters saved in the flash memory are consistent with the second startup configuration information. Therefore, the device can be started according to the second startup configuration information. .
若比较结果指示所述第一启动配置信息与所述第二启动配置信息不一致,则说明有用户对于配置信息发生了改动,个性化配置表中的第一启动配置信息即表征了用户的个性化需求,那么此时可以基于第一启动配置信息对所述BIOS的配置参数进行修改,使得修改后的BIOS的配置参数和第一启动配置信息一致,并使用修改后BIOS的配置参数启动所述设备。BIOS的配置参数指的是以二进制串的形式被存储于闪存中的BIOS的配置参数。If the comparison result indicates that the first startup configuration information is inconsistent with the second startup configuration information, it means that a user has changed the configuration information, and the first startup configuration information in the personalization configuration table represents the user's personalization. requirements, then at this time, the configuration parameters of the BIOS can be modified based on the first boot configuration information, so that the modified BIOS configuration parameters are consistent with the first boot configuration information, and the modified BIOS configuration parameters are used to boot the device. . The configuration parameters of the BIOS refer to the configuration parameters of the BIOS stored in the flash memory in the form of binary strings.
根据本申请实施例提供的设备的启动方案,设备的BIOS在启动阶段可以读取个性配置表中的第一启动配置信息,并且与管理配置表中相对应的第二启动配置信息进行比较,根据比较结果来确定启动配置信息,从而根据确定的启动配置信息启动所述设备,与现有的通过本地闪存中获得启动配置信息的方式相比,本申请实施例的方案除可保障设备中BIOS配置的时效性外,还可实现对设备的BIOS配置的高效、批量管理和维护,使得对于设备的配置管理更为便捷高效。According to the device startup solution provided by the embodiment of the present application, the BIOS of the device can read the first startup configuration information in the personality configuration table during the startup phase, and compare it with the corresponding second startup configuration information in the management configuration table. The startup configuration information is determined by comparing the results, so that the device is started according to the determined startup configuration information. Compared with the existing method of obtaining the startup configuration information through the local flash memory, the solution of the embodiment of the present application can guarantee the BIOS configuration in the device. In addition to the timeliness of the device, it can also achieve efficient, batch management and maintenance of the BIOS configuration of the device, making the configuration management of the device more convenient and efficient.
在一种实施例中,在根据所述第一启动配置信息对所述BIOS的配置参数进行修改后,还可以将修改后的所述配置参数写入所述管理配置表,并将所述管理配置表对齐至所述个性配置表。通过将管理配置表对齐至个性配置表,可有效保存用户的个性化BIOS配置修改,后续以其为依据进行BIOS启动,使得该配置修改可及时生效。因个性配置表中的配置项目与管理配置表一致,但有部分配置项目对应的配置值可能不同,即用户通过BIOS配置界面或个性配置表进行过修改后的配置项目,在将两者对齐时,这部分修改后的配置项目通过BIOS配置参数与管理配置表的映射关系,首先反馈在管理配置表中,进而通过管理配置表与个性配置表的对齐,反馈在个性配置表中。此种情况下,在个性配置表中,这些被修改的配置项目的值被保留,而其它配置项目的值则仍为管理配置表中的配置值,从而通过对齐操作实现了数据的有效传递和对管理配置表与个性配置表的管理。In an embodiment, after the configuration parameters of the BIOS are modified according to the first startup configuration information, the modified configuration parameters may also be written into the management configuration table, and the management configuration parameters may be written to the management configuration table. A configuration table is aligned to the personality configuration table. By aligning the management configuration table with the personalized configuration table, the user's personalized BIOS configuration modification can be effectively saved, and the BIOS is subsequently started based on it, so that the configuration modification can take effect in time. Because the configuration items in the personality configuration table are consistent with the management configuration table, but the configuration values corresponding to some configuration items may be different, that is, the configuration items that have been modified by the user through the BIOS configuration interface or the personality configuration table, when aligning the two , This part of the modified configuration items are first fed back in the management configuration table through the mapping relationship between the BIOS configuration parameters and the management configuration table, and then fed back in the personality configuration table by aligning the management configuration table with the personality configuration table. In this case, in the personality configuration table, the values of these modified configuration items are retained, while the values of other configuration items are still the configuration values in the management configuration table, so that the effective transfer of data and the alignment operation are realized. The management of the management configuration table and the personality configuration table.
例如,在启动过程完成之后,将闪存中所保存的修改后的配置参数写入到所述管理 配置表,并且将管理配置表对齐至所述个性配置表,此处的对齐指的是二者在启动配置项上一一对应,对于相同的启动配置项,如果赋值不同,则将个性配置表中的赋值修改为管理配置表中的赋值。For example, after the startup process is completed, the modified configuration parameters saved in the flash memory are written to the management configuration table, and the management configuration table is aligned to the personality configuration table, where alignment refers to both There is a one-to-one correspondence on the startup configuration items. For the same startup configuration item, if the assignments are different, the assignments in the personality configuration table are modified to the assignments in the management configuration table.
具体而言,设备可以保存所述管理配置表,并对当前使用的个性配置表进行清除。进而,从闪存中读取以二进制串形式所保存的修改后的配置参数,进而,使用修改后的所述配置参数更新当前使用的管理配置表,在管理配置表更新完之后,同步所述管理配置表至个性配置表中。Specifically, the device may save the management configuration table and clear the currently used personality configuration table. Further, the modified configuration parameters saved in the form of binary strings are read from the flash memory, and then the currently used management configuration table is updated with the modified configuration parameters, and after the management configuration table is updated, the management configuration table is synchronized. configuration table to the personality configuration table.
在一种实施例中,在所述根据所述第一启动配置信息对所述BIOS对应的配置参数进行修改之前,还可以判断对所述第一启动配置信息的合法性,以确定是否允许所述第一启动配置信息生效。在确定第一启动配置信息合法之后,才确定允许所述第一启动配置信息生效,进而根据所述第一启动配置信息对所述BIOS对应的配置参数进行修改的操作。In an embodiment, before modifying the configuration parameters corresponding to the BIOS according to the first startup configuration information, the validity of the first startup configuration information may also be judged to determine whether to allow the The first startup configuration information takes effect. After it is determined that the first startup configuration information is valid, it is determined that the first startup configuration information is allowed to take effect, and then the configuration parameters corresponding to the BIOS are modified according to the first startup configuration information.
具体而言,可以预先设置包含有合法的启动配置信息的白名单,并对个性配置表中所包含的启动配置信息进行匹配,即查看所述个性配置表中所包含的启动配置信息是否属于所述白名单中,如果属于白名单,即可以确认个性配置表合法,否则不合法;或者,还可以预先设置包含有非法的启动配置信息的黑名单,如果个性配置表中所包含的启动配置信息属于所述黑名单,即认定所述个性配置不合法,否则合法。Specifically, a whitelist containing valid startup configuration information can be preset, and the startup configuration information included in the personality configuration table can be matched, that is, to check whether the startup configuration information included in the personality configuration table belongs to the In the above whitelist, if it belongs to the whitelist, it can be confirmed that the personality configuration table is legal, otherwise it is illegal; or, a blacklist containing illegal startup configuration information can also be preset. If it belongs to the blacklist, it is determined that the personality configuration is illegal, otherwise it is legal.
如果不允许生效,那么说明用户的修改不合理甚至存在危险,此时不对设备的BIOS对应的配置参数进行修改。If it is not allowed to take effect, it means that the user's modification is unreasonable or even dangerous. In this case, the configuration parameters corresponding to the BIOS of the device should not be modified.
在一种实施例中,在所述根据所述第一启动配置信息对所述BIOS的配置参数进行修改之后,由于各设备的使用方(即设备用户)实际上是不同的,每个设备用户可能有自己的个性化的设置。基于此,在根据管理配置表进行设备启动并进入操作系统之前,还可以提供相应的个性化设置服务给设备用户。对于所述设备来说,BIOS通常被划归为带内系统,而所述个性化设置服务则可以划归为带外系统。In an embodiment, after the configuration parameters of the BIOS are modified according to the first startup configuration information, since the users (ie, device users) of each device are actually different, each device user May have their own personalized settings. Based on this, before starting the device according to the management configuration table and entering the operating system, a corresponding personalized setting service can also be provided to the device user. For the device, the BIOS is usually classified as an in-band system, while the personalization service can be classified as an out-of-band system.
基于此,在一种可行方式中,在所述带外系统中,可以展示BIOS的设置界面(此时的设置界面中展示的信息,即为闪存中的BIOS的配置参数),并且在BIOS的设置界面中接收设备用户的操作指令,修改所述BIOS的启动配置信息,并生成配置修改信息。Based on this, in a feasible manner, in the out-of-band system, the setting interface of the BIOS can be displayed (the information displayed in the setting interface at this time is the configuration parameters of the BIOS in the flash memory), and the setting interface of the BIOS can be displayed in the out-of-band system. The operation instruction of the device user is received in the setting interface, the startup configuration information of the BIOS is modified, and configuration modification information is generated.
进而,在所述带内系统中,根据配置修改信息直接修改BIOS的配置参数,并根据修改后的BIOS的配置参数启动设备,在启动之后即可以将修改后的所述配置参数写入所述管理配置表,并将管理配置表对齐至所述个性配置表。Furthermore, in the in-band system, the configuration parameters of the BIOS are directly modified according to the configuration modification information, and the device is started according to the modified configuration parameters of the BIOS, and the modified configuration parameters can be written into the A management configuration table is aligned, and the management configuration table is aligned to the personality configuration table.
在另一种实施方式中,在所述根据所述第一启动配置信息对所述BIOS的配置参数进行修改之后,还可以在所述带外系统中,展示所述个性配置表给用户和/或管理端,进而用户和/或管理端可以对个性配置表中的第一启动配置信息进行修改。这种修改由于并没有直接影响到闪存中的BIOS的配置参数,因此并不会对于本次启动产生影响,即修 改的启动配置信息不会本次启动生效。In another implementation manner, after the configuration parameters of the BIOS are modified according to the first startup configuration information, the out-of-band system may also display the personality configuration table to the user and/or Or the management terminal, and then the user and/or the management terminal can modify the first startup configuration information in the personality configuration table. Since this modification does not directly affect the configuration parameters of the BIOS in the flash memory, it will not affect this startup, that is, the modified startup configuration information will not take effect in this startup.
但是在下一次启动时,由于个性配置表中的第一启动配置信息已经发生了修改,并且和管理配置表中的信息不再相同,那么在下一次启动时即需要根据修改后的所述配置参数对BIOS的配置参数进行修改,并根据修改后的BIOS的配置参数进行所述设备的启动。However, at the next startup, since the first startup configuration information in the personality configuration table has been modified and is no longer the same as the information in the management configuration table, the next startup needs to be based on the modified configuration parameters. The configuration parameters of the BIOS are modified, and the device is started according to the modified configuration parameters of the BIOS.
通过将配置表分为两份,两份配置表对BIOS和管理员用户进行权限管理,例如,可以修改个性配置表,而不能修改但可查看管理配置表,在提供了用户端个性化配置的能力的同时,还可提升设备系统的可运维性。By dividing the configuration table into two parts, the two configuration tables are used to manage the rights of the BIOS and administrator users. For example, the personalized configuration table can be modified, but the management configuration table can not be modified, but the management configuration table can be viewed. At the same time, it can also improve the operability and maintainability of the equipment system.
管理配置表和个性配置表均可以被存储于设备的基板管理控制器(Baseboard Manager Controller,BMC)中。BMC不依赖于系统上的其它硬件(比如CPU、内存等),也不依赖与BIOS或者操作系统,但是BMC可以与BIOS和操作系统交互。Both the management configuration table and the personality configuration table can be stored in the baseboard management controller (Baseboard Manager Controller, BMC) of the device. The BMC does not depend on other hardware (such as CPU, memory, etc.) on the system, nor does it depend on the BIOS or the operating system, but the BMC can interact with the BIOS and the operating system.
在一种实施例中,还可以在同步过程中,同时确定个性配置表中的修改信息,修改信息可以包括修改用户、修改时间、修改了哪些配置项、修改后的配置项的赋值为多少,并且生成包含所述修改信息的修改日志,并保存。In an embodiment, during the synchronization process, the modification information in the personality configuration table may be determined at the same time, and the modification information may include the modified user, the modification time, which configuration items have been modified, and the value of the modified configuration items. And a modification log containing the modification information is generated and saved.
生成的修改日志可以保存于本地设备的BMC中,也可以直接上传至管理端进行保存,从而管理端可以及时了解各设备用户的个性需求,以及具体的改动,使得对于设备的管理更为方便高效管理配置表。The generated modification log can be saved in the BMC of the local device, or directly uploaded to the management terminal for storage, so that the management terminal can timely understand the individual needs of each device user and the specific changes, making the management of the device more convenient and efficient. Manage configuration tables.
在一种实施例中,为使得设备的启动更为安全,还可以预先对于个性配置表进行完整性验证。完整性验证指的是确定一份信息在保存的过程中是否发生了信息改动(包括人为的修改,或者,可能的硬件错误所导致的意外修改)。如果完整性验证通过,则说明个性配置表是准确无误没有经过修改的,那么即可以根据所述个性配置表中所包含的启动配置信息启动所述设备。In an embodiment, in order to make the startup of the device more secure, integrity verification may also be performed on the personality configuration table in advance. Integrity verification refers to determining whether a piece of information has been altered during storage (including man-made alterations, or accidental alterations caused by possible hardware errors). If the integrity verification is passed, it means that the personality configuration table is accurate and has not been modified, then the device can be started according to the startup configuration information contained in the personality configuration table.
具体而言,可以预先确定该个性配置表的哈希值,并存储至设备的可信区域中;或者由设备的可信平台控制模块(trusted platform control module,tpcm)确定出确定所述个性配置表的哈希值,并保存在tpcm中,进而在对所述个性配置表进行完整性验证时,即可以采用tpcm再次计算所述个性配置表的哈希值,并进行一致性对比,如果二者相等,则验证通过。通过采用可信模块对于个性配置表进行验证,保证了个性配置表没有被篡改,提高了设备启动的安全性。Specifically, the hash value of the personality configuration table can be predetermined and stored in the trusted area of the device; or the personality configuration can be determined by a trusted platform control module (tpcm) of the device. The hash value of the table is stored in tpcm, and then when the integrity of the personality configuration table is verified, the hash value of the personality configuration table can be calculated again by tpcm, and the consistency comparison is carried out. If they are equal, the verification is passed. By using a trusted module to verify the personality configuration table, it is ensured that the personality configuration table has not been tampered with, and the security of device startup is improved.
进而,在每一次个性配置表发生更新之后(包括用户设备和/或管理端修改个性配置表),还可以重新生成更新后的个性配置表的可信哈希值,并进行保存,以便后续的完整性验证。Further, after each update of the personality configuration table (including the user equipment and/or the management terminal modifying the personality configuration table), the trusted hash value of the updated personality configuration table can also be regenerated and saved, so that subsequent Integrity verification.
参见图3,图3为本申请实施例所提供的一种设备的启动时的流程示意图,其对应于单个设备在单次启动时的整体流程。Referring to FIG. 3 , FIG. 3 is a schematic flowchart of a startup of a device according to an embodiment of the present application, which corresponds to an overall process of a single device during a single startup.
设备开机之后,BIOS即从BMC中获取个性配置表和管理配置表中的启动配置信息, 并将二者进行对比,若二者有不同,即根据所述第一启动配置信息对所述BIOS的配置参数进行修改;如果二者相同,则可基于第二启动配置信息进行设备启动,当然,使用第一启动配置信息也同样适用。After the device is powered on, the BIOS obtains the startup configuration information in the personality configuration table and the management configuration table from the BMC, and compares the two. The configuration parameters are modified; if the two are the same, the device startup can be performed based on the second startup configuration information, and of course, the use of the first startup configuration information is also applicable.
设置界面中此时展示的本次启动的BIOS的配置信息,设备用户可以对其进行修改,生成配置修改信息,并根据所述配置修改信息对所述BIOS的配置参数进行修改并保存,保存之后即退出设置界面。The configuration information of the BIOS displayed at this time in the setting interface, the device user can modify it, generate configuration modification information, and modify and save the configuration parameters of the BIOS according to the configuration modification information. Exit the setting interface.
如果用户对启动配置信息发生了修改,此时在BMC中保存管理配置表,并清除个性配置表。修改后的BIOS的配置参数发送至管理配置表中,由管理配置表同步至个性配置表,BIOS继续运作并进入操作系统,完成设备启动。If the user modifies the startup configuration information, the management configuration table is saved in the BMC and the personality configuration table is cleared. The modified BIOS configuration parameters are sent to the management configuration table, and the management configuration table is synchronized to the individual configuration table. The BIOS continues to operate and enters the operating system to complete the device startup.
如果用户没有选择进入BIOS设置界面,那么仍然可以在BMC中保存管理配置表,并清除个性配置表。并将BIOS的配置参数发送至管理配置表中,由管理配置表同步至个性配置表,BIOS继续运作并进入操作系统,完成设备启动。If the user does not choose to enter the BIOS setting interface, the management configuration table can still be saved in the BMC, and the personality configuration table can be cleared. The configuration parameters of the BIOS are sent to the management configuration table, and the management configuration table is synchronized to the individual configuration table. The BIOS continues to operate and enters the operating system to complete the device startup.
本实施例的设备的启动方法可以由任意适当的具有数据处理能力的电子设备执行,包括但不限于:服务器、移动终端(如手机、PAD等)和PC机等,本申请并不对电子设备的实现方式做具体限定。The device startup method in this embodiment may be executed by any appropriate electronic device with data processing capabilities, including but not limited to: a server, a mobile terminal (such as a mobile phone, a PAD, etc.), a PC, and the like. Implement specific restrictions.
本申请实施例的第二方面,还提供了一种设备的启动装置,所述设备中包含有基本输入输出系统BIOS,如图4所示,图4为本申请实施例所提供的一种设备的启动装置的结构示意图,所述装置包括:In a second aspect of the embodiment of the present application, a device for starting a device is further provided, and the device includes a basic input output system BIOS, as shown in FIG. 4 , which is a device provided by an embodiment of the present application The schematic structural diagram of the starting device, the device includes:
获取模块401,所述BIOS获取个性配置表中的第一启动配置信息,其中,所述第一启动配置信息中的部分信息为用户针对所述BIOS的配置修改操作生成的启动配置信息;Obtaining module 401, the BIOS obtains the first startup configuration information in the personality configuration table, wherein part of the information in the first startup configuration information is the startup configuration information generated by the user for the configuration modification operation of the BIOS;
比较模块403,将所述第一启动配置信息与所述BIOS使用的管理配置表中相对应的第二启动配置信息进行比较,其中,所述第二启动配置信息为前次启动设备所使用的启动配置信息;The comparison module 403 compares the first startup configuration information with the corresponding second startup configuration information in the management configuration table used by the BIOS, where the second startup configuration information is the one used for the previous startup of the device Startup configuration information;
启动模块405,根据比较结果确定待使用的启动配置信息,并根据确定的启动配置信息启动所述设备。The startup module 405 determines the startup configuration information to be used according to the comparison result, and starts the device according to the determined startup configuration information.
可选地,所述启动模块405,比较结果指示所述第一启动配置信息与所述第二启动配置信息一致,则根据所述第二启动配置信息启动所述设备;若比较结果指示所述第一启动配置信息与所述第二启动配置信息不一致,则根据所述第一启动配置信息对所述BIOS的配置参数进行修改,并使用修改后的配置参数启动所述设备。Optionally, in the startup module 405, the comparison result indicates that the first startup configuration information is consistent with the second startup configuration information, and the device is started according to the second startup configuration information; if the comparison result indicates that the first startup configuration information is consistent with the second startup configuration information If the first startup configuration information is inconsistent with the second startup configuration information, the configuration parameters of the BIOS are modified according to the first startup configuration information, and the device is started using the modified configuration parameters.
可选地,所述装置还包括对齐模块407,在根据所述第一启动配置信息对所述BIOS的配置参数进行修改后,将修改后的所述配置参数写入所述管理配置表并将所述管理配置表对齐至所述个性配置表。Optionally, the apparatus further includes an alignment module 407, which, after modifying the configuration parameters of the BIOS according to the first startup configuration information, writes the modified configuration parameters into the management configuration table and writes the modified configuration parameters to the management configuration table. The management profile is aligned to the personality profile.
可选地,所述对齐模块407,保存当前使用的管理配置表,并对当前使用的个性配置表进行清除操作;使用修改后的所述配置参数更新当前使用的管理配置表,并使用更 新后的管理配置表对当前使用的个性配置表进行同步更新。Optionally, the alignment module 407 saves the currently used management configuration table, and performs a clearing operation on the currently used personality configuration table; uses the modified configuration parameters to update the currently used management configuration table, and uses the updated The management configuration table of synchronously updates the currently used personality configuration table.
可选地,所述装置还包括判断模块409,在所述根据所述第一启动配置信息对所述BIOS对应的配置参数进行修改之前,判断是否允许所述第一启动配置信息生效;若允许,则执行所述根据所述第一启动配置信息对所述BIOS对应的配置参数进行修改的操作。Optionally, the apparatus further includes a judgment module 409, which judges whether to allow the first start-up configuration information to take effect before modifying the configuration parameters corresponding to the BIOS according to the first start-up configuration information; , the operation of modifying the configuration parameter corresponding to the BIOS according to the first startup configuration information is performed.
可选地,所述装置还包括第一修改模块411,接收来自于用户设备和/或管理端的配置修改信息,其中,所述配置修改信息根据所述用户通过所述用户设备和/或管理端中显示的BIOS配置界面进行BIOS配置修改操作生成;根据所述配置修改信息对所述BIOS的配置参数进行修改。Optionally, the apparatus further includes a first modification module 411, which receives configuration modification information from the user equipment and/or the management terminal, wherein the configuration modification information is based on the user equipment and/or the management terminal through the user equipment and/or the management terminal. The BIOS configuration interface displayed in the BIOS configuration modification operation is generated; the configuration parameters of the BIOS are modified according to the configuration modification information.
可选地,所述装置还包括第二修改模块413,接收来自于用户设备和/或管理端的配置修改信息,其中,所述配置修改信息根据所述用户通过所述用户设备和/或管理端进行针对个性配置表中的启动配置信息进行BIOS配置修改操作生成;根据所述配置修改信息对所述个性配置表进行修改,以在所述设备下次启动时根据修改后的所述配置参数进行所述设备的启动。Optionally, the apparatus further includes a second modification module 413, which receives configuration modification information from the user equipment and/or the management terminal, wherein the configuration modification information is based on the user through the user equipment and/or the management terminal. Carry out the BIOS configuration modification operation generation for the startup configuration information in the personality configuration table; modify the personality configuration table according to the configuration modification information, so as to perform the modification according to the modified configuration parameters when the device starts up next time startup of the device.
可选地,所述装置还包括初始启动模块415,从所述设备的闪存中获取初始管理配置表,并将所述初始管理表同步至初始个性配置表;通过所述初始个性配置表和所述初始管理配置表,对所述设备进行初始启动。Optionally, the apparatus further includes an initial startup module 415, which obtains an initial management configuration table from the flash memory of the device, and synchronizes the initial management table to the initial personality configuration table; The initial management configuration table is used to initially start the device.
可选地,在所述装置中,所述管理配置表和/或所述个性配置表存储于所述设备的基板管理控制器BMC中。本实施例的设备的启动装置用于实现前述多个方法实施例中相应的启动方法,并具有相应的方法实施例的有益效果,在此不再赘述。此外,本实施例的启动装置中的各个模块的功能实现均可参照前述方法实施例中的相应部分的描述,在此亦不再赘述。Optionally, in the apparatus, the management configuration table and/or the personality configuration table are stored in the baseboard management controller BMC of the device. The device for starting the device in this embodiment is used to implement the corresponding starting methods in the foregoing multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here. In addition, for the function implementation of each module in the startup device of this embodiment, reference may be made to the descriptions of the corresponding parts in the foregoing method embodiments, which will not be repeated here.
本申请实施例的第三方面,还一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述程序时实现如前述任一项所述的方法。In a third aspect of the embodiments of the present application, there is also an electronic device, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements the above-mentioned program when executing the program The method of any one.
参照图5,示出了适应于本申请实施例的一种电子设备的结构示意图。如图5所示,该电子设备可以包括:处理器(processor)502、通信接口(Communications Interface)504、存储器(memory)506、以及通信总线508,所述设备包含有基本输入输出系统BIOS。Referring to FIG. 5 , a schematic structural diagram of an electronic device suitable for an embodiment of the present application is shown. As shown in FIG. 5 , the electronic device may include: a processor (processor) 502, a communication interface (Communications Interface) 504, a memory (memory) 506, and a communication bus 508, and the device includes a basic input output system BIOS.
其中:in:
处理器502、通信接口504、以及存储器506通过通信总线508完成相互间的通信。The processor 502 , the communication interface 504 , and the memory 506 communicate with each other through the communication bus 508 .
通信接口504,用于与其它电子设备或服务器进行通信。The communication interface 504 is used to communicate with other electronic devices or servers.
处理器502,用于执行程序510,具体可以执行上述设备的启动方法实施例中的相关步骤。The processor 502 is configured to execute the program 510, and specifically may execute the relevant steps in the above-mentioned embodiments of the device startup method.
具体地,程序510可以包括程序代码,该程序代码包括计算机操作指令。Specifically, the program 510 may include program code including computer operation instructions.
处理器502可能是中央处理器CPU,或者是特定集成电路ASIC(Application Specific  Integrated Circuit),或者是被配置成实施本申请实施例的一个或多个集成电路。智能设备包括的一个或多个处理器,可以是同一类型的处理器,如一个或多个CPU;也可以是不同类型的处理器,如一个或多个CPU以及一个或多个ASIC。The processor 502 may be a central processing unit (CPU), or a specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application. One or more processors included in the smart device may be the same type of processors, such as one or more CPUs; or may be different types of processors, such as one or more CPUs and one or more ASICs.
存储器506,用于存放程序510。存储器506可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。The memory 506 is used to store the program 510 . Memory 506 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk memory.
程序510具体可以用于使得处理器驱动所述设备中的BIOS执行以下操作:The program 510 can be specifically used to cause the processor to drive the BIOS in the device to perform the following operations:
所述BIOS获取个性配置表中的第一启动配置信息,其中,所述第一启动配置信息中的部分信息为用户针对所述BIOS的配置修改操作生成的启动配置信息;The BIOS acquires the first startup configuration information in the personality configuration table, wherein part of the information in the first startup configuration information is startup configuration information generated by a user for a configuration modification operation of the BIOS;
将所述第一启动配置信息与所述BIOS使用的管理配置表中相对应的第二启动配置信息进行比较,其中,所述第二启动配置信息为前次启动设备所使用的启动配置信息;comparing the first startup configuration information with the corresponding second startup configuration information in the management configuration table used by the BIOS, wherein the second startup configuration information is the startup configuration information used for the previous startup of the device;
根据比较结果确定待使用的启动配置信息,并根据确定的启动配置信息启动所述设备。The startup configuration information to be used is determined according to the comparison result, and the device is started according to the determined startup configuration information.
程序510中各步骤的具体实现可以参见上述设备的启动方法实施例中的相应步骤和单元中对应的描述,在此不赘述。所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的设备和模块的具体工作过程,可以参考前述方法实施例中的对应过程描述,在此不再赘述。For the specific implementation of the steps in the program 510, reference may be made to the corresponding descriptions in the corresponding steps and units in the foregoing embodiments of the device startup method, and details are not repeated here. Those skilled in the art can clearly understand that, for the convenience and brevity of description, for the specific working process of the above-described devices and modules, reference may be made to the corresponding process descriptions in the foregoing method embodiments, which will not be repeated here.
根据本申请实施例的第四方面,提供了一种计算机存储介质,其上存储有计算机程序,该程序被处理器执行时实现如第一方面所述的设备的启动方法。According to a fourth aspect of the embodiments of the present application, a computer storage medium is provided on which a computer program is stored, and when the program is executed by a processor, the device startup method according to the first aspect is implemented.
需要指出,根据实施的需要,可将本申请实施例中描述的各个部件/步骤拆分为更多部件/步骤,也可将两个或多个部件/步骤或者部件/步骤的部分操作组合成新的部件/步骤,以实现本申请实施例的目的。It should be pointed out that, according to the needs of implementation, each component/step described in the embodiments of the present application may be split into more components/steps, or two or more components/steps or part of operations of components/steps may be combined into New components/steps to achieve the purpose of the embodiments of the present application.
上述根据本申请实施例的方法可在硬件、固件中实现,或者被实现为可存储在记录介质(诸如CD ROM、RAM、软盘、硬盘或磁光盘)中的软件或计算机代码,或者被实现通过网络下载的原始存储在远程记录介质或非暂时机器可读介质中并将被存储在本地记录介质中的计算机代码,从而在此描述的方法可被存储在使用通用计算机、专用处理器或者可编程或专用硬件(诸如ASIC或FPGA)的记录介质上的这样的软件处理。可以理解,计算机、处理器、微处理器控制器或可编程硬件包括可存储或接收软件或计算机代码的存储组件(例如,RAM、ROM、闪存等),当所述软件或计算机代码被计算机、处理器或硬件访问且执行时,实现在此描述的设备的启动方法。此外,当通用计算机访问用于实现在此示出的设备的启动方法的代码时,代码的执行将通用计算机转换为用于执行在此示出的设备的启动方法的专用计算机。The above-mentioned methods according to the embodiments of the present application can be implemented in hardware, firmware, or as software or computer codes that can be stored in a recording medium (such as CD ROM, RAM, floppy disk, hard disk, or magneto-optical disk), or implemented through Network downloaded computer code originally stored in a remote recording medium or non-transitory machine-readable medium and will be stored in a local recording medium so that the methods described herein can be stored on a computer using a general purpose computer, special purpose processor or programmable or such software processing on a recording medium of dedicated hardware such as ASIC or FPGA. It is to be understood that a computer, processor, microprocessor controller or programmable hardware includes storage components (eg, RAM, ROM, flash memory, etc.) that can store or receive software or computer code when the software or computer code is executed by a computer, When accessed and executed by a processor or hardware, the boot method of the device described herein is implemented. Furthermore, when a general-purpose computer accesses code for implementing the device startup method shown herein, the execution of the code converts the general-purpose computer into a special-purpose computer for executing the device startup method shown herein.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及方法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术 人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请实施例的范围。Those of ordinary skill in the art can realize that the units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled persons may use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of the embodiments of the present application.
以上实施方式仅用于说明本申请实施例,而并非对本申请实施例的限制,有关技术领域的普通技术人员,在不脱离本申请实施例的精神和范围的情况下,还可以做出各种变化和变型,因此所有等同的技术方案也属于本申请实施例的范畴,本申请实施例的专利保护范围应由权利要求限定。The above embodiments are only used to illustrate the embodiments of the present application, but are not intended to limit the embodiments of the present application. Those of ordinary skill in the relevant technical field can also make various Therefore, all equivalent technical solutions also belong to the scope of the embodiments of the present application, and the patent protection scope of the embodiments of the present application should be defined by the claims.

Claims (12)

  1. 一种设备的启动方法,所述设备包含有基本输入输出系统BIOS,所述方法包括:A method for booting a device, the device comprising a basic input output system BIOS, the method comprising:
    所述BIOS获取个性配置表中的第一启动配置信息,其中,所述第一启动配置信息中的部分信息为用户针对所述BIOS的配置修改操作生成的启动配置信息;The BIOS acquires the first startup configuration information in the personality configuration table, wherein part of the information in the first startup configuration information is startup configuration information generated by a user for a configuration modification operation of the BIOS;
    将所述第一启动配置信息与所述BIOS使用的管理配置表中相对应的第二启动配置信息进行比较,其中,所述第二启动配置信息为前次启动设备所使用的启动配置信息;comparing the first startup configuration information with the corresponding second startup configuration information in the management configuration table used by the BIOS, wherein the second startup configuration information is the startup configuration information used for the previous startup of the device;
    根据比较结果确定待使用的启动配置信息,并根据确定的启动配置信息启动所述设备。The startup configuration information to be used is determined according to the comparison result, and the device is started according to the determined startup configuration information.
  2. 如权利要求1所述的方法,其中,所述根据比较结果确定待使用的启动配置信息,并根据确定的启动配置信息启动所述设备,包括:The method according to claim 1, wherein, determining the startup configuration information to be used according to the comparison result, and starting the device according to the determined startup configuration information, comprising:
    若比较结果指示所述第一启动配置信息与所述第二启动配置信息一致,则根据所述第二启动配置信息启动所述设备;If the comparison result indicates that the first startup configuration information is consistent with the second startup configuration information, start the device according to the second startup configuration information;
    若比较结果指示所述第一启动配置信息与所述第二启动配置信息不一致,则根据所述第一启动配置信息对所述BIOS的配置参数进行修改,并使用修改后的配置参数启动所述设备。If the comparison result indicates that the first startup configuration information is inconsistent with the second startup configuration information, modify the configuration parameters of the BIOS according to the first startup configuration information, and use the modified configuration parameters to start the equipment.
  3. 如权利要求2所述的方法,其中,所述方法还包括:The method of claim 2, wherein the method further comprises:
    在根据所述第一启动配置信息对所述BIOS的配置参数进行修改后,将修改后的所述配置参数写入所述管理配置表并将所述管理配置表对齐至所述个性配置表。After the configuration parameters of the BIOS are modified according to the first startup configuration information, the modified configuration parameters are written into the management configuration table and the management configuration table is aligned with the personality configuration table.
  4. 如权利要求3所述的方法,其中,所述将修改后的所述配置参数写入所述管理配置表并将所述管理配置表对齐至所述个性配置表,包括:The method of claim 3, wherein the writing the modified configuration parameters into the management configuration table and aligning the management configuration table to the personality configuration table comprises:
    保存当前使用的管理配置表,并对当前使用的个性配置表进行清除操作;Save the currently used management configuration table and clear the currently used personality configuration table;
    使用修改后的所述配置参数更新当前使用的管理配置表,并使用更新后的管理配置表对当前使用的个性配置表进行同步更新。The currently used management configuration table is updated using the modified configuration parameters, and the currently used personality configuration table is synchronously updated using the updated management configuration table.
  5. 如权利要求2所述的方法,其中,在所述根据所述第一启动配置信息对所述BIOS对应的配置参数进行修改之前,所述方法还包括:The method according to claim 2, wherein before modifying the configuration parameters corresponding to the BIOS according to the first startup configuration information, the method further comprises:
    判断是否允许所述第一启动配置信息生效;judging whether to allow the first startup configuration information to take effect;
    若允许,则执行所述根据所述第一启动配置信息对所述BIOS对应的配置参数进行修改的操作。If permitted, the operation of modifying the configuration parameter corresponding to the BIOS according to the first startup configuration information is performed.
  6. 如权利要求2至5中任一项所述的方法,其中,在所述根据所述第一启动配置信息对所述BIOS的配置参数进行修改之后,将修改后的所述配置参数写入所述管理配置表之前,所述方法还包括:The method according to any one of claims 2 to 5, wherein after the configuration parameters of the BIOS are modified according to the first startup configuration information, the modified configuration parameters are written into the Before describing the management configuration table, the method further includes:
    接收来自于用户设备和/或管理端的配置修改信息,其中,所述配置修改信息根据所述用户通过所述用户设备和/或管理端中显示的BIOS配置界面进行BIOS配置修改操作生成;Receive configuration modification information from the user equipment and/or the management terminal, wherein the configuration modification information is generated according to the BIOS configuration modification operation performed by the user through the BIOS configuration interface displayed in the user equipment and/or the management terminal;
    根据所述配置修改信息对所述BIOS的配置参数进行修改。The configuration parameters of the BIOS are modified according to the configuration modification information.
  7. 如权利要求3至4中任一项所述的方法,其中,在所述将所述管理配置表对齐至所述个性配置表之后,所述方法还包括:The method of any one of claims 3 to 4, wherein after the aligning the management configuration table to the personality configuration table, the method further comprises:
    接收来自于用户设备和/或管理端的配置修改信息,其中,所述配置修改信息根据所述用户通过所述用户设备和/或管理端进行针对个性配置表中的启动配置信息进行BIOS配置修改操作生成;Receive configuration modification information from the user equipment and/or the management terminal, wherein the configuration modification information performs a BIOS configuration modification operation for the startup configuration information in the personality configuration table according to the user through the user equipment and/or the management terminal generate;
    根据所述配置修改信息对所述个性配置表进行修改,以在所述设备下次启动时根据修改后的所述配置参数进行所述设备的启动。The personality configuration table is modified according to the configuration modification information, so as to start the device according to the modified configuration parameters when the device starts up next time.
  8. 如权利要求1所述的方法,其中,所述方法还包括:The method of claim 1, wherein the method further comprises:
    从所述设备的闪存中获取初始管理配置表,并将所述初始管理表同步至初始个性配置表;Obtain the initial management configuration table from the flash memory of the device, and synchronize the initial management table to the initial personality configuration table;
    通过所述初始个性配置表和所述初始管理配置表,对所述设备进行初始启动。The device is initially started through the initial personality configuration table and the initial management configuration table.
  9. 如权利要求1所述的方法,其中,所述管理配置表和/或所述个性配置表存储于所述设备的基板管理控制器BMC中。The method of claim 1, wherein the management configuration table and/or the personality configuration table is stored in a baseboard management controller (BMC) of the device.
  10. 一种设备的启动装置,所述设备中包含有基本输入输出系统BIOS,所述装置包括:A device for starting a device, the device includes a basic input output system BIOS, and the device includes:
    获取模块,所述BIOS获取个性配置表中的第一启动配置信息,其中,所述第一启动配置信息中的部分信息为用户针对所述BIOS的配置修改操作生成的启动配置信息;an obtaining module, wherein the BIOS obtains the first startup configuration information in the personality configuration table, wherein part of the information in the first startup configuration information is the startup configuration information generated by the user for the configuration modification operation of the BIOS;
    比较模块,将所述第一启动配置信息与所述BIOS使用的管理配置表中相对应的第二启动配置信息进行比较,其中,所述第二启动配置信息为前次启动设备所使用的启动配置信息;A comparison module, which compares the first startup configuration information with the corresponding second startup configuration information in the management configuration table used by the BIOS, wherein the second startup configuration information is the startup device used for the previous startup of the device configuration information;
    启动模块,根据比较结果确定待使用的启动配置信息,并根据确定的启动配置信息启动所述设备。The startup module determines the startup configuration information to be used according to the comparison result, and starts the device according to the determined startup configuration information.
  11. 一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述程序时实现如权利要求1至9中任一项所述的方法。An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the program described in any one of claims 1 to 9 when the processor executes the program Methods.
  12. 一种计算机存储介质,其上存储有计算机程序,该程序被处理器执行时实现如权利要求1至9中任一所述的启动方法。A computer storage medium on which a computer program is stored, which implements the startup method according to any one of claims 1 to 9 when the program is executed by a processor.
PCT/CN2021/117923 2020-09-18 2021-09-13 Method and apparatus for starting device, electronic device, and computer storage medium WO2022057756A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010988456.9 2020-09-18
CN202010988456.9A CN113434202B (en) 2020-09-18 2020-09-18 Device starting method and device, electronic device and computer storage medium

Publications (1)

Publication Number Publication Date
WO2022057756A1 true WO2022057756A1 (en) 2022-03-24

Family

ID=77752830

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/117923 WO2022057756A1 (en) 2020-09-18 2021-09-13 Method and apparatus for starting device, electronic device, and computer storage medium

Country Status (2)

Country Link
CN (1) CN113434202B (en)
WO (1) WO2022057756A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113835770B (en) * 2021-11-30 2022-02-18 四川华鲲振宇智能科技有限责任公司 Online replacement method and system for server management module
CN114327733A (en) * 2021-12-31 2022-04-12 中科可控信息产业有限公司 Dynamic updating method, device, equipment and medium for starting interactive interface
TWI796082B (en) * 2022-01-10 2023-03-11 神雲科技股份有限公司 Method of keeping bios setup data
CN115080132A (en) * 2022-06-28 2022-09-20 西安易朴通讯技术有限公司 Information processing method, information processing apparatus, server, and storage medium
CN117648685B (en) * 2024-01-24 2024-04-12 苏州元脑智能科技有限公司 Verification method, device and equipment for server updating process and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880519A (en) * 2012-08-24 2013-01-16 曙光信息产业(北京)有限公司 Basic input output system (BIOS) configuration batch modification method
CN106557340A (en) * 2015-09-29 2017-04-05 中兴通讯股份有限公司 A kind of collocation method and device
US20170168851A1 (en) * 2015-12-09 2017-06-15 Quanta Computer Inc. System and method for managing bios setting configurations
CN109408032A (en) * 2018-11-01 2019-03-01 郑州云海信息技术有限公司 A kind of customized Fast implementation of BIOS, device, terminal and storage medium
CN109976816A (en) * 2019-03-25 2019-07-05 联想(北京)有限公司 Computer system configurations method and server
US20200233676A1 (en) * 2017-09-20 2020-07-23 Nec Platforms, Ltd. Bios management device, bios management system, bios management method, and bios management program-stored recording medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9110679B1 (en) * 2011-06-03 2015-08-18 Phoenix Technologies Ltd. Pre-boot management of drivers and programs
CN108958812A (en) * 2018-06-06 2018-12-07 联想(北京)有限公司 A kind of starting method and electronic equipment
CN109445865A (en) * 2018-11-09 2019-03-08 郑州云海信息技术有限公司 A kind of BIOS option remote batch setting method, device, terminal and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880519A (en) * 2012-08-24 2013-01-16 曙光信息产业(北京)有限公司 Basic input output system (BIOS) configuration batch modification method
CN106557340A (en) * 2015-09-29 2017-04-05 中兴通讯股份有限公司 A kind of collocation method and device
US20170168851A1 (en) * 2015-12-09 2017-06-15 Quanta Computer Inc. System and method for managing bios setting configurations
US20200233676A1 (en) * 2017-09-20 2020-07-23 Nec Platforms, Ltd. Bios management device, bios management system, bios management method, and bios management program-stored recording medium
CN109408032A (en) * 2018-11-01 2019-03-01 郑州云海信息技术有限公司 A kind of customized Fast implementation of BIOS, device, terminal and storage medium
CN109976816A (en) * 2019-03-25 2019-07-05 联想(北京)有限公司 Computer system configurations method and server

Also Published As

Publication number Publication date
CN113434202A (en) 2021-09-24
CN113434202B (en) 2024-03-29

Similar Documents

Publication Publication Date Title
WO2022057756A1 (en) Method and apparatus for starting device, electronic device, and computer storage medium
US10445082B2 (en) Persistent mobile device enrollment
TWI684859B (en) Method for remote system recovery
KR101825005B1 (en) In-system provisioning of firmware for a hardware platform
US7873846B2 (en) Enabling a heterogeneous blade environment
US9098301B2 (en) Electronic device and booting method
JP2013156993A (en) Methods of configuring bios in computer system and computer program products
US20190108347A1 (en) Techniques for processor boot-up
US10831897B2 (en) Selective enforcement of secure boot database entries in an information handling system
CN113064643B (en) Method, system and medium for instantly-effective modification of BIOS set value
WO2021169124A1 (en) Method and apparatus for installing software package to target host, and computer device
US8219797B2 (en) Method and system to facilitate configuration of a hardware device in a platform
US20230040962A1 (en) Bios-based multi-user management method and system
US11941127B2 (en) Firmware password management
CN107077343B (en) Ignoring input in wake-on-LAN boot
Intel
CN105608034A (en) Clump automatic hot-plug method
CN114756291B (en) Hardware self-adaption method and device
CN109245917A (en) A kind of method and device of the bare machine management based on cloud platform
US20240103837A1 (en) Seamless and secure motherboard replacement system and method
WO2024045828A1 (en) Operating system secure boot method, operating system installation method, and related apparatus
CN111459728A (en) Multi-node AC test control method, system, terminal and storage medium
CN114281799A (en) PCIe equipment asset information dynamic management method, system, terminal and storage medium
CN117056883A (en) Password management method for basic input/output system and baseboard management controller
CN117714443A (en) Distributed cloud system, cloud site opening configuration method, cluster and 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: 21868580

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21868580

Country of ref document: EP

Kind code of ref document: A1