Method and device for loading and starting embedded system
An embedded system and startup device technology, applied in the direction of program loading/starting, program control devices, etc., can solve the high-level problems that the system cannot start, and achieve the effect of reducing the probability of failure to start
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0043] see figure 1 , a method for loading and starting an embedded system, the method comprising:
[0044] S101. Divide the load data into several data blocks and sequentially number the several data blocks, and add a data header to the load data to form backup data.
[0045] In step S101, the loading data refers to the operating system data of the embedded system; the embedded system is composed of hardware and software, and the hardware part of the embedded system includes a microprocessor, Flash memory, RAM, peripheral devices and I / O ports, etc.; the software part of the embedded system mainly includes Bootloader, kernel and operating system data, etc. Generally speaking, the operating system data of the embedded system is stored in the Flash flash memory. When the embedded system starts, The operating system data needs to be loaded into RAM for it to start running;
[0046] The loaded data is divided into M data blocks, and the M data blocks are sequentially numbered, ...
Embodiment 2
[0069] The difference between the second embodiment and the first embodiment is that the second embodiment adds specific descriptions of the process of verifying whether the data header of the current backup data is in error and the process of verifying whether the current data block is in error.
[0070] see figure 2 , a method for loading and starting an embedded system, the method comprising:
[0071] S201. Divide the loading data into several data blocks, number the several data blocks sequentially, and add a data header to the loading data to form backup data.
[0072] Wherein, the data header includes the check values of the several data blocks and the check value of the data header itself.
[0073] S202. Back up several backup data in the memory, and number the several backup data sequentially.
[0074] S203. The system loads the plurality of backup data in turn, and uses the backup data to be loaded this time as the current backup data.
[0075] Steps S201, S202,...
Embodiment 3
[0092] The difference between Embodiment 3 and Embodiments 1 and 2 is that in Embodiment 3, M=8 and N=2 are used as examples to calculate the probability that the system cannot be started under the existing method and the probability that the system cannot be started under the method of the present invention. Specific data will illustrate the beneficial effects of the present invention.
[0093] N=2, there are two backup data; M=8, each backup data is divided into 8 data blocks, assuming that the probability of error of each data block is 1%.
[0094] Calculate the probability that the system cannot start in the existing way:
[0095]
[0096]
[0097] In the prior art, the backup data is not divided into blocks, and once a certain position of the backup data is faulty, the entire backup data is faulty. In this way,
[0098] The probability of each backup data error is: 1%*8=0.08;
[0099] The probability of two backup data errors at the same time is: 0.08*0.08=0.0064...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 