Starting process configuration method, system and equipment of starting item and medium
Patent Information
- Application Number
- CN202411712135.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-27
- Publication Date
- 2025-03-18
AI Technical Summary
In complex deployment environments, the hard disk that stores data may accidentally install the operating system, resulting in the operating system being started by mistake, and the prior art is difficult to start only from the selected startup item and do not try other startup items when it fails.
By configuring the polling operation in the Basic Input and Output System (BIOS), in response to the user's preset configuration information, when the selected startup item is not started, the polling operation is performed, the startup item is found and its driver file is loaded for startup; if the startup item is not found, the polling operation is traversed and all startup items are stopped.
It realizes that only starts from the current startup item and does not try other startup items when it fails, avoids misstart, saves manpower for code maintenance, and meets the needs of more user usage scenarios.
Smart Images

Figure CN119645521A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of computers, and in particular to a startup process configuration method, system, device and medium for a startup item. Background Art
[0002] When working, computer products need to go through the boot program integrated in the BIOS (Base Input / Output System) to start the operating system first and then work. That is, first install the operating system through the optical drive or PXE (preboot execute environment), and then use the operating systems installed in the optical drive, network card PXE and various hard disks to form several bootable devices. Users can choose which boot item to start from according to their needs.
[0003] In some related technologies, the current deployment environment is becoming more and more complex. For example, in some business scenarios, at least two groups of storage devices need to be deployed on the server, one group is used to support the operating system, and the other group is used to store data. It is possible that the hard disk or hard disk group used to store data will also be installed with the operating system, or the disk originally installed with the operating system is mixed in and assembled in the hard disk group storing data, which will lead to the incorrect startup of the operating system; for the above scenarios, if the code branch method is used to develop a version that supports customer needs, it is contrary to the current design direction of sharing a set of codes, and increases the manpower cost of code maintenance; in some scenarios, users hope to be able to start only from the selected startup item, and if it fails, no other startup items will be tried, and the current startup function configuration cannot be implemented. Summary of the invention
[0004] In order to solve at least one of the problems mentioned in the above background technology, the present application provides a startup process configuration method, system, device and medium for a startup item, which configures the startup functions supported by the basic input and output system so that it can be started only from the current startup item. When the current startup item fails, other startup items will not be started, so as to avoid mistakenly starting an operating system that the user does not want to enter; there is no need to add additional code to implement it, which saves manpower for code maintenance. After the above improvements and expansions, the needs of more user scenarios are met.
[0005] The specific technical solutions provided by the embodiments of this application are as follows:
[0006] In a first aspect, a method for configuring a startup process of a startup item is provided, which is applied to a controller, wherein a plurality of startup items are configured in the controller, and the method comprises:
[0007] In response to the selected startup item not being started, performing a polling operation according to the configuration information preset by the user;
[0008] When the polling operation finds a bootable item, loading a driver file associated with the bootable item, and performing a startup operation according to the driver file;
[0009] When the polling operation does not find a startable item, all the startable items are traversed and the polling operation associated with the configuration information is stopped.
[0010] In a specific embodiment, the polling operation is performed according to the configuration information preset by the user, specifically including: setting the configuration information to include a polling number, performing polling startup on all startup items in response, and counting the polling startup number; when the polling startup number is less than or equal to the polling number, and there is a bootable item, confirming that the polling operation has found the bootable item; when the polling number exceeds the polling number or there is no bootable item, confirming that the polling operation has not found the bootable item.
[0011] In a specific embodiment, in response to executing a polling startup of all startup items, the method also includes: obtaining information of all bootable items, the information of the bootable items at least including identification information associated with the startup items; obtaining identification information of the selected startup item, and querying the information of the bootable item based on the identification information of the selected startup item to obtain the selected startup item and the driver file associated with the selected startup item; executing the operation of starting the operating system according to the driver file; in response to the normal startup of the operating system, configuring the operation of the startup item to be controlled by the operating system.
[0012] In a specific embodiment, in response to the selected startup item not being started, before performing a polling operation according to configuration information preset by a user, the method further includes: configuring a retry function in the controller to be in a disabled state; when the retry function in the controller is configured to be in an enabled state, in response to the selected startup item not being started, performing unlimited polling of all startup items.
[0013] In a specific embodiment, the priority of the retry function in the controller is set to the second level; when the selected startup item is set in the user-preset configuration information, the startup operation priority of the selected startup item is set to the first level; when the selected startup item is not set in the user-preset configuration information, the priority of the retry function in the controller is replaced to the first level.
[0014] In a specific embodiment, after setting the startup operation priority of the selected startup item to the first level, the method also includes: obtaining the selected startup device on the selected startup item, and determining whether the startup devices on other startup items are the same as the selected startup device; if the startup devices on other startup items are different from the selected startup device, synchronizing the startup devices of other startup items to be replaced with the selected startup device.
[0015] In a specific embodiment, after setting the startup operation priority of the selected startup item to the first level, the method further includes: performing a startup operation on the selected startup item, and if the selected startup item is not started, performing a polling operation on the selected startup item; in response to the selected startup item not starting normally after the polling operation is performed on the selected startup item, stopping the startup operation on the selected startup item.
[0016] In a second aspect, a system for configuring a startup process of a startup item is provided, the system being used to implement the startup process configuration method of the startup item as described above, the system comprising:
[0017] A controller, wherein a plurality of startup items are configured in the controller;
[0018] A polling unit, configured to execute a polling operation according to configuration information preset by a user in response to the selected startup item not being started;
[0019] A first execution unit, configured to load a driver file associated with a bootable item when the polling operation finds the bootable item, and perform a startup operation according to the driver file;
[0020] The second execution unit is used to traverse all the startup items and stop the polling operation associated with the configuration information when the polling operation does not find the startup item.
[0021] In a third aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following steps are implemented:
[0022] Step A: in response to the selected startup item not being started, performing a polling operation according to the configuration information preset by the user;
[0023] Step B: when the polling operation finds a bootable item, loading a driver file associated with the bootable item, and performing a startup operation according to the driver file;
[0024] Step C: When the polling operation does not find a startable item, traverse all the startable items and stop the polling operation associated with the configuration information.
[0025] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0026] Step A: in response to the selected startup item not being started, performing a polling operation according to the configuration information preset by the user;
[0027] Step B: when the polling operation finds a bootable item, loading a driver file associated with the bootable item, and performing a startup operation according to the driver file;
[0028] Step C: When the polling operation does not find a startable item, traverse all the startable items and stop the polling operation associated with the configuration information.
[0029] The embodiments of the present application have the following beneficial effects:
[0030] 1. The solution provided in the embodiment of the present application can start the selected startup item, and when the selected startup item is not started normally, a polling operation is performed according to the configuration information preset by the user. When the polling operation finds a bootable item, the driver file associated with the bootable item is loaded, and the startup operation of the selected startup item is performed in combination with the driver file; if the polling operation does not find the bootable item, and after traversing all the startup items, the startup function module is jumped out, and the polling operation is no longer performed, so as to configure the startup function supported by the basic input and output system so that it can only be started from the current startup item, and other startup items will not be started when the current startup item fails, so as to avoid mistakenly starting to an operating system that the user does not want to enter; there is no need to add additional code to achieve it, which saves manpower for code maintenance. After the above-mentioned improvement and expansion, the needs of more user usage scenarios are met.
[0031] 2. By setting different priorities for the function options in the basic input and output system, different startup operations can be implemented in different scenarios, that is, the priority of the retry function in the basic input and output system is set to the second level, that is, when the user sets the selected startup item, the priority of the startup operation of the startup item set by the user is configured to the first level, so that when the user configures the relevant startup information, the startup operation is first performed according to the startup item configured by the user; if there is no user-configured scenario, the startup operation of the retry function originally existing in the system shall still prevail, so as to meet the needs of various user configuration scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0033] Figure 1 A schematic diagram of the application environment in this application is shown;
[0034] Figure 2 A schematic diagram of a method for configuring a startup process according to a startup item in this application is shown;
[0035] Figure 3 A schematic diagram showing the state of the Boot Retry function in the operation display interface according to the present application;
[0036] Figure 4 A schematic diagram showing a polling operation performed according to the configuration information preset by the user in this application;
[0037] Figure 5 A schematic diagram showing the Boot Retry function and the execution process function according to the present application;
[0038] Figure 6 A schematic diagram of a system configuration according to a startup process of a startup item in this application is shown;
[0039] Figure 7 A schematic diagram showing a computer device according to the present application. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0041] The startup process configuration method of the startup item provided in this application can be applied to Figure 1In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The terminal is configured with a controller, and the controller is a BIOS. The BIOS includes several startup items, which are used to implement a polling operation according to the configuration information preset by the user in response to the selected startup item not being started; when the polling operation finds a bootable item, the driver file associated with the bootable item is loaded, and the startup operation is performed according to the driver file; when the polling operation does not find a bootable item, all the startup items are traversed, and the polling operation associated with the configuration information is stopped. Among them, the terminal 102 can be but is not limited to various personal computers, laptops, smart phones, tablet computers and portable wearable devices, and the server 104 can be implemented with an independent server or a server cluster consisting of multiple servers.
[0042] In one embodiment, Figure 2 As shown, a startup process configuration method for a startup item is provided, and the method is applied to Figure 1 The terminal in the example is used for explanation, the terminal includes a BIOS (Base Input / Output System, basic input and output system), and the BIOS is configured with several startup items. The method includes the following steps:
[0043] Step 101: In response to a selected startup item not being started, a polling operation is performed according to configuration information preset by a user.
[0044] The BIOS has a retry function, namely the Boot Retry function. Figure 3 As shown, the Boot Retry function can be used to control the startup operation of all startup items and PXE startup items. The usual Boot Retry function has two working states, namely, the retry function is configured as "Enable state" or "Disable state", that is, disabled state and enabled state. When the retry function is set to disabled state, if the pre-set startup item fails to start, all startup items will still be polled once, and they are not completely closed, and the system may still start incorrectly.
[0045] Based on the above problems, Figure 4 As shown, in this embodiment, a setting item is added in the BIOS, and the setting item is represented by "Retry Once or Only Once" in the code. This setting item is used to implement, when the retry function in the basic input and output system is configured to be disabled, through this setting item, in response to the selected startup item not being started, performing a polling operation according to the configuration information preset by the user. If the retry function in the basic input and output system is configured to be enabled, in response to the selected startup item not being started, infinite polling is performed on all startup items.
[0046] Step 102: when the polling operation finds a bootable item, load a driver file associated with the bootable item, and perform a startup operation according to the driver file;
[0047] Step 103: When the polling operation does not find a startable item, traverse all the startable items and stop the polling operation associated with the configuration information.
[0048] Among them, executing the polling operation according to the configuration information preset by the user specifically includes: setting the configuration information to include the polling number, polling and starting all startup items in response, and counting the polling start number; when the polling start number is less than or equal to the polling number, and there is a bootable item, confirming that the polling operation has found the bootable item; when the polling number exceeds the polling number or there is no bootable item, confirming that the polling operation has not found the bootable item.
[0049] It should be noted that when the polling operation does not find a startable item or when a startable item is started, after all the startable items are traversed for the first time, the start function module is terminated, and the next round of polling is not performed and the start operation is not performed for other startable items.
[0050] Furthermore, it includes an operation display interface for supporting BIOS-related functions, wherein relevant function keys are displayed in the operation display interface. For example, for starting a selected startup item, the F11 and F12 function keys in the operation display interface can be used to enter the startup item list and the pre-boot environment list, and then the selected startup item can be selected from the startup item list and the pre-boot environment list respectively.
[0051] Furthermore, when all startup items are polled for startup, information of all startup items is obtained, and the information of the startup items at least includes identification information associated with the startup items; the identification information of the selected startup item is obtained, and the information of the startup item is queried based on the identification information of the selected startup item to obtain the selected startup item and the driver file associated with the selected startup item; the operation of starting the operating system is executed based on the driver file; in response to the normal startup of the operating system, the operation of configuring the startup item is controlled by the operating system.
[0052] After the retry function status is set to disabled, the selected startup item is filtered out from all startup items through the identification information of the selected startup item, and after the selected startup item is filtered out, its corresponding driver file is loaded, and the startup operation is performed according to the driver file, and after the operating system is successfully started, the BIOS is configured to control the startup item to the operating system; if the driver file cannot be loaded or the selected startup item fails to start, the startup operation is stopped, and no other startup items are attempted.
[0053] In a specific embodiment, Figure 5 As shown, in this embodiment, an execution process is added to the BIOS, wherein the level of the execution process is parallel to the retry function, and the execution process is set to include an enabled state and a disabled state, wherein when the state of the execution process is set to the enabled state, only the currently selected startup item is started, wherein the startup method includes but is not limited to entering the Boot List, PXE List function window to select the selected startup item by pressing the F11, F12 function keys; when the startup operation of the selected startup item executed by the execution process fails, the startup operation process is exited, and no other startup items are attempted to be started; when the execution process state is set to the disabled state, all operations executed are closed.
[0054] In order to further ensure that the execution process function and the retry function exist in parallel, and reduce the possibility of user errors, when the retry function is enabled, the execution process function item in the configuration operation display interface is set to disabled and hidden to ensure that the function status is not selected and cannot be set.
[0055] In this embodiment, different priorities are set for different operation items in the retry function in the BIOS or in the execution process to ensure that when multiple startup items are started, they can be started in order according to the startup rules, thereby reducing the occurrence of false startups. Exemplarily, the priority of the retry function in the basic input and output system is set to the second level; when the selected startup item is set in the configuration information preset by the user, the startup operation priority of the selected startup item is set to the first level; when the selected startup item is not set in the configuration information preset by the user, the priority of the retry function in the basic input and output system is replaced to the first level.
[0056] Furthermore, after setting the startup operation priority of the selected startup item to the first level, the selected startup device on the selected startup item is obtained, and it is determined whether the startup devices on other startup items are the same as the selected startup device; if the startup devices on other startup items are different from the selected startup device, the startup devices of other startup items are synchronized and replaced with the selected startup device.
[0057] By setting different priorities for each function in the BIOS, it is ensured that when multiple startup items are started, they can be started in order according to the startup rules. For example, when the retry function is disabled, the selected startup item is A, and other startup items are further judged, and other optional startup items are also synchronized to startup item A.
[0058] In this embodiment, after setting the startup operation priority of the selected startup item to the first level, the startup operation on the selected startup item is performed. If the selected startup item is not started, a polling operation on the selected startup item is performed; in response to the selected startup item not starting normally after the polling operation is performed on the selected startup item, the startup operation on the selected startup item is stopped.
[0059] Exemplarily, the above process is implemented by BIOS function code. When it is determined that the boot device selected on other options is inconsistent with the one selected on Boot Only, the boot device of the boot item selected on Boot Only is replaced with the function of other boot items, so as to achieve the effect of consistent settings of the two at the software level.
[0060] In a specific embodiment, the BIOS is also set to have a custom priority option. When the startup item needs to be selected from all startup items and it is a user-defined startup item that needs to be enforced with priority, the startup item is set to be added to the custom priority option to achieve separate priority startup of the startup item.
[0061] Through the solution in this embodiment, other startup items will not be started when the current startup item fails, so as to avoid mistakenly starting an operating system that the user does not want to enter; there is no need to add additional code to implement it, which saves manpower for code maintenance. After the above improvements and expansions, the needs of more user scenarios are met.
[0062] Embodiment 2
[0063] Corresponding to the above embodiment, the present application provides a startup item startup process configuration system, the system is used to implement the startup item startup process configuration method as described above, such as Figure 6 As shown, the system comprises:
[0064] A controller, wherein a plurality of startup items are configured in the controller;
[0065] A polling unit, configured to execute a polling operation according to configuration information preset by a user in response to the selected startup item not being started;
[0066] A first execution unit, configured to load a driver file associated with a bootable item when the polling operation finds the bootable item, and perform a startup operation according to the driver file;
[0067] The second execution unit is used to traverse all the startup items and stop the polling operation associated with the configuration information when the polling operation does not find the startup item.
[0068] In a specific embodiment, the polling unit is also used to set the configuration information to include a polling number, in response to executing a polling startup for all startup items, and counting the polling startup number; when the polling startup number is less than or equal to the polling number, and there is a bootable item, confirming that the polling operation has found the bootable item; when the polling number exceeds the polling number or there is no bootable item, confirming that the polling operation has not found the bootable item.
[0069] In a specific embodiment, it also includes a screening unit, which is used to obtain information of all bootable items, wherein the information of the bootable items at least includes identification information associated with the boot items; obtain the identification information of the selected boot item, and query the information of the bootable items based on the identification information of the selected boot item to obtain the selected boot item and the driver file associated with the selected boot item; execute the operation of starting the operating system according to the driver file; in response to the normal startup of the operating system, configure the operation of the startup item to be controlled by the operating system.
[0070] In a specific embodiment, it also includes a configuration unit, which is used to configure the priority of the retry function in the controller to be set to the second level; when the selected startup item is set in the user-preset configuration information, the startup operation priority of the selected startup item is set to the first level; when the selected startup item is not set in the user-preset configuration information, the priority of the retry function in the controller is replaced to the first level.
[0071] In a specific embodiment, the configuration unit is also used to set the startup operation priority of the selected startup item to the first level, obtain the selected startup device on the selected startup item, and determine whether the startup devices on other startup items are the same as the selected startup device; if the startup devices on other startup items are different from the selected startup device, synchronize the startup devices of other startup items and replace them with the selected startup device.
[0072] In this embodiment, a third execution unit is also included, which is used to set the startup operation priority of the selected startup item to the first level, and then execute the startup operation on the selected startup item. If the selected startup item is not started, perform a polling operation on the selected startup item; in response to the selected startup item not starting normally after the polling operation is performed on the selected startup item, stop the startup operation on the selected startup item.
[0073] Embodiment 3
[0074] A computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0075] Step 201: In response to the selected startup item not being started, a polling operation is performed according to configuration information preset by the user;
[0076] Step 202: when the polling operation finds a bootable item, load a driver file associated with the bootable item, and perform a startup operation according to the driver file;
[0077] Step 203: When the polling operation does not find a startable item, traverse all the startable items and stop the polling operation associated with the configuration information.
[0078] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0079] The configuration information is set to include a polling number, and in response to executing a polling start for all startup items, the polling start number is counted; when the polling start number is less than or equal to the polling number and there is a bootable item, it is confirmed that the polling operation has found the bootable item; when the polling number exceeds the polling number or there is no bootable item, it is confirmed that the polling operation has not found the bootable item.
[0080] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0081] Obtain information of all bootable items, wherein the information of the bootable items at least includes identification information associated with the bootable items; obtain identification information of the selected bootable item, and query the information of the bootable items according to the identification information of the selected bootable item to obtain the selected bootable item and a driver file associated with the selected bootable item; execute an operation of starting the operating system according to the driver file; in response to the operating system starting normally, configure the operation of the bootable item to be controlled by the operating system.
[0082] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0083] In response to the selected startup item not being started, before performing a polling operation according to the configuration information preset by the user, the retry function in the controller is configured to be disabled; when the retry function in the controller is configured to be enabled, in response to the selected startup item not being started, unlimited polling of all startup items is performed.
[0084] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0085] The priority of the retry function in the controller is configured to be set to the second level; when the selected startup item is set in the user-preset configuration information, the startup operation priority of the selected startup item is set to the first level; when the selected startup item is not set in the user-preset configuration information, the priority of the retry function in the controller is replaced to the first level.
[0086] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0087] After setting the startup operation priority of the selected startup item to the first level, obtain the selected startup device on the selected startup item, and determine whether the startup devices on other startup items are the same as the selected startup device; if the startup devices on other startup items are different from the selected startup device, synchronize the startup devices of other startup items to replace them with the selected startup device.
[0088] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0089] A startup operation is performed on the selected startup item. If the selected startup item is not started, a polling operation is performed on the selected startup item. In response to the selected startup item not being started normally after the polling operation is performed on the selected startup item, the startup operation on the selected startup item is stopped.
[0090] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 7 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store information data of the startup item. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a startup process configuration method of a startup item is implemented.
[0091] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0092] Embodiment 4
[0093] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0094] Step 301: In response to the selected startup item not being started, a polling operation is performed according to configuration information preset by the user;
[0095] Step 302: when the polling operation finds a bootable item, load a driver file associated with the bootable item, and perform a startup operation according to the driver file;
[0096] Step 303: When the polling operation does not find a startable item, traverse all the startable items and stop the polling operation associated with the configuration information.
[0097] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0098] The configuration information is set to include a polling number, and in response to executing a polling start for all startup items, the polling start number is counted; when the polling start number is less than or equal to the polling number and there is a bootable item, it is confirmed that the polling operation has found the bootable item; when the polling number exceeds the polling number or there is no bootable item, it is confirmed that the polling operation has not found the bootable item.
[0099] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0100] Obtain information of all bootable items, wherein the information of the bootable items at least includes identification information associated with the bootable items; obtain identification information of the selected bootable item, and query the information of the bootable items according to the identification information of the selected bootable item to obtain the selected bootable item and a driver file associated with the selected bootable item; execute an operation of starting the operating system according to the driver file; in response to the operating system starting normally, configure the operation of the bootable item to be controlled by the operating system.
[0101] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0102] In response to the selected startup item not being started, before performing a polling operation according to the configuration information preset by the user, the retry function in the controller is configured to be disabled; when the retry function in the controller is configured to be enabled, in response to the selected startup item not being started, unlimited polling of all startup items is performed.
[0103] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0104] The priority of the retry function in the controller is configured to be set to the second level; when the selected startup item is set in the user-preset configuration information, the startup operation priority of the selected startup item is set to the first level; when the selected startup item is not set in the user-preset configuration information, the priority of the retry function in the controller is replaced to the first level.
[0105] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0106] After setting the startup operation priority of the selected startup item to the first level, obtain the selected startup device on the selected startup item, and determine whether the startup devices on other startup items are the same as the selected startup device; if the startup devices on other startup items are different from the selected startup device, synchronize the startup devices of other startup items to replace them with the selected startup device.
[0107] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0108] A startup operation is performed on the selected startup item. If the selected startup item is not started, a polling operation is performed on the selected startup item. In response to the selected startup item not being started normally after the polling operation is performed on the selected startup item, the startup operation on the selected startup item is stopped.
[0109] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0110] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the embodiments of the present application.
[0111] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for configuring a startup process of a startup item, characterized in that: Applied to a controller, wherein a plurality of startup items are configured in the controller, the method comprises: In response to the selected startup item not being started, performing a polling operation according to the configuration information preset by the user; When the polling operation finds a bootable item, loading a driver file associated with the bootable item, and performing a startup operation according to the driver file; When the polling operation does not find a startable item, all the startable items are traversed and the polling operation associated with the configuration information is stopped.
2. The startup process configuration method of a startup item according to claim 1, characterized in that: The performing of the polling operation according to the configuration information preset by the user specifically includes: The configuration information is set to include a polling number, and in response to the execution, all startup items are polled and started, and the polling and starting number is counted; When the polling start number is less than or equal to the polling number and there is a startable item, confirming that the polling operation finds the startable item; When the polling number exceeds the polling number or there is no startable item, it is confirmed that the polling operation does not find the startable item.
3. The startup process configuration method of a startup item according to claim 2, characterized in that: The method further comprises: Acquire information of all bootable items, wherein the information of the bootable items at least includes identification information associated with the bootable items; Acquire identification information of the selected startup item, and query information of the bootable item according to the identification information of the selected startup item to obtain the selected startup item and a driver file associated with the selected startup item; Execute the operation of starting the operating system according to the driver file; In response to the operating system starting normally, the operation of configuring the startup item is controlled by the operating system.
4. The startup process configuration method of a startup item according to claim 1 or 2, characterized in that: In response to the selected startup item not being started, before performing the polling operation according to the configuration information preset by the user, the method further includes: Configuring a retry function in the controller to be disabled; When the retry function in the controller is configured to be enabled, in response to the selected startup item not being started, infinite polling of all startup items is performed.
5. The startup process configuration method of a startup item according to claim 4, characterized in that: The method further comprises: Configuring the priority of the retry function in the controller to be set to the second level; When the selected startup item is set in the configuration information preset by the user, the startup operation priority of the selected startup item is set to the first level; When the selected startup item is not set in the configuration information preset by the user, the priority of replacing the retry function in the controller is the first level.
6. The method for configuring the startup process of a startup item according to claim 5, characterized in that: After setting the startup operation priority of the selected startup item to the first level, the method further includes: Obtaining a selected startup device on a selected startup item, and determining whether startup devices on other startup items are the same as the selected startup device; If the boot device on other boot items is different from the selected boot device, the boot device of other boot items is synchronized and replaced with the selected boot device.
7. The method for configuring the startup process of a startup item according to claim 5, characterized in that: After setting the startup operation priority of the selected startup item to the first level, the method further includes: Execute a startup operation on the selected startup item, and if the selected startup item is not started, execute a polling operation on the selected startup item; In response to the selected startup item not being started normally after the polling operation is performed on the selected startup item, the startup operation on the selected startup item is stopped.
8. A startup process configuration system for a startup item, characterized in that: The system is used to implement the startup process configuration method of the startup item according to any one of claims 1 to 7, and the system includes: A controller, wherein a plurality of startup items are configured in the controller; A polling unit, configured to execute a polling operation according to configuration information preset by a user in response to the selected startup item not being started; A first execution unit, configured to load a driver file associated with a bootable item when the polling operation finds the bootable item, and perform a startup operation according to the driver file; The second execution unit is used to traverse all the startup items and stop the polling operation associated with the configuration information when the polling operation does not find the startup item.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.