Method and device for starting remote guidance system, electronic equipment and storage medium

By responding to the startup instructions of the remote terminal, parsing and updating the system environment variables of the embedded operating system, remote startup of the embedded operating system is realized, solving the problem of difficulty in remote startup of the embedded operating system in the prior art.

CN119415159APending Publication Date: 2025-02-11WEICHAI POWER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411250298.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-06
Publication Date
2025-02-11

AI Technical Summary

Technical Problem

The prior art is difficult to enable the startup of an embedded operating system through remote devices.

Method used

By responding to the startup instructions sent by the remote terminal, extracting and parsing configuration information, updating the system environment variables of the embedded operating system, and booting the kernel to complete the system startup.

Benefits of technology

It is implemented that the remote terminal starts the embedded operating system by modifying the system environment variables of the operating system, solving the problem of remotely starting the embedded operating system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119415159A_ABST
    Figure CN119415159A_ABST
Patent Text Reader

Abstract

The invention provides a remote booting system starting method and device, electronic equipment and a storage medium, and relates to the technical field of computers. The method comprises the steps that in response to a received starting instruction sent by a remote terminal after configuration information of the embedded operating system of the electronic equipment is configured, the embedded operating system is started, the starting instruction comprises the configuration information, and the configuration information comprises system environment variables and corresponding values; extracting and analyzing the configuration information, and updating the system environment variable of the embedded operating system to the value according to the analyzed configuration information; and guiding the kernel of the embedded operating system to start, and completing the start of the embedded operating system. According to the scheme for remotely starting the operating system, the system environment variables of the operating system can be modified through the remote terminal, and therefore starting of the embedded operating system is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a method, device, electronic device and storage medium for remotely booting a system. Background Art

[0002] Embedded operating systems work by embedding the CPU into the target system or the controlled system. However, the form and degree of embedding are different in different embedded systems. According to the closeness of the connection between the embedded system and the general computer, the embedding form can be divided into full embedding and semi-embedded. Embedded operating systems are highly specialized, small in size, and highly real-time.

[0003] The startup of an embedded operating system is often achieved through a local device. Therefore, how to start the embedded operating system through a remote device is a technical problem that needs to be solved urgently in this field. Summary of the invention

[0004] In view of this, the purpose of the present disclosure is to provide a method, device, electronic device and storage medium for remotely booting a system, and the present disclosure can specifically solve the existing problems.

[0005] Based on the above-mentioned purpose, in the first aspect, the present disclosure proposes a method for remote boot system startup, comprising: in response to receiving a startup instruction sent by a remote terminal after configuring the configuration information of the embedded operating system of the electronic device, starting the embedded operating system, the startup instruction includes the configuration information, and the configuration information includes system environment variables and corresponding values; extracting and parsing the configuration information, and updating the system environment variables of the embedded operating system to the values ​​according to the parsed configuration information; guiding the kernel startup of the embedded operating system to complete the startup of the embedded operating system.

[0006] In the second aspect, a method for remote boot system startup is also provided, which is used for a remote terminal, including: configuring configuration information of the embedded operating system of the electronic device, the configuration information including system environment variables and corresponding values; sending a startup instruction to the electronic device to enable the electronic device to start the embedded operating system, extracting and parsing the configuration information, updating the system environment variables of the embedded operating system to the values ​​according to the parsed configuration information, and guiding the kernel startup of the embedded operating system to complete the startup of the embedded operating system, the startup instruction including the configuration information.

[0007] According to a third aspect, a device for remotely booting a system is provided, comprising: a sending unit, configured to start the embedded operating system in response to receiving a startup instruction sent by a remote terminal after configuring configuration information of the embedded operating system of the electronic device, wherein the startup instruction includes the configuration information, and the configuration information includes system environment variables and corresponding values; an extraction unit, configured to extract and parse the configuration information, and update the system environment variables of the embedded operating system to the values ​​according to the parsed configuration information; and a completion unit, configured to guide the kernel startup of the embedded operating system to complete the startup of the embedded operating system.

[0008] In a fourth aspect, an electronic device is also provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method described in the first aspect.

[0009] In a fifth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and the computer program is executed by a processor to implement any method described in the first aspect.

[0010] In a sixth aspect, a computer program product is also provided, comprising a computer program, wherein the computer program is executed by a processor to implement any method described in the first aspect.

[0011] In general, the present disclosure has at least the following beneficial effects: a solution for remotely starting an operating system is provided, and the system environment variables of the operating system can be modified through a remote terminal, thereby realizing the startup of an embedded operating system. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments disclosed in accordance with the present disclosure and should not be regarded as limiting the scope of the present disclosure.

[0013] Figure 1 A flowchart of a method for starting a remote boot system according to an embodiment of the present disclosure is shown;

[0014] Figure 2 Another flow chart of a method for remotely booting a system according to an embodiment of the present disclosure is shown;

[0015] Figure 3 Another flow chart of a method for remotely booting a system according to an embodiment of the present disclosure is shown;

[0016] Figure 4A schematic diagram showing a device for remotely guiding a system to start according to an embodiment of the present disclosure;

[0017] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure is shown;

[0018] Figure 6 A schematic diagram of a storage medium provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0019] The present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.

[0020] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0021] Figure 1 The method for starting a remote boot system of the present disclosure is shown. In an embodiment of the present disclosure, the method is used in an electronic device, comprising:

[0022] Step S101, in response to receiving a startup instruction sent by a remote terminal after configuring the configuration information of the embedded operating system of the electronic device, starting the embedded operating system, the startup instruction including the configuration information, and the configuration information including system environment variables and corresponding values.

[0023] In this embodiment, the execution subject of the remote boot system startup method, that is, the electronic device, can receive a startup instruction from a remote terminal directly or through a relay device. The startup instruction is sent by the remote terminal after configuring the configuration information of the embedded operating system of the electronic device.

[0024] The operating system here can be various operating systems such as Linux system. The system environment variable can be at least one of the following: a first startup variable bootargs and a second startup variable bootcmd.

[0025] Step S102, extracting and parsing the configuration information, and updating the system environment variables of the embedded operating system to the values ​​according to the parsed configuration information.

[0026] In this embodiment, the electronic device receives the network data packet and parses the system environment variables and the corresponding values. Afterwards, the system environment variables of the embedded operating system can be updated to the above values.

[0027] Step S103, guiding the kernel of the embedded operating system to start, and completing the startup of the embedded operating system.

[0028] In this embodiment, the electronic device can guide the kernel to start up and finally complete the system startup process.

[0029] This embodiment provides a solution for remotely starting an operating system, which can modify the system environment variables of the operating system through a remote terminal, thereby realizing the startup of an embedded operating system.

[0030] In some optional implementations of any one of the embodiments of the present disclosure, the configuration information includes an IP address of a boot loader in the embedded operating system.

[0031] In these implementations, the content of the remote terminal configuration may include not only system environment variables, but also the IP address of the boot loader (U-Boot) in the embedded Linux system.

[0032] These implementations can accurately locate the boot loader corresponding to the IP address through the IP address of the boot loader, which helps to smoothly execute the boot loader subsequently.

[0033] Optionally, the extracting and parsing the configuration information, and updating the system environment variables of the embedded operating system to the value according to the parsed configuration information, includes: executing a boot loader corresponding to the IP address to extract and parse the configuration information, and updating the system environment variables of the embedded operating system to the value according to the parsed configuration information.

[0034] In these optional implementations, the electronic device may execute a boot loader corresponding to the IP address to extract and parse the configuration information. Afterwards, the electronic device may update the system environment variables of the embedded operating system to the values ​​in the configuration information according to the parsed configuration information.

[0035] These optional implementations can load the corresponding boot loader through the IP address, thereby starting the embedded operating system.

[0036] In some optional implementations of any embodiment of the present disclosure, guiding the kernel startup of the embedded operating system to complete the startup of the embedded operating system includes: restarting the electronic device; in response to the electronic device having been restarted, guiding the kernel startup of the embedded operating system to complete the startup of the embedded operating system.

[0037] In some optional implementations of any embodiment of the present disclosure, the operation mode of the remote terminal includes a web page, host computer software or an APP, and the remote terminal and the boot loader in the embedded operating system are in the same network segment and are communicatively connected.

[0038] In these optional implementations, the remote terminal operation mode includes web pages, host computer software or APP, etc. The above three configuration terminals must ensure that they are in the same network segment as the boot loader of the embedded Linux system and can perform normal network communication, which uses the User Datagram Protocol UDP.

[0039] The remote terminal and the boot loader in these implementations can be in the same network segment and be connected in communication to ensure remote booting of the operating system.

[0040] In some optional implementations of any embodiment of the present disclosure, there is a network response function in the boot loader, and the network response function is used to receive external network data from the remote terminal; the response to receiving the startup instruction sent by the remote terminal after configuring the configuration information of the embedded operating system of the electronic device includes: responding to receiving the startup instruction sent by the remote terminal after configuring the embedded operating system of the electronic device through the network response function.

[0041] In these optional implementations, a network response function is added to the main loop main_loop function of the boot loader. If a network data packet sent by an external PC is received during the process of waiting for an interrupt signal, it is parsed into a specified data format and modified to the value of the corresponding environment variable.

[0042] These implementations can run the main_loop function during the boot loader startup phase, call the built-in network response function, receive network packets, and parse environment variables and corresponding values ​​to solve the problem that the boot loader cannot receive network packets. Add key network response functions to the main_loop function of the boot loader, compile with the source code, and use it after burning once. It does not affect the normal function of the boot loader, does not require additional software installation, and is easy to use.

[0043] Figure 2 The method for starting a remote boot system according to an embodiment of the present disclosure is shown. Figure 2As shown, the method for remote boot system startup is used for a remote terminal, including: step S201, configuring the configuration information of the embedded operating system of the electronic device, the configuration information including system environment variables and corresponding values; step S202, sending a startup instruction to the electronic device to enable the electronic device to start the embedded operating system, extracting and parsing the configuration information, updating the system environment variables of the embedded operating system to the values ​​according to the parsed configuration information, and guiding the kernel startup of the embedded operating system to complete the startup of the embedded operating system, the startup instruction including the configuration information.

[0044] This embodiment provides a solution for remotely starting an operating system, which can modify the system environment variables of the operating system through a remote terminal, thereby realizing the startup of an embedded operating system.

[0045] Optionally, the method further includes: executing serial port login; the configuring the configuration information of the embedded operating system of the electronic device includes: if the serial port login is unable, configuring the configuration information of the embedded operating system of the electronic device.

[0046] The present invention can provide a method for booting an embedded Linux system through a remote terminal, including a remote configuration terminal, a communication network and an embedded Linux system, so as to modify U-Boot environment variables through remote terminal configuration and boot the embedded system when the serial port cannot be logged in.

[0047] like Figure 3 As shown, the present disclosure also provides another method for remotely booting a system, the steps are as follows:

[0048] Step a, remote terminal configuration, remote terminal operation mode includes web page, host computer software and APP. Deployment is performed on the remote terminal, the configuration content includes the IP address of uboot in the embedded Linux system, the environment variable name and the corresponding value, and the network data packet is sent after the configuration is completed.

[0049] Step b, add a network response function in the main_loop function of U-Boot. If a network data packet sent by an external PC is received during the process of waiting for the interrupt signal, parse it into a specified data format and modify it to the value of the corresponding environment variable.

[0050] Step c: boot the kernel to start, and finally complete the system startup process.

[0051] The embodiment of the present disclosure provides a device for remotely booting a system, and the device is used to execute the method for remotely booting a system described in the above embodiment, such as Figure 4As shown, the device is used for an electronic device, comprising: a sending unit 401, configured to start the embedded operating system in response to receiving a startup instruction sent by a remote terminal after configuring the configuration information of the embedded operating system of the electronic device, wherein the startup instruction includes the configuration information, and the configuration information includes system environment variables and corresponding values; an extraction unit 402, configured to extract and parse the configuration information, and update the system environment variables of the embedded operating system to the values ​​according to the parsed configuration information; and a completion unit 403, configured to guide the kernel startup of the embedded operating system to complete the startup of the embedded operating system.

[0052] An embodiment of the present disclosure provides a device for remotely booting a system, which is used to execute the method for remotely booting a system described in the above embodiment. The device is used in a remote terminal and includes: a configuration unit, which is configured to configure configuration information of an embedded operating system of the electronic device, wherein the configuration information includes system environment variables and corresponding values; an instruction unit, which is configured to send a startup instruction to the electronic device so that the electronic device starts the embedded operating system, extracts and parses the configuration information, updates the system environment variables of the embedded operating system to the values ​​according to the parsed configuration information, and guides the kernel of the embedded operating system to start, thereby completing the startup of the embedded operating system, wherein the startup instruction includes the configuration information.

[0053] The device for starting a remote boot system provided by the above-mentioned embodiment of the present disclosure and the method for starting a remote boot system provided by the embodiment of the present disclosure are based on the same inventive concept and have the same beneficial effects as the method adopted, run or implemented by the application program stored therein.

[0054] The embodiment of the present disclosure also provides an electronic device corresponding to the method for starting a remote boot system provided in the above embodiment, so as to execute the above method for starting a remote boot system. The embodiment of the present disclosure is not limited.

[0055] Please refer to Figure 5 , which shows a schematic diagram of an electronic device provided by some embodiments of the present disclosure. Figure 5 As shown, the electronic device 50 includes: a processor 500, a memory 501, a bus 502 and a communication interface 503, and the processor 500, the communication interface 503 and the memory 501 are connected via the bus 502; the memory 501 stores a computer program that can be run on the processor 500, and the processor 500 executes the method provided in any of the aforementioned embodiments of the present disclosure when running the computer program.

[0056] The memory 501 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 503 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.

[0057] The bus 502 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 501 is used to store a program, and the processor 500 executes the program after receiving an execution instruction. The method for starting a remote boot system disclosed in any implementation of the aforementioned embodiment of the present disclosure may be applied to the processor 500, or implemented by the processor 500.

[0058] The processor 500 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 500 or the instruction in the form of software. The above processor 500 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present disclosure can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in conjunction with the embodiments of the present disclosure can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 501, and the processor 500 reads the information in the memory 501 and completes the steps of the above method in combination with its hardware.

[0059] The electronic device provided by the embodiment of the present disclosure and the method for starting a remote boot system provided by the embodiment of the present disclosure are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by them.

[0060] The present disclosure also provides a computer-readable storage medium corresponding to the method for remotely booting a system provided in the above embodiment. Figure 6 The computer-readable storage medium shown is a CD 60 on which a computer program (ie, a program product) is stored. When the computer program is run by a processor, the method for starting a remote boot system provided in any of the aforementioned embodiments will be executed.

[0061] It should be noted that examples of the computer-readable storage medium may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical or magnetic storage media, which are not listed here one by one.

[0062] The computer-readable storage medium provided by the above-mentioned embodiment of the present disclosure and the method for remotely booting a system provided by the embodiment of the present disclosure are based on the same inventive concept, and have the same beneficial effects as the method adopted, run or implemented by the application program stored therein.

[0063] It should be noted that:

[0064] In the above text, the term "comprises", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be noted that the scope of the method and device in the embodiments of the present disclosure is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0065] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present disclosure, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present disclosure.

[0066] The embodiments of the present disclosure are described above in conjunction with the accompanying drawings, which are only specific implementation modes of the present disclosure. However, the present disclosure is not limited to the above-mentioned specific implementation modes. The above-mentioned specific implementation modes are merely illustrative and not restrictive. Under the guidance of the present disclosure, ordinary technicians in this field can also make many forms without departing from the purpose of the present disclosure and the scope of protection of the claims, all of which are within the protection of the present disclosure.

Claims

1. A method for remotely booting a system, characterized in that: For use in electronic equipment, including: In response to receiving a startup instruction sent by a remote terminal after configuring configuration information of an embedded operating system of the electronic device, starting the embedded operating system, the startup instruction including the configuration information, the configuration information including system environment variables and corresponding values; Extracting and parsing the configuration information, and updating the system environment variables of the embedded operating system to the values ​​according to the parsed configuration information; The kernel of the embedded operating system is guided to start, and the startup of the embedded operating system is completed.

2. The method according to claim 1, characterized in that The configuration information includes an IP address of a boot loader in the embedded operating system; The extracting and parsing the configuration information, and updating the system environment variable of the embedded operating system to the value according to the parsed configuration information, includes: The boot loader corresponding to the IP address is executed to extract and parse the configuration information, and the system environment variables of the embedded operating system are updated to the values ​​according to the parsed configuration information.

3. The method according to claim 1, characterized in that The step of guiding the kernel of the embedded operating system to start up and completing the startup of the embedded operating system includes: restarting the electronic device; In response to the electronic device being restarted, the kernel of the embedded operating system is guided to start, and the startup of the embedded operating system is completed.

4. The method according to claim 1, characterized in that: The operation mode of the remote terminal includes a web page, a host computer software or an APP, and the remote terminal and the boot loader in the embedded operating system are in the same network segment and are communicatively connected.

5. The method according to claim 1, characterized in that A network response function exists in the bootloader, and the network response function is used to receive external network data from the remote terminal; The response to receiving the startup instruction sent by the remote terminal after configuring the configuration information of the embedded operating system of the electronic device includes: In response to receiving, through the network response function, a startup instruction sent by the remote terminal after configuring the configuration information of the embedded operating system of the electronic device.

6. A method for remotely booting a system, characterized in that: For remote terminals, including: Configuring configuration information of the embedded operating system of the electronic device, the configuration information including system environment variables and corresponding values; A startup instruction is sent to the electronic device so that the electronic device starts the embedded operating system, extracts and parses the configuration information, updates the system environment variables of the embedded operating system to the values ​​according to the parsed configuration information, and guides the kernel of the embedded operating system to start, thereby completing the startup of the embedded operating system, wherein the startup instruction includes the configuration information.

7. The method according to claim 6, characterized in that The method further comprises: executing a serial port login; The configuration information of the embedded operating system of the electronic device includes: If the serial port cannot be logged in, the configuration information of the embedded operating system of the electronic device is configured.

8. A device for remotely guiding system startup, characterized in that: include: a sending unit, configured to start the embedded operating system in response to receiving a start-up instruction sent by a remote terminal after configuring the configuration information of the embedded operating system of the electronic device, wherein the start-up instruction includes the configuration information, and the configuration information includes system environment variables and corresponding values; An extraction unit is configured to extract and parse the configuration information, and update the system environment variable of the embedded operating system to the value according to the parsed configuration information; The completion unit is configured to guide the kernel startup of the embedded operating system to complete the startup of the embedded operating system.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: The processor runs the computer program to implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the method according to any one of claims 1 to 7.