Supercharge Your Innovation With Domain-Expert AI Agents!

File system programming method of embedded equipment and terminal

An embedded device and file system technology, applied in the computer field, can solve problems such as easy operation errors, cumbersome processes, losses, etc., and achieve the effects of ensuring normal operation, improving simplicity and high accuracy

Inactive Publication Date: 2021-03-09
福州创实讯联信息技术有限公司
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, on the uboot of the embedded universal device, the storage device cannot be partitioned and formatted, and there is no file system in the storage device under normal circumstances, only the files on the external device can be started, and a ramdisk format file system can be temporarily started , partition and format the storage device, and then decompress the file system to the device. This process is cumbersome, time-consuming, and prone to operational errors, resulting in losses. In addition, the operator must have some understanding of embedded devices. Difficult to achieve simple goals

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
  • File system programming method of embedded equipment and terminal
  • File system programming method of embedded equipment and terminal
  • File system programming method of embedded equipment and terminal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0060] Please refer to figure 1 and image 3 , Embodiment 1 of the present invention is:

[0061] A file system programming method for an embedded device, comprising:

[0062] S1. Start uboot and receive the image to be programmed in the preset format;

[0063] In this embodiment, after obtaining information such as the disk partition, file system, and partition file of the machine, the research and development personnel compare the size of the file system with the DDR size of the machine. The production method is to make a mirror image, otherwise, if the file system size is larger than the DDR size, it is necessary to compress unnecessary files and commands in the file system before making the mirror image. DDR corresponds to the memory in the following text.

[0064] How to make a mirror image:

[0065] Create an empty mirror (the mirror name is replaced by rootfs.bin, the following is also)

[0066] dd if= / dev / zero of=rootfs.bin bs=1M count=80

[0067] Format the cre...

Embodiment 2

[0096] Please refer to figure 2 , the second embodiment of the present invention is:

[0097] A file system programming terminal 1 of an embedded device includes a processor 2, a memory 3 and a computer program stored on the memory 3 and operable on the processor 2, and the processor 2 implements the computer program when executing the computer program Steps in the first embodiment above.

[0098] In summary, the present invention provides a file system programming method and terminal for an embedded device. The file system to be programmed by the embedded device is made into an image in advance, and the image contains partition information. The information is written into the front 512 bytes of the device storage space, thus realizing the partitioning of the disk directly under uboot, and the subsequent file writing can be directly performed, eliminating the cumbersome operation steps in the middle of the original solution, and improving the ease of operation To a certain ...

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 discloses a file system programming method of embedded equipment and a terminal. The method comprises the following steps: starting uboot, and receiving a to-be-programmed mirror image in a preset format; analyzing the to-be-programmed mirror image, writing partition data of 512 bytes at a preset position in the to-be-programmed mirror image into the 512 bytes at the foremost end ofa storage space of disk storage equipment, and completing partition of the disk storage equipment; reading partition files except the partition data in the mirror image to be programmed, and respectively writing the partition files into corresponding partitions of the disk storage device in sequence; the mirror image of the to-be-programmed file system comprises the partition information, the partition information in the mirror image is written into the 512 bytes in the forefront of the storage space of the device, disk partitioning is directly carried out under uboot, subsequent file writingcan be directly carried out, tedious operation steps in the original scheme are omitted, the operation simplicity degree is improved. And the accuracy of the process is high, and the normal operationof equipment is ensured.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a method for programming a file system of an embedded device and a terminal. Background technique [0002] In embedded devices, the memory of the general device is not very large, but when the file system and the partition used by the system occupy too much, it cannot be completely saved on the DDR through uboot. At this time, it is necessary to cut down a minimum bootable file system, and then compress other files in the file system, and create corresponding files as identifiers, then write them naked into the storage device, and release the compressed files when the identifier is detected when the device starts for the first time. [0003] However, on the uboot of the embedded universal device, the storage device cannot be partitioned and formatted, and there is no file system in the storage device under normal circumstances, only the files on the external device can be start...

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): G06F8/61
CPCG06F8/63
Inventor 张水生
Owner 福州创实讯联信息技术有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More