CN111417114B - Automatic upgrading method based on network port under U-boot - Google Patents

Automatic upgrading method based on network port under U-boot Download PDF

Info

Publication number
CN111417114B
CN111417114B CN202010180929.2A CN202010180929A CN111417114B CN 111417114 B CN111417114 B CN 111417114B CN 202010180929 A CN202010180929 A CN 202010180929A CN 111417114 B CN111417114 B CN 111417114B
Authority
CN
China
Prior art keywords
machine
boot
server
upgrading
network port
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
CN202010180929.2A
Other languages
Chinese (zh)
Other versions
CN111417114A (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.)
Nawa Electronics Shanghai Co ltd
Original Assignee
Nawa Electronics Shanghai 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 Nawa Electronics Shanghai Co ltd filed Critical Nawa Electronics Shanghai Co ltd
Priority to CN202010180929.2A priority Critical patent/CN111417114B/en
Publication of CN111417114A publication Critical patent/CN111417114A/en
Application granted granted Critical
Publication of CN111417114B publication Critical patent/CN111417114B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data
    • H04W8/245Transfer of terminal data from a network towards a terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • 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
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Databases & Information Systems (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a method for automatically upgrading a network port based on U-boot, which is used for carrying out system upgrading on a machine, wherein the method is provided with at least one network port, and the method for automatically upgrading the network port based on U-boot comprises the following steps: communicatively connecting the machine with a server; starting a U-boot program in the server; setting an IP address of the server to be compatible with the machine; and the server upgrades the machine based on the network port under the U-boot program.

Description

Automatic upgrading method based on network port under U-boot
Technical Field
The invention relates to the field of communication, in particular to a method for automatically upgrading based on a network port under a U-boot.
Background
U-boot is a boot loader that is primarily used in embedded systems and can support a variety of different computer system architectures, including PPC, ARM, AVR, MIPS, X86, 68K, nios and MicroBlaze.
OTA (Over-the-air technology) upgrade refers to a technology of upgrading a system or an application by downloading an upgrade package on a remote server through a wireless network by a mobile phone terminal. The OTA upgrade package is automatically downloaded mainly through a network for automatic upgrade, and the OTA upgrade package is also supported to be downloaded to the SD card for upgrade. The general OTA upgrade mode is to upgrade through the network after entering the system, if the system must be able to be entered, and if there is an application program in the system that can perform upgrade operation.
When a system is in a problem and a terminal cannot enter, OTA upgrading is disabled, so that the whole machine is in a problem due to incapability of upgrading. At this time, the system is generally refreshed by disassembling the machine, upgrading the machine through a serial port provided on the machine, or re-programming the flash.
In this case, the disassembly is required, and once the disassembly is completed, the integrity of the machine is damaged. In addition, if the machine does not have a corresponding serial port, the machine cannot be upgraded through the serial port even if the machine is disassembled. Therefore, if batch upgrade occurs during the production process, manpower is wasted and the production cost is increased.
Disclosure of Invention
The invention has the advantages that the invention provides the method for automatically upgrading the U-boot based on the network port, and the machine is upgraded by automatically upgrading the U-boot based on the network port, so that the problem that the machine is required to be upgraded in a disassembling mode in the prior art is solved.
The invention has the advantages that the method based on the automatic network port upgrading under the U-boot has no requirement on whether the machine is provided with a serial port or not, so that the application range of the method based on the automatic network port upgrading under the U-boot is improved.
The invention has the advantages that the method based on the network port automatic upgrading under the U-boot condition is provided, wherein the method can be suitable for batch upgrading of a plurality of machines at the same time, and compared with the prior art, the upgrading process is trouble-saving and labor-saving, and the upgrading efficiency is high.
The invention has the advantage of providing a method for automatically upgrading a network port based on U-boot, wherein the method can replace the OTA upgrading function under a system, thereby realizing the purpose of rapidly upgrading the machine.
The invention has the advantages that the method based on the network port automatic upgrading under the U-boot is provided, wherein the method does not need serial ports or disassembly of the machine, and can also liberate manpower, so that the cost of system upgrading of the machine is reduced.
The invention has the advantages that the method based on the network port automatic upgrading under the U-boot is provided, wherein the system based on the network port automatic upgrading under the U-boot can be automatically upgraded only by introducing a U-boot program, so that the upgrading cost of the machine can be reduced.
The invention has the advantages that the invention provides the method for automatically upgrading the network port under the U-boot, wherein the system for automatically upgrading the network port under the U-boot only needs to download the upgrade package to be upgraded through the program in the prior art, and the upgrade process is simple and easy to operate.
The invention has the advantages that the method for automatically upgrading the network port under the U-boot is provided, wherein the system for automatically upgrading the network port under the U-boot can automatically upgrade by means of a server, the upgrade program is simple, and the upgrade process is quick.
The invention has the advantages that the method based on the network port automatic upgrading under the U-boot is provided, wherein the system based on the network port automatic upgrading under the U-boot monitors whether the system can be accessed or not through the network monitoring module, the method based on the network port automatic upgrading under the U-boot is simple and quick, and the monitoring of the machine can be realized.
The invention has the advantages that the method based on the network port automatic upgrading under the U-boot is provided, wherein the system based on the network port automatic upgrading under the U-boot can automatically acquire the upgrading packet according to the partition information, so that the quick and efficient automatic upgrading can be realized, and the upgrading efficiency is improved.
In order to achieve at least the above advantages, the present invention mainly provides a method for automatically upgrading a machine based on a portal under a U-boot, wherein the method is used for performing system upgrade on the machine, and is provided with at least one portal, and the method for automatically upgrading the machine based on the portal under the U-boot comprises the following steps:
1001: communicatively connecting the machine with a server;
1002: starting a U-boot program in the server;
1003: setting an IP address of the server to be compatible with the machine; and
1004: and the server upgrades the machine based on the network port under the U-boot program.
In some embodiments, the method for automatically upgrading the network port based on the U-boot is realized through a system for automatically upgrading the network port based on the U-boot, the system for automatically upgrading the network port based on the U-boot comprises the machine and the server, and the machine and the server are in communication connection to realize the method for automatically upgrading the network port based on the U-boot.
In some embodiments, the system based on automatic upgrade of a portal under a U-boot includes a first communication connection module and a second communication connection module, where the first communication connection module is communicatively disposed on the machine, and the second communication connection module is communicatively disposed on the server, so that the machine and the server can implement a communication connection through the first communication connection module and the second communication connection module.
In some embodiments, the system for automatically upgrading based on the internet access under the U-boot further comprises a U-boot program, wherein the U-boot program is communicatively arranged on the server, so that the server is guided to enter the machine through the U-boot program, and the system for upgrading the machine is achieved.
In some embodiments, in step 1001, the method further includes the step of:
10011: powering on the machine; and
10012: the machine checks if its portal is connected.
In some embodiments, the system for automatically upgrading based on a network port under a U-boot further comprises a U-boot network detection module, wherein the U-boot network detection module is communicatively arranged on the machine so that the machine can monitor whether the network port of the machine is communicated or not through the U-boot network monitoring module.
In some of these embodiments, the step 1003 further includes the step of:
10031: setting an IP address of the server;
10032: checking whether the remote end of the server has a corresponding upgrade package or not; and
10033: and downloading the corresponding upgrade package.
In some of these embodiments, the name of the corresponding upgrade package corresponds to the partition name of the system to be upgraded on the machine.
In some of these embodiments, the system for portal-based automatic upgrade under U-boot further includes at least one program check module communicatively disposed to the machine to enable the machine to check for programs on the server.
In some of these embodiments, the step 1003 further includes the step of:
10034: prompting the downloading result of the corresponding upgrade package.
In some embodiments, the system for automatically upgrading based on a portal under a U-boot further comprises at least a download result prompting module communicatively disposed to the machine to enable the machine to prompt for a download result.
In some embodiments, the step 10031 further comprises the step of:
100311: entering the U-boot program;
100312: setting an IP address of the server; and
100313: and entering a command interaction interface of the U-boot.
In some of these embodiments, the step 1004 further includes the steps of:
10041: checking the corresponding upgrade package; and
10042: upgrading the system of the machine.
In some of these embodiments, the step 1004 further includes the steps of:
10043: and prompting the upgrading result of the machine.
In some embodiments, the system for automatically upgrading a web portal under a U-boot further includes a prompting module, where the prompting module is communicatively configured to the machine to prompt an upgrade result of the machine.
Drawings
Fig. 1 is a schematic flow chart of a first embodiment of a method for automatically upgrading a network port based on a U-boot according to the present invention.
Fig. 2 is a schematic flowchart of a first embodiment of a method for automatically upgrading a network port based on U-boot according to the present invention.
Fig. 3 is a schematic flow chart of a first embodiment of a method for automatically upgrading a network port based on U-boot according to the present invention.
Fig. 4 is a schematic diagram of another further flow of the first embodiment of the method for automatically upgrading a web portal based on U-boot according to the present invention.
Fig. 5 is a schematic block diagram of a first embodiment of a system based on automatic upgrade of a portal under U-boot according to the present invention.
Detailed Description
The following description is presented to enable one of ordinary skill in the art to make and use the invention. The preferred embodiments in the following description are by way of example only and other obvious variations will occur to those skilled in the art. The basic principles of the invention defined in the following description may be applied to other embodiments, variations, modifications, equivalents, and other technical solutions without departing from the spirit and scope of the invention.
It will be understood that the terms "a" and "an" should be interpreted as referring to "at least one" or "one or more," i.e., in one embodiment, the number of elements may be one, while in another embodiment, the number of elements may be plural, and the term "a" should not be interpreted as limiting the number.
The present invention mainly provides a method for automatically upgrading a machine 110 based on a network port under a U-boot, as shown in fig. 1 to 5, which is a flow chart of a first embodiment of the method for automatically upgrading a machine based on a network port under a U-boot.
In a first embodiment of the present invention, the method for automatically upgrading a network port under a U-boot is used for performing a system upgrade on a machine 110, where the machine 110 is provided with at least one network port 1100, and the method for automatically upgrading a network port under a U-boot includes the following steps:
1001: communicatively coupling the machine 110 with a server 120;
1002: starting a U-boot program 1203 in the server 120;
1003: setting an IP address of the server 120 to be compatible with the machine 110; and
1004: the server 120 upgrades the machine 110 based on the portal 1100 under the U-boot program 1203.
Wherein in step 1001, the machine 110 is communicatively connected to the server 120 so as to enable the machine 110 to transfer data information with the server 120, such as an upgrade package, during an upgrade process.
In the step 1002 and the step 1003, since the U-boot program 1203 is a part of the boot code in the server 120, the U-boot program 1203 may be started by starting the server 120. Thereby causing the U-boot program 1203 to reset the IP address in the server 120 to an IP address that can communicate with the machine 110 before booting the kernel.
In the first embodiment of the present invention, the IP address of the server 120 is set to 192.1668.1.99 by the U-boot program 1203. As a modification of the first embodiment of the present invention, a person skilled in the art may modify the IP address of the server 120 according to the specific situations of the machine 110 and the server 120, so long as the technical scheme same as or similar to the present invention is adopted, the technical problem same as or similar to the present invention is solved, the technical effect same as or similar to the present invention is achieved, and all the technical effects belong to the protection scope of the present invention, and the specific embodiments of the present invention are not limited thereto.
In the step 1004, the server 120 upgrades the machine 110 based on the network port 1100 of the machine 110 through the U-boot program 1203. Further, it should be noted that in the first embodiment of the present invention, the server 120 is implemented as a PC server 120. In addition, those skilled in the art may choose other types of servers 120 according to the actual situation, so long as the technical effects similar to or the same as those of the present invention can be achieved based on the above disclosure of the present invention, which falls within the scope of protection of the present invention.
In the first embodiment of the present invention, the method is implemented by a system for upgrading the machine 110 based on the portal 1100 under the U-boot, where the system for upgrading the machine 110 based on the portal 1100 under the U-boot includes the machine 110 and the server 120, and the machine 110 and the server 120 are communicatively connected. The machine 110 includes at least one U-boot network detection module 1101, a logic module 1102, and a system upgrade module 1103, where the server 120 includes at least one upgrade package 1201 capable of performing a system upgrade for the machine 110, the U-boot network detection module 1101, the logic module 1102, and the system upgrade module 1103 are communicatively disposed on the machine 110, the U-boot network detection module 1101 is configured to monitor whether the network port 1100 of the machine 110 is communicated, the logic module 1102 is configured to detect whether the upgrade package 1201 is safe, and the system upgrade module 1103 is configured to perform a system upgrade for the machine 110 according to a detection result of the logic module 1102.
In detail, in the first embodiment of the present invention, the U-boot network detection module is a part of a boot code, and is configured to set an IP address of the server 120 to 192.1668.1.99 before booting the kernel system, so that the server 120 can identify the machine 110 and upgrade the machine 110 based on the U-boot.
Preferably, in the machine 110 and the server 120, a first communication connection module 1104 and a second communication connection module 1202 are respectively included, where the first communication connection module 1104 is communicatively disposed on the machine 110, and the second communication connection module 1202 is communicatively disposed on the server 120, so that in the step 1001, the machine 110 and the server 120 implement a communication connection through the first communication connection module 1104 and the second communication connection module 1202.
Further, the U-boot program 1203 is communicatively configured to the server 120, so that the server 120 is guided into the machine 110 by the U-boot program 1203 to implement a system upgrade of the machine 110.
The server 120 further includes a program launch module 1204, the program launch module 1204 being communicatively disposed to the server 120 to enable launch of programs in the server 120. In the step 1002, the U-boot program 1203 in the server 120 is started by the program starting module 1204.
The server 120 further includes at least one information setting module 1205, the information setting module 1205 being communicatively disposed to the server 120 to enable the server 120 to set its own information. In the step 1003, the server 120 sets an IP address of the server 120 through the information setting module 1205, thereby enabling the address of the server 120 to be compatible with the machine 110.
In the step 1004, the server 120 upgrades the machine 110 under the U-boot program 1203 based on the portal 1100 through the system upgrade module 1103.
That is, in the method for automatically upgrading a web port under a U-boot according to the present invention, the server 120 and the machine 110 are first connected in communication through the first communication connection module 1104 and the second communication connection module 1202, then the U-boot program 1203 is started through the start module in the server 120, the IP address of the server 120 is set to be compatible with the machine 110 through the information setting module 1205, and finally the machine 110 is upgraded under the U-boot program 1203 based on the web port 1100 through the system upgrading module 1103 in the server 120.
Preferably, in a first embodiment of the method for automatically upgrading a network port based on U-boot according to the present invention, the step 1001 further includes the steps of:
10011: powering on the machine 110; and
10012: the machine 110 checks whether the portal 1100 is ping.
In step 10011, when the machine 110 needs to be upgraded, the machine 110 needs to be powered on first to be provided with the basic condition for the upgrade.
In the step 10012, the machine 110 checks whether the portal 1100 is in communication, which means that, since the U-boot program 1203 is a part of the boot system and is the initial stage of the whole machine 110, a ping command may be used to test whether the portal 1100 of the machine 110 is in communication, or whether the server 120 is present.
Accordingly, in the machine 110, at least one power supply module 1105 is further included, and the power supply module 1105 is electrically disposed on the machine 110, so that the machine 110 can realize power supply through the power supply module 1105. In the step 10011, the machine 110 is powered on by the power supply module 1105.
The U-boot network detection module 1101 is communicatively disposed on the machine 110 to enable the machine 110 to monitor whether the network ports 1100 of the machine 110 are connected through the U-boot network detection module 1101, and to check whether the server 120 is present. In the step 10012, the machine 110 monitors whether its network is connected through the U-boot network monitoring module 1101.
That is, in the step 1001, the machine 110 is first powered by the power supply module 1105, and then it is checked by the U-boot network detection module 1101 whether the network of the machine 110 is connected and whether the server 120 exists.
Still further, the step 1003 further includes the step of:
10031: setting an IP address of the server 120;
10032: checking whether the remote end of the server 120 has a corresponding upgrade package 1201; and
10033: the corresponding upgrade package 1201 is downloaded.
In step 10031, the IP address of the server 120 and the upgrade package 1201 to be upgraded are set under the U-boot program 1203. In the first embodiment of the present invention, the IP address of the server 120 is set to 192.168.1.99, the name of the upgrade package 1201 on the server 120 is consistent with the name of the system partition, and the naming rule is partition name-upgrade. Bin; the upgrade program in the upgrade package 1201 can automatically match the partition to be upgraded according to the partition information of the system and the information of the upgrade package 1201, so that a user can formulate the partition to be upgraded by the name of the upgrade package 1201 when upgrading.
In the first embodiment of the present invention, it is assumed that partition information is:
mtdparts=m25p80:128k(uboot),128k(flash-param),64k(uboot-env),2304k(kernel),2496k(rootfs),2560k(app),512k(app-config),2304k(kernel-bak),2496k(rootfs-bak),2560k(app-bak),832k(art)
if the upgrade package 1201 is named kernel-upgrade. Bin, then the upgrade program upgrades 2304k (kernel) partition;
if the upgrade package 1201 is named rootfs-upgrade. Bin, then the upgrade program upgrades 2496k (rootfs) partitions;
if both exist, then the corresponding upgrade is performed;
if named all-upgrade. Bin, then all parts are upgraded.
And when an upgrade package 1201 is manually modified, the name is kernel-upgrade. Bin; then uboot will find that the kernel-upgrade. Bin and 2304k (kernel) partition are consistent and upgrade the partition.
In other words, in the first embodiment of the present invention, by setting the name of the upgrade package 1201 to be consistent with the name of the system partition, and by using a predetermined naming rule, the upgrade program in the upgrade package 1201 after being downloaded can automatically match the partition to be upgraded according to the partition information of the system and the information of the upgrade package 1201, so that it is not only clear in the searching process, but also the speed and intelligence of the upgrade can be improved.
In addition, the naming rule of the upgrade package 1201 may be changed by a person skilled in the art according to the actual situation, so long as the technical scheme same as or similar to the present invention is adopted on the basis of the disclosure of the present invention, the technical problem same as or similar to the present invention is solved, the technical effect same as or similar to the present invention is achieved, and the present invention falls within the protection scope of the present invention, and the specific embodiment of the present invention is not limited thereto.
Preferably, in the first embodiment of the system 100 for automatic upgrade under U-boot based on portal according to the present invention, in the step 1003, the machine 110 downloads the relevant upgrade package 1201 through TFTP.
Accordingly, the machine 110 further includes at least one address setting module 1106, the address setting module 1106 being communicatively configured to the machine 110 to enable the machine 110 to set an IP address, and in the step 10031, the machine 110 sets the IP address of the server 120 through the address checking module to enable the IP address of the server 120 to be compatible with the machine 110.
The machine 110 further comprises at least one program checking module 1107, the program checking module 1107 being communicatively arranged to the machine 110 to enable the machine 110 to check programs, in the step 10032, the machine 110 checking whether there is a corresponding upgrade package 1201 in the remote end of the server 120 through the program checking module 1107.
The machine 110 further includes at least one program download module 1108, the program download module 1108 being communicatively disposed to the machine 110 to enable the machine 110 to download programs in the server 120. In the step 10033, the machine 110 downloads the corresponding upgrade package 1201 through the program download module 1108.
Still further, the step 1003 further includes the step of:
10034: prompting the download result of the corresponding upgrade package 1201.
The step 10034 is that the machine 110 can inform the user of the downloading condition of the corresponding upgrade package 1201 by sending a prompt, including successful downloading and failed downloading, so that the user can perform the next operation according to the prompt.
Accordingly, the machine 110 includes a download result prompting module 1109, the download result prompting module 1109 being communicatively disposed to the machine 110 so that the machine 110 can determine an operational flow based on the download result. In the step 10034, the machine 110 prompts the download result of the corresponding upgrade package 1201 through the download result prompting module 1109. Wherein the download results include, but are not limited to, successful download, failed download, and/or waiting for download.
In the first embodiment of the present invention, the download result prompting module 1109 is configured to include, but is not limited to, an audio prompt, a text prompt and/or a visual prompt, for example, by setting a dripping sound, or a flashing light or a text display, etc. to prompt the user, where the corresponding upgrade package 1201 is successful or failed in downloading, so that the user can follow the download result in time to adjust the next operation procedure, for example, re-download or skip the downloading shutdown to perform the upgrade of the next machine 110, etc.
That is, in the step 1003, the machine 110 first sets the address of the server 120 through the address setting module 1106 so that the address of the server 120 is compatible with the machine 110, then checks whether a corresponding upgrade package 1201 for upgrade exists in the server 120 through the program checking module 1107, if so, checks whether the upgrade package 1201 for upgrade is safe through the logic module 1102, and if so, downloads the corresponding program upgrade package 1201 to the machine 110 through the program downloading module 1108 so that the machine 110 can perform upgrade according to the upgrade program in the upgrade package 1201, and finally prompts the download status of the corresponding upgrade package 1201 according to the download result prompting module 1109.
Preferably, in a first embodiment of the system 100 for automatic upgrade based on internet access under U-boot according to the present invention, the step 10031 further includes the steps of:
100311: entering the U-boot program 1203;
100312: setting an IP address of the server 120; and
100313: and entering a command interaction interface of the U-boot.
Since the U-boot is part of the boot code, the IP of the server 120 may be upgraded to 192.168.1.99 prior to booting the kernel of the machine 110.
While at step 100313 it is meant that if the system of machine 110 is able to enter, then step 100313 is skipped to enter the system of machine 110; otherwise, if the machine 110 has no system or the system is not accessible due to damage, the process proceeds to step 100313, i.e. the command interactive interface of the U-boot program 1203 is entered.
Since the server 120 is a PC connected to the machine 110 through a network, the server 120 starts a TFTP server, and the corresponding upgrade package 1201 is placed on the server 120, the upgrade process transmits the corresponding upgrade package 1201 through TFTP.
Accordingly, the machine 110 further includes a program entry module 1110, the program entry module 1110 being communicatively disposed to the machine 110 to enable the server 120 to enter any program therein. In the step 100311, the machine 110 enters the U-boot program 1203 via the program entry module 1110.
That is, in the step 10031, the machine 110 enters the U-boot program 1203 via the program entry module 1110, sets the IP address of the server 120 via the address setting module 1106, and finally enters the command interactive interface of the U-boot via the program entry module 1110.
Preferably, in a first embodiment of the system 100 for automatic upgrade based on internet access under U-boot according to the present invention, the step 1004 further includes the steps of:
10041: checking the corresponding upgrade package 1201; and
10042: the system of the machine 110 is upgraded.
In the step 10041, the machine 110 verifies whether the corresponding upgrade package 1201 is available for upgrade by checking the data and various performances of the corresponding upgrade package 1201, such as security and data accuracy, and if so, upgrades the system of the machine 110 based on the corresponding upgrade package 1201 in the step 10042.
Accordingly, logic module 1102 is communicatively disposed to machine 110 and communicatively coupled to program download module 1108. In the step 10041, the machine 110 checks the respective performance of the corresponding upgrade package 1201 through the logic module 1102.
Still further, the step 1004 further includes the steps of:
10043: prompting the machine 110 for upgrade results.
That is, if the machine 110 fails to upgrade in the upgrade process in the step 10042, or if the corresponding upgrade package 1201 is detected to be unsafe in the step 10041, the machine 110 cannot upgrade according to the corresponding upgrade package 1201, the machine 110 prompts the user to notify that the upgrade fails.
Accordingly, the machine 110 further includes a prompt module 1111, where the prompt module 1111 is communicatively disposed on the machine 110 and is communicatively connected to the logic module 1102 and the system upgrade module 1103, so as to prompt the machine 110 that the upgrade fails. In the step 10043, the machine 110 prompts the upgrade failure result thereof by the prompt module 1111.
In a first embodiment of the present invention, the machine 110 may prompt the upgrade result by, but not limited to, voice, graphics, text, and/or animation, such as by setting an LED light to display a red color to indicate that the upgrade failed, or by sending the upgrade result by voice to inform the user, etc.
In other words, the prompt module 1111 is configured to include, but is not limited to, a voice module and/or a display module to prompt the upgrade result of the machine 110 to inform a user, etc.
That is, in the step 1004, the machine 110 checks the downloaded performance of the upgrade package 1201 through the logic module 1102, upgrades the machine 110 through the system upgrade module 1103, and monitors and prompts the upgrade process through the prompt module 1111 during the upgrade process.
In addition, the person skilled in the art may prompt the user through the prompt module 1111 to inform the user of the upgrade result of the machine 110, where the upgrade result of the machine 110 includes upgrade success and upgrade failure. In other words, as long as the technical scheme which is the same as or similar to the present invention is adopted on the basis of the above disclosure of the present invention, the technical problem which is the same as or similar to the present invention is solved, and the technical effect which is the same as or similar to the present invention is achieved, which falls within the protection scope of the present invention, and the specific embodiments of the present invention are not limited thereto.
That is, in the step 1004, the machine 110 checks the relevant performance of the corresponding upgrade package 1201 through the logic module 1102, upgrades the machine 110 based on the corresponding upgrade package 1201 through the system upgrade module 1103, and finally informs the user of the upgrade result of the machine 110 through the prompt module 1111.
It will be appreciated by persons skilled in the art that the embodiments of the invention described above and shown in the drawings are by way of example only and are not limiting. The objects of the present invention have been fully and effectively achieved. The functional and structural principles of the present invention have been shown and described in the examples and embodiments of the invention may be modified or practiced without departing from the principles described.

Claims (10)

1. The method for automatically upgrading the network port based on the U-boot is used for carrying out system upgrading on a machine, and is provided with at least one network port, and is characterized by comprising the following steps:
1001: communicatively connecting the machine with a server;
1002: starting a U-boot program in the server;
1003: setting an IP address of the server to be compatible with the machine; and
1004: the server upgrades the machine based on the network port under the U-boot program;
the U-boot program is a part of a starting code of the server and is used for setting an IP address of the server to be an IP address capable of communicating with the machine before the server boots a kernel;
the machine checks in step 1001 whether the network port of the machine is connected and whether the server exists using a ping instruction;
the server comprises a program starting module which is arranged in the server in a communication way so that the program in the server can be started;
in step 1002, the U-boot program in the server is started using the program start module.
2. The method for automatically upgrading a network port under a U-boot according to claim 1, wherein the method for automatically upgrading a network port under a U-boot is implemented by a system for automatically upgrading a network port under a U-boot, and the system for automatically upgrading a network port under a U-boot comprises the machine and the server, and the machine and the server are in communication connection to implement the method for automatically upgrading a network port under a U-boot.
3. The method for automatically upgrading a network port based on a U-boot according to claim 2, wherein the system for automatically upgrading a network port based on a U-boot comprises:
the device comprises a first communication connection module and a second communication connection module, wherein the first communication connection module is arranged on the machine in a communication mode, and the second communication connection module is arranged on the server in a communication mode, so that the machine and the server can be in communication connection through the first communication connection module and the second communication connection module.
4. The method for automatically upgrading a web portal based on a U-boot according to claim 3, wherein the system for automatically upgrading a web portal based on a U-boot further comprises:
and the U-boot program is communicated with the server, so that the server is guided to enter the machine through the U-boot program, and the system upgrading of the machine is realized.
5. The method for automatic upgrade based on internet access under U-boot according to claim 4, wherein in step 1001, further comprising the steps of:
10011: powering on the machine; and
10012: the machine checks if its portal is connected.
6. The method for automatically upgrading a web portal based on a U-boot according to claim 5, wherein the system for automatically upgrading a web portal based on a U-boot further comprises:
the U-boot network detection module is arranged on the machine in a communication mode so that the machine can monitor whether network ports of the machine are communicated or not through the U-boot network monitoring module.
7. The method for portal-based automatic upgrade under U-boot according to claim 1 or 6, wherein said step 1003 further comprises the steps of:
10031: setting an IP address of the server;
10032: checking whether the remote end of the server has a corresponding upgrade package or not;
10033: downloading a corresponding upgrade package; and
10034: prompting the downloading result of the corresponding upgrade package.
8. The method for portal-based automatic upgrade under U-boot as in claim 7, wherein the name of the corresponding upgrade package is consistent with the partition name of the system to be upgraded on said machine.
9. The method for portal-based automatic upgrade under U-boot according to claim 7, wherein said step 10031 further comprises the steps of:
100311: entering the U-boot program;
100312: setting an IP address of the server; and
100313: and entering a command interaction interface of the U-boot.
10. The method for portal-based automatic upgrade under U-boot according to claim 9, wherein said step 1004 further comprises the steps of:
10041: checking the corresponding upgrade package;
10042: upgrading a system of the machine; and
10043: and prompting the upgrading result of the machine.
CN202010180929.2A 2020-03-16 2020-03-16 Automatic upgrading method based on network port under U-boot Active CN111417114B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010180929.2A CN111417114B (en) 2020-03-16 2020-03-16 Automatic upgrading method based on network port under U-boot

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010180929.2A CN111417114B (en) 2020-03-16 2020-03-16 Automatic upgrading method based on network port under U-boot

Publications (2)

Publication Number Publication Date
CN111417114A CN111417114A (en) 2020-07-14
CN111417114B true CN111417114B (en) 2023-07-04

Family

ID=71494399

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010180929.2A Active CN111417114B (en) 2020-03-16 2020-03-16 Automatic upgrading method based on network port under U-boot

Country Status (1)

Country Link
CN (1) CN111417114B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101216773A (en) * 2008-01-09 2008-07-09 深圳国人通信有限公司 Embedded Linux system firmware downloading method and device
CN104503805A (en) * 2014-12-29 2015-04-08 珠海全志科技股份有限公司 Method for upgrading embedded equipment through wired network
CN105589706A (en) * 2014-10-29 2016-05-18 Tcl集团股份有限公司 Upgrade package generation method and device
CN105700918A (en) * 2016-01-05 2016-06-22 青岛海信移动通信技术股份有限公司 System upgrading method and device
CN207008595U (en) * 2017-04-17 2018-02-13 中国电子科技集团公司第三十四研究所 A kind of device that configuration is remotely updated for FPGA device
CN109189445A (en) * 2018-10-12 2019-01-11 武汉微智创大科技有限公司 A kind of method of internet of things equipment program upgrading

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101216773A (en) * 2008-01-09 2008-07-09 深圳国人通信有限公司 Embedded Linux system firmware downloading method and device
CN105589706A (en) * 2014-10-29 2016-05-18 Tcl集团股份有限公司 Upgrade package generation method and device
CN104503805A (en) * 2014-12-29 2015-04-08 珠海全志科技股份有限公司 Method for upgrading embedded equipment through wired network
CN105700918A (en) * 2016-01-05 2016-06-22 青岛海信移动通信技术股份有限公司 System upgrading method and device
CN207008595U (en) * 2017-04-17 2018-02-13 中国电子科技集团公司第三十四研究所 A kind of device that configuration is remotely updated for FPGA device
CN109189445A (en) * 2018-10-12 2019-01-11 武汉微智创大科技有限公司 A kind of method of internet of things equipment program upgrading

Also Published As

Publication number Publication date
CN111417114A (en) 2020-07-14

Similar Documents

Publication Publication Date Title
CN100561433C (en) Embedded system and upgrade method thereof
CN109587005B (en) Connection detection method and device, computer equipment and readable storage medium
CN102915247B (en) APK plug-in unit management method
US20120117557A1 (en) Method and system for upgrading wireless data card
CN104580475A (en) Remote control method, terminal equipment, management server and remote control system
CN103200271B (en) The method of ARM server and automation installation system thereof
CN107678949B (en) Automatic testing method for realizing different communication modes of embedded equipment
CN101409778A (en) Method and apparatus for upgrading set-top box software
CN111427624A (en) Method, device and system for batch automatic deployment and configuration of servers
CN106210877A (en) The method for upgrading system of intelligent television and device
CN104503814A (en) Firmware program automatically downloading method of USB 3.0 data acquisition module
CN111638916B (en) General android mobile terminal driving system and method for data forensics
CN113542318B (en) Equipment fault repairing method
CN106897166A (en) A kind of mobile terminal and its restorative procedure
CN113608763A (en) Vehicle-mounted OTA upgrading method, device, equipment and operation machine
CN111417114B (en) Automatic upgrading method based on network port under U-boot
CN101593122B (en) Method and device for starting embedded system
CN101695027A (en) Method, device and network equipment for upgrading distributed communication system software
CN102622254A (en) Method and system for processing television outage
CN106897623A (en) It is a kind of support more than the chip that guides safely and its startup method
CN102801576B (en) The detection system of the network equipment and detection method
CN107332589A (en) A kind of device for upgrading firmware based on bluetooth
CN101465897A (en) Method for configuring IP telephone parameter
CN110908690A (en) CAN bus-based online upgrading method for multiple BMU application programs
CN106506276A (en) A kind of information detecting method for server

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