CN115758384A - Starting method, equipment and medium of embedded equipment - Google Patents

Starting method, equipment and medium of embedded equipment Download PDF

Info

Publication number
CN115758384A
CN115758384A CN202211485840.2A CN202211485840A CN115758384A CN 115758384 A CN115758384 A CN 115758384A CN 202211485840 A CN202211485840 A CN 202211485840A CN 115758384 A CN115758384 A CN 115758384A
Authority
CN
China
Prior art keywords
starting
control chip
information
target
main control
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.)
Pending
Application number
CN202211485840.2A
Other languages
Chinese (zh)
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.)
Sungrow Power Supply Co Ltd
Original Assignee
Sungrow Power Supply 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 Sungrow Power Supply Co Ltd filed Critical Sungrow Power Supply Co Ltd
Priority to CN202211485840.2A priority Critical patent/CN115758384A/en
Publication of CN115758384A publication Critical patent/CN115758384A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Stored Programmes (AREA)

Abstract

The application discloses a starting method, equipment and medium of embedded equipment. The method is applied to the embedded device and comprises the following steps: the main control chip is respectively connected with the starting control chip and the first memory, and the method comprises the following steps: when receiving a reset signal sent by a starting control chip, the main control chip determines that the starting loading condition is met currently and responds to the reset signal; determining target starting information from a starting configuration file according to a starting information selection signal sent by a starting control chip; and loading the kernel file from the target object associated with the target startup information through the running startup program so as to start the embedded equipment. By the arrangement, no erasing operation is performed in the starting process, the problem that the equipment cannot be started due to erasing is solved, at least two memories are used, the error-prone area and the error-prone area are isolated, and the reliability and the expansibility of equipment starting are enhanced.

Description

Starting method, equipment and medium of embedded equipment
Technical Field
The present application relates to the field of control technologies, and in particular, to a method, an apparatus, and a medium for starting an embedded device.
Background
The software of the embedded system is generally divided into two parts, namely a boot loader and a system file, wherein the system file comprises a kernel file and a file system. When the embedded system is started, the bootloader is operated firstly, then the kernel file is operated, and the file system is mounted automatically. Moreover, these software are usually stored in different partitions of the flash memory to reduce the impact on each other.
In addition, in order to improve the reliability of the startup of the embedded system, in the prior art, a plurality of partitions are added in the same memory to backup and repair the system files, so as to prevent the integrity of the partitions or software from being damaged due to power failure or line interruption and the like in the process of upgrading the system files, and the embedded system cannot be started normally. When the main system file has a problem, the system is started by the backup system file or is started after the main system file is repaired. However, in the former method, the switching between the main system file and the backup system file needs to be realized by changing the corresponding identifier, the change of the identifier relates to the erasing operation of the flash memory, and the increase of the erasing times easily causes bad blocks, so that the system cannot be started normally. The latter needs to repair the main system file, the repair process also involves erasing and writing operations of the flash memory, and improper operations or program BUG in the repair process can easily cause the startup program to be mistakenly changed, so that the system cannot be normally started.
Therefore, how to implement reliable startup of an embedded system is an urgent problem to be solved in the field.
Content of application
The application provides a starting method, equipment and medium of embedded equipment, so as to realize reliable starting of the embedded equipment.
According to a first aspect of the present application, there is provided a method for starting an embedded device, which is applied to the embedded device, and the embedded device includes: the method comprises a main control chip, a starting control chip and a first memory for storing a starting program and a starting configuration file, wherein the main control chip is respectively connected with the starting control chip and the first memory, and the method comprises the following steps:
when the main control chip receives a reset signal sent by the starting control chip, determining that the starting loading condition is met currently, and responding to the reset signal;
the main control chip determines target starting information matched with the starting information selection signal from the starting configuration file according to the starting information selection signal sent by the starting control chip;
and the main control chip loads a kernel file from a target object associated with the target starting information through the running starting program so as to start the embedded equipment, wherein the target object is determined based on the target starting information.
According to a second aspect of the present application, there is provided an embedded device comprising: the main control chip and the starting control chip also comprise a first memory for storing a starting program and a starting configuration file and at least one second memory for storing a kernel file, the main control chip is respectively connected with the starting control chip and the first memory,
the main control chip comprises:
the signal response module is used for determining that the starting loading condition is met currently when the reset signal sent by the starting control chip is received, and responding to the reset signal;
the information determining module is used for determining target starting information matched with the starting information selection signal from the starting configuration file according to the starting information selection signal sent by the starting control chip by the main control chip;
a file loading module, configured to load, by the main control chip through the running boot program, a kernel file from a target object associated with the target boot information to boot the embedded device, where the target object is determined based on the target boot information;
the main control chip is further used for executing the execution logic of the main control chip in the method of any one of the embodiments of the present application;
the starting control chip is used for executing the execution logic of the starting control chip in the method of any one of the embodiments of the present application.
According to a third aspect of the present application, there is provided a computer-readable storage medium storing computer instructions for causing a controller to implement a booting method of an embedded device according to any one of the embodiments of the present application when the computer instructions are executed.
According to the technical scheme of the embodiment of the application, when the main control chip receives the reset signal sent by the starting control chip, the main control chip determines that the starting loading condition is met currently, and responds to the reset signal; determining target starting information from a starting configuration file according to a starting information selection signal sent by a starting control chip; and loading the kernel file from the target object associated with the target startup information through the running startup program so as to start the embedded equipment. By the arrangement, no erasing operation is ensured in the starting process, the problem that the equipment cannot be started due to erasing is avoided, at least two memories are used, the error-prone area and the error-prone area are isolated, and the reliability and the expansibility of equipment starting are enhanced.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present application, nor do they limit the scope of the present application. Other features of the present application will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a flowchart of a method for starting an embedded device according to an embodiment of the present application;
fig. 2 is a flowchart of a method for starting an embedded device according to a second embodiment of the present application;
fig. 3 is an exemplary flowchart of a method for starting an embedded device according to a second embodiment of the present application;
fig. 4 is a schematic structural diagram of an embedded device implementing a starting method of the embedded device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example one
Fig. 1 is a flowchart of a method for starting an embedded device according to an embodiment of the present application, where the embodiment is applicable to a starting situation of the embedded device, and the method is applied to the embedded device, where the embedded device includes: the main control chip and the start control chip also comprise a first memory for storing a start program and a start configuration file, and the main control chip is respectively connected with the start control chip and the first memory. As shown in fig. 1, the method includes:
s110, when receiving a reset signal sent by a starting control chip, the main control chip determines that the starting loading condition is met currently, and responds to the reset signal.
It should be noted that the start control chip may include a state machine, the state machine runs in a memory of the start control chip, and the state machine controls the start control chip to send a signal. The internal state information variables in the state machine are unchanged at each power-up.
In this embodiment, the main control chip may be understood as a chip that implements a main control function of the embedded device, such as a processor CPU or a system on chip SOC. The start control chip can be understood as a corresponding chip which can control the power-on start of the main control chip. The reset signal may be understood as a signal that causes the main control chip to be powered up again. A boot load condition may be understood as a condition that may be powered up.
Specifically, a reset pin of the main control chip may be connected to a reset pin of the start control chip, after power-on start, the start control chip is first started, and the main control chip keeps a reset state without starting when not receiving a reset signal sent by the start control chip, and when receiving the reset signal sent by the start control chip through the reset pin, the main control chip determines that a start loading condition is currently satisfied, and then the main control chip starts power-on start. Or when the main control chip fails to start, the reset can be started again through the reset signal sent by the starting control chip.
And S120, the main control chip determines target starting information matched with the starting information selection signal from the starting configuration file according to the starting information selection signal sent by the starting control chip.
In this embodiment, the start information selection signal may be understood as a signal for instructing the master control chip to select the kernel file. The boot profile may be understood as a pre-defined profile stored in the first memory, which includes all boot information. The target booting information may be understood to include address information of a file required to boot the embedded device corresponding to the booting information selection signal.
Specifically, the main control chip includes a receiving pin connected to the start control chip and used for receiving the start information selection signal, the main control chip can receive the start information selection signal sent by the start control chip through the receiving pin after reset start, the start configuration file stored in the first memory can set a plurality of partitions, different start information can be stored in different partitions, the partitions are labeled, association is established between the partition label and the start information selection signal, the partition label matched with the label of the start information selection signal can be found out by searching the configuration file in the first memory according to the label of the start information selection signal, and the start information in the partition is used as the target start information.
For example, the boot configuration file included in the first memory may include 3 partitions, which are a boot information 1 partition, a boot information 2 partition, and a boot information 3 partition, respectively. The index of the start information selection signal may be 1, and the start information selection signal corresponds to the start information 1 partition in the first storage, that is, the target start information is the start information in the start information 1 partition. The number of the start information selection signal may be 2, which corresponds to the start information 2 partition in the first storage, i.e. the target start information is the start information in the start information 2 partition.
S130, the main control chip loads the kernel file from the target object associated with the target starting information through the running starting program so as to start the embedded equipment, wherein the target object is determined based on the target starting information.
In this embodiment, the boot program may be understood as a program for loading a kernel file, and may preferably be a bootloader. The target object may be understood as a body storing the kernel file, such as a memory or a network address terminal. A kernel file may be understood as a file that supports the proper functioning of an embedded device.
Specifically, the main control chip may perform reset starting and load the starting program in the first memory after receiving the reset signal sent by the starting control chip. Each memory can store at least one kernel file, and target startup information can be set in advance according to the kernel files stored in each memory, so that the target startup information is associated with the memory and the kernel files in the memory. The main control chip can determine a target object according to the address information and the kernel file information included in the target starting information, can read the kernel file corresponding to the target starting information from the target object, and loads the kernel and the file system in the read kernel file through the running starting program so as to start the embedded device.
The starting method of the embedded device provided by the embodiment is applied to the embedded device, and includes: the main control chip is respectively connected with the starting control chip and the first memory, and the method comprises the following steps: when the main control chip receives a reset signal sent by the starting control chip, determining that the starting loading condition is met currently, and responding to the reset signal; determining target starting information from a starting configuration file according to a starting information selection signal sent by a starting control chip; and loading the kernel file from the target object associated with the target startup information through the running startup program so as to start the embedded equipment. By the arrangement, no erasing operation is ensured in the starting process, the problem that the starting cannot be started due to erasing is avoided, at least two storage media are used for storing the starting program and the kernel file respectively, the error-prone area and the error-prone area are isolated, the starting program is prevented from being mistakenly modified due to improper operation or program BUG, and the reliability and the expansibility of starting the equipment are enhanced.
As a first optional embodiment provided by the first embodiment, on the basis of the above embodiment, further optimization includes:
and if the embedded equipment is detected to be started successfully, outputting a starting monitoring signal representing the successful starting to the starting control chip.
Specifically, the main control chip further comprises a sending pin for sending a start monitoring signal to the start control chip, after the start program loads the kernel file, the main control chip can automatically detect whether the embedded device is successfully started according to a set detection mode, and when the main control chip detects that the embedded device is successfully started, the main control chip can send a start monitoring signal representing successful start to the start control chip through the sending pin. And when the embedded equipment is detected to be failed to start, not sending a start monitoring signal to the start control chip.
In a first optional embodiment of this embodiment, whether the embedded device is successfully started is detected by the main control chip, and a start monitoring signal indicating that the start is successful is output to the start control chip, so that the start control chip can determine whether to reset again according to whether the start monitoring signal exists, and the start control chip can also monitor whether the main control chip is successfully started by the start monitoring signal, so that the starting process is more complete, and the automation of the starting process is realized.
As a second optional embodiment provided by the first embodiment, on the basis of the above embodiment, further optimization includes:
and after receiving the power-on signal, the starting control chip sends a reset signal to the main control chip.
In this embodiment, the power-on signal may be understood as a signal sent when the power supply module starts.
It should be noted that, usually, the power supply module is directly connected to the power pin of the main control chip, so as to directly provide power for the main control chip through the power supply module, and when the power supply module is powered on, the main control chip is directly powered on and started.
Specifically, a power pin of the power supply module can be connected with a power pin of the start control module, after the power supply module is powered on, an electric signal can be sent to the start control module through the power pin, a reset pin of the main control chip is connected with a reset pin of the start control module, and the main control chip can not be powered on and started when not receiving a reset signal and is kept in a reset state. After the start control module receives the power-on signal, a reset signal can be sent to a reset pin of the main control chip, and the main control chip can be reset and started through the reset signal.
As a third optional embodiment provided by the first embodiment, on the basis of the above embodiment, further optimization includes:
and when the start control chip does not receive the start monitoring signal fed back by the main control chip within the set interval duration after the reset signal is sent, the reset signal is sent to the main control chip again.
In the present embodiment, the set interval duration may be understood as a duration for waiting for the reception of the start monitoring signal.
It should be noted that, after receiving the reset signal, the main control chip may load the kernel file on the target object according to the above method, start the embedded device, and after the embedded device is started, the main control chip may automatically send a start monitoring signal indicating that the start is successful to the start control chip, and the start process may experience a period of time, and then the interval time referred by the start control chip may be set according to the start time, and the start control chip may determine whether the start of the embedded device is successful by receiving the start monitoring signal within the interval time.
Specifically, the start control chip may start timing after sending the reset signal, obtain a time length sent by the reset signal as a start time length of the embedded device, compare the start time length with a set interval time length, and when the start time length does not reach the set interval time length and receives a start monitoring signal sent by the main control chip, the start control chip considers that the start of the embedded device is successful. And when the starting time length reaches the set interval time length and the starting monitoring signal sent by the main control chip is not received, the embedded equipment is considered to be unsuccessfully started, the reset signal is sent to the main control chip again, and the main control chip is controlled to be reset and started again.
Optionally, after the starting control chip sends the reset signal to the main control chip, the method further includes:
and releasing the reset signal and sending the determined starting information selection signal to the main control chip.
Specifically, if the kernel file in the target object corresponding to the last sent start information selection signal cannot start the embedded device, the start information selection signal needs to be changed, and the start control chip can perform +1 on the label of the start information selection signal and send the start information selection signal under the new label to the main control chip after sending the reset signal to the main control chip each time.
Further, the step of determining the start information selection signal includes:
and a1, accumulating the times of sending the reset signals to obtain an accumulated reset time value.
In this embodiment, the accumulated reset number value can be understood as the reset number at one power-on.
Specifically, the start control chip may accumulate the number of times of sending the reset signal after sending the reset signal each time, to obtain an accumulated reset number value.
For example, after the control chip is powered on, a reset signal is sent to the main control chip for the first time, the accumulated reset time value is 1, a reset signal is sent to the main control chip again, the corresponding accumulated reset time value is 2, and so on.
b1, if the accumulated value of the reset times is larger than or equal to the set accumulated threshold value, using the information selection signal associated with the specific signal value as a starting information selection signal.
In the present embodiment, the accumulation threshold may be understood as a threshold that coincides with the total number of kernel files included. The specific signal value may be understood as a signal value indicating a correspondence between the network address information selection signals, and the information selection signals may be understood as signals set in advance for selecting the target object.
Specifically, the association between the reset number accumulated value and the label of the information selection signal may be established in advance, the reset number accumulated value may be compared with an accumulated threshold value, and when the reset number accumulated value is greater than or equal to the set accumulated threshold value, the information selection signal associated with the specific signal value may be used as the start information selection signal.
Illustratively, the specific signal value may be 3, and the accumulation threshold may also be 3. When the reset times accumulated value is 3, and the reset times accumulated value is equal to the accumulated threshold value, the number of the information selection signal related to the specific signal value is also 3, the corresponding starting information is the network address information, and the address information selection signal with the number of 3 is used as the starting information selection signal.
And c1, if not, taking the information selection signal associated with the reset times accumulated value as a starting information selection signal.
Specifically, the association between the reset number accumulated value and the label of the information selection signal may be established in advance, and when the reset number accumulated value is smaller than the accumulated threshold value, the information selection signal corresponding to the reset number accumulated value may be searched for according to the reset number accumulated value, and the information selection signal may be used as the start information selection signal.
Illustratively, the index of the associated information selection signal is also 1 when the reset number accumulated value is 1, the index of the associated information selection signal is also 2 when the reset number accumulated value is 2, the index of the associated information selection signal is also 3 when the reset number accumulated value is 3, and so on until the reset number accumulated value is equal to the accumulated threshold value, the index of the associated information selection signal is the specific signal value.
In a third optional embodiment of this embodiment, whether to continue sending the reset signal is determined by the start control chip according to the start monitoring signal, and the start information selection signal to be sent is automatically selected according to the reset times by counting the reset times, so that automation of the start process is achieved. Because the starting control chip is controlled by the state machine running in the memory, no erasing operation is ensured in the starting process.
Example two
Fig. 2 is a flowchart of a method for starting an embedded device according to a second embodiment of the present application, where the second embodiment is further optimized based on the foregoing embodiments. As shown in fig. 2, the method includes:
s210, when receiving a reset signal sent by a starting control chip, the main control chip determines that the starting loading condition is met currently, and responds to the reset signal.
S220, the main control chip determines matching information associated with the starting information selection signal from the starting configuration file according to the starting information selection signal sent by the starting control chip.
In this embodiment, the matching information may be understood as the start information associated with the start information selection signal, and may be divided into memory information and network address information.
Specifically, the main control chip may select a signal according to the start information sent by the start control chip, the start configuration file stored in the first memory may set a plurality of partitions, different start information may be stored in different partitions, and the partitions are labeled, and then an association is established with the start selection signal through the partition label, and the partition label matched with the label of the start information selection signal may be found out by searching the configuration file in the first memory according to the label of the start information selection signal, and the matching information in the partition is used as the target start information.
S230, when the matching information is the target memory information, taking the target memory information as target starting information; wherein, the target memory is one of the second memories.
In this embodiment, the embedded device further includes at least one second memory storing the kernel file. Target memory information may be understood as information that includes memory addresses and kernel file information.
Specifically, when the matching information corresponds to target storage information, the target storage information may be used as target start information.
Illustratively, a plurality of memories other than the first memory may be included, the memories being numbered memory 2, memory 3, and memory 4, respectively. The memory 2 may include two partitions associated with kernel files, a primary kernel partition and its corresponding primary file system partition, and a backup kernel partition and its corresponding backup file system partition. The memory 3 may include a partition associated with the kernel file, which is the primary kernel partition and its corresponding primary file system partition. The memory 4 may include three partitions associated with kernel files, one being a primary kernel partition and its corresponding primary file system partition, one being a standby kernel 1 partition and its corresponding standby file system 1 partition, and one being a standby kernel 2 partition and its corresponding standby file system 2 partition. When the matching information is the target memory information, it may correspond to information related to the memory 2, the memory 3, or the memory 4, and then the matching information may be a primary kernel partition in the memory 2, or may be a primary kernel partition in the memory 3, or may be a standby kernel 2 partition in the memory 4, or the like.
And S240, when the matching information is the network address information, taking the network address information as target starting information.
In this embodiment, the network address information may be understood as network address information containing a kernel file that is set in advance.
Specifically, the start matching file may be distinguished from a partition storing the memory information and used for storing the network address information, and when the matching information is the network address information, the network address information is used as the target start information.
Illustratively, the index corresponding to the network address information partition is 3, and when the index of the start information selection signal is also 3, the matching information corresponding to the start information selection signal is the network address information in the network address information partition.
And S250, loading the kernel file from the target object associated with the target starting information by the main control chip through the running starting program so as to start the embedded equipment, wherein the target object is determined based on the target starting information.
Further, the step of determining the target object based on the target start-up information comprises:
and a2, when the target starting information is the target memory information, determining a target memory and a target kernel file which are matched with the target starting information, and taking the target memory and the target kernel file as target objects.
Specifically, when the target boot information is target memory information, the main control chip may search a target memory corresponding to a target memory address in the target boot information from a connected memory, read a target kernel file in the target memory according to kernel file information in the target boot information, and use the target memory and the target kernel file as target objects.
For example, the target memory information may be a master core partition in the memory 2, and the master control chip may read a master core file and a master file system corresponding to the master core partition in the memory 2. Or may be a main core partition in the memory 3, the main control chip may read a main core file and a main file system corresponding to the main core partition in the memory 3. Or may be the spare kernel 2 partition in the memory 4, the main control chip may read the spare kernel file and the spare file system 2 corresponding to the spare kernel 2 partition in the memory 4.
And b2, when the target starting information is network address information, determining a target address terminal matched with the network address, and taking the target address terminal as a target object.
Specifically, when the target start information is network address information, the main control chip may connect to a network through the network module, search for the network address, determine a target address terminal under the network address, and read a kernel file provided in the target address terminal by using the target address terminal as a target object.
In the second embodiment of the present invention, a boot program and a boot configuration file are stored in a first memory, so that the first memory becomes a readable storage area, and other second memories are stored in a kernel file, so as to form a readable and writable storage area, thereby isolating an error-prone area and an error-prone area. The main control chip can read target starting information in the starting configuration file according to the starting information selection signal, then read kernel files in other second memories or network address terminals according to the target starting information, and load the kernel files through the starting program, so that the starting of the embedded device is realized, and the erasing operation is not performed in the whole process. The starting control chip controlled by the state machine running in the memory judges whether to send a reset signal according to the starting monitoring signal, the reset times are accumulated, the preset starting information selection signal is matched according to the reset times, the accumulated value is only used as the value of the current power-on, the value cannot be stored by crossing the power-on for two times, and the starting control chip is ensured not to have the erasing process, so that the erasing operation in the starting process is ensured, the problem of incapability of starting due to erasing is avoided, and the reliability and the expansibility of equipment starting are improved.
For convenience of understanding, the embedded device booting method provided by the present embodiment is exemplarily shown. Taking a second memory as an example, the second memory includes two partitions, one is a primary kernel partition and its corresponding primary file system partition, and the other is a standby kernel partition and its corresponding standby file system partition. The accumulation threshold is set to 3. Fig. 3 is an exemplary flowchart of a method for starting an embedded device according to a second embodiment of the present application.
As shown in fig. 3, the steps of the method may be:
s301, starting the control chip to be powered on and started, and keeping the main control chip in a reset state;
s302, starting the control chip to release the reset signal and the starting information selection signal 1 to the main control chip;
s303, the main control chip responds to the reset signal and determines starting information 1 matched with the starting information selection signal 1 from the starting configuration file according to the starting information selection signal;
s304, the main control chip loads a main kernel file and a main file system in a second memory corresponding to the starting information 1 through the running starting program;
s305, whether the main control chip is started successfully or not is judged, if yes, the step is jumped to S314, and if not, the step is jumped to S306;
s306, the starting control chip detects that the starting monitoring signal is not received and sends a reset signal to the main control chip;
s307, starting the control chip to judge whether the reset is carried out for the third time, if so, jumping to S311, and if not, jumping to S308;
s308, the starting control chip outputs a starting information selection signal 2 to the main control chip;
s309, the main control chip responds to the reset signal, and determines starting information 2 matched with the starting information selection signal 2 from the starting configuration file according to the starting information selection signal 2;
s310, the main control chip loads a standby kernel file and a standby file system in a second memory corresponding to the starting information 2 through the running starting program;
s311, the starting control chip outputs a starting information selection signal 3 to the main control chip;
s312, the main control chip responds to the reset signal, and according to the starting information selection signal 3, starting information 3 matched with the starting information selection signal 3 is determined from the starting configuration file;
s313, the main control chip loads the network kernel file and the network file system in the network address terminal corresponding to the starting information 3 through the running starting program;
and S314, the main control chip outputs a starting monitoring signal to the starting control chip.
EXAMPLE III
Fig. 4 is a schematic structural diagram of an embedded device 10 according to a third embodiment of the present application. As shown in fig. 3, the apparatus includes:
the main control chip 11 and the startup control chip 12 further include a first memory 13 storing a startup program and a startup configuration file, and at least one second memory 14 storing a kernel file, and the main control chip 11 is connected to the startup control chip 12 and the first memory 13, respectively.
The main control chip includes:
the signal response module is used for determining that the starting loading condition is met currently when a reset signal sent by the starting control chip is received, and responding to the reset signal;
the information determining module is used for determining target starting information matched with the starting information selection signal from the starting configuration file according to the starting information selection signal sent by the starting control chip by the main control chip;
the file loading module is used for loading the kernel file from the target object associated with the target starting information by the main control chip through the running starting program so as to start the embedded equipment, wherein the target object is determined based on the target starting information;
the main control chip is also used for executing the execution logic of the main control chip in any method of the embodiment;
the starting control chip is used for executing the execution logic of the starting control chip in any method of the embodiment.
The embedded device 10 provided in the embodiment of the present application can execute the method for starting the embedded device provided in any embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method.
The embedded device 10 includes: an input unit 15 such as a keyboard, a mouse, or the like; an output unit 16 such as various types of displays, speakers, and the like; a storage unit 17 such as a magnetic disk, an optical disk, or the like; and a communication unit 18 such as a network card, modem, wireless communication transceiver, etc. The communication unit 18 allows the embedded device 10 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for implementing the methods of the present application may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this application, a computer readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage 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. Alternatively, the computer readable storage medium may be a machine readable signal medium. 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 compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a first component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, first, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above, reordering, adding or deleting steps, may be used. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solution of the present application can be achieved, and the present invention is not limited thereto.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A starting method of an embedded device is applied to the embedded device, and the embedded device comprises the following steps: the main control chip is respectively connected with the starting control chip and the first memory, and the method comprises the following steps:
when the main control chip receives a reset signal sent by the starting control chip, the main control chip determines that the starting loading condition is met currently, and responds to the reset signal;
the main control chip determines target starting information matched with the starting information selection signal from the starting configuration file according to the starting information selection signal sent by the starting control chip;
and the main control chip loads a kernel file from a target object associated with the target starting information through the running starting program so as to start the embedded equipment, wherein the target object is determined based on the target starting information.
2. The method according to claim 1, wherein the embedded device further comprises at least one second memory storing a kernel file;
the determining, from the boot configuration file, target boot information that matches the boot information selection signal includes:
determining matching information associated with the activation information selection signal from the activation profile;
when the matching information is target memory information, the target memory information is used as target starting information; wherein, the target memory is one of the second memories;
and when the matching information is network address information, taking the network address information as target starting information.
3. The method of claim 2, wherein the step of determining the target object based on the target initiation information comprises:
when the target starting information is target memory information, determining a target memory and a target kernel file which are matched with the target starting information, and taking the target memory and the target kernel file as target objects;
and when the target starting information is network address information, determining a target address terminal matched with the network address, and taking the target address terminal as a target object.
4. The method of claim 1, wherein after the master control chip loads the kernel file, the method further comprises:
and if the embedded equipment is detected to be successfully started, outputting a starting monitoring signal representing successful starting to the starting control chip.
5. The method of claim 1, further comprising:
and after receiving the power-on signal, the starting control chip sends a reset signal to the main control chip.
6. The method of claim 1, further comprising:
and when the start control chip does not receive the start monitoring signal fed back by the main control chip within the set interval duration after the reset signal is sent, the reset signal is sent to the main control chip again.
7. The method according to claim 5 or 6, wherein after sending the reset signal to the main control chip, the starting control chip further comprises:
and releasing the reset signal and sending the determined starting information selection signal to the main control chip.
8. The method of claim 7, wherein the step of determining the activation information selection signal comprises:
accumulating the times of sending the reset signals to obtain an accumulated value of the reset times;
if the reset times accumulated value is larger than or equal to a set accumulated threshold value, taking an information selection signal associated with a specific signal value as a starting information selection signal;
and if not, taking the information selection signal associated with the reset times accumulated value as a starting information selection signal.
9. An embedded device, comprising: the main control chip and the starting control chip also comprise a first memory for storing a starting program and a starting configuration file and at least one second memory for storing a kernel file, the main control chip is respectively connected with the starting control chip and the first memory,
the main control chip comprises:
the signal response module is used for determining that the starting loading condition is met currently when the reset signal sent by the starting control chip is received, and responding to the reset signal;
the information determining module is used for determining target starting information matched with the starting information selection signal from the starting configuration file according to the starting information selection signal sent by the starting control chip by the main control chip;
a file loading module, configured to load, by the main control chip through the running boot program, a kernel file from a target object associated with the target boot information to boot the embedded device, where the target object is determined based on the target boot information;
the main control chip is also used for executing the execution logic of the main control chip in the method of any one of claims 1 to 8;
the starting control chip is used for executing the execution logic of the starting control chip in the method of any one of claims 1 to 8.
10. A computer-readable storage medium storing computer instructions for causing a controller to implement the method of booting an embedded device according to any one of claims 1-8 when executed.
CN202211485840.2A 2022-11-24 2022-11-24 Starting method, equipment and medium of embedded equipment Pending CN115758384A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211485840.2A CN115758384A (en) 2022-11-24 2022-11-24 Starting method, equipment and medium of embedded equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211485840.2A CN115758384A (en) 2022-11-24 2022-11-24 Starting method, equipment and medium of embedded equipment

Publications (1)

Publication Number Publication Date
CN115758384A true CN115758384A (en) 2023-03-07

Family

ID=85337471

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211485840.2A Pending CN115758384A (en) 2022-11-24 2022-11-24 Starting method, equipment and medium of embedded equipment

Country Status (1)

Country Link
CN (1) CN115758384A (en)

Similar Documents

Publication Publication Date Title
CN111045901B (en) Container monitoring method and device, storage medium and electronic equipment
CN110780890A (en) System upgrading method and device, electronic equipment and medium
CN103324495A (en) Method and system for data center server boot management
CN105446827A (en) Data storage method and device for database at failure
CN113672306B (en) Server component self-checking abnormity recovery method, device, system and medium
CN109634659A (en) Method, apparatus, equipment and the storage medium that a kind of couple of BMC is controlled
CN109634782B (en) Method and device for detecting system robustness, storage medium and terminal
CN115758384A (en) Starting method, equipment and medium of embedded equipment
CN111045885A (en) Database log file processing method and device and computer equipment
CN116301997A (en) Upgrading method, device, equipment and medium of controller
CN110362430A (en) A kind of method being restarted automatically, system and the storage medium of server
CN115221092A (en) Method, device and equipment for determining distributable bus of PCI-E card and storage medium
CN114860292A (en) Terminal equipment firmware upgrading control method and device, computer equipment and medium
CN113515291A (en) Equipment online upgrading method and device
CN113127029A (en) Firmware updating method and device, electronic equipment and storage medium
CN115344327B (en) Application module switching method and device, electronic equipment and readable storage medium
CN103106089A (en) Upgrading method and system for intelligent platform management controller
CN111817895B (en) Master control node switching method, device, equipment and storage medium
CN109557857B (en) Method, device and system for controlling time sequence starting signal based on Intel platform
CN115617616A (en) Operation monitoring method, device and equipment of server FRU and storage medium
CN116737185A (en) Mirror image loading method, device, equipment and medium
CN116893833A (en) Remote upgrade complex programmable logic device operating system, method and medium
CN116991445A (en) Firmware upgrading method, device, equipment and readable storage medium
CN117971272A (en) Program upgrading method and electronic equipment
CN117075977A (en) Method and device for starting processor, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination