CN113127068A - Hardware setting device and hardware setting method thereof - Google Patents

Hardware setting device and hardware setting method thereof Download PDF

Info

Publication number
CN113127068A
CN113127068A CN201911389948.XA CN201911389948A CN113127068A CN 113127068 A CN113127068 A CN 113127068A CN 201911389948 A CN201911389948 A CN 201911389948A CN 113127068 A CN113127068 A CN 113127068A
Authority
CN
China
Prior art keywords
hardware setting
hardware
peripheral device
setting
operating system
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
CN201911389948.XA
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.)
Realtek Semiconductor Corp
Original Assignee
Realtek Semiconductor 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 Realtek Semiconductor Corp filed Critical Realtek Semiconductor Corp
Priority to CN201911389948.XA priority Critical patent/CN113127068A/en
Publication of CN113127068A publication Critical patent/CN113127068A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers

Abstract

A hardware setting device and a hardware setting method thereof. The hardware setting method is used for: starting an operating system; after starting the operating system, extracting at least one hardware setting related to the peripheral device from the pre-boot memory; and setting the peripheral device according to at least one hardware setting.

Description

Hardware setting device and hardware setting method thereof
Technical Field
The present invention relates to a hardware setting device and a hardware setting method thereof, and more particularly, to a hardware setting device and a hardware setting method thereof for automatically setting hardware in advance.
Background
In the prior art, a computer can connect and control a plurality of peripheral devices. Specifically, after a computer is booted, an operating system (e.g., a windows operating system) is executed first, and a user needs to execute device management software (e.g., a device manager of the windows operating system) after the operating system sets an operating environment, so as to adjust and set different peripheral devices one by one.
Disclosure of Invention
The invention aims to provide a setting method for a hardware device, which comprises the following steps: starting an operating system; after starting the operating system, extracting at least one hardware setting related to the peripheral device from the pre-boot memory; and setting the peripheral device according to at least one hardware setting.
The invention also provides a hardware setting device, which comprises a processing unit, a pre-boot memory and a system memory. The pre-boot memory stores at least one hardware setting associated with the peripheral device. The system memory stores programs. After the program is started, the processing unit is enabled to: after starting the operating system, extracting at least one hardware setting related to the peripheral device from the pre-boot memory; and setting the peripheral device according to at least one hardware setting.
Drawings
Examples of the present invention are best understood from the following detailed description when read with the accompanying drawing figures. It should be noted that the various features may not be drawn to scale. In fact, the dimensions of the various features may be arbitrarily increased or reduced for clarity of discussion.
Fig. 1A is a block diagram of a hardware setting apparatus according to some embodiments of the invention.
FIG. 1B is a block diagram of a hardware configuration apparatus according to some embodiments of the invention.
Fig. 2 is a flow chart of a hardware configuration method according to some embodiments of the invention.
Fig. 3A to 3C are flowcharts of a hardware setting method according to some embodiments of the invention.
Detailed Description
Embodiments of the present invention will be discussed in more detail below. It should be appreciated, however, that the present invention provides many applicable concepts that can be embodied in a wide variety of specific contexts. The particular embodiments discussed are merely illustrative and do not limit the scope of the invention.
In order to automatically load the relevant settings of a peripheral device (peripheral device) after an operating system (operating system) of various devices is started, so as to accelerate the use flow of the peripheral device, the invention provides a hardware setting device 10. Referring to fig. 1A, a block diagram of a hardware setting apparatus 10 according to some embodiments of the invention is shown. The hardware setting apparatus 10 includes a processing unit 101, a pre-boot memory 103, and a system memory 105.
In some embodiments, the pre-boot memory 103 and the system memory 105 are different memory blocks belonging to the same memory hardware. In some embodiments, preboot memory 103 and system memory 105 are different memory hardware. The pre-boot memory 103 may be configured to be used by a Basic Input/Output System (BIOS), a Unified Extensible Firmware Interface (UEFI), or a pre-boot eXecution Environment (PXE) Interface.
Specifically, the hardware configuration apparatus 10 is electrically connected to the peripheral device 20 via a connection interface (e.g., an I/O interface), and the pre-boot memory 103 stores at least one hardware configuration 20S associated with the peripheral device 20. The system memory 105 stores a program PG. The processing unit 101, the pre-boot memory 103, and the system memory 105 are electrically connected via a bus 107. When the hardware configuration apparatus 10 is powered on, executes a boot program (e.g., BIOS and boot loader) and starts the operating system, the processing unit 101 may execute the program PG stored in the system memory 105 via the bus 107, so that the processing unit 101 executes the hardware configuration function of the peripheral device.
Specifically, after the program PG is executed, the processing unit 101 extracts at least one hardware setting 20S related to the peripheral device 20 from the pre-boot memory 103, and sets the peripheral device 20 according to the at least one hardware setting 20S. In more detail, when the operating system is started, the execution of the program PG is automatically triggered, and the execution of the program PG causes the processing unit 101 to extract at least one hardware setting 20S related to the peripheral device 20 from the pre-boot memory 103, and set the peripheral device 20 according to the at least one hardware setting 20S. In this way, the peripheral device 20 can complete the related settings based on the at least one hardware setting 20S stored in the pre-boot memory 103 without waiting for the operating system to complete the setting of the operating environment and without the user additionally executing the device management software under the operating system.
In some embodiments, at least one hardware setting 20S may be used to set various functions of the peripheral device 20. For example, the at least one hardware setting 20S may be used to turn on or off indicator lights, power saving functions, wake-on-network functions, and the like of the peripheral device 20.
Details of the operation will be further described below. Specifically, when program PG executes, processing unit 101 is caused to issue a first system call (system call) to the operating system (not shown). Subsequently, the operating system retrieves the at least one hardware setting 20S associated with the peripheral device 20 from the pre-boot memory 103 according to the first system call and responds to the first system call after retrieving the at least one hardware setting 20S. Then, the processing unit 101 can obtain at least one hardware setting 20S stored in the pre-boot memory 103 and associated with the peripheral device 20 according to the response of the first system call. In some embodiments, the first system call is further configured to notify the operating system to write the at least one hardware setting 20S into the system memory 105 for standby, so that the processing unit 101 can fetch the at least one hardware setting 20S from the system memory 105 and utilize the at least one hardware setting in subsequent operations.
Next, after obtaining the at least one hardware setting 20S, the processing unit 101 executes a driver (not shown) related to the peripheral device 20, and sets the peripheral device 20 based on the at least one hardware setting 20S through execution of the driver. Referring also to fig. 1B, in some embodiments, after the peripheral device 20 completes the relevant settings based on at least one hardware setting 20S, the peripheral device 20 will change the contents of the settings during operation and generate the setting feedback information 20F based on the contents of the settings change. Subsequently, the peripheral device 20 transmits the setting feedback information 20F back to the hardware setting device 10 through the connection interface with the hardware setting device 10, so as to notify the hardware setting device 10 that the setting of the peripheral device 20 is changed.
Accordingly, the processing unit 101 is configured to determine an updated hardware setting (not shown) after receiving the setting feedback information 20F. The updated hardware setting includes a setting changed by the peripheral device 20. Then, the processing unit 101 updates at least one hardware setting 20S stored in the pre-boot memory 103 and associated with the peripheral device 20 according to the updated hardware setting. In more detail, the processing unit 101 issues a second system call to the operating system based on the updated hardware setting to notify the operating system to update at least one hardware setting 20S stored in the pre-boot memory 103 and associated with the peripheral device 20 according to the updated hardware setting.
In this way, when the hardware configuration apparatus 10 is restarted and performs the configuration on the peripheral device 20, since the at least one hardware configuration 20S stored in the pre-boot memory 103 is the updated configuration, the subsequent configuration on the peripheral device 20 using the at least one hardware configuration 20S will cause the peripheral device 20 to operate based on the updated hardware configuration.
In some embodiments, the user may directly make changes to the at least one hardware setting 20S stored in the pre-boot memory 103. Specifically, the user can input a hardware setting change instruction (not shown) to the hardware setting device 10 through a Human Interface Device (HID) (not shown). During execution of the program PG, the trigger processing unit 101 receives a hardware setting change instruction. Subsequently, the processing unit 101 may update at least one hardware setting 20S stored in the pre-boot memory 103 according to the hardware setting change instruction.
In some embodiments, the foregoing steps may be operated in a state where the operating system is running. Specifically, the processing unit 101 may issue a third system call to the operating system according to the hardware setting change instruction to notify the operating system to update the at least one hardware setting 20S stored in the pre-boot memory 103 and associated with the peripheral device 20. In this way, the at least one hardware setting 20S stored in the pre-boot memory 103 can be adjusted according to the requirement.
Some embodiments of the present invention include a hardware configuration method, a flowchart of which is shown in FIG. 2. The hardware setting method of these embodiments is implemented by a hardware setting device (e.g., the hardware setting device 10 of the foregoing embodiments). The detailed operation of the method is as follows.
First, step S201 is executed to start the operating system. Next, step S202 is executed, and after the operating system is started, at least one hardware setting related to the peripheral device is extracted from the pre-boot memory. Step S203 is executed to set the peripheral device according to at least one hardware setting.
Some embodiments of the present invention include a hardware configuration method, and the flow charts thereof are shown in fig. 3A to 3B. The hardware setting method of these embodiments is implemented by a hardware setting device (e.g., the hardware setting device 10 of the foregoing embodiments). The detailed operation of the method is as follows.
First, step S301 is executed to start the operating system. Step S302 is executed to issue a first system call to the operating system. The operating system extracts at least one hardware setting related to the peripheral device from the pre-boot memory according to the first system call, and responds to the first system call after the at least one hardware setting is extracted. Step S303 is executed to obtain at least one hardware setting related to the peripheral device stored in the pre-boot memory according to the response corresponding to the first system call.
In some embodiments, the first system call is also used to notify the operating system to write at least one hardware setting to the system memory spare. In step S303, at least one hardware setting can be retrieved from the system memory and utilized. Then, step S304 is executed to execute a driver associated with the peripheral device to configure the peripheral device according to at least one hardware setting.
When the peripheral device completes the related setting based on at least one hardware setting, the peripheral device changes the setting content in the running process and generates the setting feedback information based on the content of the setting change. Step S305 is executed to receive setting feedback information from the peripheral device. Step S306 is executed to determine to update the hardware setting according to the setting feedback information. Step S307 is executed to issue a second system call to the operating system to notify the operating system to update at least one hardware setting related to the peripheral device stored in the pre-boot memory according to the updated hardware setting.
Referring to fig. 3C, in some embodiments, steps S308 to S309 may be selectively performed after the os is booted, so as to directly adjust the contents of the pre-boot memory. Specifically, step S308 is executed to receive a hardware setting change instruction. Step S309 is executed to issue a third system call to the operating system according to the hardware setting change instruction, so as to notify the operating system to update at least one hardware setting related to the peripheral device stored in the pre-boot memory based on the hardware setting change instruction.
It should be noted that, in some embodiments, in the hardware setting apparatus, the Processing Unit includes a logic circuit such as a Central Processing Unit (CPU) capable of executing operations and instructions, and the pre-boot Memory and the system Memory include a Non-Volatile Memory (Non-Volatile Memory), but the embodiment is not limited to the hardware components of the present invention.
The invention can be implemented in any suitable form including hardware, software, firmware or any combination of these. At least part of the invention may optionally be implemented as computer software running on one or more data processors and/or digital signal processors or configurable modular components (e.g. FPGAs).
The foregoing description has set forth briefly the features of certain embodiments of the invention so that those skilled in the art may more fully understand the various examples of the inventive content. Those skilled in the art should appreciate that they may readily use the present disclosure as a basis for designing or modifying other processes and structures for carrying out the same purposes and/or achieving the same advantages of the embodiments introduced herein. Those skilled in the art should understand that they can still make various changes, substitutions and alterations herein without departing from the spirit and scope of the present disclosure.
Description of the reference numerals
10 hardware setting device
101 processing unit
103 pre-starting up memory
105 system memory
107 bus
20 peripheral device
20S at least one hardware setting
20F setting feedback information
PG program
S201 to S203
S301 to S309

Claims (10)

1. A hardware setting method, comprising:
after the operating system is started, extracting at least one hardware setting related to the peripheral device from a pre-boot memory; and
setting the peripheral device according to the at least one hardware setting.
2. The hardware setting method of claim 1, wherein extracting the at least one hardware setting from the pre-boot memory further comprises:
issuing a system call to the operating system; and
obtaining the at least one hardware setting stored by the pre-boot memory and associated with the peripheral device according to a response corresponding to the system call.
3. The hardware setup method of claim 2, wherein the system call is further to notify the operating system to write the at least one hardware setup to system memory.
4. The hardware setup method of claim 1 wherein setting up the peripheral device according to the at least one hardware setup further comprises:
executing a driver associated with the peripheral device to configure the peripheral device according to the at least one hardware setting.
5. The hardware setting method of claim 1, further comprising:
receiving setting feedback information from the peripheral device.
6. The hardware setting method of claim 5, further comprising:
determining to update hardware settings according to the setting feedback information; and
updating the at least one hardware setting stored by the pre-boot memory and associated with the peripheral device according to the updated hardware setting.
7. The hardware setting method of claim 6, wherein updating the at least one hardware setting stored in the pre-boot memory further comprises:
issuing a system call to the operating system to notify the operating system to update the at least one hardware setting stored in the pre-boot memory associated with the peripheral device according to the updated hardware setting.
8. The hardware setting method of claim 1, further comprising:
receiving a hardware setting change instruction; and
and updating the at least one hardware setting stored in the pre-boot memory and related to the peripheral device according to the hardware setting change instruction.
9. The hardware setting method of claim 8, wherein updating the at least one hardware setting stored in the pre-boot memory further comprises:
issuing a system call to the operating system to notify the operating system to update the at least one hardware setting stored in the pre-boot memory associated with the peripheral device.
10. A hardware setting device, comprising:
a processing unit;
a pre-boot memory for storing at least one hardware setting associated with a peripheral device;
a system memory to store a program, wherein execution of the program causes the processing unit to:
retrieving the at least one hardware setting associated with the peripheral device from the pre-boot memory after an operating system is started; and
setting the peripheral device according to the at least one hardware setting.
CN201911389948.XA 2019-12-30 2019-12-30 Hardware setting device and hardware setting method thereof Pending CN113127068A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911389948.XA CN113127068A (en) 2019-12-30 2019-12-30 Hardware setting device and hardware setting method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911389948.XA CN113127068A (en) 2019-12-30 2019-12-30 Hardware setting device and hardware setting method thereof

Publications (1)

Publication Number Publication Date
CN113127068A true CN113127068A (en) 2021-07-16

Family

ID=76767430

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911389948.XA Pending CN113127068A (en) 2019-12-30 2019-12-30 Hardware setting device and hardware setting method thereof

Country Status (1)

Country Link
CN (1) CN113127068A (en)

Similar Documents

Publication Publication Date Title
CN109478135B (en) Computer system and method for rebooting a computer system
JP6272991B2 (en) Selective power management for pre-boot firmware updates
TWI525542B (en) System and method for starting and updating UEFI BIOS, recording media and computer program products
US10055218B2 (en) System and method for adding and storing groups of firmware default settings
US20130086571A1 (en) Dynamically Updating Firmware In A Computing System
US20110271268A1 (en) System and method for updating unified extensible firmware interface setting information
US8443183B2 (en) Pre-boot loader for reducing system boot time
US10564707B2 (en) System management controller
CN109408122B (en) Equipment starting method, electronic equipment and computer storage medium
US9411605B2 (en) Device-less and system agnostic unified extensible firmware interface (UEFI) driver
US20070005949A1 (en) Method for Booting a Computer System
EP3572933A1 (en) Updating firmware via a remote device
CN102053848A (en) Automatic installation method for Linux operating system
US11030047B2 (en) Information handling system and method to restore system firmware to a selected restore point
US9411602B2 (en) Techniques for booting an information processing system
US11500647B2 (en) Systems and methods for achieving faster boot times using BIOS attribute mitigation
TWI475487B (en) Booting method and electronic device
CN113127068A (en) Hardware setting device and hardware setting method thereof
JP5837990B2 (en) Computer system operating method and computer system
WO2019100704A1 (en) Starting method for multi-mode iot device, multi-mode iot device, and storage medium
TWI733284B (en) Hardware setting device and hardware setting method thereof
JP6349827B2 (en) Information processing apparatus, initialization method, and program
JP5619999B2 (en) Method for executing utility program, computer system and computer program product
CN115640053A (en) Equipment starting method and device, storage medium and electronic equipment
US20240012653A1 (en) Method and computing system for returning to a bios setup utility while in a shell environment during a booting process

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