Server startup method, device, electronic device and readable storage medium

By building emergency channel information and hardware standard information in BIOS, the problem of domestic ARM architecture servers being unable to enter the system when the dual RAID card is equipped with different forms of hard disks or external full-load hard disks is solved, and the server is started stably and normal.

CN113849230BActive Publication Date: 2024-11-22LANGCHAO ELECTRONIC INFORMATION IND CO LTD
View PDF 13 Cites 0 Cited by

Patent Information

Application Number
CN202111006595.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-30
Publication Date
2024-11-22
Estimated Expiration
2041-08-30

AI Technical Summary

Technical Problem

Domestic ARM architecture servers are prone to problems such as not being able to enter the system when they are equipped with dual RAID cards and different forms of hard disks or external full-load hard disks, resulting in insufficient stability.

Method used

By pre-creating hardware standard information and loading it into the BIOS, emergency channel information is built, and when the dual RAID card loading exception is detected during the BIOS startup process, hardware standard information is called for initialization, and after entering the operating system, normal operation status information is written to maintain dual RAID The data interaction between the card and the operating system ensures that the server starts normally.

Benefits of technology

It effectively improves the stability of the ARM architecture server, ensuring that the server can boot normally when the dual RAID card is equipped with different types of hard disks or external full-load hard disks, and avoids loading abnormalities affecting the server startup.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113849230B_ABST
    Figure CN113849230B_ABST
Patent Text Reader

Abstract

The present application discloses a server startup method, device, electronic device and readable storage medium. The method includes generating hardware standard information in advance according to the bottom-layer driver files of the dual RAID card and each hard disk of the ARM architecture server, and loading the hardware standard information into the BIOS; constructing emergency channel information in the BIOS to maintain the normal operation of the dual RAID card. During the BIOS startup process, if the dual RAID card loading is determined to be abnormal through the startup information of the dual RAID card, the hardware standard information is called to maintain the dual RAID card to perform normal hardware device initialization until the operating system is successfully entered. After entering the operating system, if the dual RAID card operation is determined to be abnormal by reading the operating status information of the dual RAID card, the normal operating status information is written to the configuration space of the dual RAID, and the emergency channel information is provided at the same time, so as to realize the data interaction between the dual RAID and the operating system through the emergency channel information, thereby ensuring the normal startup of the server, and effectively improving the stability of the ARM architecture server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a server startup method, device, electronic device and readable storage medium. Background Art

[0002] In recent years, with the accelerated development of the localization process, domestic ARM architecture (Advanced RISC (Reduced Instruction Set Computing, reduced instruction set computer) Machines) servers have also developed rapidly. While domestic servers are developing, the improvement of server performance is particularly important. At present, the mainstream server market is still dominated by X86 architecture series servers. Domestic ARM servers may need to catch up with or even exceed the performance of the current mainstream server market in terms of performance. In terms of server performance with dual RAID (Redundant Arrays of Independent Disks, disk array) cards, the X86 server platform usually does not fail to enter the system when the dual RAID card is connected to a fully loaded hard disk or the dual RAID card is matched in different forms. However, for domestic ARM servers, under the same configuration conditions as X86 servers, it is very easy to fail to enter the system when it is powered on due to insufficient stability.

[0003] In view of this, how to improve the stability of domestic ARM architecture servers is a technical problem that technical personnel in the field need to solve. Summary of the invention

[0004] The present application provides a server startup method, device, electronic device and readable storage medium, which solves the problem that an ARM architecture server cannot start the system when dual RAID is equipped with different types of hard disks or an external fully loaded hard disk. It can ensure the normal startup of the server and effectively improve the stability of the ARM architecture server.

[0005] To solve the above technical problems, the embodiments of the present invention provide the following technical solutions:

[0006] An embodiment of the present invention provides a server startup method, comprising:

[0007] Generate hardware standard information in advance according to the dual RAID card of the ARM architecture server and the underlying driver files of each hard disk, and load the hardware standard information into the BIOS; construct emergency channel information in the BIOS to maintain the normal operation of the dual RAID card;

[0008] During the BIOS startup process, if it is determined through the startup information of the dual RAID card that the dual RAID card is loaded abnormally, the hardware standard information is called to maintain the dual RAID card to perform normal hardware device initialization until the operating system is successfully entered;

[0009] After entering the operating system, if it is determined that the dual RAID card is operating abnormally by reading the operating status information of the dual RAID card, the normal operating status information is written into the configuration space of the dual RAID card, and the emergency channel information is provided at the same time, so as to realize data interaction between the dual RAID card and the operating system through the emergency channel information.

[0010] Optionally, calling the hardware standard information to maintain the dual RAID card to normally perform hardware device initialization until the operating system is successfully entered includes:

[0011] Get the startup information of the currently used hard disk;

[0012] Based on the startup information of the currently used hard disk, the hardware standard information is called to complete the hardware device initialization process inside the BIOS.

[0013] Optionally, determining that the dual RAID card loading is abnormal through the startup information of the dual RAID card includes:

[0014] Obtain device ID information of the dual RAID card;

[0015] Polling the startup status of the dual RAID card according to the device ID information and the startup sequence of each disk of the dual RAID card;

[0016] If the startup state of the dual RAID card is abnormal, it is determined that the dual RAID card is loaded abnormally.

[0017] Optionally, the determining that the dual RAID card is operating abnormally by reading the operating status information of the dual RAID card includes:

[0018] Reading a status value of a register of a configuration space of the dual RAID card;

[0019] If the status value is a value indicating abnormal operation, it is determined that the dual RAID card is operating abnormally; if the status value is a value indicating normal operation, it is determined that the dual RAID card is operating normally.

[0020] Optionally, the emergency channel information provides a dedicated channel for the operating system to read the dual RAID card information, and further includes:

[0021] A universal channel is created in advance to provide the BIOS with a method for operating the dual RAID card.

[0022] Optionally, after entering the operating system, the step further includes:

[0023] The operation status information of the dual RAID cards is read by polling until the server receives a shutdown instruction.

[0024] Another aspect of the present invention provides a server startup device, including:

[0025] A pre-deployment module is used to generate hardware standard information in advance according to the dual RAID card of the ARM architecture server and the underlying driver files of each hard disk, and load the hardware standard information into the BIOS; and construct emergency channel information in the BIOS to maintain the normal operation of the dual RAID card;

[0026] A loading exception processing module, used for, during the BIOS startup process, if it is determined through the startup information of the dual RAID card that the dual RAID card is loaded abnormally, calling the hardware standard information to maintain the dual RAID card to perform normal hardware device initialization until the operating system is successfully entered;

[0027] The operation abnormality processing module is used for, after entering the operating system, if it is determined that the dual RAID card is operating abnormally by reading the operation status information of the dual RAID card, writing the normal operation status information into the configuration space of the dual RAID card, and providing the emergency channel information at the same time, so as to realize data interaction between the dual RAID card and the operating system through the emergency channel information.

[0028] Optionally, the loading exception handling module is further used to: obtain the startup information of the hard disk currently in use; based on the startup information of the hard disk currently in use, call the hardware standard information to complete the hardware device initialization process inside the BIOS.

[0029] An embodiment of the present invention further provides an electronic device, comprising a processor, wherein the processor is configured to implement the steps of the server startup method as described in any of the preceding items when executing a computer program stored in a memory.

[0030] Finally, an embodiment of the present invention further provides a readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the server startup method as described in any of the preceding items are implemented.

[0031] The advantage of the technical solution provided by the present application is that the recognition function of the corresponding error information during the BIOS startup process and the use of the dual RAID card is added. If the BIOS scans the corresponding error information during the startup process, that is, it detects that the dual RAID card is loaded abnormally, the hardware standard information generated by driving such relatively stable information points in the firmware of the dual RAID card and the hard disk pre-loaded in the BIOS can be used to adapt the dual RAID card to the latest firmware version, effectively improving the probability of the dual RAID card being successfully loaded. If the dual RAID card is found to be running abnormally during use, the normal operation status information is written to the configuration space of the dual RAID, and the channel information for maintaining the normal operation of the dual RAID card and the hard disk is provided. By providing the necessary information to maintain the startup and operation of these external hardware, the normal operation of external hardware such as the dual RAID and the hard disk is maintained, and the normal startup of the server will not be affected by the abnormal loading, thereby solving the problem that the ARM architecture server cannot start the system when the dual RAID card is equipped with different forms of hard disks or an external fully loaded hard disk, and can ensure the normal startup of the server, effectively improving the stability of the ARM architecture server.

[0032] In addition, the embodiment of the present invention also provides a corresponding implementation device, an electronic device and a readable storage medium for the server startup method, which further makes the method more practical, and the device, the electronic device and the readable storage medium have corresponding advantages.

[0033] It is to be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions of the embodiments of the present invention or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0035] Figure 1 A schematic diagram of a flow chart of a server startup method provided by an embodiment of the present invention;

[0036] Figure 2 A schematic diagram of a flow chart of another server startup method provided by an embodiment of the present invention;

[0037] Figure 3 A structural diagram of a specific implementation of a server startup device provided in an embodiment of the present invention;

[0038] Figure 4A structural diagram of a specific implementation of an electronic device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0039] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0040] The terms "first", "second", "third", "fourth", etc. in the specification and claims of this application and the above drawings are used to distinguish different objects rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may include steps or units that are not listed.

[0041] After introducing the technical solutions of the embodiments of the present invention, various non-limiting implementation methods of the present application are described in detail below.

[0042] See first Figure 1 , Figure 1 A flow chart of a server startup method provided in an embodiment of the present invention, the embodiment of the present invention may include the following contents:

[0043] S101: Generate hardware standard information in advance according to the dual RAID card of the ARM architecture server and the underlying driver files of each hard disk, and load the hardware standard information into the BIOS; construct emergency channel information in the BIOS to maintain the normal operation of the dual RAID card.

[0044] This embodiment is applicable to ARM architecture servers equipped with dual RAID cards, such as FT2000+ servers, and is used to solve the problem that such servers cannot start normally when the dual RAID cards are equipped with different types of hard disks or external fully loaded hard disks. The dual RAID cards with fully loaded hard disks refer to the server being equipped with two or more RAID card devices and each corresponding interface is connected to more than 4 hard disk configurations. In other words, the dual RAID card in this application is a general term and does not refer to a dual RAID card consisting of only two RAID cards, but refers to a situation where it is composed of more than or equal to two RAID cards. For example, the dual RAID card can be composed of RAID1, RAID2 and RAID3, and each hard disk refers to the hard disk connected to each RAID card in the dual RAID card.

[0045] It is understandable that for hardware such as dual RAID cards and hard disks, the firmware versions of these hardware will be frequently upgraded, that is, their firmware versions are not fixed versions, which requires the server's firmware BIOS and operating system OS to match the firmware versions of different hardware. In addition, hardware with different firmware versions may be assembled on the same server. Based on this, this step can use some relatively stable information such as drivers in the firmware of dual RAID cards and hard disks as basic information to assist BIOS and operating system OS to successfully start the server. The underlying driver file can be, for example, mechanical hard disk HDD driver information, driver library files, cracked hard disk passwords such as HDD passwords and other information, that is, information that is relatively stable in dual RAID cards and each hard disk that will not change with firmware version upgrades. Technical personnel in the relevant field can also add other stable data based on actual needs to generate hardware standard information. The hardware standard information can be in the form of a packaged BIOSefi (Extensible Firmware Interface) file. The emergency channel information is used to provide channel information to maintain the normal operation of the dual RAID card and the hard disk, as well as the necessary information to maintain the startup and operation of these external hardware. For example, the emergency channel information can be constructed through the ACPI table (Advanced Configuration and Power Management Interface). The so-called channel is used to provide the BIOS or OS with data information for reading the dual RAID card or methods for operating the dual RAID card. This step can provide more boot systems for the firmware BIOS by pre-loading the hardware standard information and emergency channel information into the BIOS, and can maintain the normal startup and operation of the CPU, thereby ensuring that the ARM architecture server can start normally and enter the operating system.

[0046] S102: During the BIOS startup process, if it is determined through the startup information of the dual RAID card that the dual RAID card is loaded abnormally, the hardware standard information is called to maintain the dual RAID card to perform normal hardware device initialization until the operating system is successfully entered.

[0047] During the process of BIOS startup when the server is powered on, the hardware initialization task will be executed, and the initialization identification of the hard disk mounted on the dual RAID card will cause the dual RAID card to start abnormally, that is, the dual RAID card will load abnormally. Therefore, the identification function of the corresponding error information during the startup process can be added to the firmware BIOS. As an optional implementation method, the judgment method of the loading abnormality of the dual RAID card can be: obtaining the device ID information of the dual RAID card; polling the startup status of the dual RAID card according to the device ID information and the startup sequence of each disk of the dual RAID card; if the startup status of the dual RAID card is abnormal, it is determined that the dual RAID card is loaded abnormally. Specifically, the BIOS will poll and read the startup status of the dual RAID card according to the ID information of the dual RAID card device, and judge whether the dual RAID card is loaded abnormally according to the startup status of the dual RAID card. If the BIOS scans the corresponding error information, the corresponding driver information of the dual RAID card and each hard disk may be updated. The BIOS can maintain the initialization process of the hard disk through the underlying driver information introduced by S101, that is, the BIOS needs to maintain the initialization process of the hard disk according to the compiled efi file of the driver information to prevent the hard disk mounted on the dual RAID card from loading abnormally during the startup process.

[0048] S103: After entering the operating system, if it is determined that the dual RAID card is operating abnormally by reading the operating status information of the dual RAID card, the normal operating status information is written into the configuration space of the dual RAID card, and emergency channel information is provided at the same time, so as to realize data interaction between the dual RAID card and the operating system through the emergency channel information.

[0049] Similarly, this step can add the corresponding error information recognition function during use in the firmware BIOS. Specifically, during use, the use status or working status of the dual RAID card can be determined by reading the value of the register of the dual RAID card by reading the PCI (Peripheral Component Interconnect) configuration space. If the use status of the dual RAID card is abnormal, the BIOS needs to write the corresponding working status value to the configuration space of the dual RAID card to maintain the operation of the dual RAID card. At the same time, the BIOS also provides emergency channel information such as ACPItable of the dual RAID card device to maintain the interaction between the operating system and the dual RAID card firmware information, enhance the running status of the dual RAID card, maintain the normal operation of external hardware such as the dual RAID card and hard disk, and will not affect the normal startup of the server due to the abnormal loading of these devices.

[0050] In the technical solution provided by the embodiment of the present invention, the recognition function of the corresponding error information during the BIOS startup process and the use of the dual RAID is added. If the BIOS scans the corresponding error information during the startup process, that is, detects the abnormal loading of the dual RAID, the hardware standard information generated by driving such relatively stable information points in the firmware of the dual RAID and the hard disk pre-loaded in the BIOS can be used to adapt the dual RAID card to the latest firmware version, effectively improving the probability of the dual RAID card being successfully loaded. If the dual RAID card is found to be running abnormally during use, the normal operation status information is written to the configuration space of the dual RAID, and the channel information for maintaining the normal operation of the dual RAID card and the hard disk is provided. By providing the necessary information to maintain the startup and operation of these external hardware, the normal operation of external hardware such as raid and hard disk is maintained, and the normal startup of the server will not be affected by the abnormal loading, thereby solving the problem that the ARM architecture server cannot start the system when the dual RAID is equipped with different forms of hard disks or an external fully loaded hard disk, and can ensure the normal startup of the server, effectively improving the stability of the ARM architecture server.

[0051] In order to further ensure the stable operation of ARM architecture servers, a hard disk anti-self-locking mechanism can be added during the BIOS hardware initialization process and the use of dual RAID cards. Taking the addition of the anti-self-locking mechanism during the initialization process as an example, the startup information of the currently used hard disk is obtained; based on the startup information of the currently used hard disk, the hardware standard information is called to complete the hardware device initialization process inside the BIOS.

[0052] This embodiment finds the ID information of the dual RAID card device information during the startup process. The BIOS polls and reads the startup status of the device according to the ID of the dual RAID card device information and the startup order of each RAID card in the dual RAID card, such as RAID1, RAID2 and RAID3. At the same time, the BIOS introduces the latest hard disk hdd password and other drivers to avoid the hard disk from self-locking. When using a dual RAID card (multiple cards are used), the BIOS reads and configures the dual RAID card device registers through the hardware link channel during use, meeting the performance requirements of the use process, and will not cause abnormal phenomena such as disk loss and card locking, which will affect the performance of the server.

[0053] The above embodiment does not limit how to determine whether the dual RAID card is operating abnormally. Based on the above embodiment, the present application also provides an optional method for determining whether the dual RAID card is operating abnormally, which may include:

[0054] The status value of the register of the configuration space of the dual RAID card is read; if the status value is a value indicating abnormal operation, it is determined that the dual RAID card is abnormally operating; if the status value is a value indicating normal operation, it is determined that the dual RAID card is operating normally.

[0055] For example, the flag bit identifying the operating status of the dual RAID card in the register of the dual RAID card records two values ​​00 and 01, 00 indicates that the dual RAID card operates abnormally, and 01 indicates that the dual RAID card operates normally. If the value 00 is read, it is determined that the dual RAID card operates abnormally.

[0056] In order to further improve the stable operation of the ARM architecture server, the present application can simultaneously provide dual-channel enhanced interaction performance between the dual RAID card and the BIOS and OS. That is, in addition to the special channel for providing the OS with reading the dual RAID card, namely the emergency channel information, constructed in the above-mentioned embodiment, a general channel for providing the BIOS with operation of the dual RAID card can also be created in advance.

[0057] In order to ensure that the dual RAID card can be used stably all the time and improve the stability of the ARM architecture server operation, after entering the operating system in the above steps, the operating status information of the dual RAID card can be polled and read until the server receives a shutdown command.

[0058] In order to make the technical personnel in the relevant field more clearly understand the technical solution of the present application, the application is also combined with Figure 2 An illustrative example is provided. When the ARM architecture FT2000+ server is started, the automatic identification function of the external hardware device dual RAID card and hard disk information initialization process is added. The initialization startup information of the mobile hardware is obtained through a polling mechanism to determine whether the initialization is successful. At the same time, during use, the value of the dual RAID card register is read through the PCI configuration space to determine the use status of the dual RAID card. If an abnormality occurs, the BIOS provides the ACPI table channel information of the dual RAID card device to maintain the normal use of the dual RAID card, which may include the following content: A1: The ARM architecture server of FT2000+ with dual RAID cards and fully loaded hard disks is powered on.

[0059] A2: During the BIOS startup process, the hardware devices including the dual RAID cards complete the initialization process.

[0060] A3: During the hardware device initialization process in BIOS, the dual RAID card ID information is used to poll and read whether the dual RAID card device loading and startup is abnormal.

[0061] A4: If there is a loading exception with the dual RAID card, the BIOS needs to call the pre-loaded underlying driver information to ensure that the system runs normally during the startup process and that the server can start normally and enter the OS system.

[0062] A5: After booting into the system, the BIOS reads the status of the registers in the dual RAID card configuration space to determine whether the dual RAID card device is operating abnormally.

[0063] A6: If an abnormality occurs, the BIOS will write values ​​to the corresponding configuration space to maintain the operating status of the dual RAID card. At the same time, by providing the emergency channel information of the dual RAID card, the interaction between the system and the raid card firmware information is maintained, thereby enhancing the maintenance of the operating status of the dual RAID card.

[0064] A6: BIOS continues to read the status of the registers in the dual RAID card configuration space and jumps to execute A5.

[0065] This embodiment can solve the startup anomaly of dual raid card devices or multi-raid card devices on the FT2000+ARM platform when fully configured hard disks are mounted, and at the same time avoid the phenomenon of disk loss and card locking during use, ensuring the stable improvement of the performance of domestic FT servers with dual raid cards and fully loaded hard disks.

[0066] It should be noted that there is no strict order of execution between the steps in this application. As long as they comply with the logical order, these steps can be executed simultaneously or in a certain preset order. Figure 1 This is just a schematic and does not mean that this is the only execution order.

[0067] The embodiment of the present invention also provides a corresponding device for the server startup method, which further makes the method more practical. The device can be described from the perspective of functional modules and hardware. The server startup device provided by the embodiment of the present invention is introduced below. The server startup device described below and the server startup method described above can be referred to each other.

[0068] From the perspective of functional modules, see Figure 3 , Figure 3 A structural diagram of a server startup device provided in an embodiment of the present invention in a specific implementation manner, the device may include:

[0069] The pre-deployment module 301 is used to generate hardware standard information in advance according to the dual RAID cards of the ARM architecture server and the underlying driver files of each hard disk, and load the hardware standard information into the BIOS; and construct emergency channel information in the BIOS to maintain the normal operation of the dual RAID cards.

[0070] The loading exception handling module 302 is used to call hardware standard information to maintain the normal hardware device initialization of the dual RAID card until the operating system is successfully entered if the dual RAID card loading is abnormal according to the dual RAID card startup information during the BIOS startup process.

[0071] The operation abnormality processing module 303 is used for, after entering the operating system, if it is determined that the dual RAID card is operating abnormally by reading the operating status information of the dual RAID card, then writing the normal operating status information into the configuration space of the dual RAID card and providing emergency channel information at the same time, so as to realize data interaction between the dual RAID card and the operating system through the emergency channel information.

[0072] Optionally, in some implementations of this embodiment, the above-mentioned loading exception handling module 302 can be further used to: obtain the startup information of the hard disk currently in use; based on the startup information of the hard disk currently in use, call the hardware standard information to complete the hardware device initialization process inside the BIOS.

[0073] As an optional implementation of this embodiment, the above-mentioned loading exception processing module 302 can be further used to: obtain the device ID information of the dual RAID card; poll the startup status of the dual RAID card according to the device ID information and the startup sequence of each disk of the dual RAID card; if the startup status of the dual RAID card is abnormal, it is determined that the loading of the dual RAID card is abnormal.

[0074] Optionally, in some other implementations of the present embodiment, the above-mentioned operation exception processing module 303 can be further used to: read the status value of the register of the configuration space of the dual RAID card; if the status value is a value indicating operation exception, it is determined that the dual RAID card is operating abnormally; if the status value is a value indicating normal operation, it is determined that the dual RAID card is operating normally.

[0075] As another optional implementation of this embodiment, the above-mentioned operation abnormality processing module 303 can be further used to: poll and read the operation status information of the dual RAID cards until the server receives a shutdown instruction.

[0076] Optionally, in some other implementations of this embodiment, the pre-deployment module 301 may be further used to: provide a dedicated channel for the operating system to read dual RAID card information through the emergency channel information, and pre-create a universal channel for providing BIOS with dual RAID card operations.

[0077] The functions of the functional modules of the server startup device in the embodiment of the present invention can be specifically implemented according to the method in the above method embodiment. The specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.

[0078] It can be seen from the above that the embodiment of the present invention can ensure that the server of the ARM architecture is normally powered on and started, and effectively improves the stability of the server of the ARM architecture.

[0079] The server startup device mentioned above is described from the perspective of functional modules. Furthermore, the present application also provides an electronic device, which is described from the perspective of hardware. Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application in one implementation manner. Figure 4 As shown, the electronic device includes a memory 40 for storing a computer program; and a processor 41 for implementing the steps of the server startup method mentioned in any of the above embodiments when executing the computer program.

[0080] Among them, the processor 41 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the processor 41 may also be a controller, a microcontroller, a microprocessor or other data processing chip. The processor 41 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 41 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 41 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 41 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0081] The memory 40 may include one or more computer-readable storage media, which may be non-transitory. The memory 40 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash storage devices. The memory 40 may be an internal storage unit of an electronic device in some embodiments, such as a hard disk of a server. The memory 40 may also be an external storage device of an electronic device in other embodiments, such as a plug-in hard disk equipped on a server, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. Further, the memory 40 may also include both an internal storage unit of an electronic device and an external storage device. The memory 40 may not only be used to store application software and various types of data installed in the electronic device, such as: the code of the program for executing the vulnerability processing method, etc., but may also be used to temporarily store data that has been output or is to be output. In this embodiment, the memory 40 is at least used to store the following computer program 401, wherein, after the computer program is loaded and executed by the processor 41, the relevant steps of the server startup method disclosed in any of the aforementioned embodiments can be implemented. In addition, the resources stored in the memory 40 may also include an operating system 402 and data 403, and the storage method may be temporary storage or permanent storage. The operating system 402 may include Windows, Unix, Linux, etc. The data 403 may include but is not limited to data corresponding to the server startup result.

[0082] In some embodiments, the electronic device may further include a display screen 42, an input / output interface 43, a communication interface 44 or a network interface, a power supply 45 and a communication bus 46. Among them, the display screen 42 and the input / output interface 43 such as a keyboard belong to the user interface, and the optional user interface may also include a standard wired interface, a wireless interface, etc. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device, etc. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface. The communication interface 44 may optionally include a wired interface and / or a wireless interface, such as a WI-FI interface, a Bluetooth interface, etc., which is usually used to establish a communication connection between the electronic device and other electronic devices. The communication bus 46 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0083] Those skilled in the art will understand that Figure 4 The structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than those shown in the figure, for example, it may also include a sensor 47 for realizing various functions.

[0084] The functions of the functional modules of the electronic device described in the embodiment of the present invention can be specifically implemented according to the method in the above method embodiment. The specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.

[0085] It can be seen from the above that the embodiment of the present invention can ensure that the server of the ARM architecture is normally powered on and started, and effectively improves the stability of the server of the ARM architecture.

[0086] It is understandable that if the server startup method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), electrically erasable programmable ROM, register, hard disk, multimedia card, card-type memory (such as SD or DX memory, etc.), magnetic memory, removable disk, CD-ROM, disk or optical disk, etc. Various media that can store program codes.

[0087] Based on this, an embodiment of the present invention further provides a readable storage medium storing a computer program, and when the computer program is executed by a processor, the steps of the server startup method described in any of the above embodiments are performed.

[0088] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the hardware disclosed in the embodiments, including devices and electronic devices, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part.

[0089] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0090] The above is a detailed introduction to a server startup method, device, electronic device and readable storage medium provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.

Claims

1. A server startup method, characterized in that: include: Generate hardware standard information in advance according to the underlying driver files of the dual RAID card and each hard disk of the ARM architecture server, and load the hardware standard information into the BIOS; construct emergency channel information in the BIOS to maintain the normal operation of the dual RAID card; wherein the underlying driver file is relatively stable information in the dual RAID card and each hard disk that will not change with the firmware version upgrade; the emergency channel information is used to provide channel information for maintaining the normal operation of the dual RAID card and the hard disk and necessary information for maintaining the startup and operation of the external hardware, and the channel is used to provide the BIOS or OS with data information for reading the dual RAID card or a method for operating the dual RAID card; During the BIOS startup process, if it is determined through the startup information of the dual RAID card that the dual RAID card is loaded abnormally, the hardware standard information is called to maintain the dual RAID card to perform normal hardware device initialization until the operating system is successfully entered; After entering the operating system, if it is determined that the dual RAID card is operating abnormally by reading the operating status information of the dual RAID card, the normal operating status information is written into the configuration space of the dual RAID card, and the emergency channel information is provided at the same time, so as to realize data interaction between the dual RAID card and the operating system through the emergency channel information.

2. The server startup method according to claim 1, characterized in that: The calling of the hardware standard information to maintain the dual RAID card to normally perform hardware device initialization until the operating system is successfully entered includes: Get the startup information of the currently used hard disk; Based on the startup information of the currently used hard disk, the hardware standard information is called to complete the hardware device initialization process inside the BIOS.

3. The server startup method according to claim 2, characterized in that: The determining, through the startup information of the dual RAID card, that the dual RAID card is loaded abnormally includes: Obtain device ID information of the dual RAID card; Polling the startup status of the dual RAID card according to the device ID information and the startup sequence of each disk of the dual RAID card; If the startup state of the dual RAID card is abnormal, it is determined that the dual RAID card is loaded abnormally.

4. The server startup method according to claim 3, characterized in that: The determining that the dual RAID card is operating abnormally by reading the operating status information of the dual RAID card includes: Reading a status value of a register of a configuration space of the dual RAID card; If the status value is a value indicating abnormal operation, it is determined that the dual RAID card is operating abnormally; if the status value is a value indicating normal operation, it is determined that the dual RAID card is operating normally.

5. The server startup method according to any one of claims 1 to 4, characterized in that: The emergency channel information provides a dedicated channel for the operating system to read the dual RAID card information, and also includes: A universal channel is created in advance to provide the BIOS with a method for operating the dual RAID card.

6. The server startup method according to claim 4, characterized in that: After entering the operating system, the method further includes: The operation status information of the dual RAID cards is read by polling until the server receives a shutdown instruction.

7. A server startup device, characterized in that: include: A pre-deployment module is used to generate hardware standard information in advance according to the underlying driver files of the dual RAID card and each hard disk of the ARM architecture server, and load the hardware standard information into the BIOS; construct emergency channel information in the BIOS to maintain the normal operation of the dual RAID card; wherein the underlying driver file is relatively stable information in the dual RAID card and each hard disk that will not change with the firmware version upgrade; the emergency channel information is used to provide channel information for maintaining the normal operation of the dual RAID card and the hard disk and the necessary information for maintaining the startup and operation of the external hardware, and the channel is used to provide the BIOS or OS with data information for reading the dual RAID card or a method for operating the dual RAID card; a loading exception handling module is used to call the hardware standard information to maintain the normal hardware device initialization of the dual RAID card until the operating system is successfully entered during the BIOS startup process if the startup information of the dual RAID card determines that the dual RAID card is loaded abnormally; The operation abnormality processing module is used for, after entering the operating system, if it is determined that the dual RAID card is operating abnormally by reading the operation status information of the dual RAID card, writing the normal operation status information into the configuration space of the dual RAID card, and providing the emergency channel information at the same time, so as to realize data interaction between the dual RAID card and the operating system through the emergency channel information.

8. The server startup device according to claim 7, characterized in that: The loading exception processing module is further used to: obtain the startup information of the hard disk currently in use; based on the startup information of the hard disk currently in use, call the hardware standard information to complete the hardware device initialization process inside the BIOS.

9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the processor is used to implement the steps of the server startup method according to any one of claims 1 to 6 when executing a computer program stored in the memory.

10. A readable storage medium, characterized in that: The readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the server startup method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Safety starting method preventing central processing unit (CPU) from self locking

    CN102622249A

  • Method for automatically adjusting hard disk starting device according to different pieces of configuration information

    CN105607911A

  • Method, device and equipment for safely starting RAID card and computer readable storage medium

    CN107766734A

  • Data processing method and apparatus and electronic apparatus

    CN109446234A

  • RAID configuration method and device of server, computer equipment and storage medium

    CN110045991A