CN113064692A - Firmware picture resource data generation method and system - Google Patents

Firmware picture resource data generation method and system Download PDF

Info

Publication number
CN113064692A
CN113064692A CN202110371065.7A CN202110371065A CN113064692A CN 113064692 A CN113064692 A CN 113064692A CN 202110371065 A CN202110371065 A CN 202110371065A CN 113064692 A CN113064692 A CN 113064692A
Authority
CN
China
Prior art keywords
data
picture
file
resource
processed
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN202110371065.7A
Other languages
Chinese (zh)
Other versions
CN113064692B (en
Inventor
刘宏涛
陈远鹏
李思强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Enqualcomm Technology Co ltd
Original Assignee
Enqualcomm Technology 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 Enqualcomm Technology Co ltd filed Critical Enqualcomm Technology Co ltd
Priority to CN202110371065.7A priority Critical patent/CN113064692B/en
Publication of CN113064692A publication Critical patent/CN113064692A/en
Application granted granted Critical
Publication of CN113064692B publication Critical patent/CN113064692B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a method and a system for generating firmware picture resource data, wherein the method comprises the following steps: acquiring all files of picture resource data participating in compilation according to parameters transmitted by a compilation environment, and inserting the files into a data queue to be processed; acquiring original data of a picture to be processed in a data queue, and decoding to acquire file information data of picture resource data; file allocation table information which can be directly accessed when an embedded product operation system is established, so that the embedded product can be directly and quickly positioned to a required picture for reading after operation; storing actual picture data in the file information data as picture target data; until the data to be processed in the data queue is processed; and storing the file allocation table data to a file, and packaging all the picture target data to generate a final firmware picture resource data file. The invention is very convenient and efficient for expanding the functions of products, researching, developing and debugging.

Description

Firmware picture resource data generation method and system
Technical Field
The present invention relates to embedded system application technologies, and in particular, to a method and a system for generating firmware image resource data.
Background
In a wireless electronic product solution provided by Ambiq Micro, an internet of things chip design company in the united states, because the on-chip storage space is limited, the integrated MMI (Man Machine Interface) function is extremely limited, and most of the solutions are applicable to products such as hand-ring type products and cannot be applied to wider wearing products.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides a method and a system for generating firmware image resource data, which are integrated into an embedded product through an effective tool and run in a kernel system.
The invention relates to a method for generating firmware picture resource data, which comprises the following steps:
s1: acquiring all files of picture resource data participating in compilation according to parameters transmitted by a compilation environment, and inserting the files into a data queue to be processed to form a resource list;
s2: according to a set sequence, acquiring original data of pictures to be processed in a data queue, and decoding to acquire file information data of picture resource data;
s3: according to the obtained file information data, file allocation table information which can be directly accessed when the embedded product runs is established, so that the embedded product can be directly and quickly positioned to a required picture for reading after running;
s4: storing actual picture data in the file information data as picture target data;
s5: repeating the steps S2-S4 until the data to be processed in the data queue is processed;
s6: and storing the file allocation table data to a file, and packaging all the picture target data to generate a final firmware picture resource data file.
The present invention is further improved, in step S1, the picture resources are stored in an extended memory independent of the kernel, and according to the parameters transmitted from the compiling environment, all files of the picture resource data involved in the compiling listed in the compiling script cmakelists.txt under the path directory of the corresponding module folder are parsed and inserted into the queue of the data to be processed.
In a further improvement of the present invention, in step S2, the file information data includes a file type, an actual data size, and actual picture data.
In a further improvement of the present invention, in step S3, the file allocation table information is further based on information of an extended memory, and the file information data and the information of the extended memory include: picture ID, picture size, offset sector index in extended memory, number of spanning sectors.
The invention also provides a system based on the firmware picture resource data generation method, which comprises the following steps:
a resource list acquisition module: the system comprises a compiling environment, a data queue and a resource list, wherein the compiling environment is used for compiling picture resource data, and the picture resource data are used for acquiring all files participating in compiling according to parameters transmitted by the compiling environment and inserting the files into the data queue to be processed to form the resource list;
the file information data acquisition module: the system comprises a data queue, a data processing unit and a processing unit, wherein the data queue is used for acquiring original data of pictures to be processed in the data queue according to a set sequence, and decoding the original data to acquire file information data of picture resource data;
a file allocation table information generation module: the file allocation table information which can be directly accessed when the embedded product runs is established according to the obtained file information data, so that the embedded product can be directly and quickly positioned to a required picture for reading after running;
the picture data processing module: the image processing device is used for storing actual image data in the file information data as image target data;
the firmware picture resource data file generation module: storing the file allocation table data to a file, and packaging all the picture target data to generate a final firmware picture resource data file.
Compared with the prior art, the invention has the beneficial effects that: .
Drawings
FIG. 1 is a flow chart of the method of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples.
As shown in fig. 1, the method for generating firmware image resource data provided by the present invention is very simple in operation, and only needs to introduce the interface of the module into the compiling environment when compiling the embedded firmware, and the compiling system automatically completes the generation of the firmware image resource data, so as to meet the requirements of customers for various product functions. The functions of the expanded products are conveniently and efficiently researched and debugged.
Specifically, the invention is realized by adopting the following technical scheme:
1. starting and initializing;
2. analyzing a compiling script CMakeLists.txt under a path directory of a corresponding module folder according to parameters transmitted by a compiling environment;
3. judging whether the loaded data is picture data, if so, obtaining an original file of a corresponding picture according to the loading path, and then adding the original file into a data queue to be processed;
4. judging whether all files of the picture resource data participating in compiling are listed and inserted into a data queue to be processed, if so, executing the next step, and if not, continuing to execute the step 3;
5. according to the information of the data queue to be processed, acquiring original data of the picture to be processed, and decoding to obtain file information data such as file type, actual data size, actual picture data and the like;
6. according to the obtained file information data, the sector size of the embedded mainboard expansion memory and other information, file allocation table information which can be directly accessed when the embedded product runs is established, wherein the information comprises information such as picture ID, picture size, offset sector index in the expansion memory, spanning sector number and the like. The embedded system can directly and quickly position the required data for reading after running;
7. storing actual picture data in the file information data as picture target data;
8. repeating the steps 5-7 until all the data to be processed in the queue are processed;
9. storing file allocation table data to a file;
10. and organizing all the picture target data for packaging to generate a final firmware picture resource data file.
The main innovation points of the invention are as follows:
and when the picture resource data are needed, the needed picture resource data can be quickly accessed according to the file allocation table. The picture resource data is stored in the expansion memory of the embedded mainboard, the storage space can be expanded wirelessly, in the implementation process, the firmware picture resource generating method can quickly and efficiently generate the required resources and store the required resources in the expansion memory, and can be directly called when the system runs, so that the difficult problem that the on-chip storage space is limited is solved, and the functions of the embedded firmware system can be expanded infinitely based on the abundant resource data.
The system architecture of the invention comprises the following components:
the system is composed of a plurality of modules, and the installation functions are respectively as follows: the system comprises an acquisition resource list module, a file information data acquisition module, a file allocation table information generation module, a picture data processing module and a firmware picture resource data file generation module, wherein the acquisition resource list module, the file information data acquisition module, the file allocation table information generation module, the picture data processing module and the firmware picture resource data file generation module are arranged in the system.
The functions performed by the units are described as follows:
a resource list acquisition module: the picture resource data compiling method comprises the steps of obtaining all files of picture resource data which are stored outside an on-chip storage space and participate in compiling according to parameters transmitted by a compiling environment, and inserting the files into a data queue to be processed to form a resource list;
the file information data acquisition module: the system comprises a data queue, a data processing unit and a processing unit, wherein the data queue is used for acquiring original data of pictures to be processed in the data queue according to a set sequence, and decoding the original data to acquire file information data of picture resource data;
a file allocation table information generation module: the file allocation table information which can be directly accessed when the embedded product runs is established according to the obtained file information data, so that the embedded product can be directly and quickly positioned to a required picture for reading after running;
the picture data processing module: the image processing device is used for storing actual image data in the file information data as image target data;
the firmware picture resource data file generation module: and storing the file allocation table data to a file, and packaging all the picture target data to generate a final firmware picture resource data file.
The above-described embodiments are intended to be illustrative, and not restrictive, of the invention, and all changes that come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein.

Claims (5)

1. A method for generating firmware picture resource data, which runs in a kernel system, is characterized by comprising the following steps:
s1: acquiring all files of picture resource data participating in compilation according to parameters transmitted by a compilation environment, and inserting the files into a data queue to be processed to form a resource list;
s2: according to a set sequence, acquiring original data of pictures to be processed in a data queue, and decoding to acquire file information data of picture resource data;
s3: according to the obtained file information data, file allocation table information which can be directly accessed when the embedded product runs is established, so that the embedded product can be directly and quickly positioned to a required picture for reading after running;
s4: storing actual picture data in the file information data as picture target data;
s5: repeating the steps S2-S4 until the data to be processed in the data queue is processed;
s6: and storing the file allocation table data to a file, and packaging all the picture target data to generate a final firmware picture resource data file.
2. The method for generating firmware image resource data according to claim 1, wherein: in step S1, the picture resources are stored in an extended memory independent of the kernel, and according to parameters transmitted from the compiling environment, all files of the picture resource data involved in the compiling listed in the compiling script cmakelists.txt under the corresponding module folder path directory are parsed and inserted into the queue of the data to be processed.
3. The method for generating firmware image resource data according to claim 2, wherein: in step S2, the file information data includes a file type, an actual data size, and actual picture data.
4. The method for generating firmware image resource data according to claim 3, wherein: in step S3, the file allocation table information is further based on information of the extended memory, and the file information data and the information of the extended memory include: picture ID, picture size, offset sector index in extended memory, number of spanning sectors.
5. A system for implementing the firmware image resource data generation method of any one of claims 1 to 4, comprising:
a resource list acquisition module: the system comprises a compiling environment, a data queue and a resource list, wherein the compiling environment is used for compiling picture resource data, and the picture resource data are used for acquiring all files participating in compiling according to parameters transmitted by the compiling environment and inserting the files into the data queue to be processed to form the resource list;
the file information data acquisition module: the system comprises a data queue, a data processing unit and a processing unit, wherein the data queue is used for acquiring original data of pictures to be processed in the data queue according to a set sequence, and decoding the original data to acquire file information data of picture resource data;
a file allocation table information generation module: the file allocation table information which can be directly accessed when the embedded product runs is established according to the obtained file information data, so that the embedded product can be directly and quickly positioned to a required picture for reading after running;
the picture data processing module: the image processing device is used for storing actual image data in the file information data as image target data;
the firmware picture resource data file generation module: and storing the file allocation table data to a file, and packaging all the picture target data to generate a final firmware picture resource data file.
CN202110371065.7A 2021-04-06 2021-04-06 Method and system for generating firmware picture resource data Active CN113064692B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110371065.7A CN113064692B (en) 2021-04-06 2021-04-06 Method and system for generating firmware picture resource data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110371065.7A CN113064692B (en) 2021-04-06 2021-04-06 Method and system for generating firmware picture resource data

Publications (2)

Publication Number Publication Date
CN113064692A true CN113064692A (en) 2021-07-02
CN113064692B CN113064692B (en) 2022-11-29

Family

ID=76565845

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110371065.7A Active CN113064692B (en) 2021-04-06 2021-04-06 Method and system for generating firmware picture resource data

Country Status (1)

Country Link
CN (1) CN113064692B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1472643A (en) * 2003-06-27 2004-02-04 沈阳东软数字医疗系统股份有限公司 FPGA and CPLD based impulse sequence programmer
US20070128899A1 (en) * 2003-01-12 2007-06-07 Yaron Mayer System and method for improving the efficiency, comfort, and/or reliability in Operating Systems, such as for example Windows
CN101371307A (en) * 2006-01-31 2009-02-18 株式会社东芝 Information reproducing system using information storage medium
CN101827158A (en) * 2009-03-05 2010-09-08 中兴通讯股份有限公司 Method and system for uniformly processing picture resources in cellphone
CN101930376A (en) * 2010-08-25 2010-12-29 中兴通讯股份有限公司 Method for loading picture resources for JAVA virtual machine and terminal thereof
US20120127327A1 (en) * 2010-11-24 2012-05-24 Samsung Electronics Co., Ltd. Digital photographing apparatus and methods of providing pictures thereof
US20150234637A1 (en) * 2014-02-19 2015-08-20 Samsung Electronics Co., Ltd. Method for creating binary code and electronic device thereof
CN108108260A (en) * 2016-11-25 2018-06-01 沈阳美行科技有限公司 The method of calibration and device of a kind of resource file
CN110489162A (en) * 2019-08-02 2019-11-22 北京字节跳动网络技术有限公司 Installation kit SO file compressing method, device, medium and equipment
CN111309327A (en) * 2018-12-12 2020-06-19 厦门雅迅网络股份有限公司 Automatic compiling method of application program and computer readable storage medium
US20200356618A1 (en) * 2019-02-25 2020-11-12 Luminati Networks Ltd. System and method for url fetching retry mechanism

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070128899A1 (en) * 2003-01-12 2007-06-07 Yaron Mayer System and method for improving the efficiency, comfort, and/or reliability in Operating Systems, such as for example Windows
CN1472643A (en) * 2003-06-27 2004-02-04 沈阳东软数字医疗系统股份有限公司 FPGA and CPLD based impulse sequence programmer
CN101371307A (en) * 2006-01-31 2009-02-18 株式会社东芝 Information reproducing system using information storage medium
CN101827158A (en) * 2009-03-05 2010-09-08 中兴通讯股份有限公司 Method and system for uniformly processing picture resources in cellphone
CN101930376A (en) * 2010-08-25 2010-12-29 中兴通讯股份有限公司 Method for loading picture resources for JAVA virtual machine and terminal thereof
US20120127327A1 (en) * 2010-11-24 2012-05-24 Samsung Electronics Co., Ltd. Digital photographing apparatus and methods of providing pictures thereof
US20150234637A1 (en) * 2014-02-19 2015-08-20 Samsung Electronics Co., Ltd. Method for creating binary code and electronic device thereof
CN108108260A (en) * 2016-11-25 2018-06-01 沈阳美行科技有限公司 The method of calibration and device of a kind of resource file
CN111309327A (en) * 2018-12-12 2020-06-19 厦门雅迅网络股份有限公司 Automatic compiling method of application program and computer readable storage medium
US20200356618A1 (en) * 2019-02-25 2020-11-12 Luminati Networks Ltd. System and method for url fetching retry mechanism
CN110489162A (en) * 2019-08-02 2019-11-22 北京字节跳动网络技术有限公司 Installation kit SO file compressing method, device, medium and equipment

Non-Patent Citations (7)

* Cited by examiner, † Cited by third party
Title
FREE-JDX: "全志平台编译和打包系统(2)打包系统", 《HTTPS://WWW.EBAINA.COM/ARTICLES/140000004575》 *
佚名: ".net中图片文件编译到资源文件", 《HTTPS://WWW.CNBLOGS.COM/BOBIRD/ARTICLES/3171282.HTML》 *
佚名: "PowerBuilder程序编译及资源文件打包应用研究", 《HTTPS://WWW.DOCIN.COM/P-497533979.HTML》 *
卜哲: "基于Android系统的智能终端软件行为分析方法", 《信息网络安全》 *
善良比聪明更重要: "Android资源管理框架:编译和打包", 《HTTPS://BLOG.CSDN.NET/YANGXU4536/ARTICLE/DETAILS/108213731》 *
张俊臣: "基于DM6446的WINCE BSP的移植与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
张益星 等: "PowerBuilder应用程序的编译发布技术研究", 《计算机技术与发展》 *

Also Published As

Publication number Publication date
CN113064692B (en) 2022-11-29

Similar Documents

Publication Publication Date Title
CN109117169B (en) Method and device for repairing kernel vulnerability
CN106569869A (en) Plug-in packaging method and device
CN109358956B (en) Service calling method
CN109144799A (en) Integrated testing method, apparatus, computer equipment and storage medium
CN100511140C (en) Method for script language calling multiple output parameter interface by component software system
Desnos et al. Memory Analysis and Optimized Allocation of Dataflow Applications on Shared-Memory MPSoCs: In-Depth Study of a Computer Vision Application
CN111026455B (en) Plug-in generation method, electronic device and storage medium
CN113885935A (en) Resource packaging method and device, electronic equipment and computer readable storage medium
RU2616164C2 (en) Methods and device for browser engine work
CN110457013B (en) Program component configuration device and method
CN113064692B (en) Method and system for generating firmware picture resource data
CN110018831B (en) Program processing method, program processing apparatus, and computer-readable storage medium
CN113641594B (en) Cross-terminal automatic testing method and related device
CN116225450A (en) Text conversion method and apparatus, computing device and readable storage medium
CN108460276B (en) Processing method and device for SO file of dynamic link library of android installation package
CN113885996A (en) User interface generation method and device
CN106066789A (en) A kind of method and apparatus that webcam driver program is compiled
CN108874448B (en) Method and equipment for positioning object in coredump file
CN114995830B (en) Code compiling method and device
CN112612754B (en) File searching method, system, device and computer storage medium
CN114860204B (en) Program processing and running method and device, terminal, smart card and storage medium
CN114579135B (en) Installation package generation method and device
CN109377177B (en) Flow processing method, device, equipment and computer readable storage medium
CN117349156A (en) Test method, device, equipment and medium
CN118227252A (en) Container deployment method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant