Method of verifying image files of embedded Linux equipment

A technology for embedded devices and image files, applied in the direction of digital data protection, etc., can solve the problems of inflexible verification methods and inconvenience for users to verify in real time, and achieve the effect of improving the inability to instantly calculate and verify image files in real time.

Inactive Publication Date: 2015-02-25
KUNDA COMP TECHKUSN +1
View PDF3 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

And generally want to confirm the image file that burns in described storage device, can only confirm the checksum of this image file before burning in, or the checksum of known this image file is filled somewhere in advance, through comparison If it matches, it will display the previously filled checksum, and if it does not match, it will display a fixed error message
It can be seen that the existing image file verification method is relatively inflexible and needs to be prepared in advance, which is inconvenient for users to verify instantly

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method of verifying image files of embedded Linux equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] see figure 1 Shown, a kind of embedded Linux device image file verification method of the present invention comprises the following steps:

[0019] Step 101: Calculate the file frame size required for the original data of the image file to be verified to be completely covered, the file frame is constructed from data blocks of a specific size (block size), and the size of each data block can be 512 bytes or 256bytes.

[0020] Step 102: Calculate the difference between the size of the file frame and the size of the original data of the image file to be verified to obtain the size of the unoccupied space in the file frame by the original data of the image file to be verified.

[0021] Step 103: Fill the unoccupied space in the file frame with 0s to complete, and calculate the checksum (checksum) of the original data of the image file to be verified after the 0s are added in the file frame.

[0022] Step 104: Starting from the beginning of the image file to be verified in...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a method of verifying image files of embedded Linux equipment. The method includes the steps of a, calculating the size of a file frame required for fully covering original data of an image file to be verified; b, acquiring the size of the space, not occupied by original data of the image file to be verified, of the file frame; c, filling the unoccupied space of the file frame through 0, and calculating a checksum of the original data of the image file after the inside of the file frame is filled with 0; d, extracting the image file to be extracted, from a storage device of the Linux equipment, and calculating a checksum of the image file; e, judging whether or not the checksum of the original data of the image file obtained after the inside of the file frame is filled with 0 is equal to the checksum of the image file in the storage device, by comparison; if yes, executing the step f; if not, executing the step g; f, sending out a correctness reminder message; and g, sending an error reminder message. The image files can be verified in real time by the method.

Description

【Technical field】 [0001] The invention relates to a method for verifying an image file of an embedded Linux device. 【Background technique】 [0002] For embedded Linux devices, usually when we want to know the system information, verify whether the factory or self-burning is correct, or the system has a BUG, ​​we want to confirm the storage device (flash or SD / SMMC) of the embedded Linux device. Image file (image) version and checksum (checksum). And generally want to confirm the image file that burns in described storage device, can only confirm the checksum of this image file before burning in, or the checksum of known this image file is filled somewhere in advance, through comparison If it matches, it will display the previously filled checksum, and if it does not match, it will display a fixed error message. It can be seen that the verification method of the existing image file is relatively inflexible and needs to be prepared in advance, which is inconvenient for the u...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F21/64
CPCG06F21/64
Inventor 蔡政育
Owner KUNDA COMP TECHKUSN
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products