CN114489702A - Method, device, medium and electronic equipment for installing operating system - Google Patents

Method, device, medium and electronic equipment for installing operating system Download PDF

Info

Publication number
CN114489702A
CN114489702A CN202210112969.2A CN202210112969A CN114489702A CN 114489702 A CN114489702 A CN 114489702A CN 202210112969 A CN202210112969 A CN 202210112969A CN 114489702 A CN114489702 A CN 114489702A
Authority
CN
China
Prior art keywords
operating system
linux
boot
target
network protocol
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.)
Granted
Application number
CN202210112969.2A
Other languages
Chinese (zh)
Other versions
CN114489702B (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.)
Beijing Youzhuju Network Technology Co Ltd
Original Assignee
Beijing Youzhuju Network Technology 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 Beijing Youzhuju Network Technology Co Ltd filed Critical Beijing Youzhuju Network Technology Co Ltd
Priority to CN202210112969.2A priority Critical patent/CN114489702B/en
Publication of CN114489702A publication Critical patent/CN114489702A/en
Application granted granted Critical
Publication of CN114489702B publication Critical patent/CN114489702B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • 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
    • 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]

Abstract

The present disclosure relates to a method, an apparatus, a medium, and an electronic device for installing an operating system, the method including: responding to a power-on event, and running a firmware program in the BIOS chip; responding to the end of the running of the firmware program, starting a Linux boot operating system in a target storage space of the device to be installed, wherein the Linux boot operating system at least comprises a Linux boot kernel; and calling a target network protocol through the drive of the Linux guide kernel, and installing a target operating system for the equipment to be installed based on the target network protocol. By the method for installing the operating system, the success rate and the reliability of installation can be improved.

Description

Method, device, medium and electronic equipment for installing operating system
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, a medium, and an electronic device for installing an operating system.
Background
In daily life, an operating system is often installed on an electronic device, such as a computer. In the related art, an installation scheme of UEFI PXE may be adopted, which is to implement a PXE (Pre Execution Environment) protocol by UEFI (Unified Extensible Firmware Interface) so as to install a Linux operating system through the PXE protocol. According to the installation scheme, a UDP (user datagram protocol) is used as a transport layer protocol, and a DHCP (dynamic host configuration protocol) and a TFTP (transport protocol) are used as network layer protocols, under the condition of large network flow, the UDP can cause high packet loss rate, and the DHCP and the TFTP can cause access timeout, so that the installation failure rate is high.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
In a first aspect, the present disclosure provides a method of installing an operating system, comprising:
responding to a power-on event, and running a firmware program in the BIOS chip;
responding to the end of the running of the firmware program, starting a Linux boot operating system in a target storage space of the device to be installed, wherein the Linux boot operating system at least comprises a Linux boot kernel;
and calling a target network protocol through the drive of the Linux guide kernel, and installing a target operating system for the equipment to be installed based on the target network protocol.
In a second aspect, the present disclosure provides an apparatus for installing an operating system, comprising:
the operation module responds to a power-on event and operates a firmware program in the BIOS chip;
the starting module is used for responding to the running end of the firmware program and starting a Linux boot operating system in a target storage space of the equipment to be installed, wherein the Linux boot operating system at least comprises a Linux boot kernel;
and the installation module calls a target network protocol through the drive of the Linux guide kernel and installs a target operating system for the equipment to be installed based on the target network protocol.
In a third aspect, the present disclosure provides a computer readable medium having stored thereon a computer program which, when executed by a processing apparatus, performs the steps of the method of the first aspect.
In a fourth aspect, the present disclosure provides an electronic device comprising:
a storage device having at least one computer program stored thereon;
one or more processing means for executing the at least one computer program in the storage means to perform the steps of the method of the first aspect.
According to the technical scheme, the Linux boot operating system is arranged in the target storage space of the device to be installed, and provides a Linux ecological environment, so that when the device to be installed is installed, the network protocol can be called through the drive of the Linux boot kernel to realize the installation of the target operating system, the drive function of the Linux boot kernel is strong, the stability and the reliability of the drive network are high, and the success rate and the reliability of installing the target operating system are improved.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale. In the drawings:
FIG. 1 is a flow chart illustrating a method of installing an operating system according to an exemplary embodiment of the present disclosure.
FIG. 2 is a flowchart illustrating installation of a target operating system according to an exemplary embodiment of the present disclosure.
Fig. 3 is a block diagram illustrating an apparatus for installing an operating system according to an exemplary embodiment of the present disclosure.
Fig. 4 is a schematic structural diagram of an electronic device shown in accordance with an exemplary embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein is intended to be open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
In the related art, an installation scheme of UEFI PXE may be adopted, which is to implement a PXE (Pre Execution Environment) protocol by a drive of UEFI (Unified Extensible Firmware Interface), and install a Linux operating system through the PXE protocol, where the PXE protocol includes a DHCP protocol and a TFTP protocol. When the computer is powered on, the CPU starts to download a code from a fixed address (i.e., download a NBP (Network Boot Program), where the address is the location of the driver of the BIOS), and then the driver of the BIOS (or the driver of the UEFI) starts to execute.
The PXE (Pre-boot Execution Environment) protocol includes a client and a server, the client is a client of the Linux operating system to be installed, and the server includes a DHCP server and a TFTP server. The PXE supports a client to download an operating system placed in a remote server to the local through a network, and supports starting the operating system through the network, in the starting process, the client requests a DHCP server to allocate an IP address, then a starting software package is downloaded to a local memory through TFTP (Trivial File Transfer Protocol), and the starting software package is used for completing automatic basic software setting of the client, so that the client is guided to be pre-installed and downloaded to the local operating system.
Therefore, the driver of the UEFI is adopted by the PXE installation scheme to realize the PXE protocol, the function of the driver is weak, and further the driving stability of the driver when the driver calls the network protocol is poor, and the PXE installation scheme uses the DHCP protocol and the TFTP protocol as the network layer protocol, and the transport layer protocol adopted by the TFTP protocol is the UDP protocol, and under the condition of large network flow, the UDP protocol may cause high packet loss rate, and the DHCP protocol and the TFTP protocol may cause access timeout, thereby causing high installation failure rate and poor installation reliability.
In order to improve the success rate and reliability of installation, the method for installing the operating system is disclosed in the present disclosure, the Linux guide operating system is arranged in the target storage space of the device to be installed, and provides a Linux ecological environment, so that when the device to be installed is installed, the target operating system can be installed by calling a network protocol through a driver of the Linux guide kernel, the Linux guide kernel has a strong function, the stability and reliability of a drive network of the Linux guide kernel are strong, and the success rate and reliability of installing the target operating system are improved.
The technical solution disclosed in the present disclosure will be explained in detail below with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating a method of installing an operating system, which may be applied to a central controller of a device to be installed, according to an exemplary embodiment of the present disclosure. As shown in fig. 1, the method includes:
step 110, responding to the power-on event, operating the firmware program in the BIOS chip.
In some embodiments, a BIOS (Basic Input-Output System) chip is a ROM chip integrated on a motherboard, and firmware programs such as a Basic Input/Output program, System information setting, a power-on self-test program, and a System boot bootstrap program are stored in the ROM chip. The firmware program is used to provide the bottom most, most direct hardware setup and control for the device to be installed. The initialization of the hardware of the device to be installed can be completed by running the firmware program in the BIOS chip, so that the system of the device is in a normal state, and an upper operating system or application software can be normally used.
In some embodiments, the BIOS chip is disposed in the device to be installed, for example, on a motherboard of the device to be installed. In some embodiments, the device to be installed may include an electronic device that does not have any operating system installed, or an electronic device that has an operating system installed but a target operating system to be installed, and the target operating system may coexist with or replace an original installed operating system to form a multi-operating environment.
In some embodiments, the devices to be installed may include, but are not limited to, personal computers, network computers, embedded computers, and the like. Personal computers may include notebooks, desktops, tablets, and the like. The network computers may include servers, workstations, clusters of computers, and the like.
And 120, responding to the end of the running of the firmware program, starting a Linux boot operating system in the target storage space of the device to be installed, wherein the Linux boot operating system at least comprises a Linux boot kernel.
In some embodiments, the Linux boot operating system may be a cut-out of a full Linux operating system. The Linux boot operating system comprises at least a Linux boot kernel, and in some embodiments, the Linux boot operating system further comprises other components constituting the complete Linux operating system, for example, the Linux boot kernel comprises operating commands, user applications, network drivers, and the like.
In some embodiments, booting the Linux boot operating system may bring the device to be installed into a Linux operating environment, providing a Linux ecosystem. In some embodiments, the target memory space is a memory space of a BIOS chip. In some embodiments, the target storage space is a storage space of a virtual disk mounted on the device to be installed. In some embodiments, the method of installing an operating system further comprises: and mounting the Linux boot operating system in the storage space of the virtual disk.
The Linux boot operating system is placed in the target storage space of the device to be installed, the device to be installed can enter the Linux operating environment by starting the device to be installed, and the target network protocol can be conveniently called by the powerful driver of the Linux boot kernel subsequently.
In some embodiments, the memory occupied by the Linux boot operating system in the target storage space is less than a preset threshold. The preset threshold may be specifically determined according to actual conditions, and for example, the preset threshold may be 7.4 MB.
And step 130, calling a target network protocol through a drive of the Linux boot kernel, and installing a target operating system for the equipment to be installed based on the target network protocol.
In some embodiments, the target network protocol may be an HTTP network protocol included in a kernel network protocol stack of the Linux boot kernel. The kernel network protocol stack may include a data link layer, a network layer, and a transport layer. In some embodiments, the kernel network Protocol stack may include HTTP (Hyper Text Transfer Protocol), TCP (Transmission Control Protocol), and UDP (User data packet Protocol), where HTTP is a Protocol of a network layer and TCP and UDP are protocols of a transport layer.
Because the target network protocol is a protocol in the kernel network protocol stack, namely the Linux ecological self-owned protocol is called by the drive of the Linux guide kernel, the target network protocol can be called by the Linux guide kernel without downloading and executing a network guide program, and the convenience and the reliability for calling the target network protocol are improved. And the driver of the Linux guide kernel provides the driver under the Linux operation environment, and the driver function of the Linux guide kernel is very strong, so when the target network protocol is called by the driver of the Linux guide kernel, the stability of the driver is good, the success rate of transmitting network data packets (such as a guide file and an operating system installation file) through the target network protocol can be improved, and the success rate and the reliability of installing the operating system are further improved.
As previously mentioned, the Linux boot operating system may further include a network driver, and in some embodiments, invoking the target network protocol via a driver of the Linux boot kernel includes: and calling the network driver through the Linux boot kernel to call the target network protocol. The network driver is called through the Linux guide kernel, namely the original ecological network driver in the Linux operating environment is called, the network driver has strong driving performance, the stability and the reliability of a kernel network protocol stack are improved, the success rate of transmitting network data packets (such as guide files and operating system installation files) through a target network protocol is further improved, and the success rate and the reliability of installing the operating system are improved.
In some embodiments, the target operating system may be determined according to actual circumstances, for example, the target operating system may be a Linux operating system or a Windows operating system.
In some embodiments, installing a target operating system for a device to be installed based on a target network protocol includes: receiving a boot file and an operating system installation file transmitted by an HTTP server based on an HTTP network protocol, wherein the boot file is used for starting the operating system installation file; and starting the installation of the installation file of the operating system according to the boot file, and installing the target operating system for the equipment to be installed.
In some embodiments, the boot files are files necessary to launch operating system installation files (or operating system installers). The boot files may include configuration files, kernel files, and other necessary files, etc. The kernel file may be a kernel file included by the target operating system for installing the target operating system, and unlike the Linux boot kernel, the Linux boot kernel is used to provide a Linux operating environment. In some embodiments, the operating system installation file may be a software package for installing the target operating system.
By taking the HTTP as a network layer protocol and receiving the boot file and the operating system installation file transmitted by the HTTP server based on the HTTP network protocol, the HTTP network protocol supports continuous transmission, the transmission performance of the protocol is more stable, access overtime caused by the TFTP protocol can be avoided, and the success rate and the reliability of installing the operating system are improved.
Referring to fig. 2, fig. 2 is a flowchart illustrating installation of a target operating system according to an exemplary embodiment of the present disclosure. As shown in fig. 2, the device to be installed sequentially sends request messages requesting configuration files, requesting kernel files, and requesting other necessary files to the HTTP server, and sequentially receives the configuration files, the kernel files, and the necessary files transmitted by the HTTP server. The equipment to be installed transmits necessary parameters to the kernel according to the received configuration file, starts the kernel by using the necessary file, then sends a request message for requesting the operating system to install the file to the HTTP server, receives the operating system installation file transmitted by the HTTP server, starts the installation of the operating system installation file according to the guide file, and installs a target operating system for the equipment to be installed.
In some embodiments, receiving the boot file and the operating system installation file transmitted by the HTTP server based on the HTTP network protocol includes: and receiving the boot files and the operating system installation files transmitted by the HTTP server based on a TCP transmission protocol adopted by the HTTP network protocol. By using TCP as a transmission layer protocol, the packet loss rate caused by UDP can be avoided, and by combining the HTTP protocol and the TCP protocol, under the condition of large network flow, the packet loss rate in the file transmission process can be reduced, the overtime of network access can also be avoided, and the success rate and the reliability of installing the operating system can be further improved.
Fig. 3 is a block diagram illustrating an apparatus for installing an operating system according to an exemplary embodiment of the present disclosure. As shown in fig. 3, the apparatus includes:
an execution module 310 configured to execute a firmware program in the BIOS chip in response to a power-on event;
a starting module 320, configured to start a Linux boot operating system in a target storage space of a device to be installed in response to the end of the firmware program execution, where the Linux boot operating system at least includes a Linux boot kernel;
the installation module 330 is configured to invoke a target network protocol through a driver of the Linux boot kernel, and install a target operating system for the device to be installed based on the target network protocol.
In some embodiments, the target network protocol is an HTTP network protocol included in a kernel network protocol stack of the Linux boot kernel.
In some embodiments, the installation module 330 is further configured to:
receiving a boot file and an operating system installation file transmitted by an HTTP server based on the HTTP network protocol, wherein the boot file is used for starting the operating system installation file;
and starting the installation of the operating system installation file according to the boot file, and installing the target operating system for the equipment to be installed.
In some embodiments, the installation module 330 is further configured to:
and receiving the boot file and the operating system installation file transmitted by the HTTP server based on a TCP transmission protocol adopted by the HTTP network protocol.
In some embodiments, the Linux boot operating system further comprises a network driver, the installation module 330 is further configured to:
and calling the network driver through the Linux boot kernel to call the target network protocol.
In some embodiments, the target storage space is a storage space of the BIOS chip.
In some embodiments, the target storage space is a storage space mounted on a virtual disk of the device to be installed, and the apparatus 300 further includes a mounting module configured to mount the Linux boot operating system on the storage space of the virtual disk.
Referring now to FIG. 4, a block diagram of an electronic device 400 suitable for use in implementing embodiments of the present disclosure is shown. The electronic device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 4, electronic device 400 may include a processing device (e.g., central processing unit, graphics processor, etc.) 401 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)402 or a program loaded from a storage device 408 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data necessary for the operation of the electronic apparatus 400 are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
Generally, the following devices may be connected to the I/O interface 405: input devices 406 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 407 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 408 including, for example, tape, hard disk, etc.; and a communication device 409. The communication means 409 may allow the electronic device 400 to communicate wirelessly or by wire with other devices to exchange data. While fig. 4 illustrates an electronic device 400 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication device 409, or from the storage device 408, or from the ROM 402. The computer program, when executed by the processing device 401, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the devices to be installed and the server may communicate using any currently known or future developed network protocol and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer-readable medium carries at least one computer program that, when executed by the electronic device, causes the electronic device to: responding to a power-on event, and running a firmware program in the BIOS chip; responding to the end of the running of the firmware program, starting a Linux boot operating system in a target storage space of the device to be installed, wherein the Linux boot operating system at least comprises a Linux boot kernel; and calling a target network protocol through the drive of the Linux guide kernel, and installing a target operating system for the equipment to be installed based on the target network protocol.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented by software or hardware. Wherein the name of a module in some cases does not constitute a limitation on the module itself.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
Example 1 provides, in accordance with one or more embodiments of the present disclosure, a method of installing an operating system, comprising:
responding to a power-on event, and running a firmware program in the BIOS chip;
responding to the end of the running of the firmware program, starting a Linux boot operating system in a target storage space of the device to be installed, wherein the Linux boot operating system at least comprises a Linux boot kernel;
and calling a target network protocol through the drive of the Linux guide kernel, and installing a target operating system for the equipment to be installed based on the target network protocol.
Example 2 provides the method of example 1, the target network protocol being an HTTP network protocol included in a kernel network protocol stack of the Linux boot kernel, according to one or more embodiments of the present disclosure.
Example 3 provides the method of example 2, the installing a target operating system for the device to be installed based on the target network protocol, including:
receiving a boot file and an operating system installation file transmitted by an HTTP server based on the HTTP network protocol, wherein the boot file is used for starting the operating system installation file;
and starting the installation of the operating system installation file according to the boot file, and installing the target operating system for the equipment to be installed.
Example 4 provides the method of example 3, wherein receiving the boot file and the operating system installation file transmitted by the HTTP server based on the HTTP network protocol, according to one or more embodiments of the present disclosure, includes:
and receiving the boot file and the operating system installation file transmitted by the HTTP server based on a TCP transmission protocol adopted by the HTTP network protocol.
Example 5 provides the method of example 1, the Linux boot operating system further comprising a network driver, the driver to invoke a target network protocol by the Linux boot kernel, comprising:
and calling the network driver through the Linux boot kernel to call the target network protocol.
Example 6 provides the method of example 1, the target storage space being a storage space of the BIOS chip, in accordance with one or more embodiments of the present disclosure.
Example 7 provides the method of example 1, wherein the target storage space is a storage space mounted on a virtual disk of the device to be installed, and the method further includes:
and mounting the Linux boot operating system in the storage space of the virtual disk.
Example 8 provides, in accordance with one or more embodiments of the present disclosure, an apparatus to install an operating system, comprising:
an operation module configured to operate a firmware program in the BIOS chip in response to a power-on event;
a starting module configured to start a Linux boot operating system in a target storage space of a device to be installed in response to the end of the firmware program execution, wherein the Linux boot operating system at least comprises a Linux boot kernel;
and the installation module is configured to call a target network protocol through a driver of the Linux boot kernel, and install a target operating system for the equipment to be installed based on the target network protocol.
Example 9 provides the apparatus of example 8, the target network protocol being an HTTP network protocol included in a kernel network protocol stack of the Linux boot kernel, according to one or more embodiments of the present disclosure.
Example 10 provides the apparatus of example 9, the installation module further configured to, in accordance with one or more embodiments of the present disclosure:
receiving a boot file and an operating system installation file transmitted by an HTTP server based on the HTTP network protocol, wherein the boot file is used for starting the operating system installation file;
and starting the installation of the operating system installation file according to the boot file, and installing the target operating system for the equipment to be installed.
Example 11 provides the apparatus of example 10, the installation module further configured to, in accordance with one or more embodiments of the present disclosure:
and receiving the boot file and the operating system installation file transmitted by the HTTP server based on a TCP transmission protocol adopted by the HTTP network protocol.
Example 12 provides the apparatus of example 8, the Linux boot operating system further comprising a network driver, the installation module 330 further configured to:
and calling the network driver through the Linux boot kernel to call the target network protocol.
Example 13 provides the apparatus of example 8, the target storage space being a storage space of the BIOS chip, according to one or more embodiments of the present disclosure.
Example 14 provides the apparatus of example 8, the target storage space being a storage space mounted to a virtual disk of the device to be installed, the apparatus further including a mounting module configured to mount the Linux boot operating system in the storage space of the virtual disk, according to one or more embodiments of the present disclosure.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims. With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.

Claims (10)

1. A method of installing an operating system, comprising:
responding to a power-on event, and running a firmware program in the BIOS chip;
responding to the end of the running of the firmware program, starting a Linux boot operating system in a target storage space of the device to be installed, wherein the Linux boot operating system at least comprises a Linux boot kernel;
and calling a target network protocol through the drive of the Linux guide kernel, and installing a target operating system for the equipment to be installed based on the target network protocol.
2. The method according to claim 1, wherein the target network protocol is an HTTP network protocol included in a kernel network protocol stack of the Linux boot kernel.
3. The method of claim 2, wherein installing the target operating system for the device to be installed based on the target network protocol comprises:
receiving a boot file and an operating system installation file transmitted by an HTTP server based on the HTTP network protocol, wherein the boot file is used for starting the operating system installation file;
and starting the installation of the operating system installation file according to the boot file, and installing the target operating system for the equipment to be installed.
4. The method according to claim 3, wherein the receiving boot files and operating system installation files transmitted by the HTTP server based on the HTTP network protocol comprises:
and receiving the boot file and the operating system installation file transmitted by the HTTP server based on a TCP transmission protocol adopted by the HTTP network protocol.
5. The method according to claim 1, wherein the Linux boot operating system further comprises a network driver, and wherein invoking a target network protocol via the driver of the Linux boot kernel comprises:
and calling the network driver through the Linux boot kernel to call the target network protocol.
6. The method of claim 1, wherein the target storage space is a storage space of the BIOS chip.
7. The method according to claim 1, wherein the target storage space is a storage space of a virtual disk mounted on the device to be installed, and the method further comprises:
and mounting the Linux boot operating system in the storage space of the virtual disk.
8. An apparatus for installing an operating system, comprising:
the operation module responds to a power-on event and operates a firmware program in the BIOS chip;
the starting module is used for responding to the running end of the firmware program and starting a Linux boot operating system in a target storage space of the equipment to be installed, wherein the Linux boot operating system at least comprises a Linux boot kernel;
and the installation module calls a target network protocol through the drive of the Linux guide kernel and installs a target operating system for the equipment to be installed based on the target network protocol.
9. A computer-readable medium, on which a computer program is stored, characterized in that the program, when being executed by processing means, carries out the steps of the method of any one of claims 1 to 7.
10. An electronic device, comprising:
a storage device having at least one computer program stored thereon;
at least one processing device for executing the at least one computer program in the storage device to carry out the steps of the method according to any one of claims 1 to 7.
CN202210112969.2A 2022-01-29 2022-01-29 Method, device, medium and electronic equipment for installing operating system Active CN114489702B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210112969.2A CN114489702B (en) 2022-01-29 2022-01-29 Method, device, medium and electronic equipment for installing operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210112969.2A CN114489702B (en) 2022-01-29 2022-01-29 Method, device, medium and electronic equipment for installing operating system

Publications (2)

Publication Number Publication Date
CN114489702A true CN114489702A (en) 2022-05-13
CN114489702B CN114489702B (en) 2023-09-15

Family

ID=81477970

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210112969.2A Active CN114489702B (en) 2022-01-29 2022-01-29 Method, device, medium and electronic equipment for installing operating system

Country Status (1)

Country Link
CN (1) CN114489702B (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030074550A1 (en) * 2001-10-16 2003-04-17 Wilks Andrew W. Method for allowing CD removal when booting embedded OS from a CD-ROM device
US20040193867A1 (en) * 2003-03-31 2004-09-30 Zimmer Vincent J Configurabel network boot management for hetergenous boot options
CN1928820A (en) * 2006-09-30 2007-03-14 四川长虹电器股份有限公司 Embedded system and its upgrading method
US20070214348A1 (en) * 2006-03-07 2007-09-13 Sun Microsystems, Inc. Method and apparatus for operating system deployment
JP2009230433A (en) * 2008-03-21 2009-10-08 Toshiba Corp Network booting device, program and method
CN102135893A (en) * 2010-01-21 2011-07-27 鸿富锦精密工业(深圳)有限公司 Method for integrating operating system on BIOS (Basic Input Output System) chip and starting operating system on server
US20130013910A1 (en) * 2010-03-22 2013-01-10 Bull Sas Method and device for optimizing loading and booting of an operating system in a computer system via a communication network
US20130061283A1 (en) * 2010-11-02 2013-03-07 Ian Henry Stuart Cullimore Ultra-Low Power Single-Chip Firewall Security Device, System and Method
CN103761088A (en) * 2014-01-13 2014-04-30 中南大学 Multiple operation system switching method applicable to ARM (advanced risc machine) framework mobile equipment
US20170322815A1 (en) * 2016-05-09 2017-11-09 International Business Machines Corporation Kernel-integrated instance-specific operational resources with virtualization
CN108650300A (en) * 2018-04-13 2018-10-12 三维通信股份有限公司 Safety implementation method based on https embedded communication equipments
CN109992311A (en) * 2019-03-25 2019-07-09 新华三技术有限公司 Starting method, apparatus, storage medium and the client of operating system
CN112988252A (en) * 2021-04-26 2021-06-18 统信软件技术有限公司 Operating system starting method and computing device
CN113900721A (en) * 2021-10-15 2022-01-07 北京字节跳动网络技术有限公司 Operating system starting method and device and electronic equipment
CN113901473A (en) * 2021-09-10 2022-01-07 苏州浪潮智能科技有限公司 Method, device and equipment for safely starting server and readable medium

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030074550A1 (en) * 2001-10-16 2003-04-17 Wilks Andrew W. Method for allowing CD removal when booting embedded OS from a CD-ROM device
US20040193867A1 (en) * 2003-03-31 2004-09-30 Zimmer Vincent J Configurabel network boot management for hetergenous boot options
US20070214348A1 (en) * 2006-03-07 2007-09-13 Sun Microsystems, Inc. Method and apparatus for operating system deployment
CN1928820A (en) * 2006-09-30 2007-03-14 四川长虹电器股份有限公司 Embedded system and its upgrading method
JP2009230433A (en) * 2008-03-21 2009-10-08 Toshiba Corp Network booting device, program and method
CN102135893A (en) * 2010-01-21 2011-07-27 鸿富锦精密工业(深圳)有限公司 Method for integrating operating system on BIOS (Basic Input Output System) chip and starting operating system on server
US20130013910A1 (en) * 2010-03-22 2013-01-10 Bull Sas Method and device for optimizing loading and booting of an operating system in a computer system via a communication network
US20130061283A1 (en) * 2010-11-02 2013-03-07 Ian Henry Stuart Cullimore Ultra-Low Power Single-Chip Firewall Security Device, System and Method
CN103761088A (en) * 2014-01-13 2014-04-30 中南大学 Multiple operation system switching method applicable to ARM (advanced risc machine) framework mobile equipment
US20170322815A1 (en) * 2016-05-09 2017-11-09 International Business Machines Corporation Kernel-integrated instance-specific operational resources with virtualization
CN108650300A (en) * 2018-04-13 2018-10-12 三维通信股份有限公司 Safety implementation method based on https embedded communication equipments
CN109992311A (en) * 2019-03-25 2019-07-09 新华三技术有限公司 Starting method, apparatus, storage medium and the client of operating system
CN112988252A (en) * 2021-04-26 2021-06-18 统信软件技术有限公司 Operating system starting method and computing device
CN113901473A (en) * 2021-09-10 2022-01-07 苏州浪潮智能科技有限公司 Method, device and equipment for safely starting server and readable medium
CN113900721A (en) * 2021-10-15 2022-01-07 北京字节跳动网络技术有限公司 Operating system starting method and device and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王晶;施亮;: "基于开源平台的网络镜像部署方案", no. 04, pages 36 *

Also Published As

Publication number Publication date
CN114489702B (en) 2023-09-15

Similar Documents

Publication Publication Date Title
US20060242395A1 (en) Operating system boot from network location
US10853087B2 (en) UEFI boot mode OS provisioning system
US8452952B2 (en) Methods and apparatus for building system images and split booting
CN111314799A (en) Terminal system architecture, communication system, communication method, and storage medium
KR101369428B1 (en) Application management apparatus and method for mobile terminal for supporting different type guest operating system
JP2007525756A (en) Network terminal device driven by download type operating system and method of operating the same
CN109240754B (en) Logic device, method and system for configuring BIOS starting item
CN109218356B (en) Method and apparatus for managing stateful applications on a server
CN110908753B (en) Intelligent fusion cloud desktop server, client and system
CN110069308B (en) Page starting method and device, electronic equipment and storage medium
US10404568B2 (en) Agent manager for distributed transaction monitoring system
US11099915B2 (en) Optimizing startup time for event-driven functions
US20120131179A1 (en) Method and system for remote os installation capable of monitoring an installation procedure
US20100205420A1 (en) System and method for realizing remote test on computer apparatus without storage device
CN110851204A (en) Application starting method and device and application packaging method and device
CN113900721A (en) Operating system starting method and device and electronic equipment
CN115562734A (en) Data processor configuration method, device, equipment and medium
US20130159990A1 (en) Updating firmware using a mobile communication device
US20200326998A1 (en) Two-way clipboard exchange in virtual console
CN116257320B (en) DPU-based virtualization configuration management method, device, equipment and medium
CN113821220A (en) Installation method and device of linux operating system
WO2023093633A1 (en) Startup method and apparatus for terminal firmware, and electronic device and storage medium
CN114489702B (en) Method, device, medium and electronic equipment for installing operating system
CN107911816B (en) Starting method for multi-mode IoT device, multi-mode IoT device and storage medium
CN113934437B (en) Method and system for installing application on cloud mobile phone and client cloud mobile phone

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