CN111475177B - Program writing method and device of server and terminal equipment - Google Patents

Program writing method and device of server and terminal equipment Download PDF

Info

Publication number
CN111475177B
CN111475177B CN202010290929.8A CN202010290929A CN111475177B CN 111475177 B CN111475177 B CN 111475177B CN 202010290929 A CN202010290929 A CN 202010290929A CN 111475177 B CN111475177 B CN 111475177B
Authority
CN
China
Prior art keywords
program
server
processor
program data
writing
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
CN202010290929.8A
Other languages
Chinese (zh)
Other versions
CN111475177A (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.)
China Great Wall Technology Group Co ltd
Original Assignee
China Great Wall Technology Group Co 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 China Great Wall Technology Group Co ltd filed Critical China Great Wall Technology Group Co ltd
Priority to CN202010290929.8A priority Critical patent/CN111475177B/en
Publication of CN111475177A publication Critical patent/CN111475177A/en
Application granted granted Critical
Publication of CN111475177B publication Critical patent/CN111475177B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application is applicable to the technical field of program writing, and provides a program writing method and system of a server and the server, wherein the method comprises the following steps: after a BMC management network port of a server is connected with an electric port switch, acquiring program data which is transmitted by the electric port switch and needs to be written into the server; obtaining installation information of the program data based on the program data; writing the program data to the server based on the installation information; the application realizes that the program data is written into the server when the electric port network card and the optical port network card are not available, and completes the program writing into the server.

Description

Program writing method and device of server and terminal equipment
Technical Field
The application belongs to the technical field of program writing, and particularly relates to a program writing method and system of a server and the server.
Background
A server is a type of computer that runs faster, is more loaded, and is more expensive than a normal computer. The server provides computing or application services to other clients in the network (e.g., terminals such as PCs, smartphones, ATM, and even large devices such as train systems).
At present, various servers are designed according to different product requirements, and when an operating system is installed for the servers, programs are written into a plurality of servers at the same time in order to improve the efficiency. The existing program writing method is to utilize an electric port exchanger to carry out data transmission with an electric port network card with an onboard on-board on a server, or utilize an optical port exchanger to carry out data transmission with an optical port network card on the server; however, the program writing cannot be performed for a server without the electric port network card and the optical port network card.
Disclosure of Invention
The embodiment of the application provides a program writing method and system of a server and the server, which can solve the problem that the program writing of the server can be performed only by relying on an electric port network card or an optical port network card at present.
In a first aspect, an embodiment of the present application provides a program writing method of a server, including:
after a BMC management network port of a server is connected with an electric port switch, acquiring program data which is transmitted by the electric port switch and needs to be written into the server;
obtaining installation information of the program data based on the program data;
the program data is written to the server based on the installation information.
In a second aspect, an embodiment of the present application provides a server, including: comprising a hard disk drive, a processor and a computer program stored in the hard disk drive and executable on the processor, characterized in that the processor implements the program writing method of the server according to any one of the above first aspects when executing the computer program.
In a third aspect, an embodiment of the present application provides a program writing system of a server, including: the system comprises an electric port switch, a program storage device connected with the electric port switch and the server connected with the electric port switch.
In a fourth aspect, an embodiment of the present application provides a computer readable storage medium storing a computer program, where the computer program when executed by a processor implements the method for writing a program of the server according to any one of the first aspects.
In a fifth aspect, an embodiment of the present application provides a computer program product, which when run on a terminal device, causes the terminal device to perform the program writing method of the server according to any one of the first aspects.
It will be appreciated that the advantages of the second to fifth aspects may be found in the relevant description of the first aspect, and are not described here again.
Compared with the prior art, the embodiment of the application has the beneficial effects that: the application transmits the program data sent by the electric port exchanger to the server through the BMC management network port, obtains the installation information based on the program data, and finally writes the program data into the server according to the installation information; the application realizes that when the electric port network card and the optical port network card are not available, the program data is written into the server, and the program writing into the server is completed; the application also realizes that when the electric port network card is not provided, but the electric port switch is provided, the program writing of the server can be completed without replacing the switch.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic view of an application scenario of a program writing method of a server according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating a program writing method of a server according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating a method for obtaining installation information according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a program writing system of a server according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a server according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present application;
fig. 7 is a block diagram showing a part of the structure of a computer according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in the present description and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
Furthermore, the terms "first," "second," "third," and the like in the description of the present specification and in the appended claims, are used for distinguishing between descriptions and not necessarily for indicating or implying a relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
At present, the method for simultaneously writing programs into a plurality of servers is divided into two types, one type is that the program writing is realized by utilizing an optical fiber switch and an optical port network card on the server; the other is to use the electric port exchanger and the electric port network card to realize program writing.
The most commonly used program writing is performed by using the electric port switch, because the servers are various, and some servers do not have the electric port network card, only the optical port network card can be adopted when the program writing is performed on the servers without the electric port network card, and the electric port switch needs to be replaced by the optical fiber switch when the program is transmitted by adopting the optical port network card, so that the production cost is increased. In addition, the server without the optical network card and the electric network card cannot realize program writing, and the production is troublesome.
The method of the application does not depend on the electric port network card and the optical port network card, and realizes the program writing of the server under the condition of not replacing the exchanger.
Fig. 1 is an application scenario schematic diagram of a program writing method of a server according to an embodiment of the present application, where the program writing method of a server may be used for writing a program into the server. The storage device 10 stores a program, and the server 20 is configured to transmit the program obtained from the storage device 10 through a BMC management portal, and write the obtained program to the server.
The following describes a program writing method of the server according to an embodiment of the present application in detail with reference to fig. 1.
Fig. 2 is a schematic flowchart of a program writing method of a server provided by the present application, and referring to fig. 2, the method is described in detail as follows:
s101, after a BMC management network port of a server is connected with an electric port switch, program data which is transmitted by the electric port switch and needs to be written into the server is obtained.
In this embodiment, the server includes a processor, a memory bank, a hard disk drive, and a BMC, where BMC (Baseboard Management Controller) executes a remote management controller of the server, which is a baseboard management controller.
The electric port switch is connected with the BMC management network port, meanwhile, the electric port switch is connected with the program storage device, program data in the program storage device are transmitted to the electric port switch and transmitted to the server through the electric port switch when the program is written, wherein the program storage device can be a server and the like storing the program, and the BMC management network port can be an RJ45 management network port.
When writing a program to a server, a plurality of servers are simultaneously operated to improve efficiency, and therefore, it is necessary to perform a portal expansion between a program storage device and the server through a switch. When the program is written into the server, data transmission is generally carried out through an onboard electric port network card or an optical port network card, an electric port switch is connected with the electric port network card in the server, program data in the program storage device are transmitted to the electric port network card through the electric port switch, and the program data enter the server through the electric port network card; or connecting the optical fiber switch with the optical port network card in the server, transmitting the program data in the program storage device to the optical port network card through the optical fiber switch, and entering the server through the optical port network card.
However, not all servers are provided with an electric port network card or an optical port network card, and for servers without the electric port network card and the optical port network card, a BMC management network port can be adopted, and is a network port for transmitting electric signals, so that an electric port switch is required to transmit data, and at present, the electric port switch is most commonly used in production workshops, and program writing of the servers can be realized by using the BMC management network port for data transmission without replacing the switch in the production workshops.
In this embodiment, the BMC management port may also be connected to the BMC through a PHY (Physical) port Physical layer, and the program data reaches the PHY port Physical layer through the management port first, and then reaches the BMC through the PHY port Physical layer.
In this embodiment, the program writing may be to inject an Operating System (OS-Operating System) into the server, where the program data includes the Operating System that needs to be written, data that is needed by the write operation System, and so on.
S102, based on the program data, obtaining installation information of the program data.
In this embodiment, the program data may include an operating system image file and a pre-installation environment, where the pre-installation environment is a deployment package of an operating system, and when the operating system is written to the server, the pre-installation environment is required to cooperate with the operating system; the operating system image file stores the data of the operating system which needs to be written.
As shown in fig. 3, in one possible implementation, the implementation procedure of step S102 may include:
s1021, the processor identifies the program data and transmits the program data to the memory bank.
In this embodiment, after the BMC receives the program data, the BMC transmits the program data to the processor, where the processor has a data processing function, and the processor identifies the data in the program data and transmits the program data to the memory bank.
In this embodiment, program data is transferred between the BMC and the processor through the KCS port on the LPC bus.
S1022, running the preinstallation environment in the memory bank, obtaining the installation information of the operating system image file, and transmitting the installation information and the operating system image file to the processor.
In this embodiment, the memory bank may operate a pre-installation environment, where the pre-installation environment is used to obtain installation information of the operating system image file, so as to prepare for a subsequent writing operation of the operating system image file.
Because the processor is the device used to perform the write operation, the resulting installation information is returned to the processor along with the operating system image file.
In one possible implementation, the implementation procedure of step S1022 may include:
and running the preinstallation environment in the memory bank, obtaining the installation position information of the operating system image file and a driver of hardware for installing the operating system image file, and transmitting the installation position information, the driver and the operating system image file to the processor.
In this embodiment, the installation information includes installation location information of the operating system image file and a driver of hardware for installing the operating system image file, where the installation location information is a location where the operating system is stored, that is, a location where the operating system should be written; a driver refers to a program that drives hardware to install an operating system image file.
And S103, writing the program data into the server based on the installation information.
In this embodiment, there are installation location information of the operating system image file and a driver for hardware for installing the operating system image file, and the operating system image file can be written to a location designated by the installation location information by using the hardware for driver driving installation.
In one possible implementation, the implementation procedure of step S103 may include:
the driver drives the processor to write the operating system image file to the hard disk drive.
In this embodiment, the processor is responsible for writing, so the driver may drive the processor to write a program, and the server stores the information of the hard disk drive as the operating system, so the installation location information is the information of the hard disk drive, and the image file of the operating system is written into the hard disk drive, so as to complete the program writing to the server.
In the embodiment of the application, the electric port switch is connected with the BMC management network port, and the program data transmitted by the electric port switch is transmitted to the server through the BMC management network port, so that the function of program writing without depending on the electric port network card and the optical port network card on the server is realized, the purpose of program writing even without the electric port network card and the optical port network card on the server is achieved, and simultaneously, the program writing can be simultaneously carried out on a plurality of servers by utilizing the electric port switch, and the working efficiency is improved.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present application.
Corresponding to the program writing method of the server described in the above embodiments, fig. 4 shows a program writing system of the server provided in the embodiment of the present application, and for convenience of explanation, only the portions relevant to the embodiment of the present application are shown.
Referring to fig. 4 and 5, the system 200 may include: an electrical port switch 210, a program storage device 220 connected to the electrical port switch 210, a server 230 connected to the electrical port switch 210, the server 230 may include: a data acquisition module 231, a data analysis module 231, and a program writing module 233;
the data obtaining module 231 is configured to obtain program data, sent by the electric port switch, to be written into the server after the BMC management network port of the server is connected to the electric port switch;
a data analysis module 232, configured to obtain installation information of the program data based on the program data;
a program writing module 233, configured to write the program data to the server based on the installation information.
In one possible implementation, the program data includes: operating system image files and pre-installation environments.
In one possible implementation, the data analysis module 232 may include:
the data analysis unit is used for identifying the program data by the processor and transmitting the program data to the memory bank;
the preinstallation unit is used for running the preinstallation environment in the memory bank, obtaining the installation information of the operating system image file and transmitting the installation information and the operating system image file to the processor.
In one possible implementation, the pre-installation unit may be specifically configured to:
and running the preinstallation environment in the memory bank, obtaining the installation position information of the operating system image file and a driver of hardware for installing the operating system image file, and transmitting the installation position information, the driver and the operating system image file to the processor.
In one possible implementation, the program writing module 233 may be configured to:
the driver drives the processor to write the operating system image file to the hard disk drive.
In one possible implementation, coupled to the data analysis module 232 further comprises:
and the data transmission module is used for transmitting the program data received through the BMC management network port to the processor by the BMC.
In one possible implementation, the data transmission module may be specifically configured to:
after the BMC receives the program data through the BMC management network port, the program data is transmitted to the processor through a KCS port on an LPC bus.
It should be noted that, because the content of information interaction and execution process between the above devices/units is based on the same concept as the method embodiment of the present application, specific functions and technical effects thereof may be referred to in the method embodiment section, and will not be described herein.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
The embodiment of the present application further provides a server, referring to fig. 6, the server 400 may include: at least one processor 410, a hard disk drive 420, and a computer program stored in the hard disk drive 420 and executable on the at least one processor 410, the processor 410 implementing steps in any of the various method embodiments described above, such as steps S101-S103 in the embodiment shown in fig. 2, when the computer program is executed. Alternatively, the processor 410 may implement the functions of the modules/units in the above-described apparatus embodiments, such as the functions of the modules 231 to 233 shown in fig. 5, when executing the computer program.
By way of example, a computer program may be partitioned into one or more modules/units that are stored in hard disk drive 420 and executed by processor 410 to accomplish the present application. The one or more modules/units may be a series of computer program segments capable of performing specific functions for describing the execution of the computer program in the server 400.
It will be appreciated by those skilled in the art that fig. 6 is merely an example of a server and is not limiting of the server and may include more or fewer components than shown, or may combine certain components, or different components, such as input-output devices, network access devices, buses, etc.
The processor 410 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The hard disk drive 420 may be an internal storage unit of a server, or may be an external storage device of a terminal device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like. The hard disk drive 420 is used to store the computer program as well as other programs and data required by the terminal device. The hard disk drive 420 may also be used to temporarily store data that has been output or is to be output.
The bus may be an industry standard architecture (Industry Standard Architecture, ISA) bus, an external device interconnect (Peripheral Component, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, the buses in the drawings of the present application are not limited to only one bus or to one type of bus.
The program writing method of the server provided by the embodiment of the application can be applied to terminal equipment such as computers, tablet computers, notebook computers, netbooks, personal digital assistants (personal digital assistant, PDA) and the like, and the embodiment of the application does not limit the specific type of the terminal equipment.
Taking the terminal device as a computer as an example. Fig. 7 is a block diagram showing a part of the structure of a computer provided with an embodiment of the present application. Referring to fig. 7, a computer includes: communication circuit 510, memory 520, input unit 530, display unit 540, audio circuit 550, wireless fidelity (wireless fidelity, wiFi) module 560, processor 570, and power supply 580.
The following describes the components of the computer in detail with reference to fig. 7:
the communication circuit 510 may be used for receiving and transmitting signals during the process of receiving and transmitting information or communication, in particular, after receiving an image sample transmitted by the image acquisition device, processing the image sample by the processor 570; in addition, an image acquisition instruction is sent to the image acquisition apparatus. Typically, the communication circuitry includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, and the like. In addition, the communication circuit 510 may also communicate with networks and other devices through wireless communication. The wireless communications may use any communication standard or protocol including, but not limited to, global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), code division multiple access (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE)), email, short message service (Short Messaging Service, SMS), and the like.
The memory 520 may be used to store software programs and modules, and the processor 570 performs various functional applications and data processing of the computer by executing the software programs and modules stored in the memory 520. The memory 520 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to the use of the computer (such as audio data, phonebooks, etc.), and the like. In addition, memory 520 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The input unit 530 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the computer. In particular, the input unit 530 may include a touch panel 531 and other input devices 532. The touch panel 531, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 531 or thereabout by using any suitable object or accessory such as a finger, a stylus, etc.), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch panel 531 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 570 and can receive commands from the processor 570 and execute them. In addition, the touch panel 531 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 530 may include other input devices 532 in addition to the touch panel 531. In particular, other input devices 532 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc.
The display unit 540 may be used to display information input by a user or information provided to the user and various menus of a computer. The display unit 540 may include a display panel 541, and alternatively, the display panel 541 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 531 may cover the display panel 541, and when the touch panel 531 detects a touch operation thereon or thereabout, the touch operation is transferred to the processor 570 to determine a type of a touch event, and then the processor 570 provides a corresponding visual output on the display panel 541 according to the type of the touch event. Although in fig. 7, the touch panel 531 and the display panel 541 implement input and output functions of a computer as two independent components, in some embodiments, the touch panel 531 and the display panel 541 may be integrated to implement input and output functions of a computer.
Audio circuitry 550 may provide an audio interface between the user and the computer. The audio circuit 550 may convert the received audio data into an electrical signal, transmit the electrical signal to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signals into electrical signals, which are received by the audio circuit 550 and converted into audio data, which are processed by the audio data output processor 570 and sent to, for example, another computer via the communication circuit 510, or which are output to the memory 520 for further processing.
WiFi belongs to a short-distance wireless transmission technology, and a computer can help a user to send and receive e-mails, browse web pages, access streaming media and the like through the WiFi module 560, so that wireless broadband Internet access is provided for the user. Although fig. 7 shows a WiFi module 560, it is understood that it does not belong to the essential constitution of the computer, and can be omitted entirely as required within the scope of not changing the essence of the application.
The processor 570 is a control center of the computer and connects various parts of the entire computer using various interfaces and lines, and performs various functions of the computer and processes data by running or executing software programs and/or modules stored in the memory 520, and calling data stored in the memory 520, thereby performing overall monitoring of the computer. Optionally, the processor 570 may include one or more processing units; preferably, the processor 570 may integrate an application processor primarily handling operating systems, user interfaces, applications, etc., and a modem processor primarily handling wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 570.
The computer also includes a power supply 580 (e.g., a battery) for powering the various components, and preferably the power supply 580 can be logically coupled to the processor 570 via a power management system so as to provide for managing charging, discharging, and power consumption by the power management system.
Embodiments of the present application also provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements steps in each embodiment of a program writing method that may implement the above-described server.
Embodiments of the present application provide a computer program product that, when run on a mobile terminal, causes the mobile terminal to perform the steps in each embodiment of a program writing method that implements the server described above.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiments, and may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing device/terminal apparatus, recording medium, computer Memory, read-Only Memory (ROM), random access Memory (RAM, random Access Memory), electrical carrier signals, telecommunications signals, and software distribution media. Such as a U-disk, removable hard disk, magnetic or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other manners. For example, the apparatus/network device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (10)

1. A program writing method of a server, comprising:
after a BMC management network port of a server is connected with an electric port switch, acquiring program data which is transmitted by the electric port switch and needs to be written into the server;
obtaining installation information of the program data based on the program data;
the program data is written to the server based on the installation information.
2. The program writing method of a server according to claim 1, wherein the program data includes: operating system image files and pre-installation environments.
3. The method for writing a program to a server according to claim 2, wherein the server includes a processor and a memory bank;
the obtaining, based on the program data, installation information of the program data includes:
the processor identifies the program data and transmits the program data to the memory bank;
and running the preinstallation environment in the memory bank to obtain the installation information of the operating system image file, and transmitting the installation information and the operating system image file to the processor.
4. The method for writing a program to a server according to claim 3, wherein running the preinstallation environment in the memory bank, obtaining installation information of the operating system image file, and transmitting the installation information and the operating system image file to the processor, comprises:
and running the preinstallation environment in the memory bank, obtaining the installation position information of the operating system image file and a driver of hardware for installing the operating system image file, and transmitting the installation position information, the driver and the operating system image file to the processor.
5. The program writing method of a server according to claim 4, wherein the server includes a hard disk drive;
the writing the program data to the server based on the installation information includes:
the driver drives the processor to write the operating system image file to the hard disk drive.
6. A method of writing programs to a server according to any of claims 3 to 5, wherein the server comprises a BMC;
before the obtaining of the installation information of the program data based on the program data, the method further includes:
and the BMC transmits the program data received through the BMC management network port to the processor.
7. The method for writing program to a server according to claim 6, wherein the BMC transmits the program data received through a BMC management portal to the processor, comprising:
after the BMC receives the program data through the BMC management network port, the program data is transmitted to the processor through a KCS port on an LPC bus.
8. A server comprising a hard disk drive, a processor and a computer program stored in the hard disk drive and executable on the processor, wherein the processor implements the program writing method of the server according to any of claims 1 to 7 when executing the computer program.
9. A program writing system of a server, comprising: an electrical port switch, a program storage device connected to the electrical port switch, a server according to claim 8 connected to the electrical port switch.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the program writing method of the server according to any one of claims 1 to 7.
CN202010290929.8A 2020-04-14 2020-04-14 Program writing method and device of server and terminal equipment Active CN111475177B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010290929.8A CN111475177B (en) 2020-04-14 2020-04-14 Program writing method and device of server and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010290929.8A CN111475177B (en) 2020-04-14 2020-04-14 Program writing method and device of server and terminal equipment

Publications (2)

Publication Number Publication Date
CN111475177A CN111475177A (en) 2020-07-31
CN111475177B true CN111475177B (en) 2023-10-27

Family

ID=71751906

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010290929.8A Active CN111475177B (en) 2020-04-14 2020-04-14 Program writing method and device of server and terminal equipment

Country Status (1)

Country Link
CN (1) CN111475177B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108155944A (en) * 2018-01-12 2018-06-12 深圳市亿威尔信息技术股份有限公司 A kind of photooptical data Transmission system and method realized by Single NIC
CN109587005A (en) * 2018-12-26 2019-04-05 华为技术服务有限公司 Connecting detection method, apparatus, computer equipment and readable storage medium storing program for executing
CN110413322A (en) * 2019-06-28 2019-11-05 苏州浪潮智能科技有限公司 A kind of server network interface management method, system and baseboard management controller

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10394571B2 (en) * 2016-12-06 2019-08-27 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. Passing data from a host-based utility to a service processor

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108155944A (en) * 2018-01-12 2018-06-12 深圳市亿威尔信息技术股份有限公司 A kind of photooptical data Transmission system and method realized by Single NIC
CN109587005A (en) * 2018-12-26 2019-04-05 华为技术服务有限公司 Connecting detection method, apparatus, computer equipment and readable storage medium storing program for executing
CN110413322A (en) * 2019-06-28 2019-11-05 苏州浪潮智能科技有限公司 A kind of server network interface management method, system and baseboard management controller

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王静 ; .基于ARM的太阳能电站远程监控系统的研究.安防科技.2007,(10),全文. *

Also Published As

Publication number Publication date
CN111475177A (en) 2020-07-31

Similar Documents

Publication Publication Date Title
CN105471931B (en) Method, device and system for inquiring service data
CN107908952B (en) Method and device for identifying real machine and simulator and terminal
CN107704321A (en) Memory allocation method and device and terminal equipment
CN111104967B (en) Image recognition network training method, image recognition device and terminal equipment
CN106528638A (en) Method for deleting backup data, and mobile terminal
CN110413497B (en) Abnormality monitoring method, abnormality monitoring device, terminal device and computer-readable storage medium
CN106569916A (en) Data backup method and mobile terminal
CN116610372B (en) CPU configuration method, device and related products
CN111475177B (en) Program writing method and device of server and terminal equipment
CN106709330B (en) Method and device for recording file execution behaviors
CN116303085A (en) Test reason analysis method, device, equipment and storage medium
CN111262737B (en) Port configuration management method and device, storage medium and terminal
CN112261634B (en) Bluetooth transmission control method and device, terminal equipment and storage medium
CN110442361B (en) Gray release method and device and electronic equipment
CN109582240B (en) Data moving method and related equipment thereof
CN111556097B (en) Data transmission method, acquisition station, acquisition terminal and data acquisition system
CN113112442A (en) Defect detection method and device and terminal equipment
Zhang et al. Research on development of embedded uninterruptable power supply system for IOT-based mobile service
CN111242081B (en) Video detection method, target detection network training method, device and terminal equipment
CN113295983B (en) Board human body sensing function testing method and device and terminal equipment
CN106294025B (en) Method and device for downloading terminal software
CN110602162B (en) Terminal evidence obtaining method, device, equipment and storage medium
EP3823326B1 (en) System and method for detecting bluetooth security threat, and computer readable medium therefor
CN110191446B (en) Application download control method based on WIFI, mobile terminal and storage medium
CN108021368B (en) Method and device for representing kernel of operating system and terminal equipment

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