Boot display method and device of electronic equipment, equipment and storage medium
Patent Information
- Application Number
- CN202310342990.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2026-09-08
- Estimated Expiration
- 2043-03-31
AI Technical Summary
[0004]本申请提供的电子设备的开机显示方法、装置、设备及存储介质,用以解决相关技术中电子设备在开机过程中无法及时显示电子设备的运行状态的问题
[0058] This application provides a method, apparatus, device, and storage medium for powering on an electronic device. The method includes: responding to a received startup command, executing first code corresponding to a first stage according to the startup command; the first stage is a security stage in the startup phase of the electronic device; configuring configuration information of an associated device; the associated device is used to display images for the electronic device; the configuration information is initialization information of the associated device; calling and executing second code corresponding to a second stage; the second stage is the remaining stages in the startup phase excluding the security stage; during the execution of the second code, synchronously displaying the running status information corresponding to the second code through the associated device. Compared to related technologies where the electronic device needs to go through multiple stages of code execution until the DXE (Driver Execution Environment) stage to achieve the power-on display function, the method provided in this embodiment synchronously displays the running status information of subsequent stages immediately after the security stage in the startup phase. This is beneficial for users to know the device's running status in advance, allowing users to know the device's running status in advance during actual use or development. Furthermore, when the electronic device fails to start, the running status information displayed by the electronic device can be used to locate the fault in a timely manner.
Smart Images

Figure CN116360886B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic technology, and in particular to a power-on display method, apparatus, device, and storage medium for an electronic device. Background Technology
[0002] Currently, with the continuous development of electronic technology, the application scenarios of electronic devices such as computers and servers are becoming increasingly widespread. When an electronic device is powered on, it needs to complete the enumeration of each PCIE (peripheral component interconnect express) device in the electronic device at the DXE (Driver Execution Environment) stage before it can control the electronic device to light up the screen and display the relevant preset images.
[0003] However, during the DXE stage of the electronic device's startup process, from receiving the startup command to the actual startup phase, the device's operating status cannot be displayed to the user in real time. This makes it difficult for the user to determine the cause of the malfunction in a timely manner when the electronic device fails. Summary of the Invention
[0004] The present application provides a power-on display method, apparatus, device, and storage medium for electronic devices, which are used to solve the problem in related technologies that electronic devices cannot display their operating status in a timely manner during the power-on process.
[0005] In a first aspect, this application provides a method for displaying an electronic device upon power-on, comprising:
[0006] In response to a received startup command, the first code corresponding to the first stage is executed according to the startup command; the first stage is a security stage in the startup stage of the electronic device;
[0007] Configure the configuration information of the associated device; the associated device is used to display images for the electronic device; the configuration information is the initialization information of the associated device;
[0008] The second code corresponding to the second phase is invoked and executed; the second phase is the remaining phase in the startup phase excluding the security phase.
[0009] During the execution of the second code, the running status information corresponding to the second code is displayed synchronously through the associated device.
[0010] In one example, the associated device includes: a display control unit in the electronic device and a display unit connected to the display control unit; the configuration information for configuring the associated device includes:
[0011] The port identifier of the display control unit and the address identifier of the display unit are determined; the port identifier is used to mark the port in the display control unit that is connected to the display unit.
[0012] Load the device information of the display control unit and the attribute information of the display unit;
[0013] Write the device information of the display control unit into the configuration space corresponding to the display control unit;
[0014] Write the attribute information of the display unit into the configuration space corresponding to the display unit.
[0015] In one example, the attribute information includes the connection attributes, device attributes, and output port attributes of the display unit; writing the attribute information of the display unit into the configuration space corresponding to the display unit includes:
[0016] The system sets a first address information, a second address information, and a third address information, wherein the first address information is used to indicate the connection attribute; the second address information is used to indicate the device attribute; and the third address information is used to indicate the output port attribute.
[0017] Based on the first address information, the second address information, and the third address information, the attribute information is written into the configuration space of the display unit.
[0018] In one example, during the execution of the second code, the associated device synchronously displays the running status information corresponding to the second code, including:
[0019] During the execution of the second code, the target function currently in the execution phase and the corresponding display metrics are determined in real time.
[0020] Synchronously acquire and display the operating status parameters corresponding to the indicators to be displayed.
[0021] In one example, displaying the running status parameters corresponding to the indicator to be displayed includes:
[0022] The display information corresponding to the indicator to be displayed is acquired synchronously; wherein, the display information includes at least one of the following: font style, display position, and background style of the parameter information of the indicator to be displayed.
[0023] Based on the displayed information, the display control unit is controlled to transmit the operating status parameters corresponding to the indicator to be displayed to the display unit for synchronous display.
[0024] In one example, if the display information includes a display position, then controlling the display control unit to transmit the operating status parameters corresponding to the indicator to be displayed to the display unit for synchronous display, based on the display information, includes:
[0025] Obtain the character position of the character in the display image of the display unit;
[0026] If it is determined that the position of the character coincides with the display position in the display information, then the screen clearing function is called to clear the characters in the display interface;
[0027] Based on the display position, the display control unit is controlled to transmit the operating status parameters corresponding to the indicator to be displayed to the display unit for synchronous display.
[0028] Secondly, this application provides a power-on display device for an electronic device, comprising:
[0029] An execution unit is configured to, in response to a received startup command, execute first code corresponding to a first stage according to the startup command; the first stage is a security stage in the startup stage of the electronic device;
[0030] A configuration unit is used to configure configuration information for associated devices; the associated devices are used to display images for the electronic device; the configuration information is the initialization information of the associated devices.
[0031] The calling unit is used to call and execute the second code corresponding to the second stage; the second stage is the remaining stage in the startup stage excluding the security stage.
[0032] The synchronous display unit is used to synchronously display the running status information corresponding to the second code through the associated device during the execution of the second code.
[0033] In one example, the associated device includes: a display control unit in the electronic device and a display unit connected to the display control unit; the configuration unit includes:
[0034] The first determining module is used to determine the port identifier of the display control unit and the address identifier of the display unit; the port identifier is used to mark the port in the display control unit used to connect to the display unit;
[0035] A loading module is used to load the device information of the display control unit and the attribute information of the display unit;
[0036] The first writing module writes the device information of the display control unit into the configuration space corresponding to the display control unit;
[0037] The second writing module writes the attribute information of the display unit into the configuration space corresponding to the display unit.
[0038] In one example, the attribute information includes the connection attributes, device attributes, and output port attributes of the display unit; the second writing module is specifically used for:
[0039] The system sets a first address information, a second address information, and a third address information, wherein the first address information is used to indicate the connection attribute; the second address information is used to indicate the device attribute; and the third address information is used to indicate the output port attribute.
[0040] Based on the first address information, the second address information, and the third address information, the attribute information is written into the configuration space of the display unit.
[0041] In one example, the synchronized display unit includes:
[0042] The second determining module is used to determine the target function currently in the execution phase in real time during the execution of the second code;
[0043] The third determining module is used to determine the display index corresponding to the objective function;
[0044] The acquisition module is used to synchronously acquire the running status parameters corresponding to the indicator to be displayed;
[0045] The display module is used to display the operating status parameters corresponding to the indicator to be displayed.
[0046] In one example, the display module is specifically used for:
[0047] The display information corresponding to the indicator to be displayed is acquired synchronously; wherein, the display information includes at least one of the following: font style, display position, and background style of the parameter information of the indicator to be displayed.
[0048] Based on the displayed information, the display control unit is controlled to transmit the operating status parameters corresponding to the indicator to be displayed to the display unit for synchronous display.
[0049] In one example, if the display information includes a display position, then the display module is specifically used for:
[0050] Obtain the character position of the character in the display image of the display unit;
[0051] If it is determined that the position of the character coincides with the display position in the display information, then the screen clearing function is called to clear the characters in the display interface;
[0052] Based on the display position, the display control unit is controlled to transmit the operating status parameters corresponding to the indicator to be displayed to the display unit for synchronous display.
[0053] Thirdly, this application provides an electronic device, including: a memory and a processor;
[0054] Memory; memory for storing executable instructions of the processor;
[0055] The processor is configured to execute the method as described in any of the first aspects according to the executable instructions.
[0056] Fourthly, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any of the first aspects.
[0057] Fifthly, this application provides a computer program product comprising a computer program that, when executed by a processor, implements the method described in any one of the first aspects.
[0058] This application provides a method, apparatus, device, and storage medium for powering on an electronic device. The method includes: responding to a received startup command, executing first code corresponding to a first stage according to the startup command; the first stage is a security stage in the startup phase of the electronic device; configuring configuration information of an associated device; the associated device is used to display images for the electronic device; the configuration information is initialization information of the associated device; calling and executing second code corresponding to a second stage; the second stage is the remaining stages in the startup phase excluding the security stage; during the execution of the second code, synchronously displaying the running status information corresponding to the second code through the associated device. Compared to related technologies where the electronic device needs to go through multiple stages of code execution until the DXE (Driver Execution Environment) stage to achieve the power-on display function, the method provided in this embodiment synchronously displays the running status information of subsequent stages immediately after the security stage in the startup phase. This is beneficial for users to know the device's running status in advance, allowing users to know the device's running status in advance during actual use or development. Furthermore, when the electronic device fails to start, the running status information displayed by the electronic device can be used to locate the fault in a timely manner. Attached Figure Description
[0059] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0060] Figure 1 A schematic flowchart illustrating a power-on display method for an electronic device provided in an embodiment of this application;
[0061] Figure 2 A flowchart illustrating another method for powering on and displaying an electronic device, provided in an embodiment of this application;
[0062] Figure 3 A flowchart illustrating another method for powering on and displaying an electronic device, provided in an embodiment of this application;
[0063] Figure 4 A schematic diagram of the architecture of an electronic device provided in an embodiment of this application;
[0064] Figure 5 A schematic diagram of the structure of a power-on display device for an electronic device provided in an embodiment of this application;
[0065] Figure 6 A schematic diagram of the structure of another power-on display device for an electronic device provided in an embodiment of this application;
[0066] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.
[0067] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0068] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application.
[0069] Currently, the boot process of electronic devices typically includes multiple stages. For example, the boot process usually includes: the SEC (Security Phase), the PEI (Pre-EFI Initialization), the DXE (Driver Execution Environment), and the BDS (Boot Device Selection). The SEC stage is typically used to process system boot instructions and initialize temporary storage areas. The PEI stage is typically used to initialize available resources in the system, including memory and processor resources, to prepare the execution environment for the DXE stage. The DXE stage is typically used to initialize various devices in the system. The BDS stage is typically used to execute the corresponding system boot strategy to enable the electronic device to boot.
[0070] In related technologies, during the power-on display process of an electronic device, the device initialization in the DXE stage is usually completed before the various devices in the system can recognize and communicate with each other. Only after this stage is completed can the display screen of the electronic device display images.
[0071] During the aforementioned power-on display process, between the time the electronic device receives the startup command and the time the electronic device reaches the DXE stage, the user cannot observe the device's operating status in real time through the electronic device's display screen. This makes it impossible to quickly locate system faults when a fault occurs during the startup process.
[0072] The present application provides a power-on display method, apparatus, device, and storage medium for electronic devices to solve the aforementioned technical problems.
[0073] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0074] Figure 1 This is a flowchart illustrating a power-on display method for an electronic device provided in an embodiment of this application, as shown below. Figure 1 As shown, the method includes the following steps:
[0075] S101. In response to the received startup command, execute the first code corresponding to the first stage according to the startup command; the first stage is the security stage in the startup stage of the electronic device.
[0076] For example, the execution entity in this embodiment can be a power-on display control device, which can be a processor, a chip, etc., and this embodiment is not limited thereto. The execution entity in this embodiment is described using an electronic device as an example.
[0077] The startup command in this step can be a received power-on command or a restart command. The startup command can be generated by the user operating a preset button on the electronic device; it can also be derived from a voice control command input by the user. This embodiment does not impose specific restrictions on the generation method of the startup command.
[0078] Furthermore, the first stage can be understood as the SEC stage in the startup phase of an electronic device.
[0079] Once the electronic device receives the start command, it retrieves and executes the first code corresponding to the first stage. Specifically, the execution principle of the code in the first stage is similar to that in related technologies and will not be elaborated upon here.
[0080] S102. Configure the configuration information of the associated device; the associated device is used to display images for electronic devices; the configuration information is the initialization information of the associated device.
[0081] For example, in this embodiment, the associated device can be understood as a device used to display image information of the electronic device. For instance, a display screen connected to a computer. After the first code execution finishes, configuration operations can be performed on the associated device in the electronic device, that is, the configuration information corresponding to the associated device can be configured.
[0082] The configuration information of associated devices can be understood as the information required to ensure that associated devices can operate normally during initialization.
[0083] For example, during the operation of associated devices, in order to ensure that signals can be transmitted normally with the associated devices, the associated devices need to have their own identification information so that the associated devices can be accurately located.
[0084] S103, Invoke and execute the second code corresponding to the second stage; the second stage is the remaining stage in the startup stage excluding the security stage.
[0085] For example, in this embodiment, after the configuration information of the associated device is configured, the associated device can operate normally, that is, the electronic device can display images through the associated device. Furthermore, after the configuration of the associated device is completed, the electronic device can continue to call and run the execution code (i.e., the second code) corresponding to the remaining stages of the startup phase excluding the first stage, so that the electronic device can achieve power-on startup.
[0086] For example, in practical applications, the second stage includes: the pre-expandable firmware interface initialization stage, the driver execution environment stage, and the boot device selection stage. It should be noted that in this embodiment, when executing the driver execution environment stage in the second stage, only the configuration space needs to be configured for the remaining PCIe devices besides the associated device.
[0087] S104. During the execution of the second code, the running status information corresponding to the second code is displayed synchronously through the associated device.
[0088] For example, in this embodiment, during the execution of the execution code corresponding to the second stage by the electronic device, the electronic device will also synchronously display the running status information of the electronic device during the execution of the second code according to the initially configured associated device.
[0089] For example, the execution status information of the second code may include the identifier of the code being executed by the electronic device, as well as the execution result corresponding to the code being executed by the electronic device.
[0090] In this embodiment, after the first stage of the startup phase of the electronic device is completed, the configuration information of the associated devices in the electronic device will be configured. Subsequently, when the electronic device executes the second code, the running status information corresponding to the execution of the second code can be displayed synchronously through the associated devices, so that the user can determine the running status of the electronic device in a timely manner.
[0091] Compared to related technologies where electronic devices require multiple stages of code execution before displaying their power-on status, the method provided in this embodiment allows users to know the device's operating status in advance, enabling them to be aware of the device's operational status during actual use or development. Furthermore, when an electronic device malfunctions during startup, the displayed operating status information allows for timely fault location.
[0092] Figure 2 This is a flowchart illustrating another method for powering on and displaying an electronic device according to an embodiment of this application, as shown below. Figure 2 As shown, the method includes the following steps:
[0093] S201. In response to the received startup command, execute the first code corresponding to the first stage according to the startup command; the first stage is the security stage in the startup stage of the electronic device.
[0094] For example, the execution entity in this embodiment can be a power-on display device, which can be a processor, a chip, etc., and this embodiment is not limited thereto. The execution entity in this embodiment is described using an electronic device as an example.
[0095] The specific principle of step S201 can be found in step S101, and will not be repeated here.
[0096] S202. Determine the port identifier of the display control unit and the address identifier of the display unit; the port identifier is used to mark the port in the display control unit used to connect to the display unit.
[0097] For example, the associated device mentioned in this embodiment specifically includes a display control unit and a display unit. The display control unit is connected to the display unit, and can be used to generate control signals; the display unit can be used to display images based on the control signals sent by the display control unit. The port in the display control unit connected to the display unit has a port identifier.
[0098] When configuring the configuration information of associated devices, the port identifier of the display control unit and the address identifier of the display unit must first be configured to ensure accurate signal transmission between the display unit and the display control unit. Specifically, in this embodiment, the port identifier and / or address identifier can be identified by a combination of bus number, device number, and function number. It should be noted that configuring the corresponding port identifier and address identifier for the port of the display control unit and the display unit can be found in the principles of related technologies, and will not be elaborated here.
[0099] S203, Load the device information of the display control unit and the attribute information of the display unit.
[0100] For example, during the device configuration process, it is necessary to further load the device information corresponding to the display control unit and the attribute information of the display unit. In practical applications, the device information of the display control unit specifically includes the manufacturer identifier, the manufacturer-assigned device identifier, and the version identifier of the display control unit to provide device identification information. Furthermore, the device information of the display control unit may also include the capacity space required by the display control unit (wherein, the capacity space includes memory space and I / O space). The device identifier and version identifier can be information pre-stored in the electronic device, while the capacity space information is allocated by the electronic device based on the currently remaining capacity space.
[0101] The attribute information of the display unit can be understood as information related to the operation of the display unit. For example, it may include the memory space allocated to the display unit so that the display unit can operate based on the memory space.
[0102] S204. Write the device information of the display control unit into the configuration space corresponding to the display control unit.
[0103] For example, in this embodiment, after obtaining the device information of the display control unit, the device information of the display control unit can be written into the configuration space corresponding to the display control unit.
[0104] In one example, when performing the aforementioned device information write operation, the base address of the configuration space corresponding to the display control unit is first determined based on the pre-set first configuration space address in the electronic device. Then, according to the configuration rules of each register in the configuration space, the device information of the display control unit is written into the register corresponding to that configuration space. It can be understood that the configuration space settings corresponding to the display control unit can refer to the configuration rules corresponding to the configuration space type of non-bridge devices in related technologies, and the device information is written into the registers of the configuration space. Here, the first configuration space address can be understood as the starting address of the configuration space of the non-bridge device pre-indicated in the electronic device.
[0105] S205. Write the attribute information of the display unit into the configuration space corresponding to the display unit.
[0106] For example, in this embodiment, after obtaining the attribute information of the display unit, the attribute information of the display unit can be written into the configuration space corresponding to the display unit.
[0107] In one example, when performing the above write operation, the base address of the configuration space corresponding to the display unit is first determined based on the pre-set second configuration space address in the electronic device. Then, according to the configuration rules of each register in the configuration space, the attribute information of the display unit is written to the register corresponding to that configuration space. The second configuration space address can be understood as the starting address of the bridge device's configuration space, pre-indicated in the electronic device.
[0108] It is understood that in this embodiment, by determining the port identifier of the display control unit, the address identifier of the display unit, and setting the configuration space of the display control unit and the configuration space of the display unit respectively, the display control unit and the display unit can be accessed or controlled by the central processing unit or peripheral device in the electronic device, thereby ensuring the normal operation of the display control unit and the display unit.
[0109] In one example, the attribute information includes the display unit's connection attributes, device attributes, and output port attributes; step S205 includes the following steps:
[0110] The first step of step S205 is to set the first address information, the second address information, and the third address information, wherein the first address information is used to indicate connection attributes; the second address information is used to indicate device attributes; and the third address information is used to indicate output port attributes.
[0111] The second step of step S205: Write the attribute information into the configuration space of the display unit according to the first address information, the second address information and the third address information.
[0112] For example, in this embodiment, the attribute information corresponding to the display unit includes the display unit's connection attributes, device attributes, and output port attributes. The connection attributes of the display unit can be understood as information about other devices connected to the display unit (i.e., devices other than the display control unit), such as the bus numbers of the other devices. The device attributes of the display unit indicate the device information of the display unit itself, such as address identifier, occupied memory space, and I / O resources. The output port attributes of the display unit characterize the output attributes of the port in the display unit used to connect to the display screen for outputting displayed image information.
[0113] When writing the three types of attributes to the configuration space corresponding to the display unit, it is first necessary to determine the storage space corresponding to each of the three types of attributes. Specifically, when determining the storage space corresponding to the connection attribute (i.e., the first address information), the first base address corresponding to the connection attribute of the display device and the second base address corresponding to the device attribute of the display device can be determined by using the second configuration space address pre-set in the electronic device (i.e., the starting address of the configuration space of the bridge device in the electronic device). The base address can be understood as the starting address corresponding to each attribute when writing to the configuration space. For example, the first base address is obtained by adding a first preset offset to the second configuration space address. The second base address is obtained by adding a second preset offset to the second configuration space address, where the second preset offset is greater than the first preset offset. Then, based on the location of each register in the PCIe configuration space specification requirements, the first base address, and the second base address, the first address information and the second address information are determined respectively. Then, the connection attribute of the display device is written to the storage space indicated by the first address information, and the device attribute of the display device is written to the storage space indicated by the second address information.
[0114] Furthermore, when determining the third address information corresponding to the output port attribute, this embodiment can determine the third address information based on the pre-set IO (input / output) base address and the pre-set third offset in the electronic device. The IO base address can be understood as the starting address corresponding to the IO space of all IO ports pre-set in the electronic device. Based on this IO base address, the third address information is obtained by summing it with the pre-set register offset corresponding to the output port. Then, the obtained output port attribute is written into the third address information.
[0115] Furthermore, through the above configuration process, the configuration information of the display unit is configured.
[0116] It is understood that, in this embodiment, when configuring the configuration information corresponding to the display unit, the connection attributes, device attributes, and output port attributes of the display unit can be configured separately, thereby ensuring that the display unit can output the image information to be displayed through the output port during the second stage of the electronic device's power-on process, so that users can conveniently check the current operating status of the electronic device in a timely manner.
[0117] In one example, after configuring the associated device's configuration information, the system can control the display of a pre-defined icon on the electronic device's screen based on the pixel information of the pre-set icon style. For example, the icon could include information such as the electronic device's brand and model.
[0118] S206. Call and execute the second code corresponding to the second stage; the second stage is the remaining stage in the startup stage excluding the security stage.
[0119] S207. During the execution of the second code, the running status information corresponding to the second code is displayed synchronously through the associated device.
[0120] For example, the specific principles of steps S206-S207 can be found in steps S103 and S104, and will not be repeated here.
[0121] In this embodiment, by setting the port identifier of the display control unit, the address identifier of the display unit, and the configuration space of the display control unit and the display unit respectively, the display control unit and the display unit can be accessed or controlled by the central processing unit or peripherals in the electronic device, ensuring their normal operation. Furthermore, when configuring the configuration information corresponding to the display unit, the connection attributes, device attributes, and output port attributes of the display unit can be configured separately. This ensures that the display unit can output the required image information through the output port during the second stage of the electronic device's power-on process, allowing users to easily check the current operating status of the electronic device.
[0122] Figure 3 This is a flowchart illustrating another method for powering on and displaying an electronic device according to an embodiment of this application, as shown below. Figure 3 As shown, the method includes the following steps:
[0123] S301. In response to the received startup command, execute the first code corresponding to the first stage according to the startup command; the first stage is the security stage in the startup stage of the electronic device.
[0124] For example, the specific principle of step S301 can be found in step S101, and will not be repeated here.
[0125] S302. If it is determined that the execution result of the first code corresponding to the first stage represents the security verification result of the firmware file of the electronic device as passed, then configure the configuration information of the associated device; the associated device is used to display images for the electronic device; the configuration information is the initialization information of the associated device.
[0126] For example, in this embodiment, after executing the first code corresponding to the first stage, before configuring the configuration information of the associated device, it is also necessary to verify the running result corresponding to the execution code of the first stage. If the running result corresponding to the first stage indicates that the firmware file security verification result of the electronic device is passed, it indicates that the firmware file obtained in the current stage is safe and reliable. Therefore, the configuration information of the associated device can continue to be configured.
[0127] In one example, if the current firmware file is determined to be untrusted based on the running results, the boot process of the electronic device will be stopped.
[0128] It is understood that in this embodiment, in order to ensure the safe startup of the electronic device, the running results corresponding to the first stage will be parsed before configuring the configuration information of the electronic device's configuration file. Based on the running results, it will be determined whether the firmware file in the current electronic device is safe and reliable, so as to ensure that the electronic device can start normally.
[0129] S303, Invoke and execute the second code corresponding to the second phase; the second phase is the remaining phase in the startup phase excluding the security phase.
[0130] For example, the specific principle of step S303 can be found in step S103, and will not be repeated here.
[0131] S304. During the execution of the second code, the target function currently in the execution phase and the corresponding indicators to be displayed are determined in real time.
[0132] For example, the second code can typically be divided into functional functions that can be used to implement different functionalities. Among multiple functional functions, at least one function can be selected as the target function. During the execution of the second code, the target function currently in execution can be monitored in real time, and the corresponding indicator to be displayed for that target function can be determined.
[0133] In one example, different objective functions have different identifiers. During the execution of the second code, the identifier of the objective function can be obtained in real time, and the corresponding indicator to be displayed can be determined based on the correspondence between the identifier and the indicator to be displayed.
[0134] For example, in practical applications, the indicators to be displayed may include the central processing unit information, memory information, version information of the Baseboard Management Controller (BMC), IP address of the network configuration terminal of the Baseboard Management Controller, firmware information, etc.
[0135] S305. Synchronously acquire and display the operating status parameters corresponding to the indicators to be displayed.
[0136] For example, after determining the indicators to be displayed, the actual running status parameters corresponding to the indicators to be displayed during the execution of the target function can be obtained in real time.
[0137] It is understood that in this embodiment, different target functions in the second code correspond to their own indicators to be displayed. During the execution of the second code, the indicators to be displayed corresponding to the currently executed target function and the running status parameters corresponding to the indicators to be displayed will be obtained in real time, and the running status parameters will be displayed synchronously to the display device so that users can determine the device running status at each running stage in a timely manner, which is conducive to improving the user experience.
[0138] In one example, the step "display the running status parameters corresponding to the indicator to be displayed" in step S305 specifically includes the following process: "synchronously acquire the display information corresponding to the indicator to be displayed; wherein, the display information includes at least one of the font style, display position, and background style of the parameter information of the indicator to be displayed; according to the display information, control the display control unit to transmit the running status parameters corresponding to the indicator to be displayed to the display unit for synchronous display."
[0139] For example, in this embodiment, when displaying the running status parameters corresponding to the indicators to be displayed, firstly, different display information can be set for different indicators to be displayed. The display information includes at least one of the following: font style, display position, and background style in the display interface, so that users can accurately distinguish different running status parameters according to different display information.
[0140] Therefore, in this embodiment, when displaying the operating status parameters corresponding to the indicator to be displayed, the display information corresponding to the indicator to be displayed can first be obtained. Then, according to the content specified in the display information, the display control unit is controlled to transmit the display information and the synchronously obtained operating status parameters to the display unit, so that the display device can display the required operating status parameters according to the style indicated by the display information. Alternatively, the display control unit can generate control information based on the determined display information and the operating status parameters of the small display, and transmit the control signal to the display unit so that the display unit can display the operating status parameters of the specified style.
[0141] It is understood that in this embodiment, by setting different display information for different indicators to be displayed, users can accurately distinguish different operating status parameters when displaying operating status parameters later. This helps users to understand the power-on status of the device in a timely manner, so that users can locate faults.
[0142] In one example, when the display information includes the display position, the process is as follows: "Based on the display information, the display control unit transmits the operating status parameters corresponding to the indicator to be displayed to the display unit for synchronous display." This specifically includes the following steps: "Obtain the character position in the display image of the display unit; if it is determined that the character position coincides with the display position in the display information, call the screen clearing function to clear the characters in the display interface; based on the display position, the display control unit transmits the operating status parameters corresponding to the indicator to be displayed to the display unit for synchronous display."
[0143] For example, in this embodiment, when the display information pre-specifies the display position (i.e., the position on the display screen) corresponding to the indicator to be displayed, when the display information corresponding to the indicator to be displayed is obtained, it is first necessary to determine the character position of the character currently displayed on the display interface of the display device. If it is determined that the character position corresponding to the character in the current display interface does not overlap with the display position corresponding to the indicator to be displayed, then the running status parameter to be displayed can be directly displayed at the display position. If it is determined that the character position corresponding to the character in the current display interface overlaps with the display position corresponding to the indicator to be displayed, then the screen clearing function is directly called to clear the position of the character in the display interface of the display device, so that the character in the area corresponding to the display position in the display interface is cleared. Afterwards, the display control unit transmits the running status parameter to be displayed and the display position corresponding to the running status parameter to the display unit to realize the display of the running status parameter at the specified display position.
[0144] In one example, when performing the above clearing process, all characters on the display screen can be cleared directly to ensure that the indicator to be displayed can be displayed in the area indicated by the display position.
[0145] In one example, the characters in the display interface are displayed line by line starting from the top boundary of the display interface based on the order of their appearance. When performing the above clearing process, the first characters displayed in the display interface can be cleared. Then, the positions of the characters that have not been cleared are moved towards the top boundary of the screen so that the characters in the area indicated by the display position are cleared.
[0146] For example, in practical applications, to facilitate screen display, electronic devices often include a preset print library. This library contains functions such as screen clearing, screen mode, print font, coordinate setting, and cursor enabling. The screen clearing function performs screen clearing. The screen mode function adjusts screen resolution and color mode. The print font function adjusts the font of the characters to be printed. The coordinate setting function determines the position of characters on the display screen. The cursor enabling function sets a cursor at the end of characters on the display screen. Furthermore, by setting up the print library, electronic devices can directly call functions from this library when displaying images.
[0147] It is understood that in this embodiment, when the displayed information includes a display position and other characters are currently displayed at that position, the characters in the display interface can be cleared by calling the screen clearing function to ensure the accuracy of the displayed running status parameters.
[0148] In this embodiment, by setting different indicators to be displayed for different objective functions, users can promptly determine the device's operating status at each stage, which improves the user experience. Furthermore, different display information can be set for different indicators, allowing users to accurately distinguish between different operating status parameters during subsequent display, thus enabling them to understand the device's power-on status and facilitate fault location.
[0149] For example, when an electronic device needs to power on, it first obtains and executes the first code, which corresponds to the security phase that the electronic device needs to execute during the startup process, in order to complete the initialization of the temporary storage area, etc. After the execution of the first code is completed, the associated device (i.e., the aforementioned display control unit and display unit) is configured according to the attribute information written by the first address, second address, and third address information, so that the display unit can realize image display, that is, the display screen is lit up and the parameters to be displayed can be displayed on the screen.
[0150] In practical applications, after the screen is turned on, the second code continues to execute. When the target function in the pre-indicated second code is executed, the running parameters corresponding to the indicators to be displayed can be obtained synchronously according to the indicators to be displayed corresponding to the target function. After the second code finishes execution, the electronic device completes normal startup, and the display unit then displays the icons, components, and background images pre-set by the user.
[0151] When an electronic device malfunctions during the execution of the second code, it stops executing the second code, and the operating status parameters corresponding to the indicators to be displayed on the display unit stop updating synchronously and remain at the operating status parameters displayed just before the malfunction occurred.
[0152] When users find that the displayed image has not been updated for a long time, they can locate the fault based on the operating parameters already displayed in the image, such as memory allocation information and central processing unit working information during the operation of the electronic device.
[0153] In one example, when an electronic device stops running due to a malfunction, a preset fault warning character can be read to alert the user of the current fault, allowing the user to quickly locate the problem. It is understandable that displaying the running parameters of the second code in real time helps the user understand its running status, facilitating fault location based on the displayed parameters should a fault occur later.
[0154] Figure 4 This is a schematic diagram of the architecture of an electronic device provided in an embodiment of this application. Figure 4 As shown, the electronic device in this embodiment includes a central processing unit (CPU), a bridge chip, a display unit, and a display screen. The CPU is connected to the bridge chip and can perform the aforementioned operations. Figures 1-3 The method provided in the illustrated embodiment. The bridge chip includes the display control unit as described in the above embodiment. The display unit can be connected to the output interface of the display control unit in the bridge chip. The output interface of the display unit is connected to the display screen. In one example, the output interface of the display unit can use a VGA (Video Graphics Array) interface for image information transmission.
[0155] The apparatus provided in this embodiment is used to implement the technical solution provided by the above method. Its implementation principle and technical effect are similar, and will not be described again.
[0156] Figure 5 This is a schematic diagram of the structure of an electronic device power-on display device provided in an embodiment of this application, as shown below. Figure 5 As shown, the device includes:
[0157] The execution unit 501 is used to respond to the received startup command and execute the first code corresponding to the first stage according to the startup command; the first stage is the security stage in the startup stage of the electronic device.
[0158] Configuration unit 502 is used to configure configuration information of associated devices; associated devices are used to display images for electronic devices; configuration information is initialization information of associated devices.
[0159] Calling unit 503 is used to call and execute the second code corresponding to the second stage; the second stage is the remaining stage in the startup stage excluding the security stage.
[0160] The synchronous display unit 504 is used to synchronously display the running status information corresponding to the second code through the associated device during the execution of the second code.
[0161] The apparatus provided in this embodiment is used to implement the technical solution provided by the above method. Its implementation principle and technical effect are similar, and will not be described again.
[0162] Figure 6 This is a schematic diagram of the structure of another power-on display device for an electronic device provided in an embodiment of this application, as shown below. Figure 6 As shown, in Figure 5 Based on the illustrated device structure, the associated equipment includes: a display control unit in the electronic device and a display unit connected to the display control unit; the configuration unit 502 includes:
[0163] The first determining module 5021 is used to determine the port identifier of the display control unit and the address identifier of the display unit; the port identifier is used to mark the port in the display control unit that is used to connect to the display unit.
[0164] The loading module 5022 is used to load the device information of the display control unit and the attribute information of the display unit.
[0165] The first writing module 5023 writes the device information of the display control unit into the configuration space corresponding to the display control unit.
[0166] The second writing module 5024 writes the attribute information of the display unit into the configuration space corresponding to the display unit.
[0167] In one example, the attribute information includes the display unit's connection attributes, device attributes, and output port attributes; the second write module 5024 is specifically used for:
[0168] Set a first address information, a second address information, and a third address information, wherein the first address information is used to indicate connection attributes; the second address information is used to indicate device attributes; and the third address information is used to indicate output port attributes; and write the attribute information into the configuration space of the display unit according to the first address information, the second address information, and the third address information.
[0169] In one example, the synchronous display unit 504 includes:
[0170] The second determination module 5041 is used to determine the target function currently in the execution phase in real time during the execution of the second code;
[0171] The third determination module 5042 is used to determine the display index corresponding to the objective function;
[0172] The acquisition module 5043 is used to synchronously acquire the running status parameters corresponding to the indicators to be displayed;
[0173] Display module 5044 is used to display the running status parameters corresponding to the indicators to be displayed.
[0174] In one example, module 5044 is displayed, specifically for:
[0175] The display information corresponding to the indicator to be displayed is acquired synchronously; wherein, the display information includes at least one of the following: font style, display position, and background style of the parameter information of the indicator to be displayed; based on the display information, the display control unit is controlled to transmit the running status parameters corresponding to the indicator to be displayed to the display unit for synchronous display.
[0176] In one example, if the displayed information includes the display position, then display module 5044 is specifically used for:
[0177] Obtain the character position in the display image of the display unit; if the character position coincides with the display position in the display information, call the screen clearing function to clear the characters in the display interface; based on the display position, control the display control unit to transmit the running status parameters corresponding to the indicator to be displayed to the display unit for synchronous display.
[0178] The apparatus provided in this embodiment is used to implement the technical solution provided by the above method. Its implementation principle and technical effect are similar, and will not be described again.
[0179] This application provides an electronic device, including: a memory, and a memory communicatively connected to a processor;
[0180] The memory stores instructions that the computer executes;
[0181] The processor executes computer execution instructions stored in memory to implement the method provided in the above embodiments.
[0182] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application, such as... Figure 7 As shown, the electronic device includes:
[0183] The electronic device includes a processor 291 and a memory 292; it may also include a communication interface 293 and a bus 294. The processor 291, memory 292, and communication interface 293 can communicate with each other via the bus 294. The communication interface 293 can be used for information transmission. The processor 291 can invoke logical instructions stored in the memory 292 to execute the methods of the above embodiments.
[0184] Furthermore, the logic instructions in the aforementioned memory 292 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium.
[0185] The memory 292, as a computer-readable storage medium, can be used to store software programs and computer-executable programs, such as program instructions / modules corresponding to the methods in the embodiments of this application. The processor 291 executes functional applications and data processing by running the software programs, instructions, and modules stored in the memory 292, thereby implementing the methods in the above-described method embodiments.
[0186] The memory 292 may include a program storage area and a data storage area. The program storage area may store the operating system and application programs required for at least one function; the data storage area may store data created based on the use of the terminal device. Furthermore, the memory 292 may include high-speed random access memory and may also include non-volatile memory.
[0187] This application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement any of the methods.
[0188] This application provides a computer program product, which includes a computer program that, when executed by a processor, implements any of the methods.
[0189] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the appended claims.
[0190] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. A method for displaying a power-on message on an electronic device, characterized in that, include: In response to the received startup command, execute the first code corresponding to the first stage according to the startup command; The first stage is the security stage within the startup stage of the electronic device; Configure the configuration information of the associated devices; the configuration information is the initialization information of the associated devices. Call and execute the second code corresponding to the second stage; The second phase is the remaining phases of the startup phase excluding the security phase; During the execution of the second code, the running status information corresponding to the second code is synchronously displayed through the associated device; The associated device is used to display images for the electronic device, and includes: a display control unit in the electronic device and a display unit connected to the display control unit; the configuration information for configuring the associated device includes: The device information of the display control unit and the attribute information of the display unit are loaded; the device information includes the device identifier, version identifier, and capacity information of the display control unit; the attribute information is information associated with the operation of the display unit. Write the device information of the display control unit into the configuration space corresponding to the display control unit; Write the attribute information of the display unit into the configuration space corresponding to the display unit.
2. The method according to claim 1, characterized in that, Before loading the device information of the display control unit and the attribute information of the display unit, the method further includes: The port identifier of the display control unit and the address identifier of the display unit are determined; the port identifier is used to mark the port in the display control unit that is connected to the display unit.
3. The method according to claim 2, characterized in that, The attribute information includes the connection attributes, device attributes, and output port attributes of the display unit; writing the attribute information of the display unit into the configuration space corresponding to the display unit includes: The system sets a first address information, a second address information, and a third address information, wherein the first address information is used to indicate the connection attribute; the second address information is used to indicate the device attribute; and the third address information is used to indicate the output port attribute. Based on the first address information, the second address information, and the third address information, the attribute information is written into the configuration space of the display unit.
4. The method according to any one of claims 1-3, characterized in that, During the execution of the second code, the associated device synchronously displays the running status information corresponding to the second code, including: During the execution of the second code, the target function currently in the execution phase and the corresponding display metrics are determined in real time. Synchronously acquire and display the operating status parameters corresponding to the indicators to be displayed.
5. The method according to claim 4, characterized in that, The display of the operating status parameters corresponding to the indicator to be displayed includes: The display information corresponding to the indicator to be displayed is acquired synchronously; wherein, the display information includes at least one of the following: font style, display position, and background style of the parameter information of the indicator to be displayed. Based on the displayed information, the display control unit is controlled to transmit the operating status parameters corresponding to the indicator to be displayed to the display unit for synchronous display.
6. The method according to claim 5, characterized in that, If the display information includes a display position, then controlling the display control unit to transmit the operating status parameters corresponding to the indicator to be displayed to the display unit for synchronous display, based on the display information, includes: Obtain the character position of the character in the display image of the display unit; If it is determined that the position of the character coincides with the display position in the display information, then the screen clearing function is called to clear the characters in the display interface; Based on the display position, the display control unit is controlled to transmit the operating status parameters corresponding to the indicator to be displayed to the display unit for synchronous display.
7. A power-on display device for an electronic device, characterized in that, include: An execution unit is configured to, in response to a received startup instruction, execute the first code corresponding to the first stage according to the startup instruction; The first stage is the security stage within the startup stage of the electronic device; A configuration unit is used to configure the configuration information of associated devices; the configuration information is the initialization information of the associated devices. The calling unit is used to call and execute the second code corresponding to the second stage; The second phase is the remaining phases of the startup phase excluding the security phase; A synchronous display unit is used to synchronously display the running status information corresponding to the second code through the associated device during the execution of the second code. The associated device is used to display images for the electronic device, and includes: a display control unit in the electronic device and a display unit connected to the display control unit; The configuration unit is specifically used for: The device information of the display control unit and the attribute information of the display unit are loaded. The device information includes the device identifier, version identifier, and storage space information of the display control unit; the attribute information is information associated with the operation of the display unit. Write the device information of the display control unit into the configuration space corresponding to the display control unit; Write the attribute information of the display unit into the configuration space corresponding to the display unit.
8. An electronic device, characterized in that, include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the method as described in any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-6.
10. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method of any one of claims 1-6.
Citation Information
Patent Citations
A method and device for waking up a sleep state of a computer
CN109426525A
A display drive implementation method and system
CN109936716A