CN118034788A - Hard disk type-based starting method - Google Patents

Hard disk type-based starting method Download PDF

Info

Publication number
CN118034788A
CN118034788A CN202211355276.2A CN202211355276A CN118034788A CN 118034788 A CN118034788 A CN 118034788A CN 202211355276 A CN202211355276 A CN 202211355276A CN 118034788 A CN118034788 A CN 118034788A
Authority
CN
China
Prior art keywords
hard disk
type
processing unit
management control
control unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211355276.2A
Other languages
Chinese (zh)
Inventor
李欣忆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kunda Computer Technology Kunshan Co Ltd
Mitac Computing Technology Corp
Original Assignee
Kunda Computer Technology Kunshan Co Ltd
Mitac Computing Technology Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kunda Computer Technology Kunshan Co Ltd, Mitac Computing Technology Corp filed Critical Kunda Computer Technology Kunshan Co Ltd
Priority to CN202211355276.2A priority Critical patent/CN118034788A/en
Publication of CN118034788A publication Critical patent/CN118034788A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention relates to the technical field of data processing, and provides a hard disk type-based starting method, which comprises the following steps: (A) A processing unit transmits a boot option inquiry to a baseboard management control unit, so that the baseboard management control unit returns a most preferred boot hardware type; (B) The processing unit judges whether the type of the hardware which is started most preferentially is a hard disk or not; (C) When the processing unit determines that the type of the hardware which is started most preferentially is a hard disk, the processing unit transmits a hard disk type query to the baseboard management control unit, so that the baseboard management control unit returns the type of the hard disk which is started most preferentially; and (D) the processing unit starts the machine by using the hard disk of the type of the hard disk which is started most preferentially.

Description

Hard disk type-based starting method
[ Field of technology ]
The invention relates to the technical field of data processing, in particular to a hard disk type-based starting method.
[ Background Art ]
In the existing basic input/output system (Basic Input Output System, BIOS), the user can select which device to start up first after entering the BIOS setting mode, which function is particularly useful for installing an operating system, such as an optical drive, a hard disk, a flash memory, and the like. However, the system needs to be restarted after the start-up sequence is set, which is very time-consuming.
Currently, the priority of the device can be set through the system boot option setting instruction (SET SYSTEM Boot Options Command) in the instruction of the intelligent platform management interface (INTELLIGENT PLATFORM MANAGEMENT INTERFACE, IPMI) without restarting.
However, the hard disk HARD DISK DRIVE, HDD has a variety of categories that can be broadly classified into serial ATA (SERIAL ATA, SATA), peripheral component interconnect Express (PCI Express, PCIe), non-volatile memory storage (Non-Volatile Memory Express, NVMe), and DCPMM. The IPMI command can only set the boot sequence of the hard disk, but cannot specify the boot sequence of the hard disk type. For example, the IPMI command can set the hard disk to have the highest priority, but cannot set the PCIe type hard disk in the hard disk to have the highest priority, so that the user can only check whether the PCIe type hard disk has the highest priority after the user starts up the device. If not, BIOS needs to be performed to reset the starting sequence of the hard disk, but the hard disk of the PCIe type still cannot be designated as the hard disk with the highest priority, so that the actions are required to be repeated all the time, and the starting sequence is corrected and restarted until the hard disk of the PCIe type is the hard disk with the highest priority.
[ Invention ]
The invention mainly aims to provide a hard disk type-based starting method capable of designating the starting sequence of hard disk types.
In order to solve the above-mentioned problems, the present invention provides a boot method based on a hard disk type, which is implemented by a computer system that includes a baseboard management control unit and a processing unit electrically connected to a storage unit, and the baseboard management control unit stores a basic input/output program code, the baseboard management control unit stores a most preferred boot hardware type and a most preferred boot hard disk type, the processing unit executes the basic input/output program code to execute firmware steps defined in the basic input/output program code, the method includes the following steps: (A) The processing unit transmits a boot option inquiry to the baseboard management control unit so that the baseboard management control unit returns the most preferred boot hardware type; (B) The processing unit judges whether the type of the hardware which is started most preferentially is a hard disk or not; (C) When the processing unit determines that the type of the hardware which is started most preferentially is a hard disk, the processing unit transmits a hard disk type query to the baseboard management control unit, so that the baseboard management control unit returns the type of the hard disk which is started most preferentially; and (D) the processing unit starts the machine by using the hard disk of the type of the hard disk which is started most preferentially.
Optionally, in step (a), the baseboard management control unit returns a target flag value corresponding to the most preferred boot hardware type, and in step (C), the processing unit determines whether the target flag value corresponds to a hard disk according to the target flag value.
Optionally, the method further comprises the following steps after the step (C): (E) When the processing unit determines that the hardware type of the most preferred boot hardware is that the hard disk is not the hard disk, the processing unit boots with the hardware of the most preferred boot hardware type.
Optionally, step (D) comprises the sub-steps of: the processing unit obtains a plurality of hard disk information corresponding to the hard disks respectively from a plurality of hard disks capable of being started, wherein each hard disk information comprises a hard disk type related to the corresponding hard disk and a hard disk path related to the corresponding hard disk; (D-2) the processing unit obtains target hard disk information comprising the type of the most preferred boot hard disk from the hard disk information according to the type of the most preferred boot hard disk; and (D-3) the processing unit starts the machine by the hard disk of the type of the hard disk which is started most preferentially according to the hard disk path of the target hard disk information.
Optionally, the baseboard management control unit further stores a specified instruction type, and in step (C), the baseboard management control unit further returns the specified instruction type, and after step (D), the method further includes the following steps: (E) The processing unit determines whether the specified instruction type is disposable; (F) When the processing unit determines that the designated instruction type is one-time, the processing unit updates the type of the hardware which is started most preferably and the type of the hard disk which is started most preferably to be initial values; and (G) ending the flow when the processing unit determines that the specified instruction type is not disposable.
Optionally, the baseboard management control unit is electrically connected to an input unit, and before step (a), the method further includes the following steps: (H) When the baseboard management control unit receives a first setting instruction related to setting the type of the first-priority boot hardware as a hard disk and a second setting instruction related to setting the type of the first-priority boot hard disk as a specified hard disk type from the input unit, the baseboard management control unit updates the type of the first-priority boot hardware and the type of the first-priority boot hard disk.
Optionally, in step (H), when the baseboard management control unit further receives a third setting instruction related to setting the first setting instruction and the second setting instruction as a specified instruction type from the input unit, the specified instruction type is stored, and the specified instruction type includes one-time and permanent.
The invention has the following effects: when the type of the hardware which is started most preferably is determined to be the hard disk, the processing unit transmits the type inquiry of the hard disk to the baseboard management control unit, so that the baseboard management control unit returns the type of the hard disk which is started most preferably, and therefore the processing unit can start with the hard disk which is started most preferably.
[ Description of the drawings ]
Other features and advantages of the present invention will become apparent from the following description of the embodiments with reference to the drawings, in which:
FIG. 1 is a block diagram illustrating a computer system for implementing one embodiment of a hard disk type based boot method of the present invention;
FIG. 2 is a flow chart illustrating the embodiment of the hard disk type based boot method of the present invention;
Fig. 3 is a flowchart that assists in illustrating the sub-steps of step 37 of fig. 2.
The reference numerals in the figures illustrate: 1. a computer system; 12. a storage unit; 13. a substrate management control unit; 14. a processing unit; 2. an input unit.
[ Detailed description ] of the invention
Before the present invention is described in detail, it should be noted that in the following description, like components are denoted by the same reference numerals.
Referring to fig. 1, a computer system 1 for implementing an embodiment of a hard disk type-based boot sequence setting method according to the present invention is illustrated, wherein the computer system 1 includes a storage unit 12, a baseboard management control unit 13, and a processing unit 14 electrically connected to the storage unit 12 and the baseboard management control unit 13.
The computer system 1 is, for example, a desktop computer, a notebook computer, a server or other system devices with a BIOS.
The storage unit 12 is, for example, a flash memory (flash memory), and stores a basic input/output program code.
The baseboard management control unit 13 is electrically connected to an input unit 2 for a baseboard management controller (Board Management Controller, BMC), and stores a most preferred boot hardware type and a most preferred boot hard disk type. The input unit 2 is, for example, an IPMI message handler (IPMI MESSAGE HANDLER), in this embodiment, the input unit 2 is electrically connected to the baseboard management control unit 13 through a local area network port (Local Area Network port, LAN port), the most preferred type of boot hardware includes, for example, a hard disk, an optical drive, and a network adapter, and the most preferred type of boot hard disk includes, for example, SATA, PCIe, DCPMM, non-volatile memory storage (Non-Volatile Memory Express, NVMe), and universal serial bus (Universal Serial Bus, USB), but is not limited thereto.
The processing unit 14 is, for example, a System on a Chip (SoC) or an implementation composed of a central processing unit (Central Processing Unit, CPU) and a platform path controller (Platform Controller Hub, PCH).
Referring to fig. 1 and 2, the embodiment of how the computer system 1 performs the boot sequence setting method based on the hard disk type of the present invention is described. The steps involved in the embodiments are described in detail below.
In step 31, when the baseboard management control unit 13 receives a first setting instruction related to setting the most preferred boot hardware type as a hard disk, a second setting instruction related to setting the most preferred boot hardware type as a specified hard disk type, and a third setting instruction related to setting the first setting instruction and the second setting instruction as a specified instruction type from the input unit 2, the baseboard management control unit 13 updates the most preferred boot hardware type and the most preferred boot hardware type according to the first setting instruction and the second setting instruction, and stores the specified instruction types of the third setting instruction to set the first setting instruction and the second setting instruction, wherein the specified instruction types include one-time and permanent.
It should be noted that, in the present embodiment, in step 31, the baseboard management control unit 13 receives the first setting instruction, the second setting instruction, and the third setting instruction after the initialization of the baseboard management control unit 13 is completed after the computer system 1 is powered on, but not limited to this.
In step 32, the processing unit 14 executes the bios program code to send a boot option inquiry to the bmc 13.
It is particularly noted that the first setting instruction, the second setting instruction, the third setting instruction are, for example, BMC instructions, and the boot option inquiry is, for example, OEM instructions.
In step 33, the baseboard management control unit 13 transmits the most preferred boot hardware type to the processing unit 14.
In step 34, the processing unit 14 determines whether the most preferred boot hardware type is a hard disk. When the processing unit 14 determines that the most preferred boot hardware type is a hard disk, the flow proceeds to step 35; when the processing unit 14 determines that the most preferred boot hardware type is not a hard disk, the flow proceeds to step 40.
It should be noted that in the present embodiment, each hardware type corresponds to a flag value, in step 33, the boot option information includes a target flag value corresponding to the most preferred boot hardware type, in step 34, the processing unit 14 determines whether the target flag value corresponds to a hard disk according to the target flag value, but not limited thereto.
In step 35, the processing unit 14 transmits a hard disk type inquiry to the baseboard management control unit 13.
In step 36, the baseboard management control unit 13 transmits the most preferred boot hard disk type and the specified instruction type to the processing unit 14.
In step 37, the processing unit 14 boots with the hard disk of the most preferred boot hard disk type.
Referring to fig. 3, step 37 includes the following sub-steps.
In sub-step 371, the processing unit 14 obtains a plurality of hard disk information corresponding to the hard disks respectively from a plurality of hard disks (not shown) capable of being powered on, wherein each hard disk information includes a hard disk type associated with the corresponding hard disk and a hard disk path associated with the corresponding hard disk.
It should be noted that, in the present embodiment, the processing unit 14 executes a basic input/output program code of the basic input/output program code, and searches all boot options (types of boot hard disks and corresponding boot paths) according to a device path protocol (DEVICE PATH protocol) defined by a unified extensible firmware interface specification (Unified Extensible FIRMWARE INTERFACE Specifications), so as to obtain the hard disk information, where a hard disk path of each hard disk information is, for example, a file path under the UEFI Spec, but not limited thereto.
In sub-step 372, the processing unit 14 obtains a target hard disk information including the most preferred boot hard disk type from the hard disk information according to the most preferred boot hard disk type.
In sub-step 373, the processing unit 14 boots with the hard disk of the most preferred boot hard disk type according to the hard disk path of the target hard disk information.
In step 38, the processing unit 14 determines whether the specified instruction type is disposable. When the processing unit 14 determines that the specified instruction type is one-time, the flow proceeds to step 39; and when the processing unit 14 determines that the specified instruction type is not one-time, the flow is ended.
It should be noted that in other embodiments, in step 36, the baseboard management control unit 13 may only transmit the most preferred boot-strap type, and the process ends after step 37, i.e. steps 38 and 39 are not performed, but not limited thereto.
In step 39, the processing unit 14 updates the most preferred boot hardware type and the most preferred boot hard disk type to initial values.
It is to be noted that, when the processing unit 14 determines that the designated instruction type is one-time, it indicates that the settings made by the first setting instruction and the second setting instruction can be applied only once, so that the most preferred boot hardware type and the most preferred boot hard disk type updated according to the first setting instruction and the second setting instruction need to be updated to initial values in step 31.
In step 40, the processing unit 14 boots with the hardware of the most preferred boot hardware type.
It should be noted that steps 32-40 are a part of the Power-On Self-Test (POST) process performed during the Power-On process, i.e., steps 32-40 are firmware steps defined in the bios code performed by the processing unit 14.
In summary, in the method for booting based on a hard disk type according to the present invention, when the most preferred boot hardware type is determined to be a hard disk, the baseboard management control unit 13 updates the most preferred boot hardware type and the most preferred boot hard disk type according to the first setting instruction, the second setting instruction, and the third setting instruction, and stores the specified instruction type, and the processing unit 14 transmits the inquiry of the hard disk type to the baseboard management control unit 13, so that the baseboard management control unit 13 returns the most preferred boot hard disk type, thereby, the processing unit 14 can boot with the most preferred boot hard disk type hard disk, and the user does not need to first enter the BIOS setting mode to set according to the specified instruction type, and in addition, the processing unit 14 can determine whether the first setting instruction and the second setting instruction belong to a disposable or permanent type, so that the purpose of the present invention can be achieved.
However, the foregoing is only illustrative of the present invention and is not to be construed as limiting the scope of the invention, which is defined by the appended claims and their equivalents.

Claims (7)

1. The method is implemented by a computer system, wherein the computer system comprises a baseboard management control unit and a processing unit electrically connected with a storage unit, the storage unit stores a basic input/output program code, the baseboard management control unit stores a most-preferred boot hardware type and a most-preferred boot hard disk type, and the processing unit executes the basic input/output program code to execute firmware steps defined in the basic input/output program code, and the method is characterized by comprising the following steps:
(A) The processing unit transmits a boot option inquiry to the baseboard management control unit so that the baseboard management control unit returns the most preferred boot hardware type;
(B) The processing unit judges whether the type of the hardware which is started most preferentially is a hard disk or not;
(C) When the processing unit determines that the type of the hardware which is started most preferentially is a hard disk, the processing unit transmits a hard disk type query to the baseboard management control unit, so that the baseboard management control unit returns the type of the hard disk which is started most preferentially; and
(D) And the processing unit starts the machine by using the hard disk of the type of the hard disk which is started most preferentially.
2. The method of claim 1, wherein in step (a), the baseboard management control unit returns a target flag value corresponding to the most preferred boot hardware type, and in step (C), the processing unit determines whether the target flag value corresponds to a hard disk according to the target flag value.
3. The hard disk type-based boot method according to claim 1, further comprising the steps of, after step (C):
(E) When the processing unit determines that the hardware type of the most preferred boot hardware is that the hard disk is not the hard disk, the processing unit boots with the hardware of the most preferred boot hardware type.
4. The hard disk type based boot method of claim 1, wherein the step (D) comprises the sub-steps of:
The processing unit obtains a plurality of hard disk information corresponding to the hard disks respectively from a plurality of hard disks capable of being started, wherein each hard disk information comprises a hard disk type related to the corresponding hard disk and a hard disk path related to the corresponding hard disk;
(D-2) the processing unit obtains target hard disk information comprising the type of the most preferred boot hard disk from the hard disk information according to the type of the most preferred boot hard disk; and
And (D-3) the processing unit starts the machine by the hard disk of the type of the hard disk which is started most preferentially according to the hard disk path of the target hard disk information.
5. The method of claim 1, wherein the baseboard management control unit further stores a specified command type, and in step (C), the baseboard management control unit further returns the specified command type, and after step (D), the method further comprises the steps of:
(E) The processing unit determines whether the specified instruction type is disposable;
(F) When the processing unit determines that the designated instruction type is one-time, the processing unit updates the type of the hardware which is started most preferably and the type of the hard disk which is started most preferably to be initial values; and
(G) And when the processing unit determines that the specified instruction type is not disposable, ending the flow.
6. The method of claim 1, wherein the baseboard management control unit is electrically connected to an input unit, and further comprising the following steps before the step (a):
(H) When the baseboard management control unit receives a first setting instruction related to setting the type of the first-priority boot hardware as a hard disk and a second setting instruction related to setting the type of the first-priority boot hard disk as a specified hard disk type from the input unit, the baseboard management control unit updates the type of the first-priority boot hardware and the type of the first-priority boot hard disk.
7. The method of claim 6, wherein in step (H), when the baseboard management control unit further receives a third setting instruction from the input unit regarding setting the first setting instruction and the second setting instruction as a specified instruction type, the specified instruction type is stored, the specified instruction type includes one-time and permanent.
CN202211355276.2A 2022-11-01 2022-11-01 Hard disk type-based starting method Pending CN118034788A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211355276.2A CN118034788A (en) 2022-11-01 2022-11-01 Hard disk type-based starting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211355276.2A CN118034788A (en) 2022-11-01 2022-11-01 Hard disk type-based starting method

Publications (1)

Publication Number Publication Date
CN118034788A true CN118034788A (en) 2024-05-14

Family

ID=91000850

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211355276.2A Pending CN118034788A (en) 2022-11-01 2022-11-01 Hard disk type-based starting method

Country Status (1)

Country Link
CN (1) CN118034788A (en)

Similar Documents

Publication Publication Date Title
US9122501B1 (en) System and method for managing multiple bios default configurations
CN106681751B (en) Unified firmware management system and management method and computer readable medium
US20170228228A1 (en) Remote launch of deploy utility
US10031736B2 (en) Automatic system software installation on boot
US10019253B2 (en) Systems and methods of updating hot-pluggable devices
US9542201B2 (en) Network bios management
US8751783B2 (en) Booting computing devices with EFI aware operating systems
US8239665B2 (en) Methods, systems and media for configuring boot options
US7797526B2 (en) Service processor host flash update over LPC
US20130080754A1 (en) Service Profile Based Peripheral Component Interconnect Device Enumeration And Option ROM Loading
WO2018076792A1 (en) Method and device for disk management in arm device and arm device
US12001285B2 (en) System booting method and apparatus, node device, and computer-readable storage medium
CN109426613B (en) Method for retrieving debugging data in UEFI and computer system thereof
WO2016074127A1 (en) Computer device and memory starting method for computer device
JP6868087B2 (en) Communication channel method and system to the management controller
WO2023147748A1 (en) Method and apparatus for initializing smart network interface card by server, device, and medium
TWI813887B (en) Method and system for booting from a split bios image
CN110688235A (en) System and method for sharing wireless connection information between UEFI firmware and OS
CN116627472A (en) Firmware program upgrading method and server of high-speed peripheral component equipment
CN118034788A (en) Hard disk type-based starting method
TWI812521B (en) Boot method based on hard disk type
CN107357400B (en) Method for automatically starting up hard disk with specified operating system type
US11354109B1 (en) Firmware updates using updated firmware files in a dedicated firmware volume
TW202418070A (en) Boot method based on hard disk type
CN112667544A (en) Method, device, system and medium for controlling mainboard slot enabling

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination