A method and device for loading and starting an embedded system
A technology of embedded system and startup device, applied in the direction of program loading/starting, program control device, etc., can solve the problem that the system cannot be started, 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 loaded data into several data blocks and sequentially number the several data blocks, and add a data header to the loaded data to form backup data.
[0045] In step S101, described loading data refers to the operating system data of embedded system; Embedded system is made up of hardware and software two parts, and the hardware part of embedded system comprises microprocessor, Flash flash memory, RAM, peripheral device 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 memory. When the embedded system starts, 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 instructions on the process of checking whether the data header of the current backup data is wrong and whether the current data block is wrong.
[0070] see figure 2 , a method for loading and starting an embedded system, the method comprising:
[0071] S201. Divide the loaded data into several data blocks and sequentially number the several data blocks, and add a data header to the loaded 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 a plurality of backup data in the memory, and number the plurality of 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, and S203 are descr...
Embodiment 3
[0092] The difference between embodiment three and embodiment one and two is that embodiment three takes M=8, N=2 as an example, respectively calculates the probability that the system cannot start under the existing method and the probability that the system cannot start under the method of the present invention, through Specific data illustrate the beneficial effect 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 error probability of each data block is 1%.
[0094] Calculate the probability that the system cannot be started in the existing way:
[0095]
[0096]
[0097] In the prior art, the backup data is not divided into blocks, once a certain position of the backup data is wrong, the whole backup data is wrong. In this way,
[0098] The error probability of each backup data is: 1%*8=0.08;
[0099] The probability of two backup data errors at the same time is: 0.08*0.08=0.00...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com