CN113094108B - Starting method and electronic equipment - Google Patents

Starting method and electronic equipment Download PDF

Info

Publication number
CN113094108B
CN113094108B CN202110335149.5A CN202110335149A CN113094108B CN 113094108 B CN113094108 B CN 113094108B CN 202110335149 A CN202110335149 A CN 202110335149A CN 113094108 B CN113094108 B CN 113094108B
Authority
CN
China
Prior art keywords
pxe
programmable logic
logic chip
configuration information
network
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.)
Active
Application number
CN202110335149.5A
Other languages
Chinese (zh)
Other versions
CN113094108A (en
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202110335149.5A priority Critical patent/CN113094108B/en
Publication of CN113094108A publication Critical patent/CN113094108A/en
Application granted granted Critical
Publication of CN113094108B publication Critical patent/CN113094108B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/4416Network booting; Remote initial program loading [RIPL]
    • 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/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

An embodiment of the present application provides a startup method, including: after the electronic equipment is started and powered on, reading network connection configuration information of a programmable logic chip of the electronic equipment to a network card of the electronic equipment through a guide system; if the network connection configuration information represents that the network link of the network card is normal, the starting information of the pre-starting execution environment PXE is set to the network link setting of the network card completed by the programmable logic chip through the boot system, so that the target operating system can be loaded through the network link for starting. The embodiment of the application also discloses electronic equipment.

Description

Starting method and electronic equipment
Technical Field
The present application relates to but not limited to the field of computer technologies, and in particular, to a starting method and an electronic device.
Background
The Pre-boot Execution Environment (PXE) can enable a computer to boot an operating system through a network, and is widely applied to computer devices, especially to workstation platforms of diskless systems.
When a PXE starting mode is selected by a user, the platform is crucial to the requirement of network resources; in practical application, however, the establishment of the network link is required to make a link request and setting only when the booting system is started to a certain stage; when the request is received, the PXE server cannot complete the link due to the factors such as unstable network link and abnormal network settings, and the link is fed back to the PXE client to inform the booting system that the whole PXE is failed to be started.
Disclosure of Invention
The embodiment of the application is expected to provide a starting method and electronic equipment.
The technical scheme of the application is realized as follows:
in a first aspect, an embodiment of the present application provides a startup method, including:
after an electronic device is started and powered on, reading network connection configuration information of a programmable logic chip of the electronic device to a network card of the electronic device through a guide system;
if the network connection configuration information represents that the network link of the network card is normal, the starting information of the pre-starting execution environment PXE is set to the network link setting of the network card completed by the programmable logic chip through the boot system, so that a target operating system can be loaded through the network link for starting.
In a second aspect, an embodiment of the present application provides an electronic device, including:
the boot system is respectively connected with the programmable logic chip and the south bridge;
the programmable logic chip is connected with the south bridge;
the booting system is used for reading network connection configuration information of a programmable logic chip of the electronic equipment to a network card of the electronic equipment after the electronic equipment is started and powered on;
the boot system is further configured to set, by the boot system, start information of a pre-boot execution environment PXE to a network link setting of the network card completed by the programmable logic chip if the network connection configuration information indicates that a network link of the network card is normal, so that a target operating system can be loaded through the network link for starting.
In a third aspect, an embodiment of the present application provides an electronic device, including:
the communication bus is used for realizing communication connection between the processor and the memory;
the processor is used for executing the startup program stored in the memory so as to realize the steps of the startup method.
In a fourth aspect, embodiments of the present application provide a computer storage medium storing one or more programs executable by one or more processors to implement the steps of the boot method as described above.
The embodiment of the application provides a starting method and electronic equipment, wherein after the electronic equipment is started and powered on, network connection configuration information of a programmable logic chip of the electronic equipment to a network card of the electronic equipment is read through a guide system; if the network connection configuration information represents that the network link of the network card is normal, the starting information of the pre-starting execution environment PXE is set to the network link setting of the network card completed by the programmable logic chip through the guide system, so that the target operating system can be loaded through the network link for starting; that is to say, after the electronic device is powered on, if it is determined that the network link of the network card represented by the network connection configuration information of the network card provided by the programmable logic chip is normal, the starting information of the PXE is directly set as the network link setting of the network card completed by the programmable logic chip, so as to ensure that the target operating system is started through the network link; therefore, the communication between the programmable logic chip and the network card is utilized to establish the successful deployment of the PXE in advance, so that the PXE is quickly started to the target operating system.
Drawings
Fig. 1 is a schematic flowchart of a starting method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of another startup method provided in an embodiment of the present application;
fig. 3 is a schematic flowchart of another starting method provided in an embodiment of the present application;
fig. 4 is a schematic flowchart of a startup method according to another embodiment of the present application;
fig. 5 is a schematic flowchart of another startup method according to another embodiment of the present application;
FIG. 6 is a schematic flowchart of another startup method according to another embodiment of the present application;
FIG. 7 is a flowchart illustrating a startup method according to yet another embodiment of the present application;
FIG. 8 is a schematic flow chart diagram illustrating another exemplary method for booting a computer system according to another embodiment of the present application;
FIG. 9 is a schematic flowchart of another startup method according to another embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the foregoing drawings are used for distinguishing between different objects and not for describing a particular sequential order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
An embodiment of the present application provides a startup method, applied to an electronic device, and referring to fig. 1, the method includes the following steps:
step 101, after the electronic device is powered on, reading network connection configuration information of a programmable logic chip of the electronic device to a network card of the electronic device through a guidance system.
In this embodiment, the boot System includes, but is not limited to, a Basic Input Output System (BIOS) chip or a memory storing BIOS data, a Unified Extensible Firmware Interface (UEFI) chip, an Extensible Firmware Interface (EFI) chip, and the like.
In the embodiment of the present Application, the Programmable logic chip includes, but is not limited to, a Field Programmable Gate Array (FPGA) chip, an Application Specific Integrated Circuit (ASIC) chip, and an Advanced reduced instruction set processor (ARM) chip.
In the embodiment of the present application, the electronic device includes a mobile terminal device such as a tablet computer, a notebook computer, a Personal Digital Assistant (PDA), a fixed terminal device such as a desktop computer, and a server. The electronic equipment comprises a boot system, a programmable logic chip and a south bridge, wherein the programmable logic chip and the south bridge are respectively connected with the boot system through buses; here, the Bus includes General-purpose input/output (GPIO), system Management Bus (SMBUS), and two-wire serial Bus (I2C).
In the embodiment of the application, the network connection configuration information is used for representing the network link state of the network card of the electronic device. Here, the network connection configuration information may be an identifier, such as a specific numerical value, preset by the programmable logic chip and corresponding to the network link status. Here, the network connection configuration information representing the network link state of the network card is stored in the programmable logic chip; the programmable logic chip can send the network connection configuration information representing the network link state of the network card to the guide system through the bus for storage.
In the embodiment of the application, after the electronic device is powered on, the programmable logic chip of the electronic device configures the network link of the network card of the electronic device, and further, the programmable logic chip acquires network connection configuration information representing the network link state of the network card, and then the electronic device reads the network connection configuration information of the network card by the programmable logic chip through the boot system, so that the electronic device determines the network link state of the network card through the boot system based on the network connection configuration information of the network card, for example, determines whether the network link state of the network card is normal.
And 102, if the network connection configuration information represents that the network link of the network card is normal, setting the starting information of the pre-starting execution environment PXE into the network link setting of the network card completed by the programmable logic chip through the boot system so as to load the target operating system through the network link for starting.
In the embodiment of the present application, the start information includes network link information required when the boot system loads the target operating system.
In this embodiment, from the perspective of a user of the electronic device, a target Operating System (OS) may perform scheduling work on each resource plate of the electronic device, where a scheduled object at least includes software and hardware components, data information, and the like in the electronic device. Illustratively, the target operating system handles basic transactions such as managing and configuring memory, prioritizing system resources, controlling input devices and output devices, operating the network, and managing the file system. The target operating system also provides an operating interface to enable interaction between the user and the system.
In the embodiment of the application, the starting information of the PXE is used for the PXE client to download the starting image file from the PXE server through the network, wherein the starting image file at least comprises an operating system file. In one implementation scenario, the PXE client downloads the operating system file from the PXE server, thereby enabling the operating system to be started on the PXE client. In another implementation scenario, the PXE client starts the operating system on the PXE client according to the operating system file of the PXE server.
According to the starting method provided by the embodiment of the application, after the electronic equipment is started and powered on, the network connection configuration information of the programmable logic chip of the electronic equipment to the network card of the electronic equipment is read through the guide system; if the network connection configuration information represents that the network link of the network card is normal, the starting information of the pre-starting execution environment PXE is set to the network link setting of the network card completed by the programmable logic chip through the guide system, so that the target operating system can be loaded through the network link for starting; that is to say, after the electronic device is powered on, if it is determined that the network link of the network card represented by the network connection configuration information of the network card provided by the programmable logic chip is normal, the starting information of the PXE is directly set as the network link setting of the network card completed by the programmable logic chip, so as to ensure that the target operating system is started through the network link; therefore, the communication between the programmable logic chip and the network card is utilized to establish the successful deployment of the PXE in advance, so that the PXE is quickly started to the target operating system.
An embodiment of the present application provides a starting method, applied to an electronic device, and as shown in fig. 2, the method includes steps 201 to 203, or steps 201 to 202, and 204:
step 201, after the electronic device is powered on, a setting interface of the guidance system is presented.
In the embodiment of the application, the boot system is a system capable of booting the target operating system. The setting interface of the guide system displays the starting mode of the guide system for guiding the target operating system to start. Boot modes include, but are not limited to, booting from a PXE or booting from an external storage device. Here, the user a may perform a selection operation for different booting manners on the setting interface, and thus, the electronic device guides the target operating system to boot according to the booting manner selected by the user a through the guidance system.
In the embodiment of the application, after the electronic device is started and powered on, a setting interface is presented on a display interface of the electronic device, and the setting interface presents options for starting from the PXE or starting from the external storage device, so that a user can flexibly select the setting interface according to actual requirements.
Step 202, responding to the operation selected from the PXE starting in the setting interface through the guide system, and reading the network connection configuration information from the programmable logic chip.
In the embodiment of the application, after the electronic device presents the setting interface of the boot system, if the user selects to start from the PXE, the electronic device responds to the operation of starting from the PXE selected by the user from the setting interface through the boot system, and at this time, the electronic device reads the network connection configuration information representing the network link state of the network card from the programmable logic chip.
For example, when the electronic device is powered on and the user selects to start the PXE in the setting interface of the boot operating system, the electronic device reads the network connection configuration information from the programmable logic chip through the boot system based on the GPIO interface or the SMBUS interface, for example, if the read network connection configuration information is a preset ready value, the network link of the network card set by the representation programmable logic chip is normal.
Step 203, responding to the operation of selecting the external storage device of the slave electronic device to start from the setting interface through the boot system, acquiring a PXE bootstrap program from the external storage device, and completing PXE installation and configuration based on the PXE bootstrap program through the boot system to boot the target operating system to start.
In the embodiment of the present application, the external storage device may be understood as an external boot disk, and the external storage device includes, but is not limited to, a usb disk, a removable hard disk, an optical disk, and a floppy disk. The external storage device stores a PXE bootstrap program.
In the embodiment of the application, after the electronic device presents the setting interface of the boot system, when it is determined that the user selects the operation of starting from the external storage device of the electronic device from the setting interface, the electronic device obtains the PXE bootstrap program from the external storage device through the boot system in response to the operation of starting from the external storage device of the electronic device, and completes PXE installation and configuration based on the PXE bootstrap program through the boot system to boot the target operating system.
And step 204, if the network connection configuration information represents that the network link of the network card is normal, setting the starting information of the pre-starting execution environment PXE into the network link setting of the network card completed by the programmable logic chip through the boot system so as to load the target operating system through the network link for starting.
As can be seen from the foregoing, in the embodiment of the present application, the electronic device may flexibly select different starting manners to control the boot system to boot the target operating system according to the operation that is executed by the user in the setting interface of the boot system and is started from the PXE or the operation that is started from the external storage device. Therefore, the starting mode is selected in a targeted mode to guide the target operating system to start in a targeted mode according to the selection basis of the user, the effect of conforming to manual operation is achieved, and the user operation experience is improved.
An embodiment of the present application provides a startup method, applied to an electronic device, and referring to fig. 3, the method includes the following steps:
step 301, after the electronic device is powered on, reading network connection configuration information of the programmable logic chip of the electronic device to the network card of the electronic device through the boot system.
Step 302, if the network connection configuration information represents that the network link of the network card is normal, the start information of the pre-start execution environment PXE is set to the network link setting of the network card completed by the programmable logic chip through the boot system, so that the target operating system can be loaded through the network link for starting.
In the embodiment of the present application, referring to fig. 4, the setting of the start information of the pre-boot execution environment PXE as the network link setting of the network card completed by the programmable logic chip by the boot system in step 302 may be implemented by following steps 3021 to 3023,
step 3021, acquiring an internet protocol IP address and port configuration information of the network card set by the programmable logic chip through the boot system.
The starting information comprises an IP address and port configuration information.
In the embodiment of the application, a programmable logic chip of the electronic device sets an IP address and port configuration information of the network card, and a boot system of the electronic device obtains the IP address and the port configuration information from the programmable logic chip.
Step 3022, setting the IP address as the client IP address of the PXE client of the electronic device through the boot system.
Step 3023, setting the port configuration information as the port configuration information of the PXE client by the boot system.
In the embodiment of the application, the electronic device sets the IP address as the client IP address of the PXE client of the electronic device through the boot system, and sets the port configuration information as the port configuration information of the PXE client, so as to complete setting of the network link of the network card completed by setting the start information of the PXE as the programmable logic chip through the boot system.
Step 303, obtaining the PXE boot program by the boot system using the network link.
In the embodiment of the application, under the condition that the internet Protocol IP address and the port configuration information of the network card set by the programmable logic chip are obtained through the boot system, the boot system of the electronic device directly sets the IP address and the port configuration information started by the PXE as the network link setting of the network card completed by the programmable logic chip through a Trivial File Transfer Protocol (TFTP) serial port drive of the PXE client; thus, the PXE bootstrap program can be obtained by the bootstrap system by using the set network link.
Further, the electronic device obtains the PXE boot program through the boot system by using the set network link, that is, the electronic device downloads the PXE boot program through the boot system based on the client IP address and the port configuration information.
Step 304, the PXE installation and configuration is completed by the boot system based on the PXE boot program to boot the target operating system.
In one implementation scenario, and referring to fig. 5, the present application provides a boot method, which includes the following steps,
step 401, under the condition that a DHCP communication connection is established between the programmable logic chip and the PXE server, the programmable logic chip of the electronic device reports the IP address and the port configuration information, which are set by completing the link, to the TFTP serial driver of the PXE client, and the boot system directly sets the IP address and the port configuration information, which are started by the PXE, as the link setting completed by the programmable logic chip through the TFTP serial driver of the PXE client, thereby quickly completing the network link setting of the network card, which is completed by setting the start information of the PXE to the programmable logic chip through the boot system.
Step 402, determining whether to boot from the PXE by the boot system.
In this embodiment of the application, in step 402, when the boot system determines whether to start from the PXE, if it is determined that the boot system starts from the PXE, step 403 is executed; otherwise, ending the current starting task.
And step 403, acquiring the PXE bootstrap program from the TFTP server by using the network link through the boot system, and completing PXE installation and configuration based on the PXE bootstrap program through the boot system so as to boot the target operating system.
Step 404, the slave PXE boot succeeds.
As can be seen from the above, in the embodiment of the present application, when the internet protocol IP address and the port configuration information of the network card set by the programmable logic chip are obtained through the boot system, the boot system of the electronic device directly sets the IP address and the port configuration information started by the PXE as the network link setting of the network card completed by the programmable logic chip through the TFTP serial port driver of the PXE client; therefore, the PXE boot program can be obtained through the boot system by using the set network link, and the PXE can be quickly started to the target operating system.
An embodiment of the present application provides a starting method, which is applied to an electronic device, and as shown in fig. 6, the method includes the following steps:
step 501, after the electronic device is powered on, obtaining network card configuration information from a south bridge of the electronic device through a programmable logic chip.
In the embodiment of the present application, the network card configuration information includes, but is not limited to, a Media Access Control (MAC) address of the network card, a register setting value and a memory feature that conform to a Peripheral Component Interconnect (PCI) specification.
In the embodiment of the present application, a south bridge (Platform Controller Hub, PCH) stores network card configuration information, and after an electronic device is powered on, the network card configuration information is obtained from the south bridge of the electronic device through a programmable logic chip based on a bus.
For example, after the electronic device is powered on, the electronic device controls hardware and/or software modules included in the electronic device, such as a network card, a boot system, a south bridge, a programmable logic chip, and the like, to initialize in response to a platform reset signal triggered by the power on. Illustratively, a basic clock and an operating voltage required by the network card are initialized. The method includes the steps that a Programmable logic chip reads network card configuration information from a storage module in a south bridge PCH (Programmable logic controller) such as an Electrically Erasable Programmable Read Only Memory (EEPROM) based on a GPIO (general purpose input/output) interface, an SMBUS (system bus) interface or an I2C (inter-integrated circuit) bus interface and the like, wherein the network card configuration information comprises an MAC (media access control) address of a network card, a register set value conforming to PCI (peripheral component interconnect) specifications, memory characteristics and the like.
Step 502, the PXE client of the electronic device is controlled by the programmable logic chip to send the network card configuration information to the PXE server.
In the embodiment of the application, after the electronic device is powered on, the programmable logic chip controls the PXE client of the electronic device to send the network card configuration information to the PXE server under the condition that the network card configuration information is acquired from the south bridge of the electronic device through the programmable logic chip.
Step 503, if a DHCP communication connection is established between the programmable logic chip and the PXE server, receiving, by the programmable logic chip, a DHCP message fed back by the PXE server.
The DHCP message includes an IP address and port configuration information allocated to the PXE client.
In the embodiment of the present application, the PXE server can provide a Dynamic Host Configuration Protocol (DHCP) service.
In the embodiment of the application, after the electronic device controls the PXE client to send the network card configuration information to the PXE server through the programmable logic chip, the PXE server receives the network card configuration information and generates the DHCP message, and the DHCP message includes the IP address and the port configuration information allocated to the PXE client. Meanwhile, the electronic equipment judges whether DHCP communication connection is established between the programmable logic chip and the PXE server, and if the DHCP communication connection is established between the programmable logic chip and the PXE server, the electronic equipment receives DHCP messages generated by the PXE server through the programmable logic chip.
Step 504, determining that the network card configuration information is matched with the IP address allocated by the PXE server through the programmable logic chip, and generating network connection configuration information for representing that the programmable logic chip completes the setting of the network link of the network card.
In the embodiment of the application, after the electronic device receives the DHCP message fed back by the PXE server through the programmable logic chip, the electronic device analyzes the DHCP message, and acquires the IP address and the port configuration information allocated to the PXE client in the DHCP message. Judging whether the network card configuration information is matched with the IP address distributed by the PXE server side through the programmable logic chip, and if the MAC address in the network card configuration information is determined to be matched with the IP address distributed by the PXE server side, indicating that the network link state of the network card is normal. At this time, the electronic device generates network connection configuration information for representing that the programmable logic chip has completed setting of the network link of the network card.
And 505, if the network connection configuration information represents that the network link of the network card is normal, setting the starting information of the pre-starting execution environment PXE into the network link setting of the network card completed by the programmable logic chip through the boot system so as to load the target operating system through the network link for starting.
In an implementation scenario, referring to fig. 7, the network link completion for determining the network card may be implemented by the following steps:
step 601, obtaining the MAC address in the network card configuration information from the south bridge of the electronic device through the programmable logic chip, sending the MAC address to the PXE server, identifying the MAC address by the PXE server, generating an IP address corresponding to the MAC address by the PXE server after identifying, and sending the IP address to a Port Physical Layer (PHY) of the network card.
The port physical layer of the network card performs data interaction with the MAC Address of the data link layer of the network card through an Address Resolution Protocol (ARP).
Step 602, judging whether the network card IP address is matched with the MAC address.
In the embodiment of the present application, step 602 determines whether the network card IP address matches the MAC address, and if it is determined that the network card IP address matches the MAC address, step 603 is executed; and if the network card IP address is determined not to be matched with the MAC address, returning to the step 601 to acquire a new IP address.
Step 603, judging whether PXE starting is supported.
In this embodiment of the present application, step 603 determines whether PXE start is supported, and if it is determined that PXE start is supported, step 604 is executed; if the PXE boot is not supported, the method returns to step 601.
Step 604, start from PXE.
In an implementation scenario, referring to fig. 8, the network connection configuration information represents that the network link of the network card is normal, and after the boot system sets the boot information of the pre-boot execution environment PXE to the network link setting of the network card completed by the programmable logic chip, the following steps may also be performed:
step 701, the electronic device loads a PXE driver through a boot system.
The PXE driver may be a driver in Legacy boot mode Legacy, and the PXE driver may also be a driver in UEFI mode, which is not specifically limited in this application.
Step 702, the electronic device performs cable detection through the guidance system.
Here, there are two types of cables, one is 40-pin cable detection and one is 80-pin cable detection, which uses an Integrated Development Environment (IDE) hard disk to monitor the type of IDE cable being used.
Step 703, the electronic device requests the IP address and the port configuration information of the PXE client from the DHCP server through the programmable logic chip.
In the embodiment of the application, a PXE server corresponding to a PXE client mainly provides two services, one is DHCP and is used for providing IP for a host needing the PXE service; the other is the TFTP service for the subject download bootstrap and subsequent systems that require PXE services.
Step 704, the electronic device determines whether the DHCP server has allocated the IP address and the port configuration information of the PXE client through the programmable logic chip.
Illustratively, the electronic device sends an Acknowledgement (ACK) message through the programmable logic chip to inform the DHCP server of the receipt of the IP address and port configuration information of the assigned PXE client.
In some embodiments, the electronic device sends a Negative Acknowledgement (NACK) message through the programmable logic chip to inform the DHCP server that no data was received.
In this embodiment of the present application, step 704, the electronic device determines, through the programmable logic chip, whether the DHCP server has already allocated the IP address and the port configuration information of the PXE client, and if it is determined that the DHCP server has already allocated the IP address and the port configuration information of the PXE client, step 705 is executed; if it is determined that the DHCP server does not allocate the IP address and port configuration information of the PXE client, step 707 is executed.
Step 705, the electronic device determines, through the programmable logic chip, that the PXE server sends the IP address and the port configuration information allocated to the PXE client, and determines whether the start service is ready.
In this embodiment of the present application, in step 705, it is determined whether the start service is ready, and if it is determined that the start service is ready, step 706 is executed; if it is determined that the boot service is not ready, step 707 is performed.
Step 706, the electronic device downloads the PXE boot program through the boot system based on the client IP address and the port configuration information.
Step 707, the electronic device boots the target operating system by the boot system calling the PXE boot program.
As can be seen from the above, in the embodiment of the application, after the electronic device is powered on, the network card configuration information is obtained from the south bridge through the programmable logic chip, and the network card configuration information is sent to the PXE server, and under the condition that the DHCP communication connection is established between the programmable logic chip and the PXE server, the DHCP message fed back by the PXE server is received, and if the MAC address in the network card configuration information matches the IP address allocated to the PXE client in the DHCP message, it is determined that the network link of the network card represented by the network connection configuration information of the network card by the programmable logic chip is normal, the start information of the PXE is set as the setting of the network link of the network card completed by the programmable logic chip, so as to start the target operating system through the network link; therefore, before the target operating system is started, the programmable logic chip establishes link and communication with the network card in advance, the network card link is ensured to be completed in advance, and dynamic communication is established between the programmable logic chip and the boot system; when the user selects to start from the PXE, the response can be fast, so that the fast starting of the PXE to the target operating system can be fast realized.
An embodiment of the present application provides a starting method, which is applied to an electronic device, and as shown in fig. 9, the method includes the following steps:
step 801, after the electronic device is powered on, obtaining network card configuration information from a south bridge of the electronic device through a programmable logic chip.
Step 802, the programmable logic chip controls the PXE client of the electronic device to send network card configuration information to the PXE server.
And 803, if the programmable logic chip establishes the DHCP communication connection with the PXE server, receiving a DHCP message fed back by the PXE server through the programmable logic chip.
The DHCP message includes an IP address and port configuration information allocated to the PXE client.
Step 804, determining that the network card configuration information is not matched with the IP address through the programmable logic chip, and generating the set network connection configuration information for representing that the programmable logic chip does not complete the network link of the network card.
In the embodiment of the application, after the electronic device receives the DHCP message fed back by the PXE server through the programmable logic chip, the electronic device analyzes the DHCP message, and acquires the IP address and the port configuration information allocated to the PXE client in the DHCP message. And judging whether the network card configuration information is matched with the IP address distributed by the PXE server side through the programmable logic chip, and if the network card configuration information is determined not to be matched with the IP address distributed by the PXE server side, indicating that the network link state of the network card is abnormal. At this time, the electronic device generates network connection configuration information for representing the setting of the network link of the uncompleted network card by the programmable logic chip.
And step 805, generating prompt information.
Wherein, the prompt message is used for prompting that the slave PXE is not supported to be started.
In the embodiment of the application, the electronic device generates the prompt information for prompting that the slave PXE is not supported to start by using the set network connection configuration information that the programmable logic chip does not complete the network link of the network card.
Step 806, presenting a setting interface of the guidance system.
Step 807, network connection configuration information is read from the programmable logic chip by the boot system in response to selecting the operation to boot from the PXE from the setup interface.
Step 808, if the network connection configuration information represents that the network link of the network card is abnormal, outputting a prompt message to prompt that the slave PXE is not supported to start.
In the embodiment of the application, when the network connection configuration information of the programmable logic chip to the network card is read through the boot system, and it is determined that the network connection configuration information represents that the network connection of the network card is abnormal, the electronic device outputs prompt information on a display interface to prompt that starting from the PXE is not supported.
As can be seen from the above, in the embodiment of the application, after the electronic device is powered on, the network card configuration information is obtained from the south bridge through the programmable logic chip, and the network card configuration information is sent to the PXE server, and under the condition that the DHCP communication connection is established between the programmable logic chip and the PXE server, the DHCP message fed back by the PXE server is received, if the MAC address in the network card configuration information is not matched with the IP address allocated to the PXE client in the DHCP message, it is determined that the network link of the network card represented by the network connection configuration information of the network card by the programmable logic chip is abnormal, the start information of the PXE is set as the network link setting of the network card that is not completed by the programmable logic chip, and the prompt information is generated. When the user selects to start from the PXE, a prompt message is output to prompt the user that the starting from the PXE is not supported. Therefore, before the target operating system is started, if the link establishment and the communication between the programmable logic chip and the network card fail, the user is prompted that the target operating system cannot be started from the PXE, and further, the operation request started from the PXE is closed.
An embodiment of the present application provides an electronic device, which may be applied to a starting method provided in the embodiments corresponding to fig. 1 to 9, and referring to fig. 10, the electronic device 90 includes:
a boot system 91, a programmable logic chip 92, and a south bridge 93; wherein the content of the first and second substances,
the boot system 91 is connected to the programmable logic chip 92 and the south bridge 93, respectively;
the programmable logic chip 92 is connected with a south bridge 93;
the booting system 91 is configured to, after the electronic device is powered on, read network connection configuration information of the programmable logic chip 92 of the electronic device to the network card 94 of the electronic device;
the boot system 91 is further configured to set the start information of the pre-boot execution environment PXE to the network link setting of the network card 94 completed by the programmable logic chip 92 through the boot system 91 if the network connection configuration information indicates that the network link of the network card 94 is normal, so that the target operating system can be loaded through the network link for starting.
In other embodiments of the present application, the electronic device further includes a display interface (not shown in fig. 10) for presenting a setting interface of the guidance system 91; and the boot system 91 is further used for reading the network connection configuration information from the programmable logic chip 92 in response to the operation selected from the PXE starting from the setting interface through the boot system 91.
In other embodiments of the present application, the boot system 91 is further configured to obtain a PXE boot program through the boot system 91 by using a network link; PXE installation and configuration is done by the boot system 91 based on the PXE boot program to boot the target operating system.
In other embodiments of the present application, the boot system 91 is further configured to obtain, through the boot system 91, an internet protocol IP address and port configuration information of the network card 94 set by the programmable logic chip 92; the starting information comprises an IP address and port configuration information; setting an IP address as a client IP address of a PXE client (not shown in fig. 10) of the electronic device through the boot system 91; setting the port configuration information as the port configuration information of the PXE client through the boot system 91; the PXE boot program is downloaded by the boot system 91 based on the client IP address and port configuration information.
In other embodiments of the present application, the programmable logic chip 92 is configured to obtain network card configuration information from a south bridge 93 of the electronic device through the programmable logic chip 92; the method comprises the steps that a PXE client of the electronic device is controlled by a programmable logic chip 92 to send network card configuration information to a PXE server (not shown in FIG. 10); the network card configuration information is determined by the programmable logic chip 92 to match the IP address allocated by the PXE server, and network connection configuration information is generated for representing that the programmable logic chip 92 completes the setting of the network link of the network card 94.
In other embodiments of the present application, the programmable logic chip 92 is further configured to receive, through the programmable logic chip 92, a DHCP message fed back by the PXE server if the programmable logic chip 92 establishes a DHCP communication connection with the PXE server, where the DHCP message includes an IP address and port configuration information allocated to the PXE client.
In other embodiments of the present application, the programmable logic chip 92 is further configured to determine that the network card configuration information is not matched with the IP address through the programmable logic chip 92, and generate network connection configuration information for representing that the programmable logic chip 92 does not complete the setting of the network link of the network card 94; and generating prompt information, wherein the prompt information is used for prompting that the slave PXE is not supported to be started.
In other embodiments of the present application, the boot system 91 is further configured to, in response to an operation that is selected from the setup interface and started by the external storage device of the electronic device, acquire a PXE boot program from the external storage device through the boot system 91, and complete PXE installation and configuration based on the PXE boot program through the boot system 91, so as to boot the target operating system.
Embodiments of the application provide a computer readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to perform the steps of:
after the electronic equipment is started and powered on, reading network connection configuration information of a programmable logic chip of the electronic equipment to a network card of the electronic equipment through a guide system;
if the network connection configuration information represents that the network link of the network card is normal, the starting information of the pre-starting execution environment PXE is set to the network link setting of the network card completed by the programmable logic chip through the bootstrap system, so that the target operating system can be loaded through the network link for starting.
In other embodiments of the present application, the one or more programs are executable by the one or more processors and further implement the steps of:
presenting a setting interface of a guide system; and reading the network connection configuration information from the programmable logic chip by the booting system in response to the operation selected from the PXE starting from the setting interface.
In other embodiments of the present application, the one or more programs are executable by the one or more processors and further implement the steps of:
acquiring a PXE bootstrap program by using a network link through a bootstrap system; and the PXE installation and configuration are completed through the boot system based on the PXE boot program so as to boot the target operating system to start.
In other embodiments of the present application, the one or more programs are executable by the one or more processors and further implement the steps of:
acquiring an Internet Protocol (IP) address and port configuration information of a network card set by a programmable logic chip through a guidance system; the starting information comprises an IP address and port configuration information; setting an IP address as a client IP address of a PXE client of the electronic device through a boot system; setting the port configuration information as the port configuration information of the PXE client through the guide system; correspondingly, the PXE bootstrap program is obtained by the bootstrap system through the network link, and the method comprises the following steps: and downloading the PXE bootstrap program by the bootstrap system based on the IP address of the client and the port configuration information.
In other embodiments of the present application, the one or more programs are executable by the one or more processors and further implement the steps of:
acquiring network card configuration information from a south bridge of the electronic equipment through a programmable logic chip; the method comprises the steps that a PXE client of the electronic equipment is controlled through a programmable logic chip to send network card configuration information to a PXE server; and determining that the network card configuration information is matched with the IP address distributed by the PXE server side through the programmable logic chip, and generating network connection configuration information for representing that the programmable logic chip completes the setting of the network link of the network card.
In other embodiments of the present application, the one or more programs are executable by the one or more processors and further implement the steps of:
and if the programmable logic chip establishes DHCP communication connection with the PXE server, receiving a DHCP message fed back by the PXE server through the programmable logic chip, wherein the DHCP message comprises an IP address and port configuration information allocated to the PXE client.
In other embodiments of the present application, the one or more programs are executable by the one or more processors and further implement the steps of:
determining that the network card configuration information is not matched with the IP address through the programmable logic chip, and generating set network connection configuration information for representing that the programmable logic chip does not complete network connection of the network card; and generating prompt information, wherein the prompt information is used for prompting that the slave PXE is not supported to be started.
In other embodiments of the present application, the one or more programs are executable by the one or more processors and further implement the steps of:
responding to the operation of selecting the starting of the external storage device of the electronic device from the setting interface through the bootstrap system, acquiring a PXE bootstrap program from the external storage device, and completing PXE installation and configuration based on the PXE bootstrap program through the bootstrap system so as to boot the target operating system.
It is to be noted here that: the above description of the storage medium and device embodiments, similar to the description of the method embodiments above, has similar beneficial effects as the method embodiments. For technical details not disclosed in the embodiments of the storage medium and the apparatus of the present application, reference is made to the description of the embodiments of the method of the present application for understanding.
The computer storage medium/Memory may be a Memory such as a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read Only Memory (EPROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a magnetic Random Access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical Disc, or a Read Only Disc (CD-ROM); but may also be various terminals such as mobile phones, computers, tablet devices, personal digital assistants, etc., that include one or any combination of the above-mentioned memories.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment of the present application" or "a previous embodiment" or "some embodiments" or "some implementations" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" or "an embodiment of the present application" or "the preceding embodiments" or "some implementations" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not imply any order of execution, and the order of execution of the processes should be determined by their functions and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The above-described device embodiments are merely illustrative, for example, the division of a unit is only one logical function division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or in other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit may be implemented in the form of hardware, or in the form of hardware plus a software functional unit.
The methods disclosed in the several method embodiments provided in the present application may be combined arbitrarily without conflict to arrive at new method embodiments.
Features disclosed in several of the product embodiments provided in the present application may be combined in any combination to yield new product embodiments without conflict.
The features disclosed in the several method or apparatus embodiments provided herein may be combined in any combination to arrive at a new method or apparatus embodiment without conflict.
Those of ordinary skill in the art will understand that: all or part of the steps of implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer-readable storage medium, and when executed, executes the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
Alternatively, the integrated unit described above may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or portions thereof contributing to the related art may be embodied in the form of a software product stored in a storage medium, and including several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
It should be noted that the drawings in the embodiments of the present application are only for illustrating schematic positions of the respective devices on the terminal device, and do not represent actual positions in the terminal device, actual positions of the respective devices or the respective areas may be changed or shifted according to actual conditions (for example, a structure of the terminal device), and a scale of different parts in the terminal device in the drawings does not represent an actual scale.
The above description is only for the embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method of starting, comprising:
after the electronic equipment is started and powered on, reading network connection configuration information of a programmable logic chip of the electronic equipment to a network card of the electronic equipment through a guide system;
if the network connection configuration information represents that the network link of the network card is normal, the starting information of the pre-starting execution environment PXE is set to the network link setting of the network card completed by the programmable logic chip through the boot system, so that a target operating system can be loaded through the network link for starting.
2. The method of claim 1, further comprising:
presenting a setup interface of the guidance system;
and responding to the operation selected from the PXE to be started in the setting interface through the guide system, and reading the network connection configuration information from the programmable logic chip.
3. The method of claim 1, further comprising:
obtaining a PXE bootstrap program by the bootstrap system by using the network link;
and finishing PXE installation and configuration by the boot system based on the PXE boot program so as to boot the target operating system.
4. The method as claimed in claim 3, the setting, by the boot system, the start information of the pre-boot execution environment PXE to the network link setting of the network card completed by the programmable logic chip includes:
acquiring an Internet Protocol (IP) address and port configuration information of a network card set by the programmable logic chip through the bootstrap system; wherein the start-up information comprises the IP address and the port configuration information;
setting, by the boot system, the IP address as a client IP address of a PXE client of the electronic device;
setting the port configuration information as the port configuration information of the PXE client through the boot system;
correspondingly, the obtaining of the PXE boot program by the boot system using the network link includes:
downloading, by the boot system, the PXE boot program based on the client IP address and the port configuration information.
5. The method of claim 1, further comprising:
acquiring network card configuration information from a south bridge of the electronic equipment through the programmable logic chip;
the programmable logic chip controls a PXE client of the electronic equipment to send the network card configuration information to a PXE server;
and determining that the network card configuration information is matched with the IP address distributed by the PXE server side through the programmable logic chip, and generating the network connection configuration information for representing that the programmable logic chip completes the setting of the network link of the network card.
6. The method as claimed in claim 5, after the PXE client controlling the electronic device through the programmable logic chip sends the network card configuration information to the PXE server, the method further includes:
and if the programmable logic chip establishes DHCP communication connection with the PXE server, receiving a DHCP message fed back by the PXE server through the programmable logic chip, wherein the DHCP message comprises the IP address and the port configuration information allocated to the PXE client.
7. The method of claim 5, further comprising:
determining that the network card configuration information is not matched with the IP address through the programmable logic chip, and generating the set network connection configuration information for representing that the programmable logic chip does not complete the network link of the network card;
and generating prompt information, wherein the prompt information is used for prompting that the slave PXE is not supported to be started.
8. The method of claim 2, further comprising:
responding to the operation of selecting the starting of the external storage device of the electronic device from the setting interface through the guide system, acquiring a PXE bootstrap program from the external storage device, and completing PXE installation and configuration based on the PXE bootstrap program through the guide system so as to guide the starting of the target operating system.
9. An electronic device, comprising: a boot system, a programmable logic chip, and a south bridge; wherein, the first and the second end of the pipe are connected with each other,
the boot system is respectively connected with the programmable logic chip and the south bridge;
the programmable logic chip is connected with the south bridge;
the booting system is used for reading network connection configuration information of a programmable logic chip of the electronic equipment to a network card of the electronic equipment after the electronic equipment is started and powered on;
the boot system is further configured to set, by the boot system, start information of a pre-boot execution environment PXE to a network link setting of the network card completed by the programmable logic chip if the network connection configuration information indicates that a network link of the network card is normal, so that a target operating system can be loaded through the network link for starting.
10. An electronic device, the electronic device comprising: a processor, a memory, and a communication bus;
the communication bus is used for realizing communication connection between the processor and the memory;
the processor is configured to execute a boot program stored in the memory to implement the steps of the boot method according to any one of claims 1 to 8.
CN202110335149.5A 2021-03-29 2021-03-29 Starting method and electronic equipment Active CN113094108B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110335149.5A CN113094108B (en) 2021-03-29 2021-03-29 Starting method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110335149.5A CN113094108B (en) 2021-03-29 2021-03-29 Starting method and electronic equipment

Publications (2)

Publication Number Publication Date
CN113094108A CN113094108A (en) 2021-07-09
CN113094108B true CN113094108B (en) 2023-01-17

Family

ID=76671099

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110335149.5A Active CN113094108B (en) 2021-03-29 2021-03-29 Starting method and electronic equipment

Country Status (1)

Country Link
CN (1) CN113094108B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2378416A1 (en) * 2010-04-16 2011-10-19 Siemens Aktiengesellschaft System and a method for updating an operating system image
CN111698343A (en) * 2020-04-30 2020-09-22 新华三技术有限公司 PXE equipment positioning method and device
CN111857956A (en) * 2020-07-21 2020-10-30 上海云轴信息科技有限公司 Virtual machine starting method and equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7363374B2 (en) * 2001-04-27 2008-04-22 International Business Machines Corporation Method and system for fault-tolerant remote boot in the presence of boot server overload/failure with self-throttling boot servers
CN1292330C (en) * 2003-12-09 2006-12-27 海信集团有限公司 A circuit for implementing communication for interface of wireless network card
CN104158859A (en) * 2014-07-30 2014-11-19 华为技术有限公司 PXE-based information acquisition method, PXE (pre-boot execution environment) client, PXE server and system
CN104935468A (en) * 2015-06-24 2015-09-23 宋敏 PXE technology-based interactive system and method for realizing operation of operating system thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2378416A1 (en) * 2010-04-16 2011-10-19 Siemens Aktiengesellschaft System and a method for updating an operating system image
CN111698343A (en) * 2020-04-30 2020-09-22 新华三技术有限公司 PXE equipment positioning method and device
CN111857956A (en) * 2020-07-21 2020-10-30 上海云轴信息科技有限公司 Virtual machine starting method and equipment

Also Published As

Publication number Publication date
CN113094108A (en) 2021-07-09

Similar Documents

Publication Publication Date Title
US6816963B1 (en) Platform level initialization using an image generated automatically by a remote server based upon description automatically generated and transmitted thereto by a processor-based system
KR101365904B1 (en) Booting an operating system in discrete stages
CN105745617B (en) Selective power management for pre-boot firmware updates
US8055892B2 (en) Provision of remote system recovery services
US8332490B2 (en) Method, apparatus and program product for provisioning a computer system
JP6873811B2 (en) Information processing device
US10162645B2 (en) Selecting a virtual basic input output system based on information about a software stack
US20150178096A1 (en) Remote bios update in system having multiple computers
CN110737479A (en) method for starting operating system without disk, server and readable storage medium
JP2009524121A (en) Dynamic billboard service before system operation
US20190339986A1 (en) Uefi boot mode os provisioning system
CN107391193A (en) A kind of client, the system and method for configuration server
CN107066287A (en) The method and system of ESXI virtual machine automatic deployment installation systems
CN111078305A (en) Information acquisition method and device, server and information management system
CN113517996A (en) Network card equipment polling method, system and related device
CN110099095B (en) Software deployment method and device, electronic equipment and computer-readable storage medium
JP2002288104A (en) Computer system, and method and program for its resource assigning
CN110688235A (en) System and method for sharing wireless connection information between UEFI firmware and OS
ES2728679T3 (en) Operating system establishment procedure and device
CN117519804A (en) Method, device and equipment for terminating server pre-starting execution environment guiding process
CN113094108B (en) Starting method and electronic equipment
CN111338699A (en) Computer mainboard initialization method and device, computer equipment and storage medium
WO2019100704A1 (en) Starting method for multi-mode iot device, multi-mode iot device, and storage medium
CN115291951A (en) UEFI (unified extensible firmware interface) starting method and device, electronic equipment and storage medium
WO2023279875A1 (en) Bootloader startup procedure monitoring method and apparatus, embedded device, and storage medium

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
GR01 Patent grant
GR01 Patent grant