OA18307A - A method for increasing programming speed of a system firmware. - Google Patents

A method for increasing programming speed of a system firmware. Download PDF

Info

Publication number
OA18307A
OA18307A OA1201700262 OA18307A OA 18307 A OA18307 A OA 18307A OA 1201700262 OA1201700262 OA 1201700262 OA 18307 A OA18307 A OA 18307A
Authority
OA
OAPI
Prior art keywords
mirror
file system
size
firmware
programming
Prior art date
Application number
OA1201700262
Inventor
Shenghua Liu
Original Assignee
Yutou Technology (Hangzhou) 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 Yutou Technology (Hangzhou) Co., Ltd. filed Critical Yutou Technology (Hangzhou) Co., Ltd.
Publication of OA18307A publication Critical patent/OA18307A/en

Links

Abstract

The invention relates to a semiconductor field, especially to a method for increasing programming speed of a system firmware. The invention adjusts the size of an intermediate file system, generates the corresponding mirror of the system according to the size of the adjusted intermediate file system, then program the mirror of the system into the flash memory of the device. Thus the size of the mirror of the system is reduced efficiently, the time of making the mirror of the system and transmitting the mirror to the memory is saved, the time of programming the mirror of the system into the flash memory is saved, and the programming speed of the system firmware is increased efficiently.

Description

BACKGROUND OFTHE INVENTION
1. Field of the Invention
The présent disclosure relates to a semîconductor field, more specifically, to a method for increasing programming speed of a system firmware.
2. Description of the Related Art
The System firmware (such as ROM) refers to a solidified software which writes a certain program in a flash memory in a spécifie hardware system. The firmware of a mobile is équivalent to the system of a mobile, and refreshing the firmware is équivalent to refreshing the system.
The system program generates the mirror of the system firstly, then the mirror of the system is transmitted to the memory of the device to programme into the memory of the device. To meet the requirement of adding new data during the process of using, the size of the mirror of the system generated by the program “system” is much larger than the size of the program “system”. For example, a system program with a size of 500M (Mbit) may results in a mirror of the System “system.img” with a size of IG (Gbit) or even more. Thus the system firmware is so large that the time-consuming of making the minor is long and the speed of programming the mirror into the hardware is slow.
In the prior art, to increase programming speed of a system firmware, some manufacturera compress the system intermediate file with the System file which can store the data, then generate the mirror of the system according to the compressed intermediate file system, transmit the mirror to the memory. Although the method accelerates the speed of transmitting the file into the memory, but prior to programming the mirror of the system into the flash memory, the mirror of the System should decompressed and it is also tîme-consuming. Therefore, it is difïïcult for the people skilled in the art to shorten the time of making the mirror of the system and programming the mirror into the hardware device efficiently, and to increase programming speed of a system firmware without changing other performance.
SUMMARY OFTHE INVENTION
To increase programming speed of a system firmware efficiently, the invention provides a method for increase programming speed of a system firmware. The method is implemented by adjusting the size of an intermediate file system, generating a corresponding mirror of the system according to the size of the adjusted intermediate file system, programming the mirror of the system into the flash device. The method is:
The technical solution ofthe présent invention is:
A method for increasing programming speed of a system firmware, applied to a terminal device with a file system and a flash memory, comprising the steps of:
(a) generating an intermediate file system according to the required build-in program data in the file system;
(b) adjusting the size of the intermediate file system;
(c) generating a mirror of the file system according to the adjusted intermediate file system;
(d) programming the mirror of the file system into the flash memory;
wherein, the différence value between the size of the mirror of the file system and the size of the required build-in program data in the file system is D, andO^D^lôM (Mbit).
Preferably, the method for increasing programming speed of a system firmware, wherein;
after the step of generating a mirror of the file system and prior to the step of programming the mirror of the file system into the flash memory of the terminal device, further comprising a step of transmitting the mirror of the file system to the memory of the terminal device.
Preferably, the method for increasing programming speed of a system firmware, further comprising:
(e) after programming the mirror of the file system into the memory, adjusting the size of the file system to the size prior to the adjustment of the, intermediate file system when executes the system firmware for the first time.
Preferably, the method for increasing programming speed of a system firmware, wherein the file system comprises format of ex2, ex3, ex4, ntfs and fat.
Preferably, the method for increasing progrâmming speed of a system firmware, wherein the terminal device is a mobile or a tablet computer.
The invention has the following benefits:
To increase progrâmming speed of a system firmware efficiently, the invention provides a method for increase progrâmming speed of a system firmware. The method is implemented by adjusting the size of an intermediate file system, generating a corresponding mirror of the system according to the size of the adjusted intermediate file system, transmitting the mirror of the system to the memory and progrâmming the mirror of the system into the flash memory. Thus the size of the mirror of the system is reduced efficiently, the time of making the mirror of the system and transmitting the mirror to the memory device is saved, the time of progrâmming the mirror into the flash memory is saved, and the progrâmming speed of the system firmware is increased efficiently.
BRIEF DESCRIPTIONS OF THE DRAWINGS
Figure 1 shows the procedure schematic view of the method for progrâmming of a system firmware in prior art;
Figure 2 shows the procedure schematic view of the method for increasing progrâmming speed of a system firmware according to the invention;
Figure 3 shows the procedure schematic view of the method for progrâmming of a system firmware according to the invention.
JUIL. 7017
DETAILED DESCRIPTIONS
By referring to the detailed description for the unlimited embodiments with the accompanying drawings, the invention and the feature, outline and advantage thereof will be more obvious. The same signs in the drawings indicate the same part. The drawings are not drawn in proportion and they just intend to show the principle of the invention.
To address the problem which the programming speed of a system firmware is low and the time of programming is long, the invention provides a method for increase programming speed of a system firmware. The method is implemented by adjusting the size of an intermediate file system, generating a mirror of the system according to the size of the adjusted intermediate file system, transmitting the mirror of the system to the memory and programming the mirror of the system into the flash memory of the device. Thus the size of the mirror of the system is reduced efficiently, the time of making the mirror of the system and transmitting the mirror to the memory is saved, the time of programming the mirror into the flash memory is saved, and the programming speed of the system firmware is increased efficiently. Meanwhile, the time of debugging by the engineer is reduced, the time of hardware manufacturing in the assembly line is reduced. The following illustration is further depicted by combining the drawings and the embodiments without being the limit of the invention. '
The system firmware is a huge set of files, such as the file of “system.img”, “userdata.img” and “ccache.img” in the Andriod system. The embodiment only describe the file of “system.img”, any modifications of other files in the system according to the principle of the invention fall in the scope of the invention.
Figure 1 shows the procedure schematic view of the method for programming of a system firmware in prior art. For example, there is a “system/” catalog with a size of 500M (Mbit) need to be stored a 500M (Mbit) data. Due to the existence of the file system with a size of 500M, preferably, it generates an intermediate file system with a size of 1024M. The size of the intermediate file system includes the system files and the contained data capacity. Then generate a mirror file “system.img” with a size of 1024M according to the intermediate file system with a size of 1024M, transmit the generated mirror file “system.img” with a size of 1024M to the memory (such as to the memory of the smart device), that is, download IG (Gbit) data to the memory as shown in Figure 1. Finally, program the mirror file “system.img” with a size of IG transmitted to the memory into the flash memory of the smart device. Therefore, the file system with a size of 500M need to generate an intermediate file system including the file system with a size of 500M and required storing data capacity, then generate the mirror of the system according to the size of the intermediate file system. This results in the problems of big size of the mirror of the system and long time of the transmitting and programming. In the prior art, to avoid the problems, the generated intermediate file system is compressed, the compressed files reduces the size of the intermediate file system, then the compressed intermediate file system is transmitted to the memory. After the intermediate file system is decompressed, it is programmed
VS into the flash memory of the device, which is time-consuming. Such device includes a mobile and a tablet computer.
Figure 2 shows the procedure schematic view of the method for increasing programming speed of a system firmware. Firstly, adjust the size of an* intermediate file system, then generate a corresponding mirror of the system according to the size of the adjusted intermediate file system, transmit the generated mirror of the system to the memory, finally program the mirror of the system into the flash memory of the device.
Figure 3 shows the procedure schematic view of the method for programming of a system firmware. For example, there is a flash memory need to be stored a 500M file system with a 500M data.
According to regular method, the file system with a size of 500M generates an intermediate file System with a size of 1024M. Preferably, in file system with a format of “ex3”, execute the command “$resize2fs -M system.img” to adjust the intermediate file system with a size of IG (1204M) into a file system with a size of 500M. In another embodiment, select the format of “ntfs”, when the mirror of the system is located in the device “loopO”, execute the command “ntfsresize -b -s 516M/dev/sdf’ to adjust the intermediate file system with a size of 516M. The format of the mature file system in the prior art are all support adjusting the size of the file system (such as ext3/4, ntfs, fat). Then generate the corresponding mirror of the system according to the size (500M) of the adjusted intermediate file system.. It is noted that the size of the generated mirror of the system is a lightly greater than the size of the intermediate file system, so as to accommodate the files required by the system. Configure the size of the files according to the different files required by the system, but it is limited in 16M, namely, the mirror of the system is no greater than 516M.
Transmit the mirror of the system no greater than 516M to the memory, and program the mirror into the flash memory of the device. Thus the programming of the system firmware is accomplished. The flash memory of the device comprises, but be not limited to the mobile and the tablet computer. It is noted that the size of the System firmware programming to the flash memory should be adjusted to the size of intermediate file system before adjustment, so as to accommodate the data with a size of 500M. Such adjustment so easy, and as an embodiment, that executing the command “$resize2fs /dev/sdf ” when the mirror of the system generated by the file system “ext3” is located in partition “sdf*. If the file system has the format of “ntfs”, execute the command “ntfsresze -x /dev/sf ’ to restore the size of the programmed system hardware to the size of the intermediate file system. The method of the invention increases programming speed of the system firmware, reduces the time of programming of the system firmware effîciently. For example, if the size of the intermediate file system of the mirror of the system of the popular Andriod mobile with a size of 1.5G is adjusted to 800M to meet the requirement of the file system, the programming time is reduced from 118s to 66s.
In conclusion, the invention adjusts the size of an intermediate file system prior to generating a mirror of the system, generates the mirror of the system according to the size of the adjusted intermediate file system. Thus the time of making the mirror of the system and transmitting the mirror to the memory is saved efficiently, the time of programming the mirror of the system into the flash memory of device is saved, the time of programming the mirror into the hardware is reduced efficiently, and the programming speed of the system firmware is increased.
The people skilled in art should be understood that the various embodiments can be implemented by combining the prior art and above-mentioned embodiments, and it is not described hereafter. The various embodiments do not impact the essential content of the invention, and it is not described hereafter.
While the présent disclosure has been described in connection with certain exemplary embodiments, it is to be understood that the invention is not limited to the disclosed embodiments, the device and structure, which are not specifically. described, should be understood as the common manner in the art to be implemented; any people skilled in the art can make possible changes and modifications, or équivalents thereof for the technical solution of the invention according to the above method without falling out of the scope of the invention. Therefore, the various modifications and équivalent arrangements without departing away from the technical solution of the invention, are included within the spirit and the scope of the technical solution of the invention.

Claims (5)

  1. What is claimed is:
    1. A method for increasing programming speed of a system firmware, applied to a terminal device with a file system and a flash memory, comprising the steps of:
    (a) generating an intermediate file system according to the required build-in program data in the file system;
    (b) adjusting the size of the intermediate file system;
    (c) generating a mirror of the file system according to the adjusted intermediate file system;
    (d) programming the minor of the file system into the flash memory; wherein, the différence value between the size of the mirror of the file system and the size of the required build-in program data in the file system is D, and 0^D^16M (Mbit).
  2. 2. The method for increasing programming speed of a system firmware as claimed in Claim 1, wherein:
    after the step of generating a mirror of the file system and prior to the step ' of programming the mirror of the file system into the flash memory of the terminal device, further comprising a step of transmitting the mirror of the file system to the memory of the terminal device.
  3. 3. The method for increasing programming speed of a system firmware as im.
    claimed in Claim 1, further comprising;
    (e) after programming the mirror of the file system into the memory,. adjusting the size of the file system to the size of the intermediate file system prior to the adjustment when executes the system firmware for the first time.
  4. 4. The method for increasing programming speed ôf a system firmware as claimed in Claim 1, wherein the file system comprises the format of ex2, ex3, ex4, ntfs and fat.
  5. 5. The method for increasing programming speed of a system firmware as claimed in Claim 1, wherein the terminal device is a mobile or a tablet computer.
OA1201700262 2015-01-12 2015-06-12 A method for increasing programming speed of a system firmware. OA18307A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510015528.0 2015-01-12

Publications (1)

Publication Number Publication Date
OA18307A true OA18307A (en) 2018-10-03

Family

ID=

Similar Documents

Publication Publication Date Title
US11222240B2 (en) Data processing method and apparatus for convolutional neural network
EP3246816A1 (en) Method for improving system firmware programming speed
CN104363463B (en) A kind of method for processing video frequency, apparatus and system
CN108874825B (en) A kind of abnormal data verification method and device
CN108804232B (en) Method, host server and system for supporting cloud FPGA deployment
WO2017036183A1 (en) Differential upgrade package processing method and device, upgrade method, system and device
CN103634383A (en) Mobile terminal-based multi-link subsection downloading method and mobile terminal
CN107577506B (en) Data preloading method and system
CN104506943A (en) Set top box software customized upgrading method
WO2024021490A1 (en) Data migration method and apparatus for virtual machine, and electronic device and storage medium
CN111510761B (en) First frame equalization current limiting method and device, computer equipment and readable storage medium
CN107621982A (en) A kind of method and mobile terminal of the performance parameter for adjusting processor
AU2017101082A4 (en) A method for increasing programming speed of a system firmware
CN109951732B (en) Method for preventing startup LOGO and application from switching to black screen for Android smart television
CN108549534A (en) Graphic user interface redraws method, terminal device and computer readable storage medium
CN114512159A (en) DDR frequency switching method and device
OA18307A (en) A method for increasing programming speed of a system firmware.
CN106445353A (en) Display method and device of super-large pictures and electronic equipment
WO2017071642A1 (en) Media playback method, device and computer storage medium
WO2016058188A1 (en) Software upgrading method and apparatus applied to terminal and terminal
CN113079219A (en) Large file fragment uploading method and system
KR20220086248A (en) Method and apparatus for management control of vehicle ota update
CN103716564B (en) Method and device for adjusting control parameter value
CN107844315B (en) Strategy for upgrading app theme skin in Android
CN113986318B (en) Firmware upgrade method, device, computer equipment and storage medium based on solid state drive